@deftai/directive 0.79.0 → 0.79.2

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.
@@ -10,7 +10,7 @@ export interface DispatchIo {
10
10
  writeErr: (text: string) => void;
11
11
  }
12
12
  /** CLI modules in packages/cli/src (excluding parity harnesses and bin/index). */
13
- export declare const CLI_MODULE_VERBS: readonly ["agents-refresh", "cache", "check", "capacity-backfill", "capacity-show", "codebase-default-extractor", "codebase-map", "codebase-map-fresh", "codebase-projection-registry", "codebase-provider", "doctor", "install-upgrade", "install-uninstall", "migrate-preflight", "migrate-xbrief", "migrate-category-b", "framework-check-updates", "hook-dispatch", "umbrella-current-shape", "changelog-check", "change-init", "commit-lint", "policy", "pr-closing-keywords", "pr-merge-readiness", "pr-monitor", "pr-protected-issues", "pr-wait-mergeable", "pr-watch", "preflight-cache", "preflight-gh", "probe-session", "release", "release-e2e", "release-publish", "release-rollback", "scope-lifecycle", "session-start", "plan-sequence", "slice", "subagent-monitor", "toolchain-check", "triage-actions", "triage-bootstrap", "triage-bulk", "triage-classify", "triage-help", "triage-queue", "triage-reconcile", "triage-refresh", "triage-scope", "triage-scope-drift", "triage-smoketest", "triage-subscribe", "triage-summary", "triage-welcome", "ts-check-lane", "vbrief-activate", "vbrief-build", "vbrief-preflight", "vbrief-reconcile", "vbrief-validate", "vbrief-validation", "verify-branch", "verify-encoding", "verify-forward-coverage", "verify-hooks-installed", "verify-investigation", "verify-judgment-gates", "verify-no-task-runtime", "validate-links", "validate-strategy-output", "verify-biome-config", "verify-bridge-drift", "verify-capacity", "verify-content-manifest", "verify-contract-drift", "verify-cursor-tier1", "verify-go-freeze", "verify-scm-boundary", "verify-session-ritual", "verify-plan-sequence", "verify-stubs", "verify-xbrief-drift", "rule-ownership-lint", "verify-story-ready", "verify-tools", "verify-wip-cap", "verify-agents-md-budget", "verify-agents-md-advisory", "verify-eval-health-relocation", "verify-eval-triggers-relocation", "eval-health", "eval-run", "eval-report", "eval-triggers"];
13
+ export declare const CLI_MODULE_VERBS: readonly ["agents-refresh", "cache", "check", "capacity-backfill", "capacity-show", "codebase-default-extractor", "codebase-map", "codebase-map-fresh", "codebase-projection-registry", "codebase-provider", "doctor", "install-upgrade", "install-uninstall", "migrate-preflight", "migrate-xbrief", "migrate-category-b", "framework-check-updates", "hook-dispatch", "umbrella-current-shape", "changelog-check", "change-init", "commit-lint", "policy", "pr-closing-keywords", "pr-merge-readiness", "pr-monitor", "pr-protected-issues", "pr-wait-mergeable", "pr-watch", "preflight-cache", "preflight-gh", "probe-session", "release", "release-e2e", "release-publish", "release-rollback", "scope-lifecycle", "lifecycle-event", "session-start", "plan-sequence", "slice", "subagent-monitor", "toolchain-check", "triage-actions", "triage-bootstrap", "triage-bulk", "triage-classify", "triage-help", "triage-queue", "triage-reconcile", "triage-refresh", "triage-scope", "triage-scope-drift", "triage-smoketest", "triage-subscribe", "triage-summary", "triage-welcome", "ts-check-lane", "vbrief-activate", "vbrief-build", "vbrief-preflight", "vbrief-reconcile", "vbrief-validate", "vbrief-validation", "verify-branch", "verify-encoding", "verify-forward-coverage", "verify-hooks-installed", "verify-investigation", "verify-judgment-gates", "verify-no-task-runtime", "validate-links", "validate-strategy-output", "verify-biome-config", "verify-bridge-drift", "verify-capacity", "verify-content-manifest", "verify-contract-drift", "verify-cursor-tier1", "verify-go-freeze", "verify-scm-boundary", "verify-session-ritual", "verify-plan-sequence", "verify-stubs", "verify-xbrief-drift", "rule-ownership-lint", "verify-story-ready", "verify-tools", "verify-wip-cap", "verify-agents-md-budget", "verify-agents-md-advisory", "verify-eval-health-relocation", "verify-eval-triggers-relocation", "eval-health", "eval-run", "eval-report", "eval-triggers"];
14
14
  /** Core-only CLI entrypoints without a packages/cli wrapper. */
