@planu/cli 5.7.6 → 5.7.8
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/CHANGELOG.md +31 -0
- package/dist/.planu-build.json +1 -1
- package/dist/config/hook-templates/planu-review-panel-trigger.sh +2 -3
- package/dist/config/skill-templates/planu-multi-teammate-review.md +7 -11
- package/dist/engine/evidence-gates/evidence-skeletons.js +3 -1
- package/dist/engine/execution/job-runtime.d.ts +7 -3
- package/dist/engine/execution/job-runtime.js +18 -6
- package/dist/engine/execution/validate-job-executor.d.ts +2 -0
- package/dist/engine/execution/validate-job-executor.js +25 -0
- package/dist/engine/readiness-checker.js +17 -6
- package/dist/engine/reconcile/propagate-mirrors.js +6 -6
- package/dist/engine/spec-format/lean-spec-generator.js +2 -2
- package/dist/engine/spec-grounding/contract.d.ts +3 -3
- package/dist/engine/spec-grounding/contract.js +23 -76
- package/dist/engine/spec-grounding/grounding-entry-parser.d.ts +5 -0
- package/dist/engine/spec-grounding/grounding-entry-parser.js +185 -0
- package/dist/storage/runtime-db.d.ts +4 -2
- package/dist/storage/runtime-db.js +50 -12
- package/dist/storage/spec-store.d.ts +2 -1
- package/dist/storage/spec-store.js +28 -3
- package/dist/tools/bump-spec-version.js +5 -5
- package/dist/tools/create-spec.js +4 -1
- package/dist/tools/init-project/skills-multi-teammate-review-writer.js +1 -1
- package/dist/tools/jobs/handlers.js +18 -11
- package/dist/tools/list-specs.js +33 -15
- package/dist/tools/multi-teammate-review.js +1 -14
- package/dist/tools/register-platform-tools/design-stack-tools.js +3 -3
- package/dist/tools/register-spec-tools/analysis-tools.js +22 -9
- package/dist/tools/register-spec-tools/core-spec-tools.js +97 -43
- package/dist/tools/schemas/output-schemas.d.ts +14 -0
- package/dist/tools/schemas/output-schemas.js +14 -0
- package/dist/tools/schemas/package-handoff-output-schema.d.ts +1 -0
- package/dist/tools/schemas/package-handoff-output-schema.js +3 -1
- package/dist/tools/schemas/validate-output-schema.d.ts +1 -0
- package/dist/tools/schemas/validate-output-schema.js +3 -1
- package/dist/tools/sync-spec-state-handler.js +92 -23
- package/dist/tools/tool-registry/core-tools.js +71 -24
- package/dist/tools/tool-registry/group-quality-compliance.js +11 -14
- package/dist/tools/tool-registry-helpers.js +6 -2
- package/dist/types/durable-job.d.ts +1 -0
- package/dist/types/spec/core.d.ts +4 -0
- package/dist/types/spec-grounding.d.ts +14 -0
- package/package.json +3 -3
- package/planu-plugin.json +1 -1
- package/dist/tools/tool-registry/deprecated-stubs.d.ts +0 -19
- package/dist/tools/tool-registry/deprecated-stubs.js +0 -65
|
@@ -51,7 +51,12 @@ const coreToolsRegistry = [
|
|
|
51
51
|
name: 'session_checkpoint',
|
|
52
52
|
description: 'Persist a compact, bounded session checkpoint to planu/session-context.md for the next session.',
|
|
53
53
|
schema: {
|
|
54
|
-
projectPath: z
|
|
54
|
+
projectPath: z
|
|
55
|
+
.string()
|
|
56
|
+
.trim()
|
|
57
|
+
.min(1)
|
|
58
|
+
.max(4096)
|
|
59
|
+
.describe('Absolute path to the project root. Max 4096 characters.'),
|
|
55
60
|
},
|
|
56
61
|
handler: handleSessionCheckpoint,
|
|
57
62
|
annotations: {
|
|
@@ -66,9 +71,20 @@ const coreToolsRegistry = [
|
|
|
66
71
|
name: 'get_job',
|
|
67
72
|
description: 'Read the durable state and latest checkpoint or result for a local Planu job.',
|
|
68
73
|
schema: {
|
|
69
|
-
operationId: z
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
operationId: z
|
|
75
|
+
.string()
|
|
76
|
+
.trim()
|
|
77
|
+
.min(1)
|
|
78
|
+
.max(128)
|
|
79
|
+
.describe('Job operation ID. Max 128 characters.'),
|
|
80
|
+
projectId: z.string().trim().min(1).max(128).describe('Project ID hash. Max 128 characters.'),
|
|
81
|
+
workspaceId: z
|
|
82
|
+
.string()
|
|
83
|
+
.trim()
|
|
84
|
+
.min(1)
|
|
85
|
+
.max(128)
|
|
86
|
+
.optional()
|
|
87
|
+
.describe('Workspace ID. Max 128 characters.'),
|
|
72
88
|
},
|
|
73
89
|
handler: handleGetJob,
|
|
74
90
|
annotations: {
|
|
@@ -84,9 +100,20 @@ const coreToolsRegistry = [
|
|
|
84
100
|
name: 'restart_job',
|
|
85
101
|
description: 'Restart a cancelled or failed durable job and schedule its typed executor.',
|
|
86
102
|
schema: {
|
|
87
|
-
operationId: z
|
|
88
|
-
|
|
89
|
-
|
|
103
|
+
operationId: z
|
|
104
|
+
.string()
|
|
105
|
+
.trim()
|
|
106
|
+
.min(1)
|
|
107
|
+
.max(128)
|
|
108
|
+
.describe('Job operation ID. Max 128 characters.'),
|
|
109
|
+
projectId: z.string().trim().min(1).max(128).describe('Project ID hash. Max 128 characters.'),
|
|
110
|
+
workspaceId: z
|
|
111
|
+
.string()
|
|
112
|
+
.trim()
|
|
113
|
+
.min(1)
|
|
114
|
+
.max(128)
|
|
115
|
+
.optional()
|
|
116
|
+
.describe('Workspace ID. Max 128 characters.'),
|
|
90
117
|
},
|
|
91
118
|
handler: handleRestartJob,
|
|
92
119
|
annotations: {
|
|
@@ -257,12 +284,16 @@ const coreToolsRegistry = [
|
|
|
257
284
|
name: 'planu_status',
|
|
258
285
|
description: 'Get a compact world-snapshot of the current Planu project state in one call: active spec (in-progress), next recommended spec (highest-priority approved), queue count, git state (staged/modified files), and an actionable suggestion. Designed to return the full picture in ≤150 tokens.',
|
|
259
286
|
schema: {
|
|
260
|
-
projectPath: z
|
|
287
|
+
projectPath: z
|
|
288
|
+
.string()
|
|
289
|
+
.min(1)
|
|
290
|
+
.max(4096)
|
|
291
|
+
.describe('Max 4096 characters. Absolute path to project root.'),
|
|
261
292
|
projectId: z
|
|
262
293
|
.string()
|
|
263
294
|
.max(500)
|
|
264
295
|
.optional()
|
|
265
|
-
.describe('Project ID (optional — derived from projectPath if omitted)'),
|
|
296
|
+
.describe('Max 500 characters. Project ID (optional — derived from projectPath if omitted).'),
|
|
266
297
|
},
|
|
267
298
|
handler: async (args) => handlePlanStatus(args),
|
|
268
299
|
annotations: { readOnlyHint: true },
|
|
@@ -544,17 +575,17 @@ const coreToolsRegistry = [
|
|
|
544
575
|
description: z
|
|
545
576
|
.string()
|
|
546
577
|
.max(10_000)
|
|
547
|
-
.describe('Free-form description: what you want to build, your problem, or your request'),
|
|
578
|
+
.describe('Max 10000 characters. Free-form description: what you want to build, your problem, or your request.'),
|
|
548
579
|
projectId: z
|
|
549
580
|
.string()
|
|
550
581
|
.max(500)
|
|
551
582
|
.optional()
|
|
552
|
-
.describe('Project ID or project path (used for context loading and focus persistence)'),
|
|
583
|
+
.describe('Max 500 characters. Project ID or project path (used for context loading and focus persistence).'),
|
|
553
584
|
sessionId: z
|
|
554
585
|
.string()
|
|
555
586
|
.max(500)
|
|
556
587
|
.optional()
|
|
557
|
-
.describe('Session ID (overrides projectId for focus tracking)'),
|
|
588
|
+
.describe('Max 500 characters. Session ID (overrides projectId for focus tracking).'),
|
|
558
589
|
scenario: z
|
|
559
590
|
.enum(['new_project', 'existing_project', 'concrete_problem'])
|
|
560
591
|
.optional()
|
|
@@ -567,28 +598,44 @@ const coreToolsRegistry = [
|
|
|
567
598
|
.string()
|
|
568
599
|
.max(4096)
|
|
569
600
|
.optional()
|
|
570
|
-
.describe('Parent workspace path that should contain a new project folder'),
|
|
571
|
-
appName: z
|
|
601
|
+
.describe('Max 4096 characters. Parent workspace path that should contain a new project folder.'),
|
|
602
|
+
appName: z
|
|
603
|
+
.string()
|
|
604
|
+
.max(500)
|
|
605
|
+
.optional()
|
|
606
|
+
.describe('Max 500 characters. Human-readable new app name.'),
|
|
572
607
|
appSlug: z
|
|
573
608
|
.string()
|
|
574
609
|
.max(200)
|
|
575
610
|
.optional()
|
|
576
|
-
.describe('Safe folder name for the new app; must not contain path separators'),
|
|
577
|
-
projectType: z
|
|
578
|
-
|
|
579
|
-
|
|
611
|
+
.describe('Max 200 characters. Safe folder name for the new app; must not contain path separators.'),
|
|
612
|
+
projectType: z
|
|
613
|
+
.string()
|
|
614
|
+
.max(500)
|
|
615
|
+
.optional()
|
|
616
|
+
.describe('Max 500 characters. Kind of project to create.'),
|
|
617
|
+
platform: z
|
|
618
|
+
.string()
|
|
619
|
+
.max(500)
|
|
620
|
+
.optional()
|
|
621
|
+
.describe('Max 500 characters. Runtime or deployment platform.'),
|
|
622
|
+
language: z
|
|
623
|
+
.string()
|
|
624
|
+
.max(500)
|
|
625
|
+
.optional()
|
|
626
|
+
.describe('Max 500 characters. User-confirmed programming language.'),
|
|
580
627
|
framework: z
|
|
581
628
|
.string()
|
|
582
629
|
.max(500)
|
|
583
630
|
.nullable()
|
|
584
631
|
.optional()
|
|
585
|
-
.describe('User-confirmed framework, null for no framework'),
|
|
632
|
+
.describe('Max 500 characters. User-confirmed framework, null for no framework.'),
|
|
586
633
|
database: z
|
|
587
634
|
.string()
|
|
588
635
|
.max(500)
|
|
589
636
|
.nullable()
|
|
590
637
|
.optional()
|
|
591
|
-
.describe('User-confirmed database, null for no database'),
|
|
638
|
+
.describe('Max 500 characters. User-confirmed database, null for no database.'),
|
|
592
639
|
createDirectory: z
|
|
593
640
|
.boolean()
|
|
594
641
|
.optional()
|
|
@@ -603,12 +650,12 @@ const coreToolsRegistry = [
|
|
|
603
650
|
.min(0)
|
|
604
651
|
.max(10)
|
|
605
652
|
.optional()
|
|
606
|
-
.describe('Current step index for new_project flow (0–2)'),
|
|
653
|
+
.describe('Maximum 10. Current step index for new_project flow (0–2).'),
|
|
607
654
|
targetTool: z
|
|
608
655
|
.string()
|
|
609
656
|
.max(500)
|
|
610
657
|
.optional()
|
|
611
|
-
.describe('Planu tool name to check ambiguity for before calling it'),
|
|
658
|
+
.describe('Max 500 characters. Planu tool name to check ambiguity for before calling it.'),
|
|
612
659
|
checkFocus: z
|
|
613
660
|
.boolean()
|
|
614
661
|
.optional()
|
|
@@ -617,12 +664,12 @@ const coreToolsRegistry = [
|
|
|
617
664
|
.string()
|
|
618
665
|
.max(10_000)
|
|
619
666
|
.optional()
|
|
620
|
-
.describe('Explicitly declare a new session objective'),
|
|
667
|
+
.describe('Max 10000 characters. Explicitly declare a new session objective.'),
|
|
621
668
|
planContent: z
|
|
622
669
|
.string()
|
|
623
670
|
.max(10_000)
|
|
624
671
|
.optional()
|
|
625
|
-
.describe('Plan Mode output to convert into a spec. Paste the plan markdown here to extract ACs and route to create_spec.'),
|
|
672
|
+
.describe('Max 10000 characters. Plan Mode output to convert into a spec. Paste the plan markdown here to extract ACs and route to create_spec.'),
|
|
626
673
|
},
|
|
627
674
|
handler: (args) => handleFacilitate(args),
|
|
628
675
|
annotations: { readOnlyHint: false },
|
|
@@ -3,8 +3,6 @@ import { z } from 'zod';
|
|
|
3
3
|
import { safeGoverned, safeTracked } from '../safe-handler.js';
|
|
4
4
|
import { projectIdSchema, withProject } from '../tool-registry-helpers.js';
|
|
5
5
|
import { t } from '../../i18n/index.js';
|
|
6
|
-
import { makeDeprecationStub } from './deprecated-stubs.js';
|
|
7
|
-
import { registerFromEntries } from '../tool-entry.js';
|
|
8
6
|
// ── Compliance (register-compliance-tools.ts) ─────────────────────────────────
|
|
9
7
|
import { handleCheckComplianceUnified, handleCheckComplianceLegacyShim, handleComplianceScoreReportShim, handleComplianceGapAnalysisShim, handleVerifySpecComplianceShim, } from '../compliance-unified-handler.js';
|
|
10
8
|
import { handleConfigureCompliance } from '../compliance-handler.js';
|
|
@@ -831,7 +829,7 @@ export function registerQualityComplianceGroupTools(s) {
|
|
|
831
829
|
description: t('tools.check_readiness.description'),
|
|
832
830
|
inputSchema: {
|
|
833
831
|
...projectIdSchema,
|
|
834
|
-
specId: SpecIdSchema.describe('Spec ID to evaluate'),
|
|
832
|
+
specId: SpecIdSchema.describe('Spec ID to evaluate. Must match pattern ^SPEC-\\d+$, max 50 characters.'),
|
|
835
833
|
mode: z
|
|
836
834
|
.enum(['strict', 'lenient'])
|
|
837
835
|
.optional()
|
|
@@ -952,7 +950,7 @@ export function registerQualityComplianceGroupTools(s) {
|
|
|
952
950
|
description: t('tools.package_handoff.description'),
|
|
953
951
|
inputSchema: {
|
|
954
952
|
...projectIdSchema,
|
|
955
|
-
specId: SpecIdSchema.describe('Spec ID to generate handoff package for'),
|
|
953
|
+
specId: SpecIdSchema.describe('Spec ID to generate handoff package for. Must match pattern ^SPEC-\\d+$, max 50 characters.'),
|
|
956
954
|
},
|
|
957
955
|
outputSchema: PackageHandoffOutputSchema,
|
|
958
956
|
annotations: {
|
|
@@ -1049,31 +1047,35 @@ export function registerQualityComplianceGroupTools(s) {
|
|
|
1049
1047
|
description: 'Request changes on a spec. The spec is moved back to draft and prior approvals are cleared. ' +
|
|
1050
1048
|
'A comment explaining the required changes is mandatory.',
|
|
1051
1049
|
inputSchema: {
|
|
1052
|
-
projectPath: z
|
|
1050
|
+
projectPath: z
|
|
1051
|
+
.string()
|
|
1052
|
+
.min(1)
|
|
1053
|
+
.max(4096)
|
|
1054
|
+
.describe('Absolute path to the project root. Max 4096 characters.'),
|
|
1053
1055
|
specId: z
|
|
1054
1056
|
.string()
|
|
1055
1057
|
.min(1)
|
|
1056
1058
|
.max(500)
|
|
1057
|
-
.describe('Spec ID to request changes on (e.g. SPEC-042).'),
|
|
1059
|
+
.describe('Spec ID to request changes on (e.g. SPEC-042). Max 500 characters.'),
|
|
1058
1060
|
reviewer: z
|
|
1059
1061
|
.string()
|
|
1060
1062
|
.trim()
|
|
1061
1063
|
.min(1)
|
|
1062
1064
|
.max(500)
|
|
1063
|
-
.describe('Name, email, or username of the reviewer requesting changes.'),
|
|
1065
|
+
.describe('Name, email, or username of the reviewer requesting changes. Max 500 characters.'),
|
|
1064
1066
|
comment: z
|
|
1065
1067
|
.string()
|
|
1066
1068
|
.trim()
|
|
1067
1069
|
.min(1)
|
|
1068
1070
|
.max(10_000)
|
|
1069
|
-
.describe('Required explanation of what needs to change before re-approval.'),
|
|
1071
|
+
.describe('Required explanation of what needs to change before re-approval. Max 10000 characters.'),
|
|
1070
1072
|
role: z
|
|
1071
1073
|
.string()
|
|
1072
1074
|
.trim()
|
|
1073
1075
|
.min(1)
|
|
1074
1076
|
.max(500)
|
|
1075
1077
|
.optional()
|
|
1076
|
-
.describe('Role of the reviewer (e.g. "tech-lead", "qa").'),
|
|
1078
|
+
.describe('Role of the reviewer (e.g. "tech-lead", "qa"). Max 500 characters.'),
|
|
1077
1079
|
},
|
|
1078
1080
|
annotations: { title: 'Request Changes', destructiveHint: true },
|
|
1079
1081
|
}, safeGoverned('request_changes', (args) => handleRequestChanges(args)));
|
|
@@ -1196,10 +1198,5 @@ export function registerQualityComplianceGroupTools(s) {
|
|
|
1196
1198
|
.describe('Absolute path to the project root. Used to detect language and test framework.'),
|
|
1197
1199
|
},
|
|
1198
1200
|
}, safeTracked('run_mutation_hints', async (args) => handleRunMutationHints({ projectPath: args.projectPath })));
|
|
1199
|
-
// ── SPEC-331: Multi-Agent Orchestration Plan (migrated to skill, SPEC-658) ────
|
|
1200
|
-
// Tool stays registered for backward compat; callers receive a deprecation notice.
|
|
1201
|
-
registerFromEntries(s, [
|
|
1202
|
-
makeDeprecationStub('generate_orchestration_plan', '.claude/skills/parallel-safe.md', 'parallel-safe'),
|
|
1203
|
-
]);
|
|
1204
1201
|
}
|
|
1205
1202
|
//# sourceMappingURL=group-quality-compliance.js.map
|
|
@@ -5,12 +5,16 @@ import { resolveProjectId, missingProjectIdError } from './resolve-project-id.js
|
|
|
5
5
|
// ── Shared schema fragments ──────────────────────────────────────────────────
|
|
6
6
|
/** Standard dual projectId/projectPath optional Zod fields. Spread into inputSchema. */
|
|
7
7
|
export const projectIdSchema = {
|
|
8
|
-
projectId: z
|
|
8
|
+
projectId: z
|
|
9
|
+
.string()
|
|
10
|
+
.max(500)
|
|
11
|
+
.optional()
|
|
12
|
+
.describe('Project ID hash. Prefer projectPath. Max 500 characters.'),
|
|
9
13
|
projectPath: z
|
|
10
14
|
.string()
|
|
11
15
|
.max(4096)
|
|
12
16
|
.optional()
|
|
13
|
-
.describe('Absolute path to project root. Derives projectId automatically.'),
|
|
17
|
+
.describe('Absolute path to project root. Derives projectId automatically. Max 4096 characters.'),
|
|
14
18
|
};
|
|
15
19
|
/**
|
|
16
20
|
* Wraps a handler that requires a resolved projectId.
|
|
@@ -93,6 +93,7 @@ export interface DurableJobRecord {
|
|
|
93
93
|
readonly error?: string;
|
|
94
94
|
readonly attempts: number;
|
|
95
95
|
readonly maxAttempts: number;
|
|
96
|
+
readonly restarts: number;
|
|
96
97
|
readonly cancelRequested: boolean;
|
|
97
98
|
readonly leaseOwner?: string;
|
|
98
99
|
readonly leaseExpiresAt?: string;
|
|
@@ -440,6 +440,10 @@ export interface SyncSpecStateOptions {
|
|
|
440
440
|
/** When false, non-terminal drift is reported read-only instead of applied via handleUpdateStatus. */
|
|
441
441
|
applyTransitions?: boolean;
|
|
442
442
|
}
|
|
443
|
+
export interface SpecStoreListing {
|
|
444
|
+
specs: Spec[];
|
|
445
|
+
ghosts: Spec[];
|
|
446
|
+
}
|
|
443
447
|
/** Report produced by spec state synchronisation. */
|
|
444
448
|
export interface SyncReport {
|
|
445
449
|
synced: number;
|
|
@@ -31,4 +31,18 @@ export type FrontmatterYamlOutcome = {
|
|
|
31
31
|
} | {
|
|
32
32
|
parsed: false;
|
|
33
33
|
};
|
|
34
|
+
export interface GroundingParseDiagnostic {
|
|
35
|
+
identifier: string;
|
|
36
|
+
field: string;
|
|
37
|
+
value: string;
|
|
38
|
+
allowed: string[];
|
|
39
|
+
}
|
|
40
|
+
export interface GroundingParseResult<T> {
|
|
41
|
+
records: T[];
|
|
42
|
+
diagnostics: GroundingParseDiagnostic[];
|
|
43
|
+
}
|
|
44
|
+
export interface GroundingEntryOutcome<T> {
|
|
45
|
+
record: T | null;
|
|
46
|
+
diagnostics: GroundingParseDiagnostic[];
|
|
47
|
+
}
|
|
34
48
|
//# sourceMappingURL=spec-grounding.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planu/cli",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.8",
|
|
4
4
|
"description": "Planu — MCP Server for Spec Driven Development. Cross-platform (Linux/macOS/Windows, x64/arm64).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"verify:typescript-migration": "node scripts/verify-typescript-migration.mjs",
|
|
47
47
|
"test": "vitest run --maxWorkers=6",
|
|
48
48
|
"test:watch": "vitest",
|
|
49
|
-
"test:coverage": "vitest run --coverage --testTimeout=60000 --maxWorkers=
|
|
49
|
+
"test:coverage": "vitest run --coverage --testTimeout=60000 --maxWorkers=6",
|
|
50
50
|
"test:release-gate": "vitest run --exclude 'tests/integration/**'",
|
|
51
51
|
"test:pre-push-scripts": "PLANU_PRE_PUSH_SCRIPTS_LANE=1 vitest run tests/scripts --reporter=dot",
|
|
52
52
|
"test:integration": "vitest run tests/integration",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"check": "pnpm typecheck && pnpm lint:gate && pnpm format:check && pnpm check:destructive-ops && pnpm check:commercial-surfaces && pnpm check:tool-registration && pnpm check:public-privacy && pnpm check:website-proof && pnpm check:donation-assets && pnpm check:website-public-assets",
|
|
58
58
|
"check:destructive-ops": "bash scripts/check-no-automatic-destructive-ops.sh",
|
|
59
59
|
"check:strict": "pnpm check && pnpm generate:host-tool-registry -- --check && pnpm check:environment-schema && pnpm audit:hardcodes && pnpm audit:deadcode && pnpm audit:circular && pnpm audit:types && pnpm audit:security && pnpm audit:i18n",
|
|
60
|
-
"check:preflight": "pnpm typecheck &&
|
|
60
|
+
"check:preflight": "pnpm typecheck && node scripts/check-preflight.mjs && bash scripts/release-preflight.sh --run-and-write && bash scripts/release-preflight.sh --verify",
|
|
61
61
|
"check:reliability": "node scripts/check-reliability-policies.mjs",
|
|
62
62
|
"check:environment-schema": "node scripts/check-environment-schema.mjs",
|
|
63
63
|
"test:contracts": "vitest run tests/contracts tests/integration/package-consumer-hono.test.ts",
|
package/planu-plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dev.planu.cli",
|
|
3
3
|
"displayName": "Planu — Spec Driven Development",
|
|
4
4
|
"description": "Manage software specs, estimations, and autonomous SDD workflows. Language-agnostic MCP server for Claude Code.",
|
|
5
|
-
"version": "5.7.
|
|
5
|
+
"version": "5.7.8",
|
|
6
6
|
"icon": "assets/plugin/icon.svg",
|
|
7
7
|
"command": ["npx", "@planu/cli@latest"],
|
|
8
8
|
"packageName": "@planu/cli",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { McpToolEntry } from '../tool-entry.js';
|
|
2
|
-
/** Template for the deprecation message. Interpolated at runtime. */
|
|
3
|
-
export declare const DEPRECATION_MESSAGE_TEMPLATE = "This tool has been migrated to a skill. Use the {skill} skill instead: {path}";
|
|
4
|
-
/**
|
|
5
|
-
* The 5 MCP tool names that have been migrated to skills.
|
|
6
|
-
* Used in smoke tests (Scenario 6) and anywhere a guard on migrated tools is needed.
|
|
7
|
-
*/
|
|
8
|
-
export declare const DEPRECATED_TOOLS: readonly ['execute_sdd_flow', 'implement_plan', 'multi_teammate_review', 'run_healing_loop', 'generate_orchestration_plan'];
|
|
9
|
-
export type DeprecatedToolName = (typeof DEPRECATED_TOOLS)[number];
|
|
10
|
-
/**
|
|
11
|
-
* Create a McpToolEntry-compatible deprecation stub.
|
|
12
|
-
*
|
|
13
|
-
* - Tool stays registered → callers never see "unknown tool".
|
|
14
|
-
* - Description starts with `[Deprecated]` → LLMs stop calling it.
|
|
15
|
-
* - Handler always returns success (no `isError`) regardless of input.
|
|
16
|
-
* - One stderr warning per process per tool (deduped).
|
|
17
|
-
*/
|
|
18
|
-
export declare function makeDeprecationStub(toolName: string, replacementSkillPath: string, replacementSkillName: string): McpToolEntry;
|
|
19
|
-
//# sourceMappingURL=deprecated-stubs.d.ts.map
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
// tools/tool-registry/deprecated-stubs.ts — Shared factory for MCP deprecation stubs (SPEC-658).
|
|
2
|
-
//
|
|
3
|
-
// Tools migrated to skills stay registered so callers receive a helpful message
|
|
4
|
-
// instead of "unknown tool". The stub handler never throws and always returns
|
|
5
|
-
// HTTP 200 with a plain-text deprecation notice.
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
import { compactResult } from '../output-formatter.js';
|
|
8
|
-
// ---------------------------------------------------------------------------
|
|
9
|
-
// Constants
|
|
10
|
-
// ---------------------------------------------------------------------------
|
|
11
|
-
/** Template for the deprecation message. Interpolated at runtime. */
|
|
12
|
-
export const DEPRECATION_MESSAGE_TEMPLATE = 'This tool has been migrated to a skill. Use the {skill} skill instead: {path}';
|
|
13
|
-
/**
|
|
14
|
-
* The 5 MCP tool names that have been migrated to skills.
|
|
15
|
-
* Used in smoke tests (Scenario 6) and anywhere a guard on migrated tools is needed.
|
|
16
|
-
*/
|
|
17
|
-
export const DEPRECATED_TOOLS = [
|
|
18
|
-
'execute_sdd_flow',
|
|
19
|
-
'implement_plan',
|
|
20
|
-
'multi_teammate_review',
|
|
21
|
-
'run_healing_loop',
|
|
22
|
-
'generate_orchestration_plan',
|
|
23
|
-
];
|
|
24
|
-
// ---------------------------------------------------------------------------
|
|
25
|
-
// Per-process warning dedup (one stderr line per tool name per process)
|
|
26
|
-
// ---------------------------------------------------------------------------
|
|
27
|
-
const _warned = new Set();
|
|
28
|
-
function warnOnce(toolName, skillPath) {
|
|
29
|
-
if (!_warned.has(toolName)) {
|
|
30
|
-
_warned.add(toolName);
|
|
31
|
-
process.stderr.write(`[planu] DEPRECATION: MCP tool "${toolName}" has been migrated to skill "${skillPath}". ` +
|
|
32
|
-
'Update callers to use the skill directly.\n');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
// ---------------------------------------------------------------------------
|
|
36
|
-
// Factory
|
|
37
|
-
// ---------------------------------------------------------------------------
|
|
38
|
-
/**
|
|
39
|
-
* Create a McpToolEntry-compatible deprecation stub.
|
|
40
|
-
*
|
|
41
|
-
* - Tool stays registered → callers never see "unknown tool".
|
|
42
|
-
* - Description starts with `[Deprecated]` → LLMs stop calling it.
|
|
43
|
-
* - Handler always returns success (no `isError`) regardless of input.
|
|
44
|
-
* - One stderr warning per process per tool (deduped).
|
|
45
|
-
*/
|
|
46
|
-
export function makeDeprecationStub(toolName, replacementSkillPath, replacementSkillName) {
|
|
47
|
-
const message = DEPRECATION_MESSAGE_TEMPLATE.replace('{skill}', replacementSkillName).replace('{path}', replacementSkillPath);
|
|
48
|
-
return {
|
|
49
|
-
name: toolName,
|
|
50
|
-
description: `[Deprecated] Migrated to ${replacementSkillName} skill. See ${replacementSkillPath}`,
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
52
|
-
schema: z.object({}).passthrough().shape,
|
|
53
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
54
|
-
handler: (_args) => {
|
|
55
|
-
warnOnce(toolName, replacementSkillPath);
|
|
56
|
-
return Promise.resolve(compactResult(message));
|
|
57
|
-
},
|
|
58
|
-
annotations: {
|
|
59
|
-
readOnlyHint: true,
|
|
60
|
-
title: `[Deprecated] ${toolName}`,
|
|
61
|
-
},
|
|
62
|
-
wrap: 'safe',
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=deprecated-stubs.js.map
|