@agentic-coding-framework/orchestrator-core 0.2.0 → 0.3.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EACL,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,YAAY,EACZ,eAAe,EACf,aAAa,EACb,eAAe,GAChB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGxC,OAAO,EACL,QAAQ,EACR,IAAI,EAAE,2CAA2C;AACjD,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,UAAU,EACV,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@
8
8
  * dispatch.ts → State machine + prompt builder + handoff parser
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.listProjects = exports.queryProjectStatus = exports.detectFramework = exports.startCustom = exports.startStory = exports.rejectReview = exports.approveReview = exports.runPostCheck = exports.applyHandoff = exports.parseHandoff = exports.buildPrompt = exports.dispatch = exports.classify = exports.auto = exports.getStepSequence = exports.getFailTarget = exports.getDispatchMode = exports.resolvePaths = exports.getRule = exports.DISPATCH_MODES = exports.DEFAULT_TEAM_ROLES = exports.BOOTSTRAP_RULE = exports.STEP_RULES = exports.writeClaudeMd = exports.generateClaudeMd = exports.markCompleted = exports.markRunning = exports.isMaxedOut = exports.isTimedOut = exports.validate = exports.initState = exports.writeState = exports.readState = exports.createInitialState = void 0;
11
+ exports.listProjects = exports.queryProjectStatus = exports.detectFramework = exports.startCustom = exports.startStory = exports.rejectReview = exports.approveReview = exports.runPostCheck = exports.applyHandoff = exports.parseHandoff = exports.buildPrompt = exports.peek = exports.dispatch = exports.classify = exports.auto = exports.getStepSequence = exports.getFailTarget = exports.getDispatchMode = exports.resolvePaths = exports.getRule = exports.DISPATCH_MODES = exports.DEFAULT_TEAM_ROLES = exports.BOOTSTRAP_RULE = exports.STEP_RULES = exports.writeClaudeMd = exports.generateClaudeMd = exports.markCompleted = exports.markRunning = exports.isMaxedOut = exports.isTimedOut = exports.validate = exports.initState = exports.writeState = exports.readState = exports.createInitialState = void 0;
12
12
  // State
13
13
  var state_1 = require("./state");
14
14
  Object.defineProperty(exports, "createInitialState", { enumerable: true, get: function () { return state_1.createInitialState; } });
@@ -40,6 +40,7 @@ Object.defineProperty(exports, "classify", { enumerable: true, get: function ()
40
40
  // Dispatch
41
41
  var dispatch_1 = require("./dispatch");
42
42
  Object.defineProperty(exports, "dispatch", { enumerable: true, get: function () { return dispatch_1.dispatch; } });
43
+ Object.defineProperty(exports, "peek", { enumerable: true, get: function () { return dispatch_1.peek; } });
43
44
  Object.defineProperty(exports, "buildPrompt", { enumerable: true, get: function () { return dispatch_1.buildPrompt; } });
44
45
  Object.defineProperty(exports, "parseHandoff", { enumerable: true, get: function () { return dispatch_1.parseHandoff; } });
45
46
  Object.defineProperty(exports, "applyHandoff", { enumerable: true, get: function () { return dispatch_1.applyHandoff; } });
@@ -51,3 +52,4 @@ Object.defineProperty(exports, "startCustom", { enumerable: true, get: function
51
52
  Object.defineProperty(exports, "detectFramework", { enumerable: true, get: function () { return dispatch_1.detectFramework; } });
52
53
  Object.defineProperty(exports, "queryProjectStatus", { enumerable: true, get: function () { return dispatch_1.queryProjectStatus; } });
53
54
  Object.defineProperty(exports, "listProjects", { enumerable: true, get: function () { return dispatch_1.listProjects; } });
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,QAAQ;AACR,iCAYiB;AAXf,2GAAA,kBAAkB,OAAA;AAClB,kGAAA,SAAS,OAAA;AACT,mGAAA,UAAU,OAAA;AACV,kGAAA,SAAS,OAAA;AACT,iGAAA,QAAQ,OAAA;AACR,mGAAA,UAAU,OAAA;AACV,mGAAA,UAAU,OAAA;AACV,oGAAA,WAAW,OAAA;AACX,sGAAA,aAAa,OAAA;AACb,yGAAA,gBAAgB,OAAA;AAChB,sGAAA,aAAa,OAAA;AAIf,QAAQ;AACR,iCAUiB;AATf,mGAAA,UAAU,OAAA;AACV,uGAAA,cAAc,OAAA;AACd,2GAAA,kBAAkB,OAAA;AAClB,uGAAA,cAAc,OAAA;AACd,gGAAA,OAAO,OAAA;AACP,qGAAA,YAAY,OAAA;AACZ,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,wGAAA,eAAe,OAAA;AAIjB,6BAA6B;AAC7B,+BAAwC;AAA/B,4FAAA,IAAI,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAEvB,WAAW;AACX,uCAcoB;AAblB,oGAAA,QAAQ,OAAA;AACR,gGAAA,IAAI,OAAA;AACJ,uGAAA,WAAW,OAAA;AACX,wGAAA,YAAY,OAAA;AACZ,wGAAA,YAAY,OAAA;AACZ,wGAAA,YAAY,OAAA;AACZ,yGAAA,aAAa,OAAA;AACb,wGAAA,YAAY,OAAA;AACZ,sGAAA,UAAU,OAAA;AACV,uGAAA,WAAW,OAAA;AACX,2GAAA,eAAe,OAAA;AACf,8GAAA,kBAAkB,OAAA;AAClB,wGAAA,YAAY,OAAA"}
package/dist/rules.d.ts CHANGED
@@ -8,58 +8,41 @@
8
8
  *
9
9
  * Projects can override defaults via `.ai/step-rules.yaml` (future).
10
10
  */
11
- import type { Step, Reason } from "./state";
12
- /** Reason-based routing: maps failure reason → target step */
13
- export type FailRouting = {
14
- /** Fallback when reason is null or unrecognized */
15
- default: Step;
16
- } & Partial<Record<Reason, Step>>;
17
- /** Complete rule definition for a single step */
18
11
  export interface StepRule {
19
- /** Display name for dispatch prompt */
20
12
  display_name: string;
21
- /** Step to advance to on success */
22
- next_on_pass: Step;
23
- /** Reason-based routing on failure */
24
- on_fail: FailRouting;
25
- /** Maximum attempts before marking as blocked */
13
+ next_on_pass: string;
14
+ on_fail: Record<string, string>;
26
15
  max_attempts: number;
27
- /** Timeout in minutes for executor session */
28
16
  timeout_min: number;
29
- /** Whether this step requires human input (pauses pipeline) */
30
17
  requires_human: boolean;
31
- /** Files executor should read at this step.
32
- * Supports {story} placeholder for current Story ID. */
33
18
  claude_reads: string[];
34
- /** Files/patterns executor may write at this step */
35
19
  claude_writes: string[];
36
- /** Shell command to run after executor exits (null = none).
37
- * Deterministic check, zero LLM tokens. */
38
20
  post_check: string | null;
39
- /** Fixed instruction for the dispatch prompt */
40
21
  step_instruction: string;
41
22
  }
42
- /** Role definition for multi-executor team dispatch */
43
- export interface TeamRole {
44
- claude_reads: string[];
45
- claude_writes: string[];
46
- }
47
- /** Optional team_roles extension for multi-executor steps */
48
- export type TeamRoles = Record<string, TeamRole>;
49
- /** Dispatch mode based on story complexity */
50
- export type DispatchMode = "single" | "auto" | "team";
51
23
  /** Complexity-to-dispatch-mode mapping */
52
- export declare const DISPATCH_MODES: Record<string, DispatchMode>;
53
- export declare const STEP_RULES: Record<Exclude<Step, "bootstrap" | "done">, StepRule>;
24
+ export declare const DISPATCH_MODES: Record<string, string>;
25
+ export declare const STEP_RULES: Record<string, StepRule>;
54
26
  export declare const BOOTSTRAP_RULE: StepRule;
55
- export declare const DEFAULT_TEAM_ROLES: Record<string, TeamRoles>;
27
+ export declare const DEFAULT_TEAM_ROLES: Record<string, Record<string, {
28
+ claude_reads: string[];
29
+ claude_writes: string[];
30
+ }>>;
56
31
  /** Get the rule for a given step */
57
- export declare function getRule(step: Step): StepRule;
58
- /** Resolve {story} placeholders in file paths */
32
+ export declare function getRule(step: string): StepRule;
33
+ /**
34
+ * Resolve {story} placeholders in file paths.
35
+ *
36
+ * [FIX P0] Handles double-prefix prevention:
37
+ * Templates use "US-{story}" but storyId may already be "US-013".
38
+ * If template has "US-{story}" and storyId starts with "US-",
39
+ * replace "US-{story}" as a whole unit → "US-013" (not "US-US-013").
40
+ */
59
41
  export declare function resolvePaths(paths: string[], storyId: string): string[];
60
42
  /** Determine dispatch mode from complexity marker */
61
- export declare function getDispatchMode(complexity: string, parallelCount?: number): DispatchMode;
43
+ export declare function getDispatchMode(complexity: string, parallelCount?: number): string;
62
44
  /** Get the next step after a failure, using reason-based routing */
63
- export declare function getFailTarget(step: Step, reason: Reason | null): Step;
45
+ export declare function getFailTarget(step: string, reason: string | null): string;
64
46
  /** Get ordered step sequence for the micro-waterfall loop */
65
- export declare function getStepSequence(): Step[];
47
+ export declare function getStepSequence(): string[];
48
+ //# sourceMappingURL=rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,WAAW,QAAQ;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,0CAA0C;AAC1C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIjD,CAAC;AAIF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAyL/C,CAAC;AAIF,eAAO,MAAM,cAAc,EAAE,QAsB5B,CAAC;AAIF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACrC,MAAM,EACN,MAAM,CAAC,MAAM,EAAE;IAAE,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,aAAa,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAiCpE,CAAC;AAIF,oCAAoC;AACpC,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAK9C;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAQvE;AAED,qDAAqD;AACrD,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,EAClB,aAAa,SAAI,GAChB,MAAM,CAMR;AAED,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAMzE;AAED,6DAA6D;AAC7D,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAW1C"}
package/dist/rules.js CHANGED
@@ -19,7 +19,7 @@ exports.getStepSequence = getStepSequence;
19
19
  /** Complexity-to-dispatch-mode mapping */
20
20
  exports.DISPATCH_MODES = {
21
21
  S: "single",
22
- M: "auto", // check [P] count, enable team only if 2
22
+ M: "auto", // check [P] count, enable team only if >= 2
23
23
  L: "team",
24
24
  };
25
25
  // ─── Step Rules Table ────────────────────────────────────────────────────────
@@ -201,70 +201,6 @@ exports.STEP_RULES = {
201
201
  "If the task is unclear, fill reason with needs_clarification.",
202
202
  },
203
203
  };
204
- // ─── Custom Task Use Cases ──────────────────────────────────────────────────
205
- //
206
- // The "custom" step is a generic passthrough that lets OpenClaw forward ANY
207
- // instruction to Claude Code with full project context. Common use cases:
208
- //
209
- // ── Refactoring ──
210
- // "Extract authentication logic into a separate auth module"
211
- // "Rename all UserDTO references to UserResponse"
212
- // "Convert class components to functional components with hooks"
213
- // "Split monolithic service.ts into domain-specific modules"
214
- //
215
- // ── Code Review ──
216
- // "Review src/api/ for security vulnerabilities"
217
- // "Review PR #42 changes and list potential issues"
218
- // "Check all error handling paths in the payment flow"
219
- // "Audit dependencies for known CVEs"
220
- //
221
- // ── Bug Fix (hotfix, not full story) ──
222
- // "Fix the race condition in WebSocket reconnection"
223
- // "Debug why /api/users returns 500 on empty query"
224
- // "Fix memory leak in event listener cleanup"
225
- //
226
- // ── DevOps / Infrastructure ──
227
- // "Add GitHub Actions CI pipeline for lint + test + build"
228
- // "Create Dockerfile and docker-compose.yml for local dev"
229
- // "Set up pre-commit hooks for linting and formatting"
230
- // "Configure Renovate for automated dependency updates"
231
- //
232
- // ── Documentation ──
233
- // "Add JSDoc comments to all exported functions in src/api/"
234
- // "Update README with current API endpoints and examples"
235
- // "Generate OpenAPI spec from existing route handlers"
236
- // "Write architecture decision record for database choice"
237
- //
238
- // ── Testing ──
239
- // "Add unit tests for utils/validation.ts (target 90% coverage)"
240
- // "Write integration tests for the checkout flow"
241
- // "Add snapshot tests for all React components in src/ui/"
242
- // "Set up E2E tests with Playwright for critical user paths"
243
- //
244
- // ── Dependency / Migration ──
245
- // "Upgrade React from v17 to v18, fix breaking changes"
246
- // "Migrate from Express to Fastify"
247
- // "Replace moment.js with date-fns"
248
- // "Migrate database schema: add soft delete to all entities"
249
- //
250
- // ── Performance ──
251
- // "Profile and optimize the dashboard query (currently 3s)"
252
- // "Add Redis caching for /api/products endpoint"
253
- // "Implement virtual scrolling for the transaction list"
254
- // "Lazy-load all route components with React.lazy"
255
- //
256
- // ── Security ──
257
- // "Add rate limiting to all authentication endpoints"
258
- // "Implement CSRF protection for form submissions"
259
- // "Sanitize all user inputs in the search endpoint"
260
- // "Add Content-Security-Policy headers"
261
- //
262
- // ── Cleanup ──
263
- // "Remove all unused imports and dead code"
264
- // "Standardize error response format across all endpoints"
265
- // "Replace console.log with structured logger"
266
- // "Fix all TypeScript strict mode errors"
267
- //
268
204
  // ─── Bootstrap Rule (special: one-time, not in the micro-waterfall loop) ─────
269
205
  exports.BOOTSTRAP_RULE = {
270
206
  display_name: "Bootstrap",
@@ -331,9 +267,22 @@ function getRule(step) {
331
267
  throw new Error('No rule for "done" — story is complete');
332
268
  return exports.STEP_RULES[step];
333
269
  }
334
- /** Resolve {story} placeholders in file paths */
270
+ /**
271
+ * Resolve {story} placeholders in file paths.
272
+ *
273
+ * [FIX P0] Handles double-prefix prevention:
274
+ * Templates use "US-{story}" but storyId may already be "US-013".
275
+ * If template has "US-{story}" and storyId starts with "US-",
276
+ * replace "US-{story}" as a whole unit → "US-013" (not "US-US-013").
277
+ */
335
278
  function resolvePaths(paths, storyId) {
336
- return paths.map((p) => p.replace(/\{story\}/g, storyId));
279
+ return paths.map((p) => {
280
+ // [FIX P0] Prevent double-prefix: "US-{story}" + "US-013" → "US-013" not "US-US-013"
281
+ if (p.includes("US-{story}") && storyId.startsWith("US-")) {
282
+ return p.replace(/US-\{story\}/g, storyId);
283
+ }
284
+ return p.replace(/\{story\}/g, storyId);
285
+ });
337
286
  }
338
287
  /** Determine dispatch mode from complexity marker */
339
288
  function getDispatchMode(complexity, parallelCount = 0) {
@@ -364,3 +313,4 @@ function getStepSequence() {
364
313
  "update-memory",
365
314
  ];
366
315
  }
316
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAyRH,0BAKC;AAUD,oCAQC;AAGD,0CASC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,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;AAC9B,CAAC;AAED,6DAA6D;AAC7D,SAAgB,eAAe;IAC7B,OAAO;QACL,KAAK;QACL,WAAW;QACX,UAAU;QACV,QAAQ;QACR,UAAU;QACV,MAAM;QACN,QAAQ;QACR,eAAe;KAChB,CAAC;AACJ,CAAC"}
package/dist/state.d.ts CHANGED
@@ -4,58 +4,29 @@
4
4
  * Maps directly to the Agentic Coding Protocol's STATE.json field specifications.
5
5
  * All operations are synchronous file I/O — zero LLM tokens.
6
6
  */
7
- /** Micro-waterfall steps, matching Protocol's valid step values */
8
- export type Step = "bootstrap" | "bdd" | "sdd-delta" | "contract" | "review" | "scaffold" | "impl" | "verify" | "update-memory" | "custom" | "done";
9
- /** Task type determines which pipeline to follow */
10
- export type TaskType = "story" | "custom";
11
- /** STATE.json status state machine:
12
- * pending → running → pass | failing | timeout | needs_human */
13
- export type Status = "pending" | "running" | "pass" | "failing" | "needs_human" | "timeout";
14
- /** Reason codes extracted from HANDOFF.md, driving reason-based routing */
15
- export type Reason = "constitution_violation" | "needs_clarification" | "nfr_missing" | "scope_warning" | "test_timeout";
16
- /** Test result summary */
17
- export interface TestResult {
7
+ export interface TestResults {
18
8
  pass: number;
19
9
  fail: number;
20
10
  skip: number;
21
11
  }
22
- /** Complete STATE.json schema — every field from the Protocol spec */
23
12
  export interface State {
24
- /** Project identifier */
25
13
  project: string;
26
- /** Current User Story ID (e.g., "US-005") */
27
14
  story: string | null;
28
- /** Current micro-waterfall step */
29
- step: Step;
30
- /** Attempt count for current step (1-indexed) */
15
+ step: string;
31
16
  attempt: number;
32
- /** Maximum attempts allowed (from rules table) */
33
17
  max_attempts: number;
34
- /** Current status */
35
- status: Status;
36
- /** Failure reason code (null = general failure/success) */
37
- reason: Reason | null;
38
- /** ISO 8601 timestamp when executor was dispatched */
18
+ status: string;
19
+ reason: string | null;
39
20
  dispatched_at: string | null;
40
- /** ISO 8601 timestamp when executor completed */
41
21
  completed_at: string | null;
42
- /** Timeout in minutes (from rules table) */
43
22
  timeout_min: number;
44
- /** Test result summary */
45
- tests: TestResult | null;
46
- /** Names of failing tests */
23
+ tests: TestResults | null;
47
24
  failing_tests: string[];
48
- /** Whether linting passed */
49
25
  lint_pass: boolean | null;
50
- /** Files modified in this run */
51
26
  files_changed: string[];
52
- /** Story IDs that block this story */
53
27
  blocked_by: string[];
54
- /** Human instruction transcribed from communication channel */
55
28
  human_note: string | null;
56
- /** Task type: "story" for micro-waterfall, "custom" for ad-hoc tasks */
57
- task_type: TaskType;
58
- /** Whether CC is allowed to spawn agent-teams for this task */
29
+ task_type: string;
59
30
  agent_teams: boolean;
60
31
  }
61
32
  /** Create a blank STATE.json for a new project */
@@ -93,4 +64,5 @@ export declare function isMaxedOut(state: State): boolean;
93
64
  /** Mark state as running with dispatch timestamp */
94
65
  export declare function markRunning(state: State): State;
95
66
  /** Mark state as completed (pass or failing) with timestamp */
96
- export declare function markCompleted(state: State, status: "pass" | "failing" | "needs_human", reason?: Reason | null): State;
67
+ export declare function markCompleted(state: State, status: string, reason?: string | null): State;
68
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../src/state.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,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ACzD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAyB3C;AAID,+CAA+C;AAC/C,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAKhD;AAED,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAEhD;AAED,oDAAoD;AACpD,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAQ/C;AAED,+DAA+D;AAC/D,wBAAgB,aAAa,CAC3B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAM,GAAG,IAAW,GAC3B,KAAK,CAOP"}
package/dist/state.js CHANGED
@@ -227,3 +227,4 @@ function markCompleted(state, status, reason = null) {
227
227
  completed_at: new Date().toISOString(),
228
228
  };
229
229
  }
230
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../src/state.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAqCH,gDAqBC;AAKD,8BAEC;AAGD,8BASC;AAGD,gCAQC;AAGD,8BAWC;AAKD,oCAEC;AAOD,4CA0CC;AAMD,sCAWC;AAoCD,4BAyBC;AAKD,gCAKC;AAGD,gCAEC;AAGD,kCAQC;AAGD,sCAWC;AAlRD,2BAAwE;AACxE,+BAAqC;AA+BrC,gFAAgF;AAEhF,kDAAkD;AAClD,SAAgB,kBAAkB,CAAC,OAAe;IAChD,OAAO;QACL,OAAO;QACP,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,CAAC;QACV,YAAY,EAAE,CAAC;QACf,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,IAAI;QACZ,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE,CAAC;QACd,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,EAAE;QACjB,SAAS,EAAE,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orchestrator-core",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Zero-token orchestrator for the Agentic Coding Protocol — state machine, rules table, dispatch logic, CC integration",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -17,25 +17,5 @@
17
17
  "files": [
18
18
  "dist",
19
19
  "README.md"
20
- ],
21
- "keywords": [
22
- "agentic-coding",
23
- "orchestrator",
24
- "claude-code",
25
- "ai-coding",
26
- "state-machine",
27
- "micro-waterfall"
28
- ],
29
- "repository": {
30
- "type": "git",
31
- "url": "https://github.com/MaWeiChi/agentic-coding-orchestrator.git",
32
- "directory": "agentic-coding-orchestrator"
33
- },
34
- "author": "MaWeiChi",
35
- "license": "MIT",
36
- "devDependencies": {
37
- "@types/node": "^20.0.0",
38
- "typescript": "^5.4.0",
39
- "vitest": "^2.0.0"
40
- }
20
+ ]
41
21
  }