@deftai/directive 0.56.1 → 0.56.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.
- package/dist/cache.d.ts +1 -1
- package/dist/cache.js +1 -1
- package/dist/dispatch.js +21 -21
- package/dist/doctor.js +1 -1
- package/dist/pr-closing-keywords.js +1 -1
- package/dist/pr-merge-readiness.js +1 -1
- package/dist/pr-monitor.js +1 -1
- package/dist/pr-protected-issues.js +1 -1
- package/dist/pr-wait-mergeable.js +1 -1
- package/dist/release-e2e.js +1 -1
- package/dist/release-publish.js +1 -1
- package/dist/release-rollback.js +1 -1
- package/dist/release.js +1 -1
- package/dist/scope-lifecycle.js +7 -2
- package/dist/slice.js +7 -2
- package/dist/triage-actions-parity.js +1 -1
- package/dist/triage-actions.js +1 -1
- package/dist/triage-bootstrap.d.ts +1 -1
- package/dist/triage-bootstrap.js +7 -4
- package/dist/triage-bulk.js +2 -2
- package/dist/triage-classify.js +1 -1
- package/dist/triage-help.js +1 -1
- package/dist/triage-queue.js +1 -1
- package/dist/triage-reconcile.js +1 -1
- package/dist/triage-refresh.js +1 -1
- package/dist/triage-scope-drift.js +1 -1
- package/dist/triage-scope.js +7 -2
- package/dist/triage-smoketest.js +2 -2
- package/dist/triage-subscribe.js +2 -2
- package/dist/triage-summary.js +1 -1
- package/dist/triage-welcome.js +1 -1
- package/package.json +3 -3
package/dist/cache.d.ts
CHANGED
package/dist/cache.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { main } from "
|
|
3
|
+
import { main } from "@deftai/directive-core/dist/cache/main.js";
|
|
4
4
|
/* v8 ignore start -- entry guard; behaviour covered via main() unit tests */
|
|
5
5
|
if (process.argv[1] !== undefined && fileURLToPath(import.meta.url) === process.argv[1]) {
|
|
6
6
|
process.exit(main(process.argv.slice(2)));
|
package/dist/dispatch.js
CHANGED
|
@@ -343,55 +343,55 @@ function loadPythonScriptHandler(scriptName) {
|
|
|
343
343
|
async function loadCoreModuleHandler(verb, io) {
|
|
344
344
|
switch (verb) {
|
|
345
345
|
case "scm": {
|
|
346
|
-
const { main } = await import("
|
|
346
|
+
const { main } = await import("@deftai/directive-core/dist/scm/main.js");
|
|
347
347
|
return (argv) => main(argv);
|
|
348
348
|
}
|
|
349
349
|
case "github-auth-modes": {
|
|
350
|
-
const { mainEntry } = await import("
|
|
350
|
+
const { mainEntry } = await import("@deftai/directive-core/dist/intake/github-auth-modes-cli.js");
|
|
351
351
|
return mainEntry;
|
|
352
352
|
}
|
|
353
353
|
case "github-body": {
|
|
354
|
-
const { mainEntry } = await import("
|
|
354
|
+
const { mainEntry } = await import("@deftai/directive-core/dist/intake/github-body-cli.js");
|
|
355
355
|
return mainEntry;
|
|
356
356
|
}
|
|
357
357
|
case "issue-emit": {
|
|
358
|
-
const { mainEntry } = await import("
|
|
358
|
+
const { mainEntry } = await import("@deftai/directive-core/dist/intake/issue-emit-cli.js");
|
|
359
359
|
return mainEntry;
|
|
360
360
|
}
|
|
361
361
|
case "issue-ingest": {
|
|
362
|
-
const { mainEntry } = await import("
|
|
362
|
+
const { mainEntry } = await import("@deftai/directive-core/dist/intake/issue-ingest-cli.js");
|
|
363
363
|
return mainEntry;
|
|
364
364
|
}
|
|
365
365
|
case "reconcile-issues": {
|
|
366
|
-
const { mainEntry } = await import("
|
|
366
|
+
const { mainEntry } = await import("@deftai/directive-core/dist/intake/reconcile-issues-cli.js");
|
|
367
367
|
return mainEntry;
|
|
368
368
|
}
|
|
369
369
|
case "swarm-launch": {
|
|
370
|
-
const { launchMain } = await import("
|
|
370
|
+
const { launchMain } = await import("@deftai/directive-core/dist/swarm/launch-cli.js");
|
|
371
371
|
return launchMain;
|
|
372
372
|
}
|
|
373
373
|
case "swarm-complete-cohort": {
|
|
374
|
-
const { completeCohortMain } = await import("
|
|
374
|
+
const { completeCohortMain } = await import("@deftai/directive-core/dist/swarm/complete-cohort-cli.js");
|
|
375
375
|
return completeCohortMain;
|
|
376
376
|
}
|
|
377
377
|
case "swarm-readiness": {
|
|
378
|
-
const { readinessMain } = await import("
|
|
378
|
+
const { readinessMain } = await import("@deftai/directive-core/dist/swarm/readiness-cli.js");
|
|
379
379
|
return readinessMain;
|
|
380
380
|
}
|
|
381
381
|
case "swarm-routing-verify": {
|
|
382
|
-
const { routingVerifyMain } = await import("
|
|
382
|
+
const { routingVerifyMain } = await import("@deftai/directive-core/dist/swarm/routing-verify-cli.js");
|
|
383
383
|
return routingVerifyMain;
|
|
384
384
|
}
|
|
385
385
|
case "swarm-routing-set": {
|
|
386
|
-
const { routingSetMain } = await import("
|
|
386
|
+
const { routingSetMain } = await import("@deftai/directive-core/dist/swarm/routing-set-cli.js");
|
|
387
387
|
return routingSetMain;
|
|
388
388
|
}
|
|
389
389
|
case "swarm-verify-review-clean": {
|
|
390
|
-
const { verifyReviewCleanMain } = await import("
|
|
390
|
+
const { verifyReviewCleanMain } = await import("@deftai/directive-core/dist/swarm/verify-review-clean-cli.js");
|
|
391
391
|
return verifyReviewCleanMain;
|
|
392
392
|
}
|
|
393
393
|
case "swarm-worktrees": {
|
|
394
|
-
const { worktreesMain } = await import("
|
|
394
|
+
const { worktreesMain } = await import("@deftai/directive-core/dist/swarm/worktrees-cli.js");
|
|
395
395
|
return worktreesMain;
|
|
396
396
|
}
|
|
397
397
|
case "framework-commands": {
|
|
@@ -399,15 +399,15 @@ async function loadCoreModuleHandler(verb, io) {
|
|
|
399
399
|
return (argv) => frameworkCommandsMain(argv);
|
|
400
400
|
}
|
|
401
401
|
case "pack-render": {
|
|
402
|
-
const { main } = await import("
|
|
402
|
+
const { main } = await import("@deftai/directive-core/dist/packs/pack-render.js");
|
|
403
403
|
return (argv) => main([...argv]);
|
|
404
404
|
}
|
|
405
405
|
case "packs-slice": {
|
|
406
|
-
const { main } = await import("
|
|
406
|
+
const { main } = await import("@deftai/directive-core/dist/packs/packs-slice.js");
|
|
407
407
|
return (argv) => main([...argv]);
|
|
408
408
|
}
|
|
409
409
|
case "roadmap-render": {
|
|
410
|
-
const { main } = await import("
|
|
410
|
+
const { main } = await import("@deftai/directive-core/dist/render/roadmap-render.js");
|
|
411
411
|
return (argv) => main(argv);
|
|
412
412
|
}
|
|
413
413
|
case "spec-validate": {
|
|
@@ -459,23 +459,23 @@ async function loadCoreModuleHandler(verb, io) {
|
|
|
459
459
|
case "policy-set":
|
|
460
460
|
return loadPythonScriptHandler("policy_set.py");
|
|
461
461
|
case "scope-undo": {
|
|
462
|
-
const { undoMain } = await import("
|
|
462
|
+
const { undoMain } = await import("@deftai/directive-core/dist/scope/main.js");
|
|
463
463
|
return undoMain;
|
|
464
464
|
}
|
|
465
465
|
case "scope-demote": {
|
|
466
|
-
const { demoteMain } = await import("
|
|
466
|
+
const { demoteMain } = await import("@deftai/directive-core/dist/scope/main.js");
|
|
467
467
|
return demoteMain;
|
|
468
468
|
}
|
|
469
469
|
case "scope-decompose": {
|
|
470
|
-
const { decomposeMain } = await import("
|
|
470
|
+
const { decomposeMain } = await import("@deftai/directive-core/dist/scope/decompose.js");
|
|
471
471
|
return decomposeMain;
|
|
472
472
|
}
|
|
473
473
|
case "changelog-resolve-unreleased": {
|
|
474
|
-
const { changelogResolveUnreleasedMain } = await import("
|
|
474
|
+
const { changelogResolveUnreleasedMain } = await import("@deftai/directive-core/dist/platform/changelog-cli.js");
|
|
475
475
|
return changelogResolveUnreleasedMain;
|
|
476
476
|
}
|
|
477
477
|
case "architecture-preflight-sor": {
|
|
478
|
-
const { architecturePreflightSorMain } = await import("
|
|
478
|
+
const { architecturePreflightSorMain } = await import("@deftai/directive-core/dist/architecture/sor-preflight.js");
|
|
479
479
|
return architecturePreflightSorMain;
|
|
480
480
|
}
|
|
481
481
|
default:
|
package/dist/doctor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { cmdPrCheckClosingKeywords } from "
|
|
3
|
+
import { cmdPrCheckClosingKeywords } from "@deftai/directive-core/dist/pr-closing-keywords/main.js";
|
|
4
4
|
export function run(argv) {
|
|
5
5
|
return cmdPrCheckClosingKeywords(argv);
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { cmdPrMergeReadiness } from "
|
|
3
|
+
import { cmdPrMergeReadiness } from "@deftai/directive-core/dist/pr-merge-readiness/main.js";
|
|
4
4
|
export function run(argv) {
|
|
5
5
|
return cmdPrMergeReadiness(argv);
|
|
6
6
|
}
|
package/dist/pr-monitor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { cmdPrMonitor } from "
|
|
3
|
+
import { cmdPrMonitor } from "@deftai/directive-core/dist/pr-monitor/main.js";
|
|
4
4
|
export function run(argv) {
|
|
5
5
|
return cmdPrMonitor(argv);
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { cmdPrProtectedIssues } from "
|
|
3
|
+
import { cmdPrProtectedIssues } from "@deftai/directive-core/dist/pr-protected-issues/main.js";
|
|
4
4
|
export function run(argv) {
|
|
5
5
|
return cmdPrProtectedIssues(argv);
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { cmdPrWaitMergeable } from "
|
|
3
|
+
import { cmdPrWaitMergeable } from "@deftai/directive-core/dist/pr-wait-mergeable/main.js";
|
|
4
4
|
export function run(argv) {
|
|
5
5
|
return cmdPrWaitMergeable(argv);
|
|
6
6
|
}
|
package/dist/release-e2e.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { cmdReleaseE2e } from "
|
|
3
|
+
import { cmdReleaseE2e } from "@deftai/directive-core/dist/release-e2e/main.js";
|
|
4
4
|
export function run(argv) {
|
|
5
5
|
return cmdReleaseE2e(argv);
|
|
6
6
|
}
|
package/dist/release-publish.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { cmdReleasePublish } from "
|
|
3
|
+
import { cmdReleasePublish } from "@deftai/directive-core/dist/release-publish/main.js";
|
|
4
4
|
export function run(argv) {
|
|
5
5
|
return cmdReleasePublish(argv);
|
|
6
6
|
}
|
package/dist/release-rollback.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { cmdRollback } from "
|
|
3
|
+
import { cmdRollback } from "@deftai/directive-core/dist/release-rollback/main.js";
|
|
4
4
|
export function run(argv) {
|
|
5
5
|
return cmdRollback(argv);
|
|
6
6
|
}
|
package/dist/release.js
CHANGED
package/dist/scope-lifecycle.js
CHANGED
|
@@ -4,10 +4,15 @@
|
|
|
4
4
|
* Delegates to packages/core/dist/scope/cli.js.
|
|
5
5
|
*/
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
|
-
import {
|
|
7
|
+
import { createRequire } from "node:module";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
|
+
const require = createRequire(import.meta.url);
|
|
10
|
+
// Resolve the core CLI by its published package name so it works both in the
|
|
11
|
+
// source monorepo and under a flattened npm install (#1993). The bare specifier
|
|
12
|
+
// resolves via @deftai/directive-core's "./dist/*.js" export map; a hand-built
|
|
13
|
+
// relative path would point at the non-existent "@deftai/core" once published.
|
|
9
14
|
function coreCliPath() {
|
|
10
|
-
return
|
|
15
|
+
return require.resolve("@deftai/directive-core/dist/scope/cli.js");
|
|
11
16
|
}
|
|
12
17
|
/** Run scope lifecycle with argv; returns process exit code. */
|
|
13
18
|
export function run(argv) {
|
package/dist/slice.js
CHANGED
|
@@ -4,10 +4,15 @@
|
|
|
4
4
|
* Delegates to the core implementation at packages/core/dist/slice/cli.js.
|
|
5
5
|
*/
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
|
-
import {
|
|
7
|
+
import { createRequire } from "node:module";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
|
+
const require = createRequire(import.meta.url);
|
|
10
|
+
// Resolve the core CLI by its published package name so it works both in the
|
|
11
|
+
// source monorepo and under a flattened npm install (#1993). The bare specifier
|
|
12
|
+
// resolves via @deftai/directive-core's "./dist/*.js" export map; a hand-built
|
|
13
|
+
// relative path would point at the non-existent "@deftai/core" once published.
|
|
9
14
|
function coreCliPath() {
|
|
10
|
-
return
|
|
15
|
+
return require.resolve("@deftai/directive-core/dist/slice/cli.js");
|
|
11
16
|
}
|
|
12
17
|
/** Run slice verbs with argv; returns process exit code. */
|
|
13
18
|
export function run(argv) {
|
|
@@ -11,7 +11,7 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
|
11
11
|
import { tmpdir } from "node:os";
|
|
12
12
|
import { dirname, join, resolve } from "node:path";
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
14
|
-
import { cachePut } from "
|
|
14
|
+
import { cachePut } from "@deftai/directive-core/dist/cache/operations.js";
|
|
15
15
|
/** Strip volatile UUIDs and timestamps before compare. */
|
|
16
16
|
export function normalizeOutput(text) {
|
|
17
17
|
return text
|
package/dist/triage-actions.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
-
import { accept, createDefaultDeps, deferAction, formatDecision, history, markDuplicate, needsAc, reject, reset, status, TriageError, UpstreamCloseError, } from "
|
|
4
|
+
import { accept, createDefaultDeps, deferAction, formatDecision, history, markDuplicate, needsAc, reject, reset, status, TriageError, UpstreamCloseError, } from "@deftai/directive-core/dist/triage/actions/index.js";
|
|
5
5
|
const VALID_CMDS = new Set([
|
|
6
6
|
"accept",
|
|
7
7
|
"reject",
|
|
@@ -13,7 +13,7 @@ export interface ParsedArgs {
|
|
|
13
13
|
emitJson: boolean;
|
|
14
14
|
error?: string;
|
|
15
15
|
}
|
|
16
|
-
type BootstrapModule = typeof import("
|
|
16
|
+
type BootstrapModule = typeof import("@deftai/directive-core/dist/triage/bootstrap/index.js");
|
|
17
17
|
/** Parse triage-bootstrap CLI args, mirroring the Python argparse surface. */
|
|
18
18
|
export declare function parseArgs(argv: string[]): ParsedArgs;
|
|
19
19
|
/** Run triage:bootstrap with an injected core module (test seam). */
|
package/dist/triage-bootstrap.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { statSync } from "node:fs";
|
|
3
|
-
import {
|
|
4
|
-
import { fileURLToPath
|
|
3
|
+
import { resolve } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
5
|
async function loadBootstrapModule() {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// Direct dynamic import of the published package subpath -- resolves via core's
|
|
7
|
+
// "./dist/*.js" export map in both the monorepo and a flat npm install (#1993).
|
|
8
|
+
// The prior hand-built relative path broke once published (and my mechanical
|
|
9
|
+
// import rewrite turned it into a non-existent path under packages/cli/dist).
|
|
10
|
+
return import("@deftai/directive-core/dist/triage/bootstrap/index.js");
|
|
8
11
|
}
|
|
9
12
|
/** Parse triage-bootstrap CLI args, mirroring the Python argparse surface. */
|
|
10
13
|
export function parseArgs(argv) {
|
package/dist/triage-bulk.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { join, resolve } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
-
import { bulkActionWithDefaults, CacheEmptyError } from "
|
|
5
|
-
import { interceptHelp } from "
|
|
4
|
+
import { bulkActionWithDefaults, CacheEmptyError, } from "@deftai/directive-core/dist/triage/bulk/index.js";
|
|
5
|
+
import { interceptHelp } from "@deftai/directive-core/dist/triage/help/index.js";
|
|
6
6
|
export function parseArgs(argv) {
|
|
7
7
|
const parsed = {
|
|
8
8
|
action: "",
|
package/dist/triage-classify.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { statSync } from "node:fs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { listProject, validateProject } from "
|
|
5
|
+
import { listProject, validateProject } from "@deftai/directive-core/dist/triage/classify/index.js";
|
|
6
6
|
/** Parse triage-classify CLI args, mirroring the Python argparse surface. */
|
|
7
7
|
export function parseArgs(argv) {
|
|
8
8
|
const parsed = {
|
package/dist/triage-help.js
CHANGED
package/dist/triage-queue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { dirname, resolve } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
-
import { activeReferencedIssueNumbers, buildQueue, collectOrphanIssueNumbers, DEFAULT_QUEUE_LIMIT, loadCachedIssues, loadSliceRecords, readAuditEntries, renderQueue, resolveRankingLabels, resolveRepo, } from "
|
|
4
|
+
import { activeReferencedIssueNumbers, buildQueue, collectOrphanIssueNumbers, DEFAULT_QUEUE_LIMIT, loadCachedIssues, loadSliceRecords, readAuditEntries, renderQueue, resolveRankingLabels, resolveRepo, } from "@deftai/directive-core/dist/triage/queue/index.js";
|
|
5
5
|
/** Parse triage-queue CLI args for the queue subcommand. */
|
|
6
6
|
export function parseArgs(argv) {
|
|
7
7
|
const parsed = {
|
package/dist/triage-reconcile.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { statSync } from "node:fs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { emitReconcileJson, reconcile, reconcileSummary, } from "
|
|
5
|
+
import { emitReconcileJson, reconcile, reconcileSummary, } from "@deftai/directive-core/dist/triage/reconcile/index.js";
|
|
6
6
|
export function parseArgs(argv) {
|
|
7
7
|
const parsed = {
|
|
8
8
|
projectRoot: process.env.DEFT_PROJECT_ROOT ?? ".",
|
package/dist/triage-refresh.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
-
import { refreshActive } from "
|
|
4
|
+
import { refreshActive } from "@deftai/directive-core/dist/triage/refresh/index.js";
|
|
5
5
|
export function parseArgs(argv) {
|
|
6
6
|
let projectRoot = ".";
|
|
7
7
|
for (let i = 0; i < argv.length; i += 1) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { statSync } from "node:fs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { addIgnore, computeDrift, renderDriftReport, } from "
|
|
5
|
+
import { addIgnore, computeDrift, renderDriftReport, } from "@deftai/directive-core/dist/triage/scope-drift/index.js";
|
|
6
6
|
export function parseArgs(argv) {
|
|
7
7
|
const parsed = { projectRoot: process.env.DEFT_PROJECT_ROOT ?? "." };
|
|
8
8
|
for (let i = 0; i < argv.length; i += 1) {
|
package/dist/triage-scope.js
CHANGED
|
@@ -4,10 +4,15 @@
|
|
|
4
4
|
* Delegates to the core implementation at packages/core/dist/triage/scope/cli.js.
|
|
5
5
|
*/
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
|
-
import {
|
|
7
|
+
import { createRequire } from "node:module";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
|
+
const require = createRequire(import.meta.url);
|
|
10
|
+
// Resolve the core CLI by its published package name so it works both in the
|
|
11
|
+
// source monorepo and under a flattened npm install (#1993). The bare specifier
|
|
12
|
+
// resolves via @deftai/directive-core's "./dist/*.js" export map; a hand-built
|
|
13
|
+
// relative path would point at the non-existent "@deftai/core" once published.
|
|
9
14
|
function coreCliPath() {
|
|
10
|
-
return
|
|
15
|
+
return require.resolve("@deftai/directive-core/dist/triage/scope/cli.js");
|
|
11
16
|
}
|
|
12
17
|
/** Run triage:scope with argv; returns process exit code. */
|
|
13
18
|
export function run(argv) {
|
package/dist/triage-smoketest.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { existsSync, statSync } from "node:fs";
|
|
3
3
|
import { dirname, join, resolve } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { interceptHelp } from "
|
|
6
|
-
import { DEFAULT_FIXTURE_REL, parseSmoketestArgs, runSmoketest, } from "
|
|
5
|
+
import { interceptHelp } from "@deftai/directive-core/dist/triage/help/index.js";
|
|
6
|
+
import { DEFAULT_FIXTURE_REL, parseSmoketestArgs, runSmoketest, } from "@deftai/directive-core/dist/triage/smoketest/index.js";
|
|
7
7
|
function resolveDeftRoot() {
|
|
8
8
|
if (process.env.DEFT_ROOT !== undefined && process.env.DEFT_ROOT.length > 0) {
|
|
9
9
|
return resolve(process.env.DEFT_ROOT);
|
package/dist/triage-subscribe.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { existsSync, statSync } from "node:fs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { interceptHelp } from "
|
|
6
|
-
import { RECONCILE_HINT, subscribe, unsubscribe } from "
|
|
5
|
+
import { interceptHelp } from "@deftai/directive-core/dist/triage/help/index.js";
|
|
6
|
+
import { RECONCILE_HINT, subscribe, unsubscribe, } from "@deftai/directive-core/dist/triage/subscribe/index.js";
|
|
7
7
|
export function parseArgs(argv) {
|
|
8
8
|
const parsed = {
|
|
9
9
|
op: "",
|
package/dist/triage-summary.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
-
import { appendHistory, computeSummary, formatSummary, pythonStyleStringify, SUMMARY_HISTORY_REL_PATH, summaryResultToRecord, utcIso, } from "
|
|
4
|
+
import { appendHistory, computeSummary, formatSummary, pythonStyleStringify, SUMMARY_HISTORY_REL_PATH, summaryResultToRecord, utcIso, } from "@deftai/directive-core/dist/triage/summary/index.js";
|
|
5
5
|
/** Parse triage-summary CLI args, mirroring the Python argparse surface. */
|
|
6
6
|
export function parseArgs(argv) {
|
|
7
7
|
const parsed = {
|
package/dist/triage-welcome.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { statSync } from "node:fs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { runDefaultMode } from "
|
|
5
|
+
import { runDefaultMode } from "@deftai/directive-core/dist/triage/welcome/default-mode.js";
|
|
6
6
|
export function parseArgs(argv) {
|
|
7
7
|
const parsed = {
|
|
8
8
|
projectRoot: process.env.DEFT_PROJECT_ROOT ?? ".",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deftai/directive",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.2",
|
|
4
4
|
"description": "Directive CLI — npm install path for the Deft Directive framework.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"provenance": true
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@deftai/directive-core": "^0.56.
|
|
46
|
-
"@deftai/directive-content": "^0.56.
|
|
45
|
+
"@deftai/directive-core": "^0.56.2",
|
|
46
|
+
"@deftai/directive-content": "^0.56.2"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsc -b"
|