Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,22 @@ jobs:

- name: Install dependencies
timeout-minutes: 20
env:
TREESEED_SKIP_PACKAGE_PREPARE: "1"
run: npm run release:setup

- name: Download exact integrated UI package
uses: actions/download-artifact@v4
with:
repository: treeseed-ai/ui
run-id: 36729378278
name: ui-b0c9a2bdf1eed181950c1202a24ab3d9af012833
github-token: ${{ github.token }}
path: .treeseed/ci-ui

- name: Install exact integrated UI package
run: npm install --ignore-scripts --no-save --package-lock=false .treeseed/ci-ui/*.tgz

- name: Verify package
run: npm run verify:direct

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/lib/market/api-client/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ declare module "../api-client.ts" {
evaluateTeamDeletionBlockers: typeof import("./teams/contracts/evaluate-team-deletion-blockers.ts").evaluateTeamDeletionBlockersMethod;
fulfillCommerceOrderItemArtifact: typeof import("./commerce/orders/lifecycle/fulfill-commerce-order-item-artifact.ts").fulfillCommerceOrderItemArtifactMethod;
fulfillCommerceServiceContract: typeof import("./commerce/services/lifecycle/fulfill-commerce-service-contract.ts").fulfillCommerceServiceContractMethod;
getCapacityPlan: typeof import("./capacity/planning/queries/get-capacity-plan.ts").getCapacityPlanMethod;
getCatalogItemBySlug: typeof import("./commerce/catalog/queries/get-catalog-item-by-slug.ts").getCatalogItemBySlugMethod;
getCommerceCapacityListingForProduct: typeof import("./commerce/capacity/queries/get-commerce-capacity-listing-for-product.ts").getCommerceCapacityListingForProductMethod;
getCommerceCapacityListingInquiry: typeof import("./commerce/capacity/queries/get-commerce-capacity-listing-inquiry.ts").getCommerceCapacityListingInquiryMethod;
Expand All @@ -61,7 +60,6 @@ declare module "../api-client.ts" {
getCommonsParticipantMe: typeof import("./governance/commons/queries/get-commons-participant-me.ts").getCommonsParticipantMeMethod;
getCommonsProposal: typeof import("./governance/commons/queries/get-commons-proposal.ts").getCommonsProposalMethod;
getCommonsSummary: typeof import("./governance/commons/queries/get-commons-summary.ts").getCommonsSummaryMethod;
getDecisionPlanningStatus: typeof import("./support/queries/get-decision-planning-status.ts").getDecisionPlanningStatusMethod;
getProjectAgentsSummary: typeof import("./projects/projects-core/queries/get-project-agents-summary.ts").getProjectAgentsSummaryMethod;
getProjectByTeamAndSlug: typeof import("./projects/projects-core/queries/get-project-by-team-and-slug.ts").getProjectByTeamAndSlugMethod;
getProjectCapacityRuntimeDiagnostics: typeof import("./capacity/observability/queries/get-project-capacity-runtime-diagnostics.ts").getProjectCapacityRuntimeDiagnosticsMethod;
Expand All @@ -82,9 +80,7 @@ declare module "../api-client.ts" {
listApprovalRequestsForProject: typeof import("./projects/projects-core/queries/list-approval-requests-for-project.ts").listApprovalRequestsForProjectMethod;
listApprovalRequestsForTeam: typeof import("./teams/queries/list-approval-requests-for-team.ts").listApprovalRequestsForTeamMethod;
listAuditEventsForTarget: typeof import("./support/queries/list-audit-events-for-target.ts").listAuditEventsForTargetMethod;
listCapacityAllocationSets: typeof import("./capacity/allocations/queries/list-capacity-allocation-sets.ts").listCapacityAllocationSetsMethod;
listCapacityLedgerEntries: typeof import("./capacity/accounting/queries/list-capacity-ledger-entries.ts").listCapacityLedgerEntriesMethod;
listCapacityRoutingDecisionsForProject: typeof import("./capacity/planning/queries/list-capacity-routing-decisions-for-project.ts").listCapacityRoutingDecisionsForProjectMethod;
listCatalogArtifactVersions: typeof import("./commerce/orders/queries/list-catalog-artifact-versions.ts").listCatalogArtifactVersionsMethod;
listCatalogItems: typeof import("./commerce/catalog/queries/list-catalog-items.ts").listCatalogItemsMethod;
listCommerceCapacityListingInquiries: typeof import("./commerce/capacity/queries/list-commerce-capacity-listing-inquiries.ts").listCommerceCapacityListingInquiriesMethod;
Expand All @@ -105,8 +101,6 @@ declare module "../api-client.ts" {
listCommonsParticipants: typeof import("./governance/commons/queries/list-commons-participants.ts").listCommonsParticipantsMethod;
listCommonsProposals: typeof import("./governance/commons/queries/list-commons-proposals.ts").listCommonsProposalsMethod;
listCommonsQuestions: typeof import("./governance/commons/queries/list-commons-questions.ts").listCommonsQuestionsMethod;
listDecisionCapacityPlans: typeof import("./capacity/planning/queries/list-decision-capacity-plans.ts").listDecisionCapacityPlansMethod;
listDecisionExecutionInputs: typeof import("./support/queries/list-decision-execution-inputs.ts").listDecisionExecutionInputsMethod;
listExecutionRuns: typeof import("./support/queries/list-execution-runs.ts").listExecutionRunsMethod;
listPersistedTeamInboxItems: typeof import("./teams/queries/list-persisted-team-inbox-items.ts").listPersistedTeamInboxItemsMethod;
listProjectAgentClasses: typeof import("./projects/agents/queries/list-project-agent-classes.ts").listProjectAgentClassesMethod;
Expand Down
13 changes: 0 additions & 13 deletions src/lib/market/api-client/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ import { getProjectTreeDxLibraryMethod } from "./projects/knowledge/queries/get-
import { upsertProjectTreeDxLibraryMethod } from "./projects/knowledge/creation/upsert-project-tree-dx-library.ts";
import { getProjectRepositoryTopologyMethod } from "./projects/repositories/queries/get-project-repository-topology.ts";
import { updateProjectRepositoryTopologyMethod } from "./projects/repositories/updates/update-project-repository-topology.ts";
import { listCapacityAllocationSetsMethod } from "./capacity/allocations/queries/list-capacity-allocation-sets.ts";
import { listProviderAvailabilitySessionsMethod } from "./capacity/providers/queries/list-provider-availability-sessions.ts";
import { listProviderAssignmentsMethod } from "./capacity/assignments/queries/list-provider-assignments.ts";
import { listExecutionRunsMethod } from "./support/queries/list-execution-runs.ts";
Expand All @@ -145,16 +144,11 @@ import { listProjectAgentFallbackOutputsMethod } from "./projects/agents/queries
import { listProjectTreeDxProxyAuditMethod } from "./projects/knowledge/queries/list-project-tree-dx-proxy-audit.ts";
import { getProjectCapacityRuntimeDiagnosticsMethod } from "./capacity/observability/queries/get-project-capacity-runtime-diagnostics.ts";
import { getProviderAssignmentExplanationMethod } from "./capacity/assignments/queries/get-provider-assignment-explanation.ts";
import { getDecisionPlanningStatusMethod } from "./support/queries/get-decision-planning-status.ts";
import { listDecisionExecutionInputsMethod } from "./support/queries/list-decision-execution-inputs.ts";
import { listDecisionCapacityPlansMethod } from "./capacity/planning/queries/list-decision-capacity-plans.ts";
import { getCapacityPlanMethod } from "./capacity/planning/queries/get-capacity-plan.ts";
import { getWorkdayCapacitySummaryMethod } from "./capacity/workdays/queries/get-workday-capacity-summary.ts";
import { listWorkdayRunsMethod } from "./capacity/workdays/queries/list-workday-runs.ts";
import { createWorkdayRunMethod } from "./capacity/workdays/creation/create-workday-run.ts";
import { getWorkdayRunMethod } from "./capacity/workdays/queries/get-workday-run.ts";
import { listCapacityLedgerEntriesMethod } from "./capacity/accounting/queries/list-capacity-ledger-entries.ts";
import { listCapacityRoutingDecisionsForProjectMethod } from "./capacity/planning/queries/list-capacity-routing-decisions-for-project.ts";
import { listSeedRunsMethod } from "./seeds/queries/list-seed-runs.ts";
import { listCatalogItemsMethod } from "./commerce/catalog/queries/list-catalog-items.ts";
import { getCatalogItemBySlugMethod } from "./commerce/catalog/queries/get-catalog-item-by-slug.ts";
Expand Down Expand Up @@ -336,7 +330,6 @@ export function installApiClientFacadeMethods(prototype: ApiClientFacade) {
prototype.getProjectRepositoryTopology = getProjectRepositoryTopologyMethod;
prototype.updateProjectRepositoryTopology =
updateProjectRepositoryTopologyMethod;
prototype.listCapacityAllocationSets = listCapacityAllocationSetsMethod;
prototype.listProviderAvailabilitySessions =
listProviderAvailabilitySessionsMethod;
prototype.listProviderAssignments = listProviderAssignmentsMethod;
Expand All @@ -350,17 +343,11 @@ export function installApiClientFacadeMethods(prototype: ApiClientFacade) {
getProjectCapacityRuntimeDiagnosticsMethod;
prototype.getProviderAssignmentExplanation =
getProviderAssignmentExplanationMethod;
prototype.getDecisionPlanningStatus = getDecisionPlanningStatusMethod;
prototype.listDecisionExecutionInputs = listDecisionExecutionInputsMethod;
prototype.listDecisionCapacityPlans = listDecisionCapacityPlansMethod;
prototype.getCapacityPlan = getCapacityPlanMethod;
prototype.getWorkdayCapacitySummary = getWorkdayCapacitySummaryMethod;
prototype.listWorkdayRuns = listWorkdayRunsMethod;
prototype.createWorkdayRun = createWorkdayRunMethod;
prototype.getWorkdayRun = getWorkdayRunMethod;
prototype.listCapacityLedgerEntries = listCapacityLedgerEntriesMethod;
prototype.listCapacityRoutingDecisionsForProject =
listCapacityRoutingDecisionsForProjectMethod;
prototype.listSeedRuns = listSeedRunsMethod;
prototype.listCatalogItems = listCatalogItemsMethod;
prototype.getCatalogItemBySlug = getCatalogItemBySlugMethod;
Expand Down

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions src/view-models/agent-lab/agent-lab-frame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function loadAgentLabFrame(api: ApiClientFacade, team: { id: string
});
const activity = { revision: 'catalog-foundation', generatedAt: new Date().toISOString(), cursor: null, upserts: [], removedIds: [] };
const series = { revision: 'catalog-foundation', generatedAt: new Date().toISOString(), cursor: null, upserts: [], removedIds: [] };
const allocation = { revision: 'catalog-foundation', generatedAt: new Date().toISOString(), canManage: false, activeAllocationSetId: null,
const allocation = { revision: 'catalog-foundation', generatedAt: new Date().toISOString(),
time: { availableSeconds: null, requestedSeconds: 0, reservedSeconds: 0, activeSeconds: 0, elapsedSeconds: 0, releasedSeconds: 0, remainingSeconds: null, overrunSeconds: 0 }, projects: [], agentClasses: [], workdayTime: [] };
const atlas = fallbackAtlas(team.id, overview);
return {
Expand All @@ -56,7 +56,7 @@ export async function loadAgentLabFrame(api: ApiClientFacade, team: { id: string
activity: activity as AgentLabDelta<AgentLabActivityInterval>,
series: series as AgentLabDelta<AgentLabMetricPoint>,
allocation: allocation as AllocationSnapshot,
endpoints: { overview: '', activity: '', metricSeries: '', allocation: '', viewState: '' },
endpoints: { overview: '', activity: '', metricSeries: '', viewState: '' },
atlasEndpoints:{projection:'',delta:'',stream:'',detail:'',assignmentGraphs:'',viewState:'',createAgent:`/app/work/build?create=agent`,createGroup:`/app/work/build?create=group`,createProject:'/app/projects',connectService:'/app/services/new',configureCapacity:'/app/capacity'},
targetEndpoint: '',
preference: { enabled: preferences.realTimeUpdates, intervalSeconds: preferences.realTimePollingIntervalSeconds },
Expand Down
8 changes: 0 additions & 8 deletions src/view-models/command/situations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,6 @@ export function deriveCommandSituations(snapshot: CommandSnapshot, now = Date.no
timestamp: dateValue(item.updatedAt, item.createdAt), href: text(item.href, '/app/projects'), actionLabel: 'Inspect evidence',
evidence: 'Persisted operational inbox evidence', inferred: false, priority: 94 }));
}
for (const decision of snapshot.decisions) {
const accepted = ['accepted', 'approved', 'decided'].includes(String(decision.status ?? decision.outcome ?? ''));
if (!accepted || decision.capacityPlanId || decision.capacity_plan_id) continue;
values.push(situation({ id: `decision:${decision.id}`, title: 'Decision ready but not capacity-planned',
description: text(decision.title, decision.summary, 'An authorized decision has no linked capacity plan.'), status: 'planning required', tone: 'warning',
timestamp: dateValue(decision.decidedAt, decision.updatedAt, decision.createdAt), href: '/app/focus/decisions', actionLabel: 'Enter focused review',
evidence: 'Decision planning provenance', inferred: true, priority: 80 }));
}
for (const project of snapshot.projects) {
const state = `${project.status ?? ''} ${project.releaseStatus ?? ''} ${project.forecastStatus ?? ''}`.toLowerCase();
if (!['at_risk', 'blocked', 'delayed', 'failed'].some((value) => state.includes(value))) continue;
Expand Down
7 changes: 5 additions & 2 deletions tests/unit/brand-assets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ import { execFileSync } from 'node:child_process';
import { mkdtempSync, readFileSync, rmSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join, resolve } from 'node:path';
import { createRequire } from 'node:module';

const require = createRequire(import.meta.url);

it('materializes the canonical TreeSeed logo at both advertised public asset URLs', () => {
const root = mkdtempSync(join(tmpdir(), 'treeseed-brand-'));
try {
execFileSync(process.execPath, ['--experimental-strip-types', resolve('scripts/brand/sync-assets.ts')], { cwd: root });
const canonical = readFileSync(new URL(import.meta.resolve('@treeseed/ui/assets/treeseed-logo.svg')));
execFileSync(process.execPath, ['--import', require.resolve('tsx'), resolve('scripts/brand/sync-assets.ts')], { cwd: root });
const canonical = readFileSync(require.resolve('@treeseed/ui/assets/treeseed-logo.svg'));
expect(readFileSync(join(root, 'public/logo.svg'))).toEqual(canonical);
expect(readFileSync(join(root, 'public/favicon.svg'))).toEqual(canonical);
} finally { rmSync(root, { recursive: true, force: true }); }
Expand Down
Loading
Loading