@deftai/directive 0.63.0 → 0.64.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.
@@ -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", "framework-check-updates", "umbrella-current-shape", "changelog-check", "change-init", "commit-lint", "policy", "pr-closing-keywords", "pr-merge-readiness", "pr-monitor", "pr-protected-issues", "pr-wait-mergeable", "preflight-cache", "preflight-gh", "probe-session", "release", "release-e2e", "release-publish", "release-rollback", "scope-lifecycle", "session-start", "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-hooks-installed", "verify-investigation", "verify-judgment-gates", "verify-no-task-runtime", "validate-links", "validate-strategy-output", "verify-bridge-drift", "verify-capacity", "verify-content-manifest", "verify-go-freeze", "verify-scm-boundary", "verify-session-ritual", "verify-stubs", "rule-ownership-lint", "verify-story-ready", "verify-tools", "verify-wip-cap"];
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", "framework-check-updates", "umbrella-current-shape", "changelog-check", "change-init", "commit-lint", "policy", "pr-closing-keywords", "pr-merge-readiness", "pr-monitor", "pr-protected-issues", "pr-wait-mergeable", "preflight-cache", "preflight-gh", "probe-session", "release", "release-e2e", "release-publish", "release-rollback", "scope-lifecycle", "session-start", "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-hooks-installed", "verify-investigation", "verify-judgment-gates", "verify-no-task-runtime", "validate-links", "validate-strategy-output", "verify-bridge-drift", "verify-capacity", "verify-content-manifest", "verify-cursor-tier1", "verify-go-freeze", "verify-scm-boundary", "verify-session-ritual", "verify-stubs", "rule-ownership-lint", "verify-story-ready", "verify-tools", "verify-wip-cap"];
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", "reconcile-issues", "swarm-launch", "swarm-complete-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"];
16
16
  /** Task-style aliases (framework_commands / Taskfile names). */
package/dist/dispatch.js CHANGED
@@ -92,6 +92,7 @@ export const CLI_MODULE_VERBS = [
92
92
  "verify-bridge-drift",
93
93
  "verify-capacity",
94
94
  "verify-content-manifest",
95
+ "verify-cursor-tier1",
95
96
  "verify-go-freeze",
96
97
  "verify-scm-boundary",
97
98
  "verify-session-ritual",
@@ -160,6 +161,7 @@ export const VERB_ALIASES = {
160
161
  "verify:rule-ownership": "rule-ownership-lint",
161
162
  "rule:ownership-lint": "rule-ownership-lint",
162
163
  "verify:content-manifest": "verify-content-manifest",
164
+ "verify:cursor-tier1": "verify-cursor-tier1",
163
165
  "verify:go-freeze": "verify-go-freeze",
164
166
  "verify:bridge-drift": "verify-bridge-drift",
165
167
  "verify:scm-boundary": "verify-scm-boundary",
@@ -198,6 +200,7 @@ const SUBDIR_CLI_STEMS = {
198
200
  "verify-stubs": "verify-source-cli/verify-stubs",
199
201
  "rule-ownership-lint": "verify-source-cli/rule-ownership-lint",
200
202
  "verify-content-manifest": "verify-source-cli/verify-content-manifest",
203
+ "verify-cursor-tier1": "verify-source-cli/verify-cursor-tier1",
201
204
  "verify-scm-boundary": "verify-source-cli/verify-scm-boundary",
202
205
  "verify-go-freeze": "gates-cli/verify-go-freeze",
203
206
  "verify-bridge-drift": "gates-cli/verify-bridge-drift",
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ interface ParsedArgs {
3
+ projectRoot: string;
4
+ quiet: boolean;
5
+ error?: string;
6
+ }
7
+ /** Parse verify-cursor-tier1 CLI args (#1877). */
8
+ export declare function parseArgs(argv: string[]): ParsedArgs;
9
+ /** Run the gate and return the process exit code. */
10
+ export declare function run(argv: string[]): number;
11
+ export {};
12
+ //# sourceMappingURL=verify-cursor-tier1.d.ts.map
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env node
2
+ import { resolve } from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ import { evaluateCursorTier1 } from "@deftai/directive-core/verify-source";
5
+ /** Parse verify-cursor-tier1 CLI args (#1877). */
6
+ export function parseArgs(argv) {
7
+ const parsed = { projectRoot: ".", quiet: false };
8
+ for (let i = 0; i < argv.length; i += 1) {
9
+ const arg = argv[i];
10
+ if (arg === "--quiet") {
11
+ parsed.quiet = true;
12
+ }
13
+ else if (arg === "--project-root") {
14
+ const value = argv[i + 1];
15
+ if (value === undefined) {
16
+ return { ...parsed, error: "argument --project-root: expected one argument" };
17
+ }
18
+ parsed.projectRoot = value;
19
+ i += 1;
20
+ }
21
+ else if (arg?.startsWith("--project-root=")) {
22
+ parsed.projectRoot = arg.slice("--project-root=".length);
23
+ }
24
+ else {
25
+ return { ...parsed, error: `unrecognized argument: ${arg}` };
26
+ }
27
+ }
28
+ return parsed;
29
+ }
30
+ /** Run the gate and return the process exit code. */
31
+ export function run(argv) {
32
+ const args = parseArgs(argv);
33
+ if (args.error !== undefined) {
34
+ process.stderr.write(`verify_cursor_tier1: ${args.error}\n`);
35
+ return 2;
36
+ }
37
+ const result = evaluateCursorTier1(resolve(args.projectRoot), { quiet: args.quiet });
38
+ if (result.code === 0) {
39
+ if (!args.quiet && result.message.length > 0) {
40
+ process.stdout.write(`${result.message}\n`);
41
+ }
42
+ }
43
+ else {
44
+ process.stderr.write(`${result.message}\n`);
45
+ }
46
+ return result.code;
47
+ }
48
+ if (process.argv[1] !== undefined && fileURLToPath(import.meta.url) === process.argv[1]) {
49
+ process.exit(run(process.argv.slice(2)));
50
+ }
51
+ //# sourceMappingURL=verify-cursor-tier1.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deftai/directive",
3
- "version": "0.63.0",
3
+ "version": "0.64.0",
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.63.0",
35
- "@deftai/directive-content": "^0.63.0"
34
+ "@deftai/directive-core": "^0.64.0",
35
+ "@deftai/directive-content": "^0.64.0"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "tsc -b"