@cleocode/contracts 2.0.0
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/adapter.d.ts +36 -0
- package/dist/adapter.d.ts.map +1 -0
- package/dist/adapter.js +8 -0
- package/dist/adapter.js.map +1 -0
- package/dist/archive.d.ts +100 -0
- package/dist/archive.d.ts.map +1 -0
- package/dist/archive.js +7 -0
- package/dist/archive.js.map +1 -0
- package/dist/brain.d.ts +36 -0
- package/dist/brain.d.ts.map +1 -0
- package/dist/brain.js +10 -0
- package/dist/brain.js.map +1 -0
- package/dist/capabilities.d.ts +21 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +7 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/config.d.ts +118 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +12 -0
- package/dist/config.js.map +1 -0
- package/dist/context-monitor.d.ts +16 -0
- package/dist/context-monitor.d.ts.map +1 -0
- package/dist/context-monitor.js +7 -0
- package/dist/context-monitor.js.map +1 -0
- package/dist/data-accessor.d.ts +167 -0
- package/dist/data-accessor.d.ts.map +1 -0
- package/dist/data-accessor.js +18 -0
- package/dist/data-accessor.js.map +1 -0
- package/dist/discovery.d.ts +29 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +7 -0
- package/dist/discovery.js.map +1 -0
- package/dist/exit-codes.d.ts +109 -0
- package/dist/exit-codes.d.ts.map +1 -0
- package/dist/exit-codes.js +158 -0
- package/dist/exit-codes.js.map +1 -0
- package/dist/hooks.d.ts +17 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +8 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/install.d.ts +26 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +8 -0
- package/dist/install.js.map +1 -0
- package/dist/lafs.d.ts +132 -0
- package/dist/lafs.d.ts.map +1 -0
- package/dist/lafs.js +26 -0
- package/dist/lafs.js.map +1 -0
- package/dist/memory.d.ts +51 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/memory.js +8 -0
- package/dist/memory.js.map +1 -0
- package/dist/operations/index.d.ts +17 -0
- package/dist/operations/index.d.ts.map +1 -0
- package/dist/operations/index.js +17 -0
- package/dist/operations/index.js.map +1 -0
- package/dist/operations/issues.d.ts +75 -0
- package/dist/operations/issues.d.ts.map +1 -0
- package/dist/operations/issues.js +10 -0
- package/dist/operations/issues.js.map +1 -0
- package/dist/operations/lifecycle.d.ts +141 -0
- package/dist/operations/lifecycle.d.ts.map +1 -0
- package/dist/operations/lifecycle.js +8 -0
- package/dist/operations/lifecycle.js.map +1 -0
- package/dist/operations/orchestrate.d.ts +202 -0
- package/dist/operations/orchestrate.d.ts.map +1 -0
- package/dist/operations/orchestrate.js +8 -0
- package/dist/operations/orchestrate.js.map +1 -0
- package/dist/operations/release.d.ts +97 -0
- package/dist/operations/release.d.ts.map +1 -0
- package/dist/operations/release.js +7 -0
- package/dist/operations/release.js.map +1 -0
- package/dist/operations/research.d.ts +126 -0
- package/dist/operations/research.d.ts.map +1 -0
- package/dist/operations/research.js +11 -0
- package/dist/operations/research.js.map +1 -0
- package/dist/operations/session.d.ts +99 -0
- package/dist/operations/session.d.ts.map +1 -0
- package/dist/operations/session.js +12 -0
- package/dist/operations/session.js.map +1 -0
- package/dist/operations/skills.d.ts +182 -0
- package/dist/operations/skills.d.ts.map +1 -0
- package/dist/operations/skills.js +10 -0
- package/dist/operations/skills.js.map +1 -0
- package/dist/operations/system.d.ts +147 -0
- package/dist/operations/system.d.ts.map +1 -0
- package/dist/operations/system.js +8 -0
- package/dist/operations/system.js.map +1 -0
- package/dist/operations/tasks.d.ts +231 -0
- package/dist/operations/tasks.d.ts.map +1 -0
- package/dist/operations/tasks.js +13 -0
- package/dist/operations/tasks.js.map +1 -0
- package/dist/operations/validate.d.ts +170 -0
- package/dist/operations/validate.d.ts.map +1 -0
- package/dist/operations/validate.js +8 -0
- package/dist/operations/validate.js.map +1 -0
- package/dist/provider-paths.d.ts +16 -0
- package/dist/provider-paths.d.ts.map +1 -0
- package/dist/provider-paths.js +7 -0
- package/dist/provider-paths.js.map +1 -0
- package/dist/results.d.ts +188 -0
- package/dist/results.d.ts.map +1 -0
- package/dist/results.js +10 -0
- package/dist/results.js.map +1 -0
- package/dist/session.d.ts +106 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +77 -0
- package/dist/session.js.map +1 -0
- package/dist/spawn-types.d.ts +119 -0
- package/dist/spawn-types.d.ts.map +1 -0
- package/dist/spawn-types.js +12 -0
- package/dist/spawn-types.js.map +1 -0
- package/dist/spawn.d.ts +30 -0
- package/dist/spawn.d.ts.map +1 -0
- package/dist/spawn.js +7 -0
- package/dist/spawn.js.map +1 -0
- package/dist/status-registry.d.ts +50 -0
- package/dist/status-registry.d.ts.map +1 -0
- package/dist/status-registry.js +125 -0
- package/dist/status-registry.js.map +1 -0
- package/dist/task-record.d.ts +67 -0
- package/dist/task-record.d.ts.map +1 -0
- package/dist/task-record.js +11 -0
- package/dist/task-record.js.map +1 -0
- package/dist/task-sync.d.ts +143 -0
- package/dist/task-sync.d.ts.map +1 -0
- package/dist/task-sync.js +11 -0
- package/dist/task-sync.js.map +1 -0
- package/dist/task.d.ts +294 -0
- package/dist/task.d.ts.map +1 -0
- package/dist/task.js +24 -0
- package/dist/task.js.map +1 -0
- package/dist/tessera.d.ts +32 -0
- package/dist/tessera.d.ts.map +1 -0
- package/dist/tessera.js +11 -0
- package/dist/tessera.js.map +1 -0
- package/dist/todowrite.d.ts +53 -0
- package/dist/todowrite.d.ts.map +1 -0
- package/dist/todowrite.js +7 -0
- package/dist/todowrite.js.map +1 -0
- package/dist/transport.d.ts +12 -0
- package/dist/transport.d.ts.map +1 -0
- package/dist/transport.js +7 -0
- package/dist/transport.js.map +1 -0
- package/dist/warp-chain.d.ts +121 -0
- package/dist/warp-chain.d.ts.map +1 -0
- package/dist/warp-chain.js +13 -0
- package/dist/warp-chain.js.map +1 -0
- package/package.json +29 -0
- package/src/adapter.ts +38 -0
- package/src/archive.ts +121 -0
- package/src/brain.ts +39 -0
- package/src/capabilities.ts +21 -0
- package/src/config.ts +135 -0
- package/src/context-monitor.ts +16 -0
- package/src/data-accessor.ts +239 -0
- package/src/discovery.ts +31 -0
- package/src/exit-codes.ts +175 -0
- package/src/hooks.ts +17 -0
- package/src/index.ts +298 -0
- package/src/install.ts +28 -0
- package/src/lafs.ts +194 -0
- package/src/memory.ts +57 -0
- package/src/operations/index.ts +17 -0
- package/src/operations/issues.ts +86 -0
- package/src/operations/lifecycle.ts +176 -0
- package/src/operations/orchestrate.ts +199 -0
- package/src/operations/release.ts +114 -0
- package/src/operations/research.ts +156 -0
- package/src/operations/session.ts +119 -0
- package/src/operations/skills.ts +210 -0
- package/src/operations/system.ts +174 -0
- package/src/operations/tasks.ts +279 -0
- package/src/operations/validate.ts +199 -0
- package/src/provider-paths.ts +16 -0
- package/src/results.ts +207 -0
- package/src/session.ts +157 -0
- package/src/spawn-types.ts +140 -0
- package/src/spawn.ts +32 -0
- package/src/status-registry.ts +166 -0
- package/src/task-record.ts +71 -0
- package/src/task-sync.ts +167 -0
- package/src/task.ts +387 -0
- package/src/tessera.ts +35 -0
- package/src/todowrite.ts +58 -0
- package/src/transport.ts +12 -0
- package/src/warp-chain.ts +174 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../src/task.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,4BAA4B;AAC5B,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEl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,uBAAuB;AACvB,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,gCAAgC;AAChC,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,WAAW,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACnC"}
|
package/dist/task.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task type definitions matching todo.schema.json (v2.10.0).
|
|
3
|
+
*
|
|
4
|
+
* Consolidates types from src/types/task.ts and packages/contracts/src/task-types.ts.
|
|
5
|
+
*
|
|
6
|
+
* ## Type Safety Design
|
|
7
|
+
*
|
|
8
|
+
* - {@link Task} represents a fully-materialized task as stored in the database.
|
|
9
|
+
* Fields that CLEO's anti-hallucination rules require at runtime are marked as
|
|
10
|
+
* required (non-optional) so the type system enforces what the business rules demand.
|
|
11
|
+
*
|
|
12
|
+
* - {@link TaskCreate} represents the input for creating a new task. Only fields the
|
|
13
|
+
* caller MUST supply are required; everything else has sensible defaults applied
|
|
14
|
+
* by the `addTask` function.
|
|
15
|
+
*
|
|
16
|
+
* - {@link CompletedTask} and {@link CancelledTask} are discriminated union types
|
|
17
|
+
* that narrow `Task` for status-specific contexts where additional fields become
|
|
18
|
+
* required (e.g., `completedAt` is required when `status = 'done'`).
|
|
19
|
+
*
|
|
20
|
+
* @epic T4454
|
|
21
|
+
* @task T4456
|
|
22
|
+
*/
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=task.js.map
|
package/dist/task.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.js","sourceRoot":"","sources":["../src/task.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tessera Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tessera templates extend WarpChain with variable bindings,
|
|
5
|
+
* archetype classification, and instantiation inputs for
|
|
6
|
+
* parameterized pipeline creation.
|
|
7
|
+
*
|
|
8
|
+
* @task T5408
|
|
9
|
+
*/
|
|
10
|
+
import type { WarpChain } from './warp-chain.js';
|
|
11
|
+
/** A variable declaration within a Tessera template. */
|
|
12
|
+
export interface TesseraVariable {
|
|
13
|
+
name: string;
|
|
14
|
+
type: 'string' | 'number' | 'boolean' | 'taskId' | 'epicId';
|
|
15
|
+
description: string;
|
|
16
|
+
required: boolean;
|
|
17
|
+
default?: unknown;
|
|
18
|
+
}
|
|
19
|
+
/** A parameterized WarpChain template with variable bindings. */
|
|
20
|
+
export interface TesseraTemplate extends WarpChain {
|
|
21
|
+
variables: Record<string, TesseraVariable>;
|
|
22
|
+
archetypes: string[];
|
|
23
|
+
defaultValues: Record<string, unknown>;
|
|
24
|
+
category: 'lifecycle' | 'hotfix' | 'research' | 'security-audit' | 'custom';
|
|
25
|
+
}
|
|
26
|
+
/** Input for instantiating a Tessera template into a concrete chain. */
|
|
27
|
+
export interface TesseraInstantiationInput {
|
|
28
|
+
templateId: string;
|
|
29
|
+
epicId: string;
|
|
30
|
+
variables: Record<string, unknown>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=tessera.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tessera.d.ts","sourceRoot":"","sources":["../src/tessera.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,wDAAwD;AACxD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,iEAAiE;AACjE,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC3C,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,QAAQ,EAAE,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,gBAAgB,GAAG,QAAQ,CAAC;CAC7E;AAED,wEAAwE;AACxE,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
|
package/dist/tessera.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tessera Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tessera templates extend WarpChain with variable bindings,
|
|
5
|
+
* archetype classification, and instantiation inputs for
|
|
6
|
+
* parameterized pipeline creation.
|
|
7
|
+
*
|
|
8
|
+
* @task T5408
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=tessera.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tessera.js","sourceRoot":"","sources":["../src/tessera.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TodoWrite types for Claude TodoWrite state merge operations.
|
|
3
|
+
*
|
|
4
|
+
* @task T4551
|
|
5
|
+
*/
|
|
6
|
+
/** TodoWrite item status as exported by Claude. */
|
|
7
|
+
export type TodoWriteItemStatus = 'pending' | 'in_progress' | 'completed';
|
|
8
|
+
/** TodoWrite item as exported by Claude. */
|
|
9
|
+
export interface TodoWriteItem {
|
|
10
|
+
content: string;
|
|
11
|
+
status: TodoWriteItemStatus;
|
|
12
|
+
activeForm?: string;
|
|
13
|
+
}
|
|
14
|
+
/** TodoWrite state file format. */
|
|
15
|
+
export interface TodoWriteState {
|
|
16
|
+
todos: TodoWriteItem[];
|
|
17
|
+
}
|
|
18
|
+
/** Sync session state for TodoWrite integration. */
|
|
19
|
+
export interface TodoWriteSyncSessionState {
|
|
20
|
+
injected_tasks: string[];
|
|
21
|
+
injectedPhase?: string;
|
|
22
|
+
task_metadata?: Record<string, {
|
|
23
|
+
phase?: string;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
/** Detected changes from TodoWrite state analysis. */
|
|
27
|
+
export interface TodoWriteChangeSet {
|
|
28
|
+
completed: string[];
|
|
29
|
+
progressed: string[];
|
|
30
|
+
newTasks: string[];
|
|
31
|
+
removed: string[];
|
|
32
|
+
}
|
|
33
|
+
/** Action type for a TodoWrite merge change. */
|
|
34
|
+
export type TodoWriteChangeAction = 'complete' | 'create' | 'update';
|
|
35
|
+
/** A single change applied during TodoWrite merge. */
|
|
36
|
+
export interface TodoWriteChange {
|
|
37
|
+
taskId: string;
|
|
38
|
+
action: TodoWriteChangeAction;
|
|
39
|
+
details?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Result of a TodoWrite merge operation. */
|
|
42
|
+
export interface TodoWriteMergeResult {
|
|
43
|
+
dryRun: boolean;
|
|
44
|
+
changes: {
|
|
45
|
+
completed: number;
|
|
46
|
+
progressed: number;
|
|
47
|
+
new: number;
|
|
48
|
+
removed: number;
|
|
49
|
+
applied: number;
|
|
50
|
+
};
|
|
51
|
+
sessionCleared?: boolean;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=todowrite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todowrite.d.ts","sourceRoot":"","sources":["../src/todowrite.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,mDAAmD;AACnD,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC;AAE1E,4CAA4C;AAC5C,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAED,oDAAoD;AACpD,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpD;AAED,sDAAsD;AACtD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,gDAAgD;AAChD,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErE,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,qBAAqB,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,6CAA6C;AAC7C,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todowrite.js","sourceRoot":"","sources":["../src/todowrite.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transport provider interface for CLEO provider adapters.
|
|
3
|
+
* Allows providers to supply custom inter-agent transport mechanisms.
|
|
4
|
+
* @task T5240
|
|
5
|
+
*/
|
|
6
|
+
export interface AdapterTransportProvider {
|
|
7
|
+
/** Create a transport instance for inter-agent communication */
|
|
8
|
+
createTransport(): unknown;
|
|
9
|
+
/** Name of this transport type for logging/debugging */
|
|
10
|
+
readonly transportName: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,wBAAwB;IACvC,gEAAgE;IAChE,eAAe,IAAI,OAAO,CAAC;IAC3B,wDAAwD;IACxD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WarpChain Type System
|
|
3
|
+
*
|
|
4
|
+
* Defines the complete type system for WarpChain workflow definitions.
|
|
5
|
+
* Warp is the unyielding protocol chain: the synthesis of composable workflow
|
|
6
|
+
* shape (topology) and LOOM quality gates into a unified chain model.
|
|
7
|
+
*
|
|
8
|
+
* ProtocolType and GateName are inlined here (contracts has zero external deps).
|
|
9
|
+
*
|
|
10
|
+
* @task T5407
|
|
11
|
+
*/
|
|
12
|
+
/** All supported protocol types. */
|
|
13
|
+
export type ProtocolType = 'research' | 'consensus' | 'specification' | 'decomposition' | 'implementation' | 'contribution' | 'release' | 'artifact-publish' | 'provenance';
|
|
14
|
+
/** Verification gate names (ordered dependency chain). */
|
|
15
|
+
export type GateName = 'implemented' | 'testsPassed' | 'qaPassed' | 'cleanupDone' | 'securityPassed' | 'documented';
|
|
16
|
+
/**
|
|
17
|
+
* A single stage in the warp chain.
|
|
18
|
+
*
|
|
19
|
+
* The category union includes all canonical CLEO pipeline stages
|
|
20
|
+
* plus 'custom' for user-defined stages.
|
|
21
|
+
*/
|
|
22
|
+
export interface WarpStage {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
category: 'research' | 'consensus' | 'architecture' | 'specification' | 'decomposition' | 'implementation' | 'validation' | 'testing' | 'release' | 'contribution' | 'custom';
|
|
26
|
+
skippable: boolean;
|
|
27
|
+
description?: string;
|
|
28
|
+
}
|
|
29
|
+
/** Connection between two stages in the chain. */
|
|
30
|
+
export interface WarpLink {
|
|
31
|
+
from: string;
|
|
32
|
+
to: string;
|
|
33
|
+
type: 'linear' | 'fork' | 'branch';
|
|
34
|
+
condition?: string;
|
|
35
|
+
}
|
|
36
|
+
/** The topology/DAG of a workflow. */
|
|
37
|
+
export interface ChainShape {
|
|
38
|
+
stages: WarpStage[];
|
|
39
|
+
links: WarpLink[];
|
|
40
|
+
entryPoint: string;
|
|
41
|
+
exitPoints: string[];
|
|
42
|
+
}
|
|
43
|
+
/** Discriminated union for gate check types. */
|
|
44
|
+
export type GateCheck = {
|
|
45
|
+
type: 'stage_complete';
|
|
46
|
+
stageId: string;
|
|
47
|
+
} | {
|
|
48
|
+
type: 'artifact_exists';
|
|
49
|
+
artifactType: string;
|
|
50
|
+
path?: string;
|
|
51
|
+
} | {
|
|
52
|
+
type: 'protocol_valid';
|
|
53
|
+
protocolType: ProtocolType;
|
|
54
|
+
} | {
|
|
55
|
+
type: 'verification_gate';
|
|
56
|
+
gateName: GateName;
|
|
57
|
+
} | {
|
|
58
|
+
type: 'custom';
|
|
59
|
+
validator: string;
|
|
60
|
+
params?: Record<string, unknown>;
|
|
61
|
+
};
|
|
62
|
+
/** A quality gate embedded in the chain. */
|
|
63
|
+
export interface GateContract {
|
|
64
|
+
id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
type: 'entry' | 'exit' | 'checkpoint';
|
|
67
|
+
stageId: string;
|
|
68
|
+
position: 'before' | 'after';
|
|
69
|
+
check: GateCheck;
|
|
70
|
+
severity: 'blocking' | 'warning' | 'info';
|
|
71
|
+
canForce: boolean;
|
|
72
|
+
}
|
|
73
|
+
/** Complete chain definition combining shape and gates. */
|
|
74
|
+
export interface WarpChain {
|
|
75
|
+
id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
version: string;
|
|
78
|
+
description: string;
|
|
79
|
+
shape: ChainShape;
|
|
80
|
+
gates: GateContract[];
|
|
81
|
+
tessera?: string;
|
|
82
|
+
metadata?: Record<string, unknown>;
|
|
83
|
+
}
|
|
84
|
+
/** Result of validating a chain definition. */
|
|
85
|
+
export interface ChainValidation {
|
|
86
|
+
wellFormed: boolean;
|
|
87
|
+
gateSatisfiable: boolean;
|
|
88
|
+
artifactComplete: boolean;
|
|
89
|
+
errors: string[];
|
|
90
|
+
warnings: string[];
|
|
91
|
+
}
|
|
92
|
+
/** A chain bound to a specific epic. */
|
|
93
|
+
export interface WarpChainInstance {
|
|
94
|
+
id: string;
|
|
95
|
+
chainId: string;
|
|
96
|
+
epicId: string;
|
|
97
|
+
variables: Record<string, unknown>;
|
|
98
|
+
stageToTask: Record<string, string>;
|
|
99
|
+
status: 'pending' | 'active' | 'completed' | 'failed' | 'cancelled';
|
|
100
|
+
currentStage: string;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
createdBy: string;
|
|
103
|
+
}
|
|
104
|
+
/** Result of evaluating a single gate. */
|
|
105
|
+
export interface GateResult {
|
|
106
|
+
gateId: string;
|
|
107
|
+
passed: boolean;
|
|
108
|
+
forced: boolean;
|
|
109
|
+
message?: string;
|
|
110
|
+
evaluatedAt: string;
|
|
111
|
+
}
|
|
112
|
+
/** Runtime state of a chain instance execution. */
|
|
113
|
+
export interface WarpChainExecution {
|
|
114
|
+
instanceId: string;
|
|
115
|
+
currentStage: string;
|
|
116
|
+
gateResults: GateResult[];
|
|
117
|
+
status: 'running' | 'paused' | 'completed' | 'failed';
|
|
118
|
+
startedAt: string;
|
|
119
|
+
completedAt?: string;
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=warp-chain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warp-chain.d.ts","sourceRoot":"","sources":["../src/warp-chain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,oCAAoC;AACpC,MAAM,MAAM,YAAY,GACpB,UAAU,GACV,WAAW,GACX,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,SAAS,GACT,kBAAkB,GAClB,YAAY,CAAC;AAEjB,0DAA0D;AAC1D,MAAM,MAAM,QAAQ,GAChB,aAAa,GACb,aAAa,GACb,UAAU,GACV,aAAa,GACb,gBAAgB,GAChB,YAAY,CAAC;AAMjB;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,E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AAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,mDAAmD;AACnD,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WarpChain Type System
|
|
3
|
+
*
|
|
4
|
+
* Defines the complete type system for WarpChain workflow definitions.
|
|
5
|
+
* Warp is the unyielding protocol chain: the synthesis of composable workflow
|
|
6
|
+
* shape (topology) and LOOM quality gates into a unified chain model.
|
|
7
|
+
*
|
|
8
|
+
* ProtocolType and GateName are inlined here (contracts has zero external deps).
|
|
9
|
+
*
|
|
10
|
+
* @task T5407
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=warp-chain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warp-chain.js","sourceRoot":"","sources":["../src/warp-chain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cleocode/contracts",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Domain types, interfaces, and contracts for the CLEO ecosystem",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"typecheck": "tsc --noEmit"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=24.0.0"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"src"
|
|
28
|
+
]
|
|
29
|
+
}
|
package/src/adapter.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core CLEOProviderAdapter interface.
|
|
3
|
+
* Every provider adapter must implement this contract.
|
|
4
|
+
*
|
|
5
|
+
* @task T5240
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type { AdapterCapabilities } from './capabilities.js';
|
|
9
|
+
import type { AdapterContextMonitorProvider } from './context-monitor.js';
|
|
10
|
+
import type { AdapterHookProvider } from './hooks.js';
|
|
11
|
+
import type { AdapterInstallProvider } from './install.js';
|
|
12
|
+
import type { AdapterPathProvider } from './provider-paths.js';
|
|
13
|
+
import type { AdapterSpawnProvider } from './spawn.js';
|
|
14
|
+
import type { AdapterTaskSyncProvider } from './task-sync.js';
|
|
15
|
+
import type { AdapterTransportProvider } from './transport.js';
|
|
16
|
+
|
|
17
|
+
export interface CLEOProviderAdapter {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly version: string;
|
|
21
|
+
capabilities: AdapterCapabilities;
|
|
22
|
+
hooks?: AdapterHookProvider;
|
|
23
|
+
spawn?: AdapterSpawnProvider;
|
|
24
|
+
install: AdapterInstallProvider;
|
|
25
|
+
paths?: AdapterPathProvider;
|
|
26
|
+
contextMonitor?: AdapterContextMonitorProvider;
|
|
27
|
+
transport?: AdapterTransportProvider;
|
|
28
|
+
taskSync?: AdapterTaskSyncProvider;
|
|
29
|
+
initialize(projectDir: string): Promise<void>;
|
|
30
|
+
dispose(): Promise<void>;
|
|
31
|
+
healthCheck(): Promise<AdapterHealthStatus>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface AdapterHealthStatus {
|
|
35
|
+
healthy: boolean;
|
|
36
|
+
provider: string;
|
|
37
|
+
details?: Record<string, unknown>;
|
|
38
|
+
}
|
package/src/archive.ts
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Archive types for archived task records and metadata.
|
|
3
|
+
*
|
|
4
|
+
* @task T4555
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { Task } from './task.js';
|
|
8
|
+
|
|
9
|
+
/** Archive metadata attached to archived task records. */
|
|
10
|
+
export interface ArchiveMetadata {
|
|
11
|
+
archivedAt?: string;
|
|
12
|
+
cycleTimeDays?: number;
|
|
13
|
+
archiveSource?: string;
|
|
14
|
+
archiveReason?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** A task with archive metadata. */
|
|
18
|
+
export interface ArchivedTask extends Task {
|
|
19
|
+
_archive?: ArchiveMetadata;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Report type for archive statistics. */
|
|
23
|
+
export type ArchiveReportType =
|
|
24
|
+
| 'summary'
|
|
25
|
+
| 'by-phase'
|
|
26
|
+
| 'by-label'
|
|
27
|
+
| 'by-priority'
|
|
28
|
+
| 'cycle-times'
|
|
29
|
+
| 'trends';
|
|
30
|
+
|
|
31
|
+
/** Summary report from archive statistics. */
|
|
32
|
+
export interface ArchiveSummaryReport {
|
|
33
|
+
totalArchived: number;
|
|
34
|
+
byStatus: Record<string, number>;
|
|
35
|
+
byPriority: Record<string, number>;
|
|
36
|
+
averageCycleTime: number | null;
|
|
37
|
+
oldestArchived: string | null;
|
|
38
|
+
newestArchived: string | null;
|
|
39
|
+
archiveSourceBreakdown: Record<string, number>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** Phase breakdown entry from archive statistics. */
|
|
43
|
+
export interface ArchivePhaseEntry {
|
|
44
|
+
phase: string;
|
|
45
|
+
count: number;
|
|
46
|
+
avgCycleTime: number | null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Label breakdown entry from archive statistics. */
|
|
50
|
+
export interface ArchiveLabelEntry {
|
|
51
|
+
label: string;
|
|
52
|
+
count: number;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** Priority breakdown entry from archive statistics. */
|
|
56
|
+
export interface ArchivePriorityEntry {
|
|
57
|
+
priority: string;
|
|
58
|
+
count: number;
|
|
59
|
+
avgCycleTime: number | null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Cycle time distribution buckets. */
|
|
63
|
+
export interface CycleTimeDistribution {
|
|
64
|
+
'0-1 days': number;
|
|
65
|
+
'2-7 days': number;
|
|
66
|
+
'8-30 days': number;
|
|
67
|
+
'30+ days': number;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** Cycle time percentiles. */
|
|
71
|
+
export interface CycleTimePercentiles {
|
|
72
|
+
p25: number | null;
|
|
73
|
+
p50: number | null;
|
|
74
|
+
p75: number | null;
|
|
75
|
+
p90: number | null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** Cycle times report from archive statistics. */
|
|
79
|
+
export interface ArchiveCycleTimesReport {
|
|
80
|
+
count: number;
|
|
81
|
+
min: number | null;
|
|
82
|
+
max: number | null;
|
|
83
|
+
avg: number | null;
|
|
84
|
+
median: number | null;
|
|
85
|
+
distribution: CycleTimeDistribution;
|
|
86
|
+
percentiles?: CycleTimePercentiles;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Daily archive trend entry. */
|
|
90
|
+
export interface ArchiveDailyTrend {
|
|
91
|
+
date: string;
|
|
92
|
+
count: number;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** Monthly archive trend entry. */
|
|
96
|
+
export interface ArchiveMonthlyTrend {
|
|
97
|
+
month: string;
|
|
98
|
+
count: number;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** Trends report from archive statistics. */
|
|
102
|
+
export interface ArchiveTrendsReport {
|
|
103
|
+
byDay: ArchiveDailyTrend[];
|
|
104
|
+
byMonth: ArchiveMonthlyTrend[];
|
|
105
|
+
totalPeriod: number;
|
|
106
|
+
averagePerDay: number;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** Archive statistics result envelope. */
|
|
110
|
+
export interface ArchiveStatsEnvelope {
|
|
111
|
+
report: ArchiveReportType;
|
|
112
|
+
filters: { since: string | null; until: string | null } | null;
|
|
113
|
+
data:
|
|
114
|
+
| ArchiveSummaryReport
|
|
115
|
+
| ArchivePhaseEntry[]
|
|
116
|
+
| ArchiveLabelEntry[]
|
|
117
|
+
| ArchivePriorityEntry[]
|
|
118
|
+
| ArchiveCycleTimesReport
|
|
119
|
+
| ArchiveTrendsReport
|
|
120
|
+
| { totalArchived: 0; message: string };
|
|
121
|
+
}
|
package/src/brain.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brain/Memory domain types for brain.db cognitive memory system.
|
|
3
|
+
*
|
|
4
|
+
* Extracted from inline type definitions in engine-compat.ts to eliminate
|
|
5
|
+
* repeated `{ id: string; type: string; content: string; createdAt: string }` patterns.
|
|
6
|
+
*
|
|
7
|
+
* @task T5800
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** Compact brain entry reference used in contradiction analysis. */
|
|
11
|
+
export interface BrainEntryRef {
|
|
12
|
+
id: string;
|
|
13
|
+
type: string;
|
|
14
|
+
content: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Brain entry reference with summary, used in superseded analysis. */
|
|
19
|
+
export interface BrainEntrySummary {
|
|
20
|
+
id: string;
|
|
21
|
+
type: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
summary: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Contradiction detail between two brain entries. */
|
|
27
|
+
export interface ContradictionDetail {
|
|
28
|
+
entryA: BrainEntryRef;
|
|
29
|
+
entryB: BrainEntryRef;
|
|
30
|
+
context?: string;
|
|
31
|
+
conflictDetails: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** Superseded entry pair showing old and replacement entries. */
|
|
35
|
+
export interface SupersededEntry {
|
|
36
|
+
oldEntry: BrainEntrySummary;
|
|
37
|
+
replacement: BrainEntrySummary;
|
|
38
|
+
grouping: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapter capability declarations for CLEO provider adapters.
|
|
3
|
+
*
|
|
4
|
+
* @task T5240
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export interface AdapterCapabilities {
|
|
8
|
+
supportsHooks: boolean;
|
|
9
|
+
supportedHookEvents: string[];
|
|
10
|
+
supportsSpawn: boolean;
|
|
11
|
+
supportsInstall: boolean;
|
|
12
|
+
supportsMcp: boolean;
|
|
13
|
+
supportsInstructionFiles: boolean;
|
|
14
|
+
/** Provider-specific instruction file name, e.g. "CLAUDE.md", ".cursorrules" */
|
|
15
|
+
instructionFilePattern?: string;
|
|
16
|
+
supportsContextMonitor: boolean;
|
|
17
|
+
supportsStatusline: boolean;
|
|
18
|
+
supportsProviderPaths: boolean;
|
|
19
|
+
supportsTransport: boolean;
|
|
20
|
+
supportsTaskSync: boolean;
|
|
21
|
+
}
|