@treeseed/sdk 0.12.44 → 0.12.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/guarantees/index.d.ts +83 -0
- package/dist/guarantees/index.js +688 -86
- package/dist/hosting/graph.js +40 -6
- package/dist/operations/services/git-workflow.d.ts +16 -1
- package/dist/operations/services/git-workflow.js +65 -5
- package/dist/operations/services/github-api.js +0 -19
- package/dist/operations/services/hosted-service-checks.js +17 -1
- package/dist/operations/services/live-hosted-service-checks.d.ts +4 -0
- package/dist/operations/services/live-hosted-service-checks.js +7 -4
- package/dist/operations/services/local-cleanup.js +3 -7
- package/dist/operations/services/package-adapters.d.ts +14 -0
- package/dist/operations/services/package-adapters.js +36 -3
- package/dist/operations/services/package-artifacts.d.ts +37 -0
- package/dist/operations/services/package-artifacts.js +99 -0
- package/dist/operations/services/railway-deploy.js +78 -18
- package/dist/operations/services/railway-source-policy.d.ts +19 -0
- package/dist/operations/services/railway-source-policy.js +66 -0
- package/dist/operations/services/repository-save-orchestrator.js +12 -5
- package/dist/platform/desired-state.js +2 -3
- package/dist/reconcile/builtin-adapters.js +10 -2
- package/dist/reconcile/providers/railway-iac.d.ts +2 -0
- package/dist/reconcile/providers/railway-iac.js +31 -3
- package/dist/scenes/builtin-plugins.js +36 -5
- package/dist/scenes/device-matrix.js +2 -0
- package/dist/scenes/environment.js +1 -1
- package/dist/scenes/runner.js +28 -16
- package/dist/scenes/schema.js +31 -2
- package/dist/scenes/types.d.ts +25 -2
- package/dist/scenes/visual-audit-fixtures.js +9 -3
- package/dist/workflow/operations.d.ts +27 -92
- package/dist/workflow/operations.js +236 -144
- package/dist/workflow/runs.d.ts +1 -0
- package/dist/workflow/runs.js +57 -0
- package/dist/workflow-support.d.ts +1 -0
- package/dist/workflow-support.js +8 -0
- package/dist/workflow.d.ts +2 -0
- package/package.json +4 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const TREESEED_GUARANTEE_SCHEMA_VERSION: "treeseed.guarantee/v1";
|
|
2
2
|
export declare const TREESEED_GUARANTEE_VERIFIERS_SCHEMA_VERSION: "treeseed.guarantee-verifiers/v1";
|
|
3
|
+
export declare const TREESEED_GUARANTEE_JOURNEY_AUDIT_SCHEMA_VERSION: "treeseed.guarantee-journey-audit/v1";
|
|
3
4
|
export type TreeseedGuaranteeSchemaVersion = typeof TREESEED_GUARANTEE_SCHEMA_VERSION;
|
|
4
5
|
export type TreeseedGuaranteeVerifiersSchemaVersion = typeof TREESEED_GUARANTEE_VERIFIERS_SCHEMA_VERSION;
|
|
5
6
|
export type TreeseedGuaranteeGate = 'smoke' | 'core' | 'release' | 'security' | 'migration' | 'demo' | 'backlog' | 'future';
|
|
@@ -123,6 +124,8 @@ export type TreeseedGuaranteeFilter = {
|
|
|
123
124
|
type?: string;
|
|
124
125
|
subtype?: string;
|
|
125
126
|
ownerPackage?: string;
|
|
127
|
+
ownerPackages?: string[];
|
|
128
|
+
sceneBacked?: boolean;
|
|
126
129
|
status?: TreeseedGuaranteeStatus;
|
|
127
130
|
ids?: string[];
|
|
128
131
|
journeyIndexes?: number[];
|
|
@@ -159,6 +162,62 @@ export type TreeseedGuaranteePlanEntry = {
|
|
|
159
162
|
contentVerifierRefs: string[];
|
|
160
163
|
auditVerifierRefs: string[];
|
|
161
164
|
evidenceRequired: string[];
|
|
165
|
+
dependencyDepth: number;
|
|
166
|
+
dependencyOf: string[];
|
|
167
|
+
dependsOn: string[];
|
|
168
|
+
dependencyReason: Array<'explicit-guarantee' | 'journey-index' | 'depends-on-verifier' | 'implicit-auth' | 'state'>;
|
|
169
|
+
executionOrder: number;
|
|
170
|
+
blockedBy?: string[];
|
|
171
|
+
producesState?: string[];
|
|
172
|
+
consumesState?: string[];
|
|
173
|
+
};
|
|
174
|
+
export type TreeseedGuaranteeJourneyAudit = {
|
|
175
|
+
schemaVersion: typeof TREESEED_GUARANTEE_JOURNEY_AUDIT_SCHEMA_VERSION;
|
|
176
|
+
workspaceRoot: string;
|
|
177
|
+
generatedAt: string;
|
|
178
|
+
totals: {
|
|
179
|
+
guarantees: number;
|
|
180
|
+
sceneBacked: number;
|
|
181
|
+
activeSceneBacked: number;
|
|
182
|
+
weakSceneContracts: number;
|
|
183
|
+
missingRoutes: number;
|
|
184
|
+
missingSelectors: number;
|
|
185
|
+
dependencyErrors: number;
|
|
186
|
+
activeSceneBackedWeak: number;
|
|
187
|
+
activeMissingRoutes: number;
|
|
188
|
+
activeMissingSelectors: number;
|
|
189
|
+
};
|
|
190
|
+
items: TreeseedGuaranteeJourneyAuditItem[];
|
|
191
|
+
diagnostics: TreeseedGuaranteeDiagnostic[];
|
|
192
|
+
ok: boolean;
|
|
193
|
+
};
|
|
194
|
+
export type TreeseedGuaranteeJourneyAuditItem = {
|
|
195
|
+
guaranteeId: string;
|
|
196
|
+
status: TreeseedGuaranteeStatus;
|
|
197
|
+
ownerPackage: string;
|
|
198
|
+
type: string;
|
|
199
|
+
subtype: string;
|
|
200
|
+
journey: string;
|
|
201
|
+
sourcePath: string;
|
|
202
|
+
scenePath?: string;
|
|
203
|
+
currentRoute?: string;
|
|
204
|
+
resolvedRoute?: string;
|
|
205
|
+
routeExists: boolean;
|
|
206
|
+
sceneWorkflowStepCount: number;
|
|
207
|
+
interactiveStepCount: number;
|
|
208
|
+
classification: 'valid-service-journey' | 'weak-page-only-scene' | 'route-mismatch' | 'missing-product-route' | 'missing-stable-selectors' | 'planned-product-contract' | 'non-ui-guarantee';
|
|
209
|
+
requiredAction: 'author-scene' | 'fix-route' | 'add-selectors' | 'downgrade-status' | 'none';
|
|
210
|
+
diagnostics: TreeseedGuaranteeDiagnostic[];
|
|
211
|
+
};
|
|
212
|
+
export type TreeseedGuaranteeRunState = {
|
|
213
|
+
schemaVersion: 'treeseed.guarantee-run-state/v1';
|
|
214
|
+
runId: string;
|
|
215
|
+
values: Record<string, {
|
|
216
|
+
producerGuaranteeId: string;
|
|
217
|
+
kind: 'user' | 'team' | 'project' | 'host' | 'capacity-provider' | 'workday' | 'operation' | 'content' | 'custom';
|
|
218
|
+
value: unknown;
|
|
219
|
+
createdAt: string;
|
|
220
|
+
}>;
|
|
162
221
|
};
|
|
163
222
|
export type TreeseedGuaranteeVerifierResolution = {
|
|
164
223
|
ref: string;
|
|
@@ -210,6 +269,7 @@ export type TreeseedGuaranteeRunReport = {
|
|
|
210
269
|
startedAt: string;
|
|
211
270
|
completedAt: string;
|
|
212
271
|
outputRoot: string;
|
|
272
|
+
statePath?: string;
|
|
213
273
|
plan: TreeseedGuaranteePlanReport;
|
|
214
274
|
results: TreeseedGuaranteeRunResult[];
|
|
215
275
|
diagnostics: TreeseedGuaranteeDiagnostic[];
|
|
@@ -242,6 +302,7 @@ export type TreeseedGuaranteeVerifierExecutionInput = {
|
|
|
242
302
|
ref: string;
|
|
243
303
|
definition: TreeseedGuaranteeVerifierDefinition;
|
|
244
304
|
kind: TreeseedGuaranteeRunStep['kind'];
|
|
305
|
+
onProgress?: (message: string, stream?: 'stdout' | 'stderr') => void;
|
|
245
306
|
};
|
|
246
307
|
export type TreeseedGuaranteeVerifierExecutionResult = {
|
|
247
308
|
status: TreeseedGuaranteeRunStatus;
|
|
@@ -316,6 +377,12 @@ export declare function planTreeseedGuarantees(input: {
|
|
|
316
377
|
environment?: string;
|
|
317
378
|
includeDependencies?: boolean;
|
|
318
379
|
}): TreeseedGuaranteePlanReport;
|
|
380
|
+
export declare function auditTreeseedGuaranteeJourneys(input: {
|
|
381
|
+
workspaceRoot: string;
|
|
382
|
+
filter?: TreeseedGuaranteeFilter;
|
|
383
|
+
writeReport?: string;
|
|
384
|
+
now?: Date;
|
|
385
|
+
}): TreeseedGuaranteeJourneyAudit;
|
|
319
386
|
export declare function exportTreeseedGuaranteesCsv(input: {
|
|
320
387
|
guarantees: TreeseedLoadedGuarantee[];
|
|
321
388
|
filter?: TreeseedGuaranteeFilter;
|
|
@@ -387,6 +454,21 @@ export declare function resolveTreeseedGuaranteeVerifierRefs(input: {
|
|
|
387
454
|
status?: TreeseedGuaranteeStatus;
|
|
388
455
|
sourcePath?: string;
|
|
389
456
|
}): TreeseedGuaranteeVerifierResolutionReport;
|
|
457
|
+
export declare function validateTreeseedVitestVerifierOutput(result: {
|
|
458
|
+
stdout: string;
|
|
459
|
+
stderr: string;
|
|
460
|
+
}): "Vitest verifier completed without executing any assertions. Check the verifier testName/testFile; skipped-only or no-match runs are not valid guarantee evidence." | null;
|
|
461
|
+
export declare function validateGuaranteeSceneJourneyContract(input: {
|
|
462
|
+
scenePath: string;
|
|
463
|
+
sourcePath?: string;
|
|
464
|
+
}): TreeseedGuaranteeDiagnostic[];
|
|
465
|
+
export declare function sceneAuthRoleForGuarantee(manifest: TreeseedGuaranteeManifest): "owner" | "admin" | "member" | undefined;
|
|
466
|
+
export declare function browserForGuaranteeDevice(device: string | undefined): "chromium" | "firefox" | "webkit";
|
|
467
|
+
export declare function sceneDeviceRunsForGuarantee(devices: string[]): {
|
|
468
|
+
id: string;
|
|
469
|
+
device: string;
|
|
470
|
+
browser: string;
|
|
471
|
+
}[];
|
|
390
472
|
export declare function writeTreeseedGuaranteeRunReport(input: {
|
|
391
473
|
report: TreeseedGuaranteeRunReport;
|
|
392
474
|
registry?: TreeseedGuaranteeRegistryReport;
|
|
@@ -405,6 +487,7 @@ export declare function runTreeseedGuarantees(input: {
|
|
|
405
487
|
evidenceTarget?: 'local' | 'ci' | 'release';
|
|
406
488
|
sceneExecutor?: TreeseedGuaranteeSceneExecutor;
|
|
407
489
|
verifierExecutor?: TreeseedGuaranteeVerifierExecutor;
|
|
490
|
+
onProgress?: (message: string, stream?: 'stdout' | 'stderr') => void;
|
|
408
491
|
now?: Date;
|
|
409
492
|
}): Promise<TreeseedGuaranteeRunReport>;
|
|
410
493
|
export declare function createTreeseedGuaranteeStatusReport(input: {
|