@deftai/directive 0.78.0 → 0.79.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.
|
@@ -167,6 +167,9 @@ function routeNamespaceVerb(ns, verb, rest) {
|
|
|
167
167
|
if (ns === "issue" && verb === "emit") {
|
|
168
168
|
return { kind: "dispatch", argv: ["issue-emit", ...rest] };
|
|
169
169
|
}
|
|
170
|
+
if (ns === "issue" && verb === "sync-from-xbrief") {
|
|
171
|
+
return { kind: "dispatch", argv: ["issue-sync-from-xbrief", ...rest] };
|
|
172
|
+
}
|
|
170
173
|
if (ns === "triage" && verb.startsWith("bulk-")) {
|
|
171
174
|
return { kind: "dispatch", argv: ["triage-bulk", verb.slice("bulk-".length), ...rest] };
|
|
172
175
|
}
|
package/dist/dispatch.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface DispatchIo {
|
|
|
12
12
|
/** CLI modules in packages/cli/src (excluding parity harnesses and bin/index). */
|
|
13
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"];
|
|
14
14
|
/** Core-only CLI entrypoints without a packages/cli wrapper. */
|
|
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-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"];
|
|
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). */
|
|
17
17
|
export declare const TRIAGE_ACTION_ALIAS_SUBCOMMANDS: Readonly<Record<string, string>>;
|
|
18
18
|
/** Colon aliases for policy subcommands (mirrors cli-router SUBCOMMAND_ROUTES). */
|
package/dist/dispatch.js
CHANGED
|
@@ -128,6 +128,7 @@ export const CORE_MODULE_VERBS = [
|
|
|
128
128
|
"github-body",
|
|
129
129
|
"issue-emit",
|
|
130
130
|
"issue-ingest",
|
|
131
|
+
"issue-sync-from-xbrief",
|
|
131
132
|
"reconcile-issues",
|
|
132
133
|
"swarm-launch",
|
|
133
134
|
"swarm-complete-cohort",
|
|
@@ -246,6 +247,7 @@ export const VERB_ALIASES = {
|
|
|
246
247
|
"migrate:category-b": "migrate-category-b",
|
|
247
248
|
"framework:check-updates": "framework-check-updates",
|
|
248
249
|
"umbrella:current-shape": "umbrella-current-shape",
|
|
250
|
+
"issue:sync-from-xbrief": "issue-sync-from-xbrief",
|
|
249
251
|
upgrade: "install-upgrade",
|
|
250
252
|
"session:start": "session-start",
|
|
251
253
|
"toolchain:check": "toolchain-check",
|
|
@@ -2199,6 +2201,10 @@ async function loadCoreModuleHandler(verb, io) {
|
|
|
2199
2201
|
const { mainEntry } = await import("@deftai/directive-core/dist/intake/issue-ingest-cli.js");
|
|
2200
2202
|
return mainEntry;
|
|
2201
2203
|
}
|
|
2204
|
+
case "issue-sync-from-xbrief": {
|
|
2205
|
+
const { mainEntry } = await import("@deftai/directive-core/dist/issue-sync/sync-from-xbrief-cli.js");
|
|
2206
|
+
return mainEntry;
|
|
2207
|
+
}
|
|
2202
2208
|
case "reconcile-issues": {
|
|
2203
2209
|
const { mainEntry } = await import("@deftai/directive-core/dist/intake/reconcile-issues-cli.js");
|
|
2204
2210
|
return mainEntry;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const PARITY_SCENARIOS = [
|
|
2
2
|
{ name: "help", argv: ["--help"], compareStdout: true },
|
|
3
3
|
{ name: "dry-run", argv: ["--dry-run"] },
|
|
4
|
-
{ name: "dry-run-
|
|
4
|
+
{ name: "dry-run-destroy-repo", argv: ["--dry-run", "--destroy-repo"] },
|
|
5
5
|
{
|
|
6
6
|
name: "dry-run-project-root",
|
|
7
7
|
argv: ["--dry-run", "--owner", "deftai", "--project-root", "/tmp/deft-e2e-parity-root"],
|
package/dist/triage-queue.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { ensureTriageCacheHydrated } from "@deftai/directive-core/dist/cache/empty-populate.js";
|
|
4
5
|
import { resolveTriageCachePath } from "@deftai/directive-core/dist/triage/cache-path.js";
|
|
5
6
|
import { activeReferencedIssueNumbers, buildQueue, collectOrphanIssueNumbers, DEFAULT_QUEUE_LIMIT, loadCachedIssues, loadSliceRecords, readAuditEntries, reconcileLiveOpenState, renderQueue, resolveRankingLabels, resolveRepo, } from "@deftai/directive-core/dist/triage/queue/index.js";
|
|
6
7
|
import { resolveScopeIgnores } from "@deftai/directive-core/dist/triage/scope-drift/index.js";
|
|
@@ -135,6 +136,7 @@ export function run(argv, options = {}) {
|
|
|
135
136
|
process.stderr.write("triage:queue: --repo OWNER/NAME (or $DEFT_TRIAGE_REPO) is required.\n");
|
|
136
137
|
return 2;
|
|
137
138
|
}
|
|
139
|
+
ensureTriageCacheHydrated(projectRoot, { repo });
|
|
138
140
|
const cachedForQueue = loadCachedIssues(repo, { projectRoot });
|
|
139
141
|
// Reconcile the cached candidate set against live open/closed state so a
|
|
140
142
|
// just-closed/merged issue never lingers in the queue as [untriaged] until
|
package/dist/triage-summary.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { ensureTriageCacheHydrated } from "@deftai/directive-core/dist/cache/empty-populate.js";
|
|
4
5
|
import { resolveTriageCachePath } from "@deftai/directive-core/dist/triage/cache-path.js";
|
|
5
6
|
import { appendHistory, computeSummary, formatSummary, pythonStyleStringify, summaryResultToRecord, utcIso, } from "@deftai/directive-core/dist/triage/summary/index.js";
|
|
6
7
|
/** Parse triage-summary CLI args, mirroring the Python argparse surface. */
|
|
@@ -56,6 +57,10 @@ export function run(argv) {
|
|
|
56
57
|
}
|
|
57
58
|
const projectRoot = resolve(args.projectRoot);
|
|
58
59
|
const cacheRoot = args.cacheRoot !== null ? resolve(args.cacheRoot) : undefined;
|
|
60
|
+
ensureTriageCacheHydrated(projectRoot, {
|
|
61
|
+
cacheRoot,
|
|
62
|
+
repo: process.env.DEFT_TRIAGE_REPO ?? null,
|
|
63
|
+
});
|
|
59
64
|
const result = computeSummary(projectRoot, { cacheRoot });
|
|
60
65
|
const line = formatSummary(result);
|
|
61
66
|
const emittedAt = utcIso();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deftai/directive",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.79.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.
|
|
35
|
-
"@deftai/directive-content": "^0.
|
|
34
|
+
"@deftai/directive-core": "^0.79.0",
|
|
35
|
+
"@deftai/directive-content": "^0.79.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc -b"
|