@planu/cli 4.4.3 → 4.5.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [4.5.0] - 2026-06-10
2
+
3
+ ### Features
4
+ - feat(create-spec): generate intent-grounded questions
5
+
6
+ ### Chores
7
+ - chore(deps): update release tooling
8
+
9
+
1
10
  ## [4.4.3] - 2026-06-09
2
11
 
3
12
  ### Features
@@ -4042,4 +4051,4 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) · Versioning:
4042
4051
  - Mermaid diagram generation (architecture, sequence, state machine, ER, data flow)
4043
4052
  - Multi-language i18n (EN/ES/PT) for generated specs
4044
4053
  - Clean Architecture (hexagonal) — engine, tools, storage, types layers
4045
- - 10,857 tests with ≥95% coverage
4054
+ - 10,857 tests with ≥95% coverage
@@ -5,6 +5,12 @@ const BACKEND_TERMS = /\b(api|endpoint|route|handler|migration|query|rpc|action|
5
5
  const INFRA_TERMS = /\b(deploy|ci|cd|docker|pipeline|config|env)\b/;
6
6
  const BILLING_TERMS = /\b(payment|billing|invoice|subscription|checkout|pricing|pay)\b/;
7
7
  const DATABASE_TERMS = /\b(database|schema|migration|table|query|sql|rls|rpc|persist|persistence|data access)\b/;
8
+ const ACTION_RE = /\b(add|build|create|fix|update|remove|delete|integrate|sync|import|export|approve|reject|upload|download|migrate|configure|validate)\b\s+(?:(?:a|an|the|new)\s+)?([a-z0-9][a-z0-9 -]{1,60})/i;
9
+ const ACTOR_TERMS = /\b(admin|administrator|manager|owner|customer|user|member|team|approver)\b/gi;
10
+ const DATA_OBJECT_TERMS = /\b(account|profile|request|invoice|subscription|payment|order|report|file|avatar|table|policy|record|settings)\b/gi;
11
+ const PERMISSION_TERMS = /\b(approval|approve|reject|admin|permission|role|rls|policy|access|auth|login|oauth|owner|manager)\b/;
12
+ const DESTRUCTIVE_TERMS = /\b(delete|remove|archive|discard|drop|truncate|revoke|reset)\b/;
13
+ const RISK_TERMS = /\b(approval|approve|payment|billing|auth|login|permission|role|delete|remove|migration|sync|webhook|external|api|rls|privacy|security)\b/gi;
8
14
  const PAYMENT_PROVIDERS = [
9
15
  { name: 'Stripe', pattern: /\bstripe\b/ },
10
16
  { name: 'PayPal', pattern: /\bpaypal\b/ },
@@ -33,7 +39,34 @@ export function extractSignals(description) {
33
39
  const hasBilling = BILLING_TERMS.test(lower) || namedProvider !== null;
34
40
  const wordCount = description.trim().split(/\s+/).length;
35
41
  const hasScope = wordCount >= 10;
36
- return { hasTarget, hasBilling, hasDatabase, hasUi, namedProvider, hasScope };
42
+ const actionMatch = ACTION_RE.exec(lower);
43
+ const action = actionMatch?.[1] ?? null;
44
+ const domainObject = cleanDomainObject(actionMatch?.[2] ?? null);
45
+ const actors = uniqueMatches(lower, ACTOR_TERMS);
46
+ const dataObjects = uniqueMatches(lower, DATA_OBJECT_TERMS);
47
+ const riskTerms = uniqueMatches(lower, RISK_TERMS);
48
+ const integrations = [
49
+ ...PAYMENT_PROVIDERS.filter(({ pattern }) => pattern.test(lower)).map(({ name }) => name),
50
+ ...extractExternalIntegrations(lower),
51
+ ];
52
+ const hasPermissionRisk = PERMISSION_TERMS.test(lower);
53
+ const hasDestructiveAction = DESTRUCTIVE_TERMS.test(lower);
54
+ return {
55
+ hasTarget,
56
+ hasBilling,
57
+ hasDatabase,
58
+ hasUi,
59
+ namedProvider,
60
+ hasScope,
61
+ action,
62
+ domainObject,
63
+ actors,
64
+ integrations,
65
+ dataObjects,
66
+ hasPermissionRisk,
67
+ hasDestructiveAction,
68
+ riskTerms,
69
+ };
37
70
  }
38
71
  function stripIncidentalReferences(description) {
39
72
  return description
@@ -41,4 +74,23 @@ function stripIncidentalReferences(description) {
41
74
  .replace(/\b\S+\/\S+\b/g, ' ')
42
75
  .replace(/\b[\w-]+\.(?:ts|tsx|js|jsx|mjs|cjs|json|md|css|scss|py|go|rs|java|rb|php)\b/g, ' ');
43
76
  }
77
+ function cleanDomainObject(value) {
78
+ if (value === null) {
79
+ return null;
80
+ }
81
+ const cleaned = value
82
+ .replace(/\b(that|with|to|from|when|where|and|or|but|using|in)\b.*$/i, '')
83
+ .replace(/\s+/g, ' ')
84
+ .trim();
85
+ return cleaned.length > 0 ? cleaned : null;
86
+ }
87
+ function uniqueMatches(text, pattern) {
88
+ const flags = pattern.flags.includes('g') ? pattern.flags : `${pattern.flags}g`;
89
+ const globalPattern = new RegExp(pattern.source, flags);
90
+ return Array.from(new Set(Array.from(text.matchAll(globalPattern)).map((match) => match[0])));
91
+ }
92
+ function extractExternalIntegrations(text) {
93
+ const matches = text.match(/\b([a-z][a-z0-9-]+)\s+(?:api|webhook|sdk|integration)\b/gi) ?? [];
94
+ return Array.from(new Set(matches.map((match) => match.replace(/\s+(api|webhook|sdk|integration)$/i, ''))));
95
+ }
44
96
  //# sourceMappingURL=answer-extractor.js.map
@@ -0,0 +1,3 @@
1
+ import type { DecisionGap, ProjectKnowledge, DescriptionSignals } from '../../types/index.js';
2
+ export declare function detectDecisionGaps(signals: DescriptionSignals, _projectContext: ProjectKnowledge | null): DecisionGap[];
3
+ //# sourceMappingURL=decision-gap-detector.d.ts.map
@@ -0,0 +1,162 @@
1
+ const MAX_GAPS = 3;
2
+ export function detectDecisionGaps(signals, _projectContext) {
3
+ const gaps = [
4
+ buildPermissionGap(signals),
5
+ buildProviderGap(signals),
6
+ buildBillingModelGap(signals),
7
+ buildDataGap(signals),
8
+ buildFailureGap(signals),
9
+ ].filter((gap) => gap !== null);
10
+ if (gaps.length === 0 && !signals.hasScope) {
11
+ gaps.push(buildBehaviorGap(signals));
12
+ }
13
+ return gaps.slice(0, MAX_GAPS);
14
+ }
15
+ function buildPermissionGap(signals) {
16
+ if (!signals.hasPermissionRisk || signals.actors.length > 0) {
17
+ return null;
18
+ }
19
+ const subject = formatSubject(signals);
20
+ return makeGap({
21
+ id: 'permission-owner',
22
+ kind: 'permission',
23
+ header: 'Permission',
24
+ question: `For ${subject}, who is allowed to perform this action? This changes permissions, validation, and audit behavior.`,
25
+ evidence: evidenceFrom(signals, ['permission-sensitive wording']),
26
+ impact: 'Changes authorization checks and acceptance criteria.',
27
+ options: options([
28
+ ['Role-based owner (Recommended)', 'Use the existing role or owner model for this action.'],
29
+ ['Admin only', 'Restrict the behavior to administrators.'],
30
+ ['Any signed-in user', 'Allow all authenticated users and keep checks minimal.'],
31
+ ]),
32
+ });
33
+ }
34
+ function buildProviderGap(signals) {
35
+ if (!signals.hasBilling || signals.namedProvider !== null) {
36
+ return null;
37
+ }
38
+ const subject = formatSubject(signals);
39
+ return makeGap({
40
+ id: 'payment-provider',
41
+ kind: 'provider',
42
+ header: 'Provider',
43
+ question: `For ${subject}, which payment provider should own the payment flow? This changes API contracts, webhook handling, and test fixtures.`,
44
+ evidence: evidenceFrom(signals, ['billing/payment wording']),
45
+ impact: 'Changes integration code, webhook behavior, and verification fixtures.',
46
+ options: options([
47
+ ['Stripe (Recommended)', 'Use the most common provider for subscription and checkout flows.'],
48
+ ['PayPal', 'Use PayPal checkout and payment APIs.'],
49
+ [
50
+ 'No provider yet',
51
+ 'Keep provider integration out of scope and define internal contracts only.',
52
+ ],
53
+ ]),
54
+ });
55
+ }
56
+ function buildBillingModelGap(signals) {
57
+ if (!signals.hasBilling) {
58
+ return null;
59
+ }
60
+ const subject = formatSubject(signals);
61
+ return makeGap({
62
+ id: 'billing-model',
63
+ kind: 'billing-model',
64
+ header: 'Billing',
65
+ question: `For ${subject}, is the billing behavior recurring, one-time, or invoice-based? This changes states, events, and acceptance criteria.`,
66
+ evidence: evidenceFrom(signals, ['billing/payment wording']),
67
+ impact: 'Changes lifecycle states and acceptance criteria.',
68
+ options: options([
69
+ ['Recurring subscription (Recommended)', 'Model ongoing subscriptions and renewal states.'],
70
+ ['One-time checkout', 'Model a single payment completion flow.'],
71
+ ['Invoice-based', 'Model invoice creation, payment, and overdue states.'],
72
+ ]),
73
+ });
74
+ }
75
+ function buildDataGap(signals) {
76
+ if (!signals.hasDatabase || signals.dataObjects.length > 0) {
77
+ return null;
78
+ }
79
+ const subject = formatSubject(signals);
80
+ return makeGap({
81
+ id: 'data-shape',
82
+ kind: 'data',
83
+ header: 'Data',
84
+ question: `For ${subject}, what data must be stored or updated? This changes schema, validation, and migration work.`,
85
+ evidence: evidenceFrom(signals, ['database/data wording']),
86
+ impact: 'Changes schema, persistence, and validation requirements.',
87
+ options: options([
88
+ [
89
+ 'Existing records only (Recommended)',
90
+ 'Use existing tables or records without a new schema.',
91
+ ],
92
+ ['New table or field', 'Add persistence changes and migration coverage.'],
93
+ ['Read-only data', 'Do not persist new state for this behavior.'],
94
+ ]),
95
+ });
96
+ }
97
+ function buildFailureGap(signals) {
98
+ if (signals.integrations.length === 0 &&
99
+ !signals.riskTerms.includes('sync') &&
100
+ !signals.riskTerms.includes('api')) {
101
+ return null;
102
+ }
103
+ const subject = formatSubject(signals);
104
+ return makeGap({
105
+ id: 'failure-handling',
106
+ kind: 'failure',
107
+ header: 'Failure',
108
+ question: `For ${subject}, what should happen if ${formatIntegration(signals)} fails? This changes retry, error, and user-visible behavior.`,
109
+ evidence: evidenceFrom(signals, signals.integrations.length > 0 ? signals.integrations : ['integration/API wording']),
110
+ impact: 'Changes error handling, retries, and tests.',
111
+ options: options([
112
+ ['Show recoverable error (Recommended)', 'Return a clear error and preserve current state.'],
113
+ ['Retry automatically', 'Retry transient failures before surfacing an error.'],
114
+ ['Queue for later', 'Persist work for asynchronous retry.'],
115
+ ]),
116
+ });
117
+ }
118
+ function buildBehaviorGap(signals) {
119
+ const subject = formatSubject(signals);
120
+ return makeGap({
121
+ id: 'behavior-outcome',
122
+ kind: 'behavior',
123
+ header: 'Behavior',
124
+ question: `For ${subject}, what observable outcome should prove the work is done? This becomes the primary acceptance criterion.`,
125
+ evidence: evidenceFrom(signals, ['short request']),
126
+ impact: 'Changes the main acceptance criterion and verification command.',
127
+ options: options([
128
+ ['User-visible workflow (Recommended)', 'Define the end-to-end behavior a user can observe.'],
129
+ ['Backend behavior', 'Define API, persistence, job, or integration behavior.'],
130
+ ['Cleanup or fix', 'Define the before/after bug or cleanup result.'],
131
+ ]),
132
+ });
133
+ }
134
+ function makeGap(gap) {
135
+ return { ...gap, multiSelect: gap.multiSelect ?? false, blocking: true };
136
+ }
137
+ function formatSubject(signals) {
138
+ const action = signals.action ?? 'this request';
139
+ const object = signals.domainObject;
140
+ return object === null ? action : `${action} ${object}`;
141
+ }
142
+ function formatIntegration(signals) {
143
+ if (signals.integrations.length > 0) {
144
+ return signals.integrations[0] ?? 'the integration';
145
+ }
146
+ if (signals.riskTerms.includes('sync')) {
147
+ return 'the sync';
148
+ }
149
+ return 'the API';
150
+ }
151
+ function evidenceFrom(signals, extra) {
152
+ return [
153
+ ...(signals.action ? [`action:${signals.action}`] : []),
154
+ ...(signals.domainObject ? [`object:${signals.domainObject}`] : []),
155
+ ...signals.riskTerms.map((term) => `risk:${term}`),
156
+ ...extra,
157
+ ].slice(0, 6);
158
+ }
159
+ function options(items) {
160
+ return items.map(([label, description]) => ({ label, description }));
161
+ }
162
+ //# sourceMappingURL=decision-gap-detector.js.map
@@ -0,0 +1,3 @@
1
+ import type { InteractiveQuestion, QuestionGroundingContext, QuestionGroundingResult } from '../../types/index.js';
2
+ export declare function validateQuestionGrounding(question: InteractiveQuestion, context: QuestionGroundingContext): QuestionGroundingResult;
3
+ //# sourceMappingURL=question-grounding-gate.d.ts.map
@@ -0,0 +1,54 @@
1
+ const GENERIC_QUESTION_PATTERNS = [
2
+ /^who (are|is) the users\??$/i,
3
+ /^what are the edge cases\??$/i,
4
+ /^what should happen\??$/i,
5
+ /^what is the scope\??$/i,
6
+ /^what data is needed\??$/i,
7
+ /^what are the requirements\??$/i,
8
+ ];
9
+ export function validateQuestionGrounding(question, context) {
10
+ const text = question.question.trim();
11
+ if (GENERIC_QUESTION_PATTERNS.some((pattern) => pattern.test(text))) {
12
+ return { passed: false, reason: 'Question is a generic reusable prompt.' };
13
+ }
14
+ const lowerQuestion = text.toLowerCase();
15
+ const lowerEvidence = [context.requestText, ...context.gap.evidence].join(' ').toLowerCase();
16
+ const evidenceTokens = tokenSet(lowerEvidence);
17
+ const hasRequestEvidence = Array.from(evidenceTokens).some((token) => token.length >= 3 && lowerQuestion.includes(token));
18
+ if (!hasRequestEvidence) {
19
+ return {
20
+ passed: false,
21
+ reason: 'Question does not include evidence from the request or detected gap.',
22
+ };
23
+ }
24
+ if (!/\bchanges?\b|\bthis changes\b|\baffects?\b|\bbecause\b|\bbecomes?\b/i.test(text)) {
25
+ return {
26
+ passed: false,
27
+ reason: 'Question does not explain why the answer matters for the spec.',
28
+ };
29
+ }
30
+ return { passed: true };
31
+ }
32
+ function tokenSet(text) {
33
+ return new Set(text
34
+ .replace(/[^a-z0-9 ]/gi, ' ')
35
+ .split(/\s+/)
36
+ .filter((token) => !STOP_WORDS.has(token) && token.length > 2));
37
+ }
38
+ const STOP_WORDS = new Set([
39
+ 'the',
40
+ 'and',
41
+ 'for',
42
+ 'this',
43
+ 'that',
44
+ 'with',
45
+ 'from',
46
+ 'what',
47
+ 'when',
48
+ 'where',
49
+ 'should',
50
+ 'action',
51
+ 'object',
52
+ 'risk',
53
+ ]);
54
+ //# sourceMappingURL=question-grounding-gate.js.map
@@ -1,4 +1,4 @@
1
1
  import type { InteractiveQuestion, ProjectKnowledge } from '../../types/index.js';
2
- /** Generate clarification questions based on description gaps and project context. */
2
+ /** Generate clarification questions based on request-specific missing decisions. */
3
3
  export declare function generateInteractiveQuestions(description: string, knowledge: ProjectKnowledge | null): InteractiveQuestion[];
4
4
  //# sourceMappingURL=question-generator.d.ts.map
@@ -1,101 +1,25 @@
1
- // tools/create-spec/question-generator.ts — SPEC-463 / SPEC-619 / SPEC-624
2
- // Config-driven interactive question generation with answer pre-extraction.
3
- import { t } from '../../i18n/index.js';
1
+ // tools/create-spec/question-generator.ts — SPEC-1083
2
+ // Dynamic clarification questions grounded in the user's requested work.
4
3
  import { extractSignals } from '../../engine/elicitation/answer-extractor.js';
5
- import { buildTargetOptions, buildPaymentProviderOptions, buildBillingModelOptions, buildScopeOptions, buildDatabaseOptions, buildUiTypeOptions, } from '../../engine/elicitation/option-builder.js';
6
- import dimensionsConfig from '../../config/elicitation-dimensions.json' with { type: 'json' };
7
- const MAX_QUESTIONS = 4;
8
- const DIMENSIONS = dimensionsConfig;
9
- /** Generate clarification questions based on description gaps and project context. */
4
+ import { detectDecisionGaps } from '../../engine/elicitation/decision-gap-detector.js';
5
+ import { validateQuestionGrounding } from '../../engine/elicitation/question-grounding-gate.js';
6
+ /** Generate clarification questions based on request-specific missing decisions. */
10
7
  export function generateInteractiveQuestions(description, knowledge) {
11
8
  const signals = extractSignals(description);
12
- const questions = [];
13
- for (const dim of DIMENSIONS) {
14
- if (questions.length >= MAX_QUESTIONS) {
15
- break;
16
- }
17
- if (!shouldInclude(dim, signals, knowledge)) {
18
- continue;
19
- }
20
- questions.push({
21
- question: t(dim.questionKey),
22
- header: t(dim.headerKey),
23
- options: buildOptions(dim.optionSet, knowledge),
24
- multiSelect: dim.multiSelect,
25
- });
26
- }
27
- return questions;
28
- }
29
- // ---------------------------------------------------------------------------
30
- // Helpers
31
- // ---------------------------------------------------------------------------
32
- function isSuppressed(key, signals) {
33
- if (key === 'hasTarget') {
34
- return signals.hasTarget;
35
- }
36
- if (key === 'hasScope') {
37
- return signals.hasScope;
38
- }
39
- if (key === 'namedProvider') {
40
- return signals.namedProvider !== null;
41
- }
42
- return false;
43
- }
44
- function hasRequiredSignal(key, signals) {
45
- if (key === 'hasBilling') {
46
- return signals.hasBilling;
47
- }
48
- if (key === 'hasDatabase') {
49
- return signals.hasDatabase;
50
- }
51
- if (key === 'hasUi') {
52
- return signals.hasUi;
53
- }
54
- if (key === 'hasTarget') {
55
- return signals.hasTarget;
56
- }
57
- if (key === 'hasScope') {
58
- return signals.hasScope;
59
- }
60
- return false;
61
- }
62
- function matchesDNA(required, knowledge) {
63
- if (!knowledge) {
64
- return false;
65
- }
66
- const database = knowledge.database;
67
- const stack = knowledge.stack;
68
- const framework = knowledge.framework ?? '';
69
- return required.some((r) => database === r || framework === r || stack.includes(r));
70
- }
71
- function shouldInclude(dim, signals, knowledge) {
72
- if (dim.suppressWhen !== undefined && isSuppressed(dim.suppressWhen, signals)) {
73
- return false;
74
- }
75
- if (dim.requiresSignal !== undefined && !hasRequiredSignal(dim.requiresSignal, signals)) {
76
- return false;
77
- }
78
- if (dim.requiresDNA !== undefined) {
79
- return matchesDNA(dim.requiresDNA, knowledge);
80
- }
81
- return true;
82
- }
83
- function buildOptions(optionSet, knowledge) {
84
- switch (optionSet) {
85
- case 'target':
86
- return buildTargetOptions();
87
- case 'payment_provider':
88
- return buildPaymentProviderOptions(knowledge);
89
- case 'billing_model':
90
- return buildBillingModelOptions();
91
- case 'scope':
92
- return buildScopeOptions();
93
- case 'database':
94
- return buildDatabaseOptions();
95
- case 'uiType':
96
- return buildUiTypeOptions();
97
- default:
98
- return [];
99
- }
9
+ const gaps = detectDecisionGaps(signals, knowledge);
10
+ return gaps.flatMap((gap) => {
11
+ const question = {
12
+ question: gap.question,
13
+ header: gap.header,
14
+ options: gap.options,
15
+ multiSelect: gap.multiSelect,
16
+ };
17
+ return validateQuestionGrounding(question, {
18
+ gap,
19
+ requestText: description,
20
+ }).passed
21
+ ? [question]
22
+ : [];
23
+ });
100
24
  }
101
25
  //# sourceMappingURL=question-generator.js.map
@@ -13,6 +13,14 @@ export interface DescriptionSignals {
13
13
  hasUi: boolean;
14
14
  namedProvider: string | null;
15
15
  hasScope: boolean;
16
+ action: string | null;
17
+ domainObject: string | null;
18
+ actors: string[];
19
+ integrations: string[];
20
+ dataObjects: string[];
21
+ hasPermissionRisk: boolean;
22
+ hasDestructiveAction: boolean;
23
+ riskTerms: string[];
16
24
  }
17
25
  /** Which host mechanism the LLM should use to relay interactive questions. */
18
26
  export type HostHint = 'claude-code' | 'cursor' | 'codex' | 'gemini' | 'universal';
@@ -1,4 +1,5 @@
1
1
  import type { InteractiveQuestion } from './clarification.js';
2
+ import type { InteractiveOption } from './interactive-question.js';
2
3
  /** Primitive field types supported by the MCP elicitation protocol. */
3
4
  export type ElicitationFieldType = 'text' | 'number' | 'boolean' | 'enum' | 'multi-select';
4
5
  /** Shared base for all elicitation field definitions. */
@@ -174,6 +175,26 @@ export type ElicitOrFallbackOutcome = {
174
175
  * - 'technical': inferred from codebase signals; elicitation is skipped
175
176
  */
176
177
  export type DecisionType = 'policy' | 'business' | 'technical';
178
+ export type DecisionGapKind = 'behavior' | 'permission' | 'provider' | 'billing-model' | 'data' | 'failure' | 'scope';
179
+ export interface DecisionGap {
180
+ id: string;
181
+ kind: DecisionGapKind;
182
+ header: string;
183
+ question: string;
184
+ evidence: string[];
185
+ impact: string;
186
+ options: InteractiveOption[];
187
+ multiSelect: boolean;
188
+ blocking: boolean;
189
+ }
190
+ export interface QuestionGroundingContext {
191
+ gap: DecisionGap;
192
+ requestText: string;
193
+ }
194
+ export interface QuestionGroundingResult {
195
+ passed: boolean;
196
+ reason?: string;
197
+ }
177
198
  /**
178
199
  * Outcome when the decision was already cached in conventions.json.
179
200
  * The caller can return this value immediately without prompting the user.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planu/cli",
3
- "version": "4.4.3",
3
+ "version": "4.5.0",
4
4
  "description": "Planu — MCP Server for Spec Driven Development with native Rust acceleration for hot paths. Cross-platform (Linux/macOS/Windows, x64/arm64, glibc/musl).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -34,14 +34,14 @@
34
34
  "packageName": "@planu/core"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@planu/core-darwin-arm64": "4.4.3",
38
- "@planu/core-darwin-x64": "4.4.3",
39
- "@planu/core-linux-arm64-gnu": "4.4.3",
40
- "@planu/core-linux-arm64-musl": "4.4.3",
41
- "@planu/core-linux-x64-gnu": "4.4.3",
42
- "@planu/core-linux-x64-musl": "4.4.3",
43
- "@planu/core-win32-arm64-msvc": "4.4.3",
44
- "@planu/core-win32-x64-msvc": "4.4.3"
37
+ "@planu/core-darwin-arm64": "4.5.0",
38
+ "@planu/core-darwin-x64": "4.5.0",
39
+ "@planu/core-linux-arm64-gnu": "4.5.0",
40
+ "@planu/core-linux-arm64-musl": "4.5.0",
41
+ "@planu/core-linux-x64-gnu": "4.5.0",
42
+ "@planu/core-linux-x64-musl": "4.5.0",
43
+ "@planu/core-win32-arm64-msvc": "4.5.0",
44
+ "@planu/core-win32-x64-msvc": "4.5.0"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=24.0.0"
@@ -170,7 +170,7 @@
170
170
  "@commitlint/cli": "^21.0.2",
171
171
  "@commitlint/config-conventional": "^21.0.2",
172
172
  "@eslint/js": "^10.0.1",
173
- "@napi-rs/cli": "^3.7.0",
173
+ "@napi-rs/cli": "^3.7.1",
174
174
  "@secretlint/secretlint-rule-no-homedir": "^13.0.2",
175
175
  "@secretlint/secretlint-rule-preset-recommend": "^13.0.2",
176
176
  "@semantic-release/changelog": "^6.0.3",
@@ -198,7 +198,7 @@
198
198
  "madge": "^8.0.0",
199
199
  "prettier": "^3.8.4",
200
200
  "secretlint": "^13.0.2",
201
- "semantic-release": "^25.0.3",
201
+ "semantic-release": "^25.0.5",
202
202
  "tsc-alias": "^1.8.17",
203
203
  "type-coverage": "^2.29.7",
204
204
  "typescript": "^6.0.3",
package/planu-native.json CHANGED
@@ -1,20 +1,26 @@
1
1
  {
2
2
  "name": "dev.planu.native",
3
3
  "displayName": "Planu Native Lightweight Surface",
4
- "version": "4.4.3",
4
+ "version": "4.5.0",
5
5
  "packageName": "@planu/cli",
6
6
  "modes": {
7
7
  "lightweight": {
8
8
  "requiresMcp": false,
9
9
  "requiresDaemon": false,
10
- "hosts": ["codex", "claude-code"],
10
+ "hosts": [
11
+ "codex",
12
+ "claude-code"
13
+ ],
11
14
  "commands": [
12
15
  {
13
16
  "id": "planu.status",
14
17
  "title": "Project status",
15
18
  "description": "Show the compact Planu project snapshot without loading the MCP tool graph.",
16
19
  "invocation": "planu status",
17
- "hosts": ["codex", "claude-code"],
20
+ "hosts": [
21
+ "codex",
22
+ "claude-code"
23
+ ],
18
24
  "requiresMcp": false,
19
25
  "requiresDaemon": false,
20
26
  "mapsTo": "handlePlanStatus"
@@ -24,7 +30,10 @@
24
30
  "title": "Create spec",
25
31
  "description": "Create a new spec through the CLI-backed SDD contract.",
26
32
  "invocation": "planu spec create \"<title>\"",
27
- "hosts": ["codex", "claude-code"],
33
+ "hosts": [
34
+ "codex",
35
+ "claude-code"
36
+ ],
28
37
  "requiresMcp": false,
29
38
  "requiresDaemon": false,
30
39
  "mapsTo": "handleCreateSpec"
@@ -34,7 +43,10 @@
34
43
  "title": "List specs",
35
44
  "description": "List specs in the current project with optional status/type filters.",
36
45
  "invocation": "planu spec list",
37
- "hosts": ["codex", "claude-code"],
46
+ "hosts": [
47
+ "codex",
48
+ "claude-code"
49
+ ],
38
50
  "requiresMcp": false,
39
51
  "requiresDaemon": false,
40
52
  "mapsTo": "handleListSpecs"
@@ -44,7 +56,10 @@
44
56
  "title": "Validate spec",
45
57
  "description": "Validate a spec against the current codebase from the native CLI surface.",
46
58
  "invocation": "planu spec validate SPEC-001",
47
- "hosts": ["codex", "claude-code"],
59
+ "hosts": [
60
+ "codex",
61
+ "claude-code"
62
+ ],
48
63
  "requiresMcp": false,
49
64
  "requiresDaemon": false,
50
65
  "mapsTo": "handleValidate"
@@ -54,7 +69,10 @@
54
69
  "title": "Audit technical debt",
55
70
  "description": "Run the read-only project audit path for lightweight debt checks.",
56
71
  "invocation": "planu audit debt",
57
- "hosts": ["codex", "claude-code"],
72
+ "hosts": [
73
+ "codex",
74
+ "claude-code"
75
+ ],
58
76
  "requiresMcp": false,
59
77
  "requiresDaemon": false,
60
78
  "mapsTo": "handleAudit"
@@ -64,7 +82,10 @@
64
82
  "title": "Check release readiness",
65
83
  "description": "Check local branch cleanliness and main/develop/release sync readiness.",
66
84
  "invocation": "planu release check",
67
- "hosts": ["codex", "claude-code"],
85
+ "hosts": [
86
+ "codex",
87
+ "claude-code"
88
+ ],
68
89
  "requiresMcp": false,
69
90
  "requiresDaemon": false,
70
91
  "mapsTo": "releaseCommand"
package/planu-plugin.json CHANGED
@@ -2,9 +2,12 @@
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": "4.4.3",
5
+ "version": "4.5.0",
6
6
  "icon": "assets/plugin/icon.svg",
7
- "command": ["npx", "@planu/cli@latest"],
7
+ "command": [
8
+ "npx",
9
+ "@planu/cli@latest"
10
+ ],
8
11
  "packageName": "@planu/cli",
9
12
  "capabilities": {
10
13
  "tools": [
@@ -23,17 +26,42 @@
23
26
  "create_skill",
24
27
  "skill_search"
25
28
  ],
26
- "resources": ["planu://specs/list", "planu://specs/{id}", "planu://project/status", "planu://roadmap"],
27
- "prompts": ["create-spec-from-idea", "review-spec-readiness", "generate-implementation-plan"],
28
- "subagents": ["sdd-orchestrator", "spec-challenger", "test-generator"]
29
+ "resources": [
30
+ "planu://specs/list",
31
+ "planu://specs/{id}",
32
+ "planu://project/status",
33
+ "planu://roadmap"
34
+ ],
35
+ "prompts": [
36
+ "create-spec-from-idea",
37
+ "review-spec-readiness",
38
+ "generate-implementation-plan"
39
+ ],
40
+ "subagents": [
41
+ "sdd-orchestrator",
42
+ "spec-challenger",
43
+ "test-generator"
44
+ ]
29
45
  },
30
46
  "compatibility": {
31
47
  "minimumHostVersion": "1.0.0",
32
- "requiredFeatures": ["mcp-tools", "file-editing"]
48
+ "requiredFeatures": [
49
+ "mcp-tools",
50
+ "file-editing"
51
+ ]
33
52
  },
34
53
  "repository": "https://github.com/planu-dev/planu",
35
54
  "author": "Planu",
36
55
  "license": "MIT",
37
56
  "homepage": "https://planu.dev",
38
- "keywords": ["sdd", "spec-driven-development", "mcp", "specs", "planning", "ai", "bdd", "tdd"]
57
+ "keywords": [
58
+ "sdd",
59
+ "spec-driven-development",
60
+ "mcp",
61
+ "specs",
62
+ "planning",
63
+ "ai",
64
+ "bdd",
65
+ "tdd"
66
+ ]
39
67
  }