15
15
  export declare const CORE_MODULE_VERBS: readonly ["scm", "github-auth-modes", "github-body", "issue-emit", "issue-ingest", "issue-sync-from-xbrief", "reconcile-issues", "swarm-launch", "swarm-complete-cohort", "swarm-finalize-cohort", "swarm-readiness", "swarm-routing-verify", "swarm-routing-set", "swarm-verify-review-clean", "swarm-worktrees", "framework-commands", "pack-render", "packs-slice", "prd-render", "export-spec", "project-render", "roadmap-render", "spec-render", "spec-validate", "code-structure-validate", "pack-migrate-skills", "pack-migrate-rules", "pack-migrate-strategies", "pack-migrate-patterns", "pack-migrate-swarm-spec", "policy-set", "setup-ghx", "scope-undo", "scope-demote", "scope-decompose", "changelog-resolve-unreleased", "architecture-preflight-sor", "feedback-file", "value-readback"];
16
16
  /** Colon aliases for triage-actions (mirrors cli-router SUBCOMMAND_ROUTES). */
package/dist/dispatch.js CHANGED
@@ -61,6 +61,7 @@ export const CLI_MODULE_VERBS = [
61
61
  "release-publish",
62
62
  "release-rollback",
63
63
  "scope-lifecycle",
64
+ "lifecycle-event",
64
65
  "session-start",
65
66
  "plan-sequence",
66
67
  "slice",
@@ -250,6 +251,7 @@ export const VERB_ALIASES = {
250
251
  "issue:sync-from-xbrief": "issue-sync-from-xbrief",
251
252
  upgrade: "install-upgrade",
252
253
  "session:start": "session-start",
254
+ "lifecycle:event": "lifecycle-event",
253
255
  "toolchain:check": "toolchain-check",
254
256
  "ts:check-lane": "ts-check-lane",
255
257
  "spec:validate": "spec-validate",
@@ -2435,7 +2437,13 @@ const CURATED_HELP_GROUPS = [
2435
2437
  },
2436
2438
  {
2437
2439
  title: "Session & ritual",
2438
- commands: [{ name: "session:start", summary: "Record session-start ritual state" }],
2440
+ commands: [
2441
+ { name: "session:start", summary: "Record session-start ritual state" },
2442
+ {
2443
+ name: "lifecycle:event",
2444
+ summary: "Record review-cycle plan:approved approval events",
2445
+ },
2446
+ ],
2439
2447
  },
2440
2448
  {
2441
2449
  title: "Quality & gates",
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ export interface ParsedLifecycleEventArgs {
3
+ projectRoot: string;
4
+ rest: string[];
5
+ error?: string;
6
+ }
7
+ /** Parse lifecycle:event CLI args. */
8
+ export declare function parseArgs(argv: readonly string[]): ParsedLifecycleEventArgs;
9
+ /** Native lifecycle:event handler (#2631). */
10
+ export declare function run(argv: readonly string[]): number;
11
+ //# sourceMappingURL=lifecycle-event.d.ts.map
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env node
2
+ import { resolve } from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ import { runLifecycleEvent } from "@deftai/directive-core/lifecycle";
5
+ /** Parse lifecycle:event CLI args. */
6
+ export function parseArgs(argv) {
7
+ const parsed = {
8
+ projectRoot: ".",
9
+ rest: [],
10
+ };
11
+ let i = 0;
12
+ while (i < argv.length) {
13
+ const arg = argv[i];
14
+ if (arg === "--project-root") {
15
+ const value = argv[i + 1];
16
+ if (value === undefined) {
17
+ return { ...parsed, error: "argument --project-root: expected one argument" };
18
+ }
19
+ parsed.projectRoot = value;
20
+ i += 2;
21
+ continue;
22
+ }
23
+ if (arg?.startsWith("--project-root=")) {
24
+ parsed.projectRoot = arg.slice("--project-root=".length);
25
+ i += 1;
26
+ continue;
27
+ }
28
+ parsed.rest = argv.slice(i);
29
+ break;
30
+ }
31
+ return parsed;
32
+ }
33
+ /** Native lifecycle:event handler (#2631). */
34
+ export function run(argv) {
35
+ const args = parseArgs(argv);
36
+ if (args.error !== undefined) {
37
+ process.stderr.write(`lifecycle_event: ${args.error}\n`);
38
+ return 2;
39
+ }
40
+ return runLifecycleEvent(args.rest, { projectRoot: resolve(args.projectRoot) });
41
+ }
42
+ if (process.argv[1] !== undefined && fileURLToPath(import.meta.url) === process.argv[1]) {
43
+ process.exit(run(process.argv.slice(2)));
44
+ }
45
+ //# sourceMappingURL=lifecycle-event.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deftai/directive",
3
- "version": "0.79.0",
3
+ "version": "0.79.2",
4
4
  "description": "Directive CLI — npm install path for the Deft Directive framework.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -31,8 +31,8 @@
31
31
  "provenance": true
32
32
  },
33
33
  "dependencies": {
34
- "@deftai/directive-core": "^0.79.0",
35
- "@deftai/directive-content": "^0.79.0"
34
+ "@deftai/directive-core": "^0.79.2",
35
+ "@deftai/directive-content": "^0.79.2"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "tsc -b"