@cleocode/core 2026.4.5 → 2026.4.6
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/discovery.d.ts +69 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1643 -2349
- package/dist/index.js.map +4 -4
- package/dist/init.d.ts +51 -0
- package/dist/init.d.ts.map +1 -1
- package/dist/internal.d.ts +9 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/lifecycle/default-chain.d.ts +8 -2
- package/dist/lifecycle/default-chain.d.ts.map +1 -1
- package/dist/lifecycle/index.d.ts +1 -0
- package/dist/lifecycle/index.d.ts.map +1 -1
- package/dist/lifecycle/stage-guidance.d.ts +140 -0
- package/dist/lifecycle/stage-guidance.d.ts.map +1 -0
- package/dist/orchestration/protocol-validators.d.ts +122 -3
- package/dist/orchestration/protocol-validators.d.ts.map +1 -1
- package/dist/paths.d.ts +91 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/scaffold.d.ts +31 -1
- package/dist/scaffold.d.ts.map +1 -1
- package/dist/skills/dispatch.d.ts +1 -1
- package/dist/skills/skill-paths.d.ts +9 -6
- package/dist/skills/skill-paths.d.ts.map +1 -1
- package/dist/validation/protocols/_shared.d.ts +40 -0
- package/dist/validation/protocols/_shared.d.ts.map +1 -0
- package/dist/validation/protocols/architecture-decision.d.ts +23 -0
- package/dist/validation/protocols/architecture-decision.d.ts.map +1 -0
- package/dist/validation/protocols/artifact-publish.d.ts +22 -0
- package/dist/validation/protocols/artifact-publish.d.ts.map +1 -0
- package/dist/validation/protocols/consensus.d.ts +11 -17
- package/dist/validation/protocols/consensus.d.ts.map +1 -1
- package/dist/validation/protocols/contribution.d.ts +12 -17
- package/dist/validation/protocols/contribution.d.ts.map +1 -1
- package/dist/validation/protocols/decomposition.d.ts +18 -21
- package/dist/validation/protocols/decomposition.d.ts.map +1 -1
- package/dist/validation/protocols/implementation.d.ts +9 -17
- package/dist/validation/protocols/implementation.d.ts.map +1 -1
- package/dist/validation/protocols/provenance.d.ts +23 -0
- package/dist/validation/protocols/provenance.d.ts.map +1 -0
- package/dist/validation/protocols/release.d.ts +25 -0
- package/dist/validation/protocols/release.d.ts.map +1 -0
- package/dist/validation/protocols/research.d.ts +9 -17
- package/dist/validation/protocols/research.d.ts.map +1 -1
- package/dist/validation/protocols/specification.d.ts +7 -17
- package/dist/validation/protocols/specification.d.ts.map +1 -1
- package/dist/validation/protocols/testing.d.ts +22 -0
- package/dist/validation/protocols/testing.d.ts.map +1 -0
- package/dist/validation/protocols/validation.d.ts +22 -0
- package/dist/validation/protocols/validation.d.ts.map +1 -0
- package/package.json +7 -7
- package/src/__tests__/injection-mvi-tiers.test.js +54 -90
- package/src/__tests__/injection-mvi-tiers.test.js.map +1 -1
- package/src/discovery.ts +235 -0
- package/src/hooks/handlers/__tests__/hook-automation-e2e.test.js +3 -1
- package/src/hooks/handlers/__tests__/hook-automation-e2e.test.js.map +1 -1
- package/src/index.ts +16 -0
- package/src/init.ts +196 -0
- package/src/internal.ts +31 -1
- package/src/lifecycle/default-chain.ts +11 -2
- package/src/lifecycle/index.ts +10 -0
- package/src/lifecycle/stage-guidance.ts +282 -0
- package/src/metrics/__tests__/provider-detection.test.js +19 -7
- package/src/metrics/__tests__/provider-detection.test.js.map +1 -1
- package/src/orchestration/__tests__/protocol-validators.test.js +228 -8
- package/src/orchestration/__tests__/protocol-validators.test.js.map +1 -1
- package/src/orchestration/__tests__/protocol-validators.test.ts +259 -7
- package/src/orchestration/protocol-validators.ts +419 -4
- package/src/paths.ts +110 -0
- package/src/scaffold.ts +240 -4
- package/src/skills/dispatch.ts +6 -6
- package/src/skills/skill-paths.ts +27 -23
- package/src/validation/protocols/_shared.ts +88 -0
- package/src/validation/protocols/architecture-decision.ts +52 -0
- package/src/validation/protocols/artifact-publish.ts +49 -0
- package/src/validation/protocols/consensus.ts +44 -74
- package/src/validation/protocols/contribution.ts +28 -65
- package/src/validation/protocols/decomposition.ts +37 -64
- package/src/validation/protocols/implementation.ts +25 -65
- package/src/validation/protocols/protocols-markdown/architecture-decision.md +303 -0
- package/src/validation/protocols/protocols-markdown/artifact-publish.md +600 -0
- package/src/validation/protocols/protocols-markdown/consensus.md +322 -0
- package/src/validation/protocols/protocols-markdown/contribution.md +388 -0
- package/src/validation/protocols/protocols-markdown/decomposition.md +421 -0
- package/src/validation/protocols/protocols-markdown/implementation.md +357 -0
- package/src/validation/protocols/protocols-markdown/provenance.md +613 -0
- package/src/validation/protocols/protocols-markdown/release.md +783 -0
- package/src/validation/protocols/protocols-markdown/research.md +261 -0
- package/src/validation/protocols/protocols-markdown/specification.md +300 -0
- package/src/validation/protocols/protocols-markdown/testing.md +287 -0
- package/src/validation/protocols/protocols-markdown/validation.md +242 -0
- package/src/validation/protocols/provenance.ts +50 -0
- package/src/validation/protocols/release.ts +44 -0
- package/src/validation/protocols/research.ts +25 -87
- package/src/validation/protocols/specification.ts +27 -89
- package/src/validation/protocols/testing.ts +46 -0
- package/src/validation/protocols/validation.ts +46 -0
- package/dist/validation/protocols/release-protocol.d.ts +0 -27
- package/dist/validation/protocols/release-protocol.d.ts.map +0 -1
- package/dist/validation/protocols/testing-protocol.d.ts +0 -27
- package/dist/validation/protocols/testing-protocol.d.ts.map +0 -1
- package/dist/validation/protocols/validation-protocol.d.ts +0 -27
- package/dist/validation/protocols/validation-protocol.d.ts.map +0 -1
- package/schemas/agent-configs.schema.json +0 -120
- package/schemas/agent-registry.schema.json +0 -132
- package/schemas/archive.schema.json +0 -450
- package/schemas/brain-decision.schema.json +0 -69
- package/schemas/brain-learning.schema.json +0 -57
- package/schemas/brain-pattern.schema.json +0 -72
- package/schemas/critical-path.schema.json +0 -246
- package/schemas/deps-cache.schema.json +0 -97
- package/schemas/doctor-output.schema.json +0 -283
- package/schemas/error.schema.json +0 -161
- package/schemas/global-config.schema.json +0 -219
- package/schemas/grade.schema.json +0 -49
- package/schemas/log.schema.json +0 -250
- package/schemas/metrics.schema.json +0 -328
- package/schemas/migrations.schema.json +0 -150
- package/schemas/nexus-registry.schema.json +0 -90
- package/schemas/operation-constitution.schema.json +0 -438
- package/schemas/output.schema.json +0 -164
- package/schemas/projects-registry.schema.json +0 -107
- package/schemas/protocol-frontmatter.schema.json +0 -72
- package/schemas/rcasd-consensus-report.schema.json +0 -10
- package/schemas/rcasd-evidence.schema.json +0 -42
- package/schemas/rcasd-gate-result.schema.json +0 -46
- package/schemas/rcasd-hitl-resolution.schema.json +0 -10
- package/schemas/rcasd-index.schema.json +0 -10
- package/schemas/rcasd-manifest.schema.json +0 -10
- package/schemas/rcasd-research-output.schema.json +0 -10
- package/schemas/rcasd-spec-frontmatter.schema.json +0 -10
- package/schemas/rcasd-stage-transition.schema.json +0 -38
- package/schemas/releases.schema.json +0 -267
- package/schemas/skills-manifest.schema.json +0 -91
- package/schemas/spec-index.schema.json +0 -196
- package/schemas/system-flow-atlas.schema.json +0 -125
- package/src/conduit/__tests__/dual-api-e2e.test.d.ts.map +0 -1
- package/src/conduit/__tests__/dual-api-e2e.test.js +0 -178
- package/src/conduit/__tests__/dual-api-e2e.test.js.map +0 -1
- package/src/conduit/__tests__/dual-api-e2e.test.ts +0 -212
- package/src/validation/protocols/release-protocol.ts +0 -80
- package/src/validation/protocols/testing-protocol.ts +0 -93
- package/src/validation/protocols/validation-protocol.ts +0 -93
package/dist/paths.d.ts
CHANGED
|
@@ -277,6 +277,97 @@ export declare function getBackupDir(cwd?: string): string;
|
|
|
277
277
|
* ```
|
|
278
278
|
*/
|
|
279
279
|
export declare function getGlobalConfigPath(): string;
|
|
280
|
+
/**
|
|
281
|
+
* Get the Global Justfile Hub directory.
|
|
282
|
+
*
|
|
283
|
+
* The hub stores cross-project recipe libraries agents can run in ANY project
|
|
284
|
+
* (cleo-bootstrap, rcasd-init, schema-validate, lint-standard). Both humans
|
|
285
|
+
* (via editor) and the meta Cleo Chef Agent write recipes here.
|
|
286
|
+
*
|
|
287
|
+
* @returns Absolute path to the global-recipes directory under CLEO home
|
|
288
|
+
*
|
|
289
|
+
* @remarks
|
|
290
|
+
* Returns `{cleoHome}/global-recipes`. Created by `ensureGlobalHome()`.
|
|
291
|
+
*
|
|
292
|
+
* @example
|
|
293
|
+
* ```typescript
|
|
294
|
+
* const dir = getCleoGlobalRecipesDir();
|
|
295
|
+
* // Linux: "/home/user/.local/share/cleo/global-recipes"
|
|
296
|
+
* ```
|
|
297
|
+
*/
|
|
298
|
+
export declare function getCleoGlobalRecipesDir(): string;
|
|
299
|
+
/**
|
|
300
|
+
* Get the absolute path to the primary global justfile.
|
|
301
|
+
*
|
|
302
|
+
* @returns Absolute path to `{cleoHome}/global-recipes/justfile`
|
|
303
|
+
*
|
|
304
|
+
* @remarks
|
|
305
|
+
* This is the single-file entry point for the Justfile Hub. Additional
|
|
306
|
+
* domain-specific justfiles live alongside it in the same directory.
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* ```typescript
|
|
310
|
+
* const path = getCleoGlobalJustfilePath();
|
|
311
|
+
* ```
|
|
312
|
+
*/
|
|
313
|
+
export declare function getCleoGlobalJustfilePath(): string;
|
|
314
|
+
/**
|
|
315
|
+
* Get the Global Pi Extensions Hub directory.
|
|
316
|
+
*
|
|
317
|
+
* Houses the Pi extensions that drive the CleoOS UI and tools:
|
|
318
|
+
* orchestrator.ts (Conductor Loop), project-manager.ts (TUI dashboard),
|
|
319
|
+
* tilldone.ts (work visualization), cant-bridge.ts (CANT runtime),
|
|
320
|
+
* stage-guide.ts (before_agent_start hook).
|
|
321
|
+
*
|
|
322
|
+
* @returns Absolute path to the pi-extensions directory under CLEO home
|
|
323
|
+
*
|
|
324
|
+
* @remarks
|
|
325
|
+
* Returns `{cleoHome}/pi-extensions`. Pi is configured to load extensions
|
|
326
|
+
* from this directory via settings.json or the PI extension path setting.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```typescript
|
|
330
|
+
* const dir = getCleoPiExtensionsDir();
|
|
331
|
+
* // Linux: "/home/user/.local/share/cleo/pi-extensions"
|
|
332
|
+
* ```
|
|
333
|
+
*/
|
|
334
|
+
export declare function getCleoPiExtensionsDir(): string;
|
|
335
|
+
/**
|
|
336
|
+
* Get the Global CANT Workflows Hub directory.
|
|
337
|
+
*
|
|
338
|
+
* Stores compiled and parsed `.cant` workflows that agents can invoke
|
|
339
|
+
* globally across projects. Project-local agents still live in `.cleo/agents/`.
|
|
340
|
+
*
|
|
341
|
+
* @returns Absolute path to the cant-workflows directory under CLEO home
|
|
342
|
+
*
|
|
343
|
+
* @remarks
|
|
344
|
+
* Returns `{cleoHome}/cant-workflows`. Used by the CANT runtime bridge
|
|
345
|
+
* to resolve globally-available workflow definitions.
|
|
346
|
+
*
|
|
347
|
+
* @example
|
|
348
|
+
* ```typescript
|
|
349
|
+
* const dir = getCleoCantWorkflowsDir();
|
|
350
|
+
* ```
|
|
351
|
+
*/
|
|
352
|
+
export declare function getCleoCantWorkflowsDir(): string;
|
|
353
|
+
/**
|
|
354
|
+
* Get the Global CLEO Agents directory.
|
|
355
|
+
*
|
|
356
|
+
* Holds globally-available CANT agent definitions (`.cant` files).
|
|
357
|
+
* Project-local agents still live in `{projectRoot}/.cleo/agents/`.
|
|
358
|
+
*
|
|
359
|
+
* @returns Absolute path to the agents directory under CLEO home
|
|
360
|
+
*
|
|
361
|
+
* @remarks
|
|
362
|
+
* Returns `{cleoHome}/agents`. Loaded when `cleo agent start <id>` resolves
|
|
363
|
+
* agent IDs that aren't found in the project-local registry.
|
|
364
|
+
*
|
|
365
|
+
* @example
|
|
366
|
+
* ```typescript
|
|
367
|
+
* const dir = getCleoGlobalAgentsDir();
|
|
368
|
+
* ```
|
|
369
|
+
*/
|
|
370
|
+
export declare function getCleoGlobalAgentsDir(): string;
|
|
280
371
|
/**
|
|
281
372
|
* Get the agent outputs directory (relative path) from config or default.
|
|
282
373
|
*
|
package/dist/paths.d.ts.map
CHANGED
|
@@ -1 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AAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAQpD;AAMD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,CASlD;AAMD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAG3C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C"}
|
package/dist/scaffold.d.ts
CHANGED
|
@@ -509,7 +509,7 @@ export declare function checkMemoryBridge(projectRoot: string): CheckResult;
|
|
|
509
509
|
* Schemas are read at runtime from getPackageRoot()/schemas/ — no copy needed.
|
|
510
510
|
* Project-level dirs (adrs/, rcasd/, agent-outputs/, backups/) live in .cleo/ only.
|
|
511
511
|
*/
|
|
512
|
-
export declare const REQUIRED_GLOBAL_SUBDIRS: readonly ["logs", "templates"];
|
|
512
|
+
export declare const REQUIRED_GLOBAL_SUBDIRS: readonly ["logs", "templates", "global-recipes", "pi-extensions", "cant-workflows", "agents"];
|
|
513
513
|
/**
|
|
514
514
|
* Stale entries that must NOT exist at the global ~/.cleo/ level.
|
|
515
515
|
* These were project-level artefacts accidentally placed in the global home
|
|
@@ -597,7 +597,37 @@ export declare function ensureGlobalTemplates(): Promise<ScaffoldResult>;
|
|
|
597
597
|
export declare function ensureGlobalScaffold(): Promise<{
|
|
598
598
|
home: ScaffoldResult;
|
|
599
599
|
templates: ScaffoldResult;
|
|
600
|
+
cleoosHub: ScaffoldResult;
|
|
600
601
|
}>;
|
|
602
|
+
/**
|
|
603
|
+
* Ensure the CleoOS Hub subdirectories exist under the global CLEO home,
|
|
604
|
+
* and seed all bundled hub templates if they are not already present.
|
|
605
|
+
*
|
|
606
|
+
* This is the Phase 1 scaffolding entry point. Idempotent: re-running is
|
|
607
|
+
* safe and will never overwrite a file that already exists — human and
|
|
608
|
+
* agent edits to the installed copies are always preserved.
|
|
609
|
+
*
|
|
610
|
+
* @returns Scaffold result for the CleoOS hub root
|
|
611
|
+
*
|
|
612
|
+
* @remarks
|
|
613
|
+
* The CleoOS hub currently consists of:
|
|
614
|
+
* - `global-recipes/` (Justfile Hub: justfile + README)
|
|
615
|
+
* - `pi-extensions/` (Pi extensions: orchestrator, stage-guide, cant-bridge)
|
|
616
|
+
* - `cant-workflows/` (CANT workflow library — created empty for agents)
|
|
617
|
+
* - `agents/` (Global CANT agent definitions — created empty)
|
|
618
|
+
*
|
|
619
|
+
* Templates are sourced from the `@cleocode/cleo` package's bundled
|
|
620
|
+
* `templates/cleoos-hub/` tree. The directory is resolved at runtime through
|
|
621
|
+
* {@link resolveCleoOsHubTemplateRoot} so the same code path works in the
|
|
622
|
+
* monorepo workspace and in an installed npm package layout.
|
|
623
|
+
*
|
|
624
|
+
* @example
|
|
625
|
+
* ```typescript
|
|
626
|
+
* const result = await ensureCleoOsHub();
|
|
627
|
+
* console.log(result.action); // "created" or "skipped"
|
|
628
|
+
* ```
|
|
629
|
+
*/
|
|
630
|
+
export declare function ensureCleoOsHub(): Promise<ScaffoldResult>;
|
|
601
631
|
/**
|
|
602
632
|
* Check that the global ~/.cleo/ home and its required subdirectories exist.
|
|
603
633
|
* Read-only: no side effects.
|
package/dist/scaffold.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../src/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"scaffold.d.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AuBlE;AAID;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,+FAQ1B,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,yMAevB,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,cAAc,CAAC,CAwDhE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,cAAc,CAAC,CAmCrE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC;IACpD,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,EAAE,cAAc,CAAC;IAC1B,SAAS,EAAE,cAAc,CAAC;CAC3B,CAAC,CAMD;AA2ID;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,cAAc,CAAC,CAiD/D;AAID;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,IAAI,WAAW,CAmC7C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,CA4ClD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,CAsB5D"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Implements multi-strategy dispatch:
|
|
6
6
|
* 1. Label-based: task labels match skill tags
|
|
7
|
-
* 2. Catalog-based:
|
|
7
|
+
* 2. Catalog-based: @cleocode/skills dispatch matrix (via CAAMP catalog bridge)
|
|
8
8
|
* 3. Type-based: task type maps to protocol
|
|
9
9
|
* 4. Keyword-based: title/description matches triggers
|
|
10
10
|
* 5. Fallback: ct-task-executor
|
|
@@ -47,21 +47,24 @@ export declare function resolveSkillPath(skillName: string, projectRoot?: string
|
|
|
47
47
|
/**
|
|
48
48
|
* Resolve a protocol .md file.
|
|
49
49
|
*
|
|
50
|
-
* Search order
|
|
51
|
-
* 1.
|
|
52
|
-
*
|
|
50
|
+
* Search order:
|
|
51
|
+
* 1. `<core-package>/src/validation/protocols/protocols-markdown/{name}.md`
|
|
52
|
+
* (canonical location, where the markdown lives in this monorepo)
|
|
53
|
+
* 2. `<base>/protocols/{name}.md` for each registered skill base path
|
|
54
|
+
* (project-local protocol overrides)
|
|
53
55
|
*
|
|
54
56
|
* @task T4552
|
|
57
|
+
* @task T260 — drop dead Strategy B paths, point at the real protocols-markdown dir
|
|
55
58
|
*/
|
|
56
59
|
export declare function resolveProtocolPath(protocolName: string, projectRoot?: string): string | null;
|
|
57
60
|
/**
|
|
58
61
|
* Resolve a shared resource .md file.
|
|
59
62
|
*
|
|
60
|
-
* Search order per base path:
|
|
61
|
-
*
|
|
62
|
-
* 2. {base}/_shared/{resource_name}.md (legacy embedded layout)
|
|
63
|
+
* Search order per base path: `{base}/_shared/{resource_name}.md`. The
|
|
64
|
+
* `_shared/` directory is the canonical location in `@cleocode/skills`.
|
|
63
65
|
*
|
|
64
66
|
* @task T4552
|
|
67
|
+
* @task T260 — drop dead Strategy B path
|
|
65
68
|
*/
|
|
66
69
|
export declare function resolveSharedPath(resourceName: string, projectRoot?: string): string | null;
|
|
67
70
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-paths.d.ts","sourceRoot":"","sources":["../../src/skills/skill-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,wDAAwD;AACxD,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,GAAG,aAAa,CAAC;AAEpF,yBAAyB;AACzB,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;AAE5D,yCAAyC;AACzC,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,GAAG,OA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MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CA2CjG"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared helpers for the per-protocol "load by task id" wrapper functions.
|
|
3
|
+
*
|
|
4
|
+
* The pure validators live in `orchestration/protocol-validators.ts` — this
|
|
5
|
+
* module is only about bridging the legacy taskId/manifestFile entry points
|
|
6
|
+
* (used by the CLI / dispatch layer) to those pure validators.
|
|
7
|
+
*
|
|
8
|
+
* @task T260
|
|
9
|
+
*/
|
|
10
|
+
import type { ManifestEntryInput, ProtocolType, ProtocolValidationResult } from '../../orchestration/protocol-validators.js';
|
|
11
|
+
/**
|
|
12
|
+
* Locate the manifest line for a given task ID, reading from the end of the
|
|
13
|
+
* file so the most recent entry wins.
|
|
14
|
+
*
|
|
15
|
+
* @task T260
|
|
16
|
+
*/
|
|
17
|
+
export declare function findManifestEntry(taskId: string, manifestPath: string): string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Load a manifest entry by task ID from the canonical manifest file.
|
|
20
|
+
*
|
|
21
|
+
* @task T260
|
|
22
|
+
*/
|
|
23
|
+
export declare function loadManifestEntryByTaskId(taskId: string): ManifestEntryInput;
|
|
24
|
+
/**
|
|
25
|
+
* Load a manifest entry from an arbitrary JSON file (used by the `manifest`
|
|
26
|
+
* dispatch mode where the caller already has a serialized entry).
|
|
27
|
+
*
|
|
28
|
+
* @task T260
|
|
29
|
+
*/
|
|
30
|
+
export declare function loadManifestEntryFromFile(manifestFile: string): ManifestEntryInput;
|
|
31
|
+
/**
|
|
32
|
+
* Throw a CleoError with the protocol's canonical exit code when strict
|
|
33
|
+
* validation fails.
|
|
34
|
+
*
|
|
35
|
+
* @task T260
|
|
36
|
+
*/
|
|
37
|
+
export declare function throwIfStrictFailed(result: ProtocolValidationResult, opts: {
|
|
38
|
+
strict?: boolean;
|
|
39
|
+
}, protocol: ProtocolType, taskId: string): void;
|
|
40
|
+
//# sourceMappingURL=_shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/_shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EACV,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACzB,MAAM,4CAA4C,CAAC;AAIpD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAUrF;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAO5E;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM,GAAG,kBAAkB,CAKlF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,EAC1B,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,MAAM,GACb,IAAI,CAUN"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Architecture Decision Record protocol — thin wrapper delegating to the
|
|
3
|
+
* canonical pure validator.
|
|
4
|
+
*
|
|
5
|
+
* This file fills a long-standing gap: every other CLEO pipeline stage had
|
|
6
|
+
* a TS validator, but the architecture_decision stage (added when RCSD was
|
|
7
|
+
* renamed to RCASD) never got one. The ADR markdown spec at
|
|
8
|
+
* `protocols-markdown/architecture-decision.md` defines ADR-001..008 MUST
|
|
9
|
+
* requirements — all enforced by the pure validator in
|
|
10
|
+
* `../../orchestration/protocol-validators.ts`.
|
|
11
|
+
*
|
|
12
|
+
* @task T260 — create the missing ADR protocol validator
|
|
13
|
+
*/
|
|
14
|
+
import { type ArchitectureDecisionOptions, type ProtocolValidationResult } from '../../orchestration/protocol-validators.js';
|
|
15
|
+
/** Validate architecture-decision protocol for a task. */
|
|
16
|
+
export declare function validateArchitectureDecisionTask(taskId: string, opts: {
|
|
17
|
+
strict?: boolean;
|
|
18
|
+
} & ArchitectureDecisionOptions): Promise<ProtocolValidationResult>;
|
|
19
|
+
/** Validate architecture-decision protocol from a manifest file. */
|
|
20
|
+
export declare function checkArchitectureDecisionManifest(manifestFile: string, opts: {
|
|
21
|
+
strict?: boolean;
|
|
22
|
+
} & ArchitectureDecisionOptions): Promise<ProtocolValidationResult>;
|
|
23
|
+
//# sourceMappingURL=architecture-decision.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"architecture-decision.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/architecture-decision.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,KAAK,2BAA2B,EAEhC,KAAK,wBAAwB,EAE9B,MAAM,4CAA4C,CAAC;AAOpD,0DAA0D;AAC1D,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,MAAM,EACd,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,2BAA2B,GACvD,OAAO,CAAC,wBAAwB,CAAC,CAOnC;AAED,oEAAoE;AACpE,wBAAsB,iCAAiC,CACrD,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,2BAA2B,GACvD,OAAO,CAAC,wBAAwB,CAAC,CAQnC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Artifact Publish protocol — thin wrapper delegating to the canonical pure validator.
|
|
3
|
+
*
|
|
4
|
+
* Artifact-publish is a cross-cutting protocol that composes with release:
|
|
5
|
+
* release triggers artifact-publish for the distribution phase (see release.md
|
|
6
|
+
* Pipeline Integration and release-engine.ts releaseShip()). Not every release
|
|
7
|
+
* needs artifact-publish — source-only releases can skip it.
|
|
8
|
+
*
|
|
9
|
+
* @task T260 — create the missing artifact-publish protocol wrapper
|
|
10
|
+
*/
|
|
11
|
+
import { type ProtocolValidationResult } from '../../orchestration/protocol-validators.js';
|
|
12
|
+
interface ArtifactPublishOpts {
|
|
13
|
+
strict?: boolean;
|
|
14
|
+
artifactType?: string;
|
|
15
|
+
buildPassed?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** Validate artifact-publish protocol for a task. */
|
|
18
|
+
export declare function validateArtifactPublishTask(taskId: string, opts: ArtifactPublishOpts): Promise<ProtocolValidationResult>;
|
|
19
|
+
/** Validate artifact-publish protocol from a manifest file. */
|
|
20
|
+
export declare function checkArtifactPublishManifest(manifestFile: string, opts: ArtifactPublishOpts): Promise<ProtocolValidationResult>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=artifact-publish.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-publish.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/artifact-publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,4CAA4C,CAAC;AAOpD,UAAU,mBAAmB;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qDAAqD;AACrD,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,wBAAwB,CAAC,CAKnC;AAED,+DAA+D;AAC/D,wBAAsB,4BAA4B,CAChD,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,wBAAwB,CAAC,CAMnC"}
|
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Consensus protocol
|
|
2
|
+
* Consensus protocol — thin wrapper delegating to the canonical pure validator.
|
|
3
|
+
*
|
|
4
|
+
* The actual rules live in `../../orchestration/protocol-validators.ts`. This
|
|
5
|
+
* file exists so the CLI / dispatch layer can validate a task by ID (loading
|
|
6
|
+
* the manifest entry) without duplicating logic.
|
|
7
|
+
*
|
|
3
8
|
* @task T4537
|
|
4
|
-
* @
|
|
9
|
+
* @task T260
|
|
5
10
|
*/
|
|
6
|
-
|
|
7
|
-
valid: boolean;
|
|
8
|
-
violations: Array<{
|
|
9
|
-
code: string;
|
|
10
|
-
severity: string;
|
|
11
|
-
message: string;
|
|
12
|
-
}>;
|
|
13
|
-
score: number;
|
|
14
|
-
protocol: string;
|
|
15
|
-
taskId: string;
|
|
16
|
-
}
|
|
11
|
+
import { type ProtocolValidationResult } from '../../orchestration/protocol-validators.js';
|
|
17
12
|
/** Validate consensus protocol for a task. */
|
|
18
13
|
export declare function validateConsensusTask(taskId: string, opts: {
|
|
19
14
|
strict?: boolean;
|
|
20
15
|
votingMatrixFile?: string;
|
|
21
|
-
}): Promise<
|
|
22
|
-
/** Validate consensus protocol from manifest file. */
|
|
16
|
+
}): Promise<ProtocolValidationResult>;
|
|
17
|
+
/** Validate consensus protocol from a manifest file. */
|
|
23
18
|
export declare function checkConsensusManifest(manifestFile: string, opts: {
|
|
24
19
|
strict?: boolean;
|
|
25
20
|
votingMatrixFile?: string;
|
|
26
|
-
}): Promise<
|
|
27
|
-
export {};
|
|
21
|
+
}): Promise<ProtocolValidationResult>;
|
|
28
22
|
//# sourceMappingURL=consensus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consensus.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/consensus.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"consensus.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/consensus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACL,KAAK,wBAAwB,EAG9B,MAAM,4CAA4C,CAAC;AAsBpD,8CAA8C;AAC9C,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,GACpD,OAAO,CAAC,wBAAwB,CAAC,CAMnC;AAED,wDAAwD;AACxD,wBAAsB,sBAAsB,CAC1C,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,GACpD,OAAO,CAAC,wBAAwB,CAAC,CAOnC"}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Contribution protocol
|
|
2
|
+
* Contribution protocol — thin wrapper delegating to the canonical pure validator.
|
|
3
|
+
*
|
|
4
|
+
* Contribution is a cross-cutting protocol that tracks multi-agent attribution
|
|
5
|
+
* at the implementation stage (see default-chain.ts DEFAULT_PROTOCOL_STAGE_MAP).
|
|
6
|
+
*
|
|
3
7
|
* @task T4537
|
|
4
|
-
* @
|
|
8
|
+
* @task T260
|
|
5
9
|
*/
|
|
6
|
-
|
|
7
|
-
valid: boolean;
|
|
8
|
-
violations: Array<{
|
|
9
|
-
code: string;
|
|
10
|
-
severity: string;
|
|
11
|
-
message: string;
|
|
12
|
-
}>;
|
|
13
|
-
score: number;
|
|
14
|
-
protocol: string;
|
|
15
|
-
taskId: string;
|
|
16
|
-
}
|
|
10
|
+
import { type ProtocolValidationResult } from '../../orchestration/protocol-validators.js';
|
|
17
11
|
/** Validate contribution protocol for a task. */
|
|
18
12
|
export declare function validateContributionTask(taskId: string, opts: {
|
|
19
13
|
strict?: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
hasContributionTags?: boolean;
|
|
15
|
+
}): Promise<ProtocolValidationResult>;
|
|
16
|
+
/** Validate contribution protocol from a manifest file. */
|
|
22
17
|
export declare function checkContributionManifest(manifestFile: string, opts: {
|
|
23
18
|
strict?: boolean;
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
hasContributionTags?: boolean;
|
|
20
|
+
}): Promise<ProtocolValidationResult>;
|
|
26
21
|
//# sourceMappingURL=contribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contribution.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/contribution.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"contribution.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/contribution.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,4CAA4C,CAAC;AAOpD,iDAAiD;AACjD,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,EACd,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAAE,GACxD,OAAO,CAAC,wBAAwB,CAAC,CAKnC;AAED,2DAA2D;AAC3D,wBAAsB,yBAAyB,CAC7C,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAAE,GACxD,OAAO,CAAC,wBAAwB,CAAC,CAMnC"}
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Decomposition protocol
|
|
2
|
+
* Decomposition protocol — thin wrapper delegating to the canonical pure validator.
|
|
3
|
+
*
|
|
4
|
+
* The canonical validator enforces DCOMP-001 (max siblings), DCOMP-002 (clarity),
|
|
5
|
+
* DCOMP-007 (`agent_type: decomposition`). The old validator here checked for
|
|
6
|
+
* `agent_type: specification` which was a copy-paste bug from specification.ts.
|
|
7
|
+
*
|
|
3
8
|
* @task T4537
|
|
4
|
-
* @
|
|
9
|
+
* @task T260 — delegate to orchestration/protocol-validators, fix agent_type
|
|
5
10
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
violations: Array<{
|
|
9
|
-
code: string;
|
|
10
|
-
severity: string;
|
|
11
|
-
message: string;
|
|
12
|
-
}>;
|
|
13
|
-
score: number;
|
|
14
|
-
protocol: string;
|
|
15
|
-
taskId: string;
|
|
16
|
-
}
|
|
17
|
-
/** Validate decomposition protocol for a task. */
|
|
18
|
-
export declare function validateDecompositionTask(taskId: string, opts: {
|
|
19
|
-
strict?: boolean;
|
|
20
|
-
epicId?: string;
|
|
21
|
-
}): Promise<ValidationResult>;
|
|
22
|
-
/** Validate decomposition protocol from manifest file. */
|
|
23
|
-
export declare function checkDecompositionManifest(manifestFile: string, opts: {
|
|
11
|
+
import { type ProtocolValidationResult } from '../../orchestration/protocol-validators.js';
|
|
12
|
+
interface DecompositionOpts {
|
|
24
13
|
strict?: boolean;
|
|
25
14
|
epicId?: string;
|
|
26
|
-
|
|
15
|
+
siblingCount?: number;
|
|
16
|
+
descriptionClarity?: boolean;
|
|
17
|
+
maxSiblings?: number;
|
|
18
|
+
maxDepth?: number;
|
|
19
|
+
}
|
|
20
|
+
/** Validate decomposition protocol for a task. */
|
|
21
|
+
export declare function validateDecompositionTask(taskId: string, opts: DecompositionOpts): Promise<ProtocolValidationResult>;
|
|
22
|
+
/** Validate decomposition protocol from a manifest file. */
|
|
23
|
+
export declare function checkDecompositionManifest(manifestFile: string, opts: DecompositionOpts): Promise<ProtocolValidationResult>;
|
|
27
24
|
export {};
|
|
28
25
|
//# sourceMappingURL=decomposition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decomposition.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/decomposition.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"decomposition.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/decomposition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,4CAA4C,CAAC;AAOpD,UAAU,iBAAiB;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,kDAAkD;AAClD,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,wBAAwB,CAAC,CAKnC;AAED,4DAA4D;AAC5D,wBAAsB,0BAA0B,CAC9C,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,wBAAwB,CAAC,CAMnC"}
|
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Implementation protocol
|
|
2
|
+
* Implementation protocol — thin wrapper delegating to the canonical pure validator.
|
|
3
|
+
*
|
|
3
4
|
* @task T4537
|
|
4
|
-
* @
|
|
5
|
+
* @task T260
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
-
valid: boolean;
|
|
8
|
-
violations: Array<{
|
|
9
|
-
code: string;
|
|
10
|
-
severity: string;
|
|
11
|
-
message: string;
|
|
12
|
-
}>;
|
|
13
|
-
score: number;
|
|
14
|
-
protocol: string;
|
|
15
|
-
taskId: string;
|
|
16
|
-
}
|
|
7
|
+
import { type ProtocolValidationResult } from '../../orchestration/protocol-validators.js';
|
|
17
8
|
/** Validate implementation protocol for a task. */
|
|
18
9
|
export declare function validateImplementationTask(taskId: string, opts: {
|
|
19
10
|
strict?: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
hasTaskTags?: boolean;
|
|
12
|
+
}): Promise<ProtocolValidationResult>;
|
|
13
|
+
/** Validate implementation protocol from a manifest file. */
|
|
22
14
|
export declare function checkImplementationManifest(manifestFile: string, opts: {
|
|
23
15
|
strict?: boolean;
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
hasTaskTags?: boolean;
|
|
17
|
+
}): Promise<ProtocolValidationResult>;
|
|
26
18
|
//# sourceMappingURL=implementation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/implementation.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/implementation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,4CAA4C,CAAC;AAOpD,mDAAmD;AACnD,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,MAAM,EACd,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,GAChD,OAAO,CAAC,wBAAwB,CAAC,CAKnC;AAED,6DAA6D;AAC7D,wBAAsB,2BAA2B,CAC/C,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,GAChD,OAAO,CAAC,wBAAwB,CAAC,CAMnC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provenance protocol — thin wrapper delegating to the canonical pure validator.
|
|
3
|
+
*
|
|
4
|
+
* Provenance is a cross-cutting protocol that composes with release via
|
|
5
|
+
* artifact-publish: artifact-publish delegates signing, SBOM generation, and
|
|
6
|
+
* in-toto attestation chain assembly to provenance (see provenance.md Pipeline
|
|
7
|
+
* Integration and release-engine.ts releaseShip()). The CI pipeline already
|
|
8
|
+
* uses `npm publish --provenance` for SLSA L3 keyless attestation via OIDC.
|
|
9
|
+
*
|
|
10
|
+
* @task T260 — create the missing provenance protocol wrapper
|
|
11
|
+
*/
|
|
12
|
+
import { type ProtocolValidationResult } from '../../orchestration/protocol-validators.js';
|
|
13
|
+
interface ProvenanceOpts {
|
|
14
|
+
strict?: boolean;
|
|
15
|
+
hasAttestation?: boolean;
|
|
16
|
+
hasSbom?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** Validate provenance protocol for a task. */
|
|
19
|
+
export declare function validateProvenanceTask(taskId: string, opts: ProvenanceOpts): Promise<ProtocolValidationResult>;
|
|
20
|
+
/** Validate provenance protocol from a manifest file. */
|
|
21
|
+
export declare function checkProvenanceManifest(manifestFile: string, opts: ProvenanceOpts): Promise<ProtocolValidationResult>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=provenance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/provenance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,4CAA4C,CAAC;AAOpD,UAAU,cAAc;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,+CAA+C;AAC/C,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,wBAAwB,CAAC,CAKnC;AAED,yDAAyD;AACzD,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,wBAAwB,CAAC,CAMnC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Release protocol — thin wrapper delegating to the canonical pure validator.
|
|
3
|
+
*
|
|
4
|
+
* Renamed from release-protocol.ts in T260. The release protocol orchestrates
|
|
5
|
+
* version bumping, changelog generation, tagging, and pushing. It composes
|
|
6
|
+
* with artifact-publish and provenance at the release stage (see release.md
|
|
7
|
+
* Pipeline Integration + release-engine.ts releaseShip()).
|
|
8
|
+
*
|
|
9
|
+
* @task T4804
|
|
10
|
+
* @task T260 — drop -protocol suffix, delegate to orchestration validator
|
|
11
|
+
*/
|
|
12
|
+
import { type ProtocolValidationResult } from '../../orchestration/protocol-validators.js';
|
|
13
|
+
/** Validate release protocol for a task. */
|
|
14
|
+
export declare function validateReleaseTask(taskId: string, opts: {
|
|
15
|
+
strict?: boolean;
|
|
16
|
+
version?: string;
|
|
17
|
+
hasChangelog?: boolean;
|
|
18
|
+
}): Promise<ProtocolValidationResult>;
|
|
19
|
+
/** Validate release protocol from a manifest file. */
|
|
20
|
+
export declare function checkReleaseManifest(manifestFile: string, opts: {
|
|
21
|
+
strict?: boolean;
|
|
22
|
+
version?: string;
|
|
23
|
+
hasChangelog?: boolean;
|
|
24
|
+
}): Promise<ProtocolValidationResult>;
|
|
25
|
+
//# sourceMappingURL=release.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/release.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,4CAA4C,CAAC;AAOpD,4CAA4C;AAC5C,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GACnE,OAAO,CAAC,wBAAwB,CAAC,CAKnC;AAED,sDAAsD;AACtD,wBAAsB,oBAAoB,CACxC,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GACnE,OAAO,CAAC,wBAAwB,CAAC,CAMnC"}
|
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Research protocol
|
|
2
|
+
* Research protocol — thin wrapper delegating to the canonical pure validator.
|
|
3
|
+
*
|
|
3
4
|
* @task T4804
|
|
4
|
-
* @
|
|
5
|
+
* @task T260
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
-
valid: boolean;
|
|
8
|
-
violations: Array<{
|
|
9
|
-
code: string;
|
|
10
|
-
severity: string;
|
|
11
|
-
message: string;
|
|
12
|
-
}>;
|
|
13
|
-
score: number;
|
|
14
|
-
protocol: string;
|
|
15
|
-
taskId: string;
|
|
16
|
-
}
|
|
7
|
+
import { type ProtocolValidationResult } from '../../orchestration/protocol-validators.js';
|
|
17
8
|
/** Validate research protocol for a task. */
|
|
18
9
|
export declare function validateResearchTask(taskId: string, opts: {
|
|
19
10
|
strict?: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
hasCodeChanges?: boolean;
|
|
12
|
+
}): Promise<ProtocolValidationResult>;
|
|
13
|
+
/** Validate research protocol from a manifest file. */
|
|
22
14
|
export declare function checkResearchManifest(manifestFile: string, opts: {
|
|
23
15
|
strict?: boolean;
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
hasCodeChanges?: boolean;
|
|
17
|
+
}): Promise<ProtocolValidationResult>;
|
|
26
18
|
//# sourceMappingURL=research.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/research.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../src/validation/protocols/research.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,4CAA4C,CAAC;AAOpD,6CAA6C;AAC7C,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,GACnD,OAAO,CAAC,wBAAwB,CAAC,CAKnC;AAED,uDAAuD;AACvD,wBAAsB,qBAAqB,CACzC,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,GACnD,OAAO,CAAC,wBAAwB,CAAC,CAMnC"}
|