@planu/cli 6.0.0 → 6.0.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.
Files changed (79) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/.planu-build.json +1 -1
  3. package/dist/cli/commands/job.js +7 -1
  4. package/dist/cli/router.js +24 -5
  5. package/dist/config/official-sdd-tools.d.ts +0 -1
  6. package/dist/config/official-sdd-tools.js +0 -3
  7. package/dist/core/spec-validator.js +1 -1
  8. package/dist/engine/coach/i18n.d.ts +1 -1
  9. package/dist/engine/coach/i18n.js +2 -2
  10. package/dist/engine/code-scanner/layer-scanner.d.ts +3 -1
  11. package/dist/engine/code-scanner/layer-scanner.js +19 -3
  12. package/dist/engine/convention-scanner/codebase-scanner.js +140 -8
  13. package/dist/engine/conventions-ttl.d.ts +0 -2
  14. package/dist/engine/conventions-ttl.js +1 -1
  15. package/dist/engine/evidence-gates/artifact-reader.d.ts +0 -2
  16. package/dist/engine/evidence-gates/artifact-reader.js +0 -2
  17. package/dist/engine/execution/deadline-io.d.ts +1 -1
  18. package/dist/engine/execution/deadline-io.js +2 -2
  19. package/dist/engine/execution/package-handoff-job-executor.d.ts +1 -1
  20. package/dist/engine/execution/package-handoff-job-executor.js +42 -13
  21. package/dist/engine/execution/startup-recovery.d.ts +3 -0
  22. package/dist/engine/execution/startup-recovery.js +15 -0
  23. package/dist/engine/execution/validate-job-executor.d.ts +1 -1
  24. package/dist/engine/execution/validate-job-executor.js +23 -3
  25. package/dist/engine/handoff-packager.d.ts +2 -0
  26. package/dist/engine/handoff-packager.js +25 -9
  27. package/dist/engine/network-policy.js +31 -0
  28. package/dist/engine/test-selection/policy.js +1 -1
  29. package/dist/engine/validation-evidence-ledger.js +8 -37
  30. package/dist/engine/validation-impact-planner.d.ts +1 -3
  31. package/dist/engine/validation-impact-planner.js +2 -18
  32. package/dist/engine/validator/analyzer.js +0 -1
  33. package/dist/engine/validator/reliability-gate.js +6 -1
  34. package/dist/index.js +3 -11
  35. package/dist/security/adapters/local-file.js +8 -1
  36. package/dist/security/secret-provider.js +0 -2
  37. package/dist/storage/migrations/sdd-core-v6.js +101 -23
  38. package/dist/storage/project-identity.js +18 -2
  39. package/dist/tools/check-readiness.js +45 -35
  40. package/dist/tools/create-spec.js +18 -22
  41. package/dist/tools/init-project/agents-md-writer.js +0 -3
  42. package/dist/tools/package-handoff.js +19 -16
  43. package/dist/tools/update-status/approval-gates.d.ts +1 -1
  44. package/dist/tools/update-status/approval-gates.js +28 -5
  45. package/dist/tools/update-status/evidence-payload.d.ts +0 -2
  46. package/dist/tools/update-status/index.d.ts +1 -1
  47. package/dist/tools/update-status/index.js +25 -12
  48. package/dist/tools/update-status/transition-guard.d.ts +1 -1
  49. package/dist/tools/update-status/transition-guard.js +18 -2
  50. package/dist/tools/validate.js +29 -7
  51. package/dist/types/common/learning.d.ts +0 -17
  52. package/dist/types/durable-job.d.ts +15 -1
  53. package/dist/types/index.d.ts +0 -3
  54. package/dist/types/index.js +0 -3
  55. package/dist/types/living-spec/annotations.d.ts +0 -30
  56. package/dist/types/living-spec/annotations.js +14 -0
  57. package/dist/types/living-spec.d.ts +0 -1
  58. package/dist/types/living-spec.js +0 -1
  59. package/dist/types/project/core.d.ts +0 -2
  60. package/dist/types/project/planu-config.d.ts +0 -1
  61. package/dist/types/readiness.d.ts +2 -0
  62. package/dist/types/security.d.ts +1 -1
  63. package/dist/types/spec-quality.d.ts +0 -20
  64. package/dist/types/timing.d.ts +0 -6
  65. package/dist/types/validation-evidence.d.ts +2 -2
  66. package/dist/types/validation.d.ts +2 -0
  67. package/package.json +10 -9
  68. package/scripts/check-reliability-policies.mjs +504 -0
  69. package/dist/engine/timing/structured-log.d.ts +0 -10
  70. package/dist/engine/timing/structured-log.js +0 -36
  71. package/dist/types/analysis-detection.d.ts +0 -14
  72. package/dist/types/analysis-detection.js +0 -5
  73. package/dist/types/lessons.d.ts +0 -28
  74. package/dist/types/lessons.js +0 -3
  75. package/dist/types/living-spec/dashboard-and-sync.d.ts +0 -82
  76. package/dist/types/living-spec/dashboard-and-sync.js +0 -3
  77. package/dist/types/vector-store.d.ts +0 -46
  78. package/dist/types/vector-store.js +0 -21
  79. package/planu-plugin.json +0 -35
@@ -1,46 +0,0 @@
1
- /** Type of document stored in the vector store. */
2
- /** A single document with its embedding vector. */
3
- /** A search result with its similarity score. */
4
- /** Configuration for the TF-IDF engine. */
5
- export interface TFIDFConfig {
6
- maxDimensions: number;
7
- minDocFrequency: number;
8
- stopWords: Set<string>;
9
- }
10
- /** Serializable TF-IDF engine state (SPEC-1345: persisted index). */
11
- export interface TFIDFExportedState {
12
- schemaVersion: number;
13
- docFreq: [string, number][];
14
- docCount: number;
15
- }
16
- /** A single corpus document as seen by the persisted semantic index (SPEC-1345). */
17
- export interface SemanticIndexDoc {
18
- id: string;
19
- content: string;
20
- }
21
- /** On-disk shape of a persisted TF-IDF index + hash manifest (SPEC-1345). */
22
- export interface PersistedSemanticIndex {
23
- schemaVersion: number;
24
- docHashes: Record<string, string>;
25
- docTokens: Record<string, string[]>;
26
- tfidfState: TFIDFExportedState;
27
- }
28
- /** Configuration for the HNSW index. */
29
- /** Abstract storage backend interface (SQLite or JSON fallback). */
30
- /** Result of a JSON-to-SQLite migration. */
31
- /** Scope parameter for semantic_search tool. */
32
- /** Input args for semantic_search tool handler. */
33
- /** Internal JSON storage shape for vector store data. */
34
- /** Row shape from the SQLite vectors table. */
35
- /** Dynamic import type for better-sqlite3 database. */
36
- /** Prepared statement from better-sqlite3. */
37
- /** Constructor type for better-sqlite3. */
38
- /** Warning emitted when a semantically similar pattern already exists. */
39
- /** Legacy pattern shape for migration. */
40
- /** Legacy knowledge shape for migration. */
41
- /** Collected text item ready for embedding during migration. */
42
- /** Legacy decision shape for migration. */
43
- /** Internal node in the HNSW graph. */
44
- /** Candidate returned from HNSW search. */
45
- /** Serialized HNSW state for persistence. */
46
- //# sourceMappingURL=vector-store.d.ts.map
@@ -1,21 +0,0 @@
1
- // types/vector-store.ts — Domain types for vector memory (SPEC-075).
2
- export {};
3
- /** Configuration for the HNSW index. */
4
- /** Abstract storage backend interface (SQLite or JSON fallback). */
5
- /** Result of a JSON-to-SQLite migration. */
6
- /** Scope parameter for semantic_search tool. */
7
- /** Input args for semantic_search tool handler. */
8
- /** Internal JSON storage shape for vector store data. */
9
- /** Row shape from the SQLite vectors table. */
10
- /** Dynamic import type for better-sqlite3 database. */
11
- /** Prepared statement from better-sqlite3. */
12
- /** Constructor type for better-sqlite3. */
13
- /** Warning emitted when a semantically similar pattern already exists. */
14
- /** Legacy pattern shape for migration. */
15
- /** Legacy knowledge shape for migration. */
16
- /** Collected text item ready for embedding during migration. */
17
- /** Legacy decision shape for migration. */
18
- /** Internal node in the HNSW graph. */
19
- /** Candidate returned from HNSW search. */
20
- /** Serialized HNSW state for persistence. */
21
- //# sourceMappingURL=vector-store.js.map
package/planu-plugin.json DELETED
@@ -1,35 +0,0 @@
1
- {
2
- "name": "dev.planu.cli",
3
- "displayName": "Planu — Spec Driven Development",
4
- "description": "Focused Spec Driven Development lifecycle for AI coding agents over stdio.",
5
- "version": "6.0.0",
6
- "icon": "assets/plugin/icon.svg",
7
- "command": ["npx", "@planu/cli@latest"],
8
- "packageName": "@planu/cli",
9
- "capabilities": {
10
- "tools": [
11
- "init_project",
12
- "create_spec",
13
- "list_specs",
14
- "challenge_spec",
15
- "check_readiness",
16
- "update_status",
17
- "bump_spec_version",
18
- "package_handoff",
19
- "reconcile_spec",
20
- "validate",
21
- "get_job",
22
- "restart_job",
23
- "planu_status"
24
- ],
25
- "resources": ["planu://process", "planu://specs"],
26
- "prompts": ["create-feature", "implement-spec", "project-status", "review-spec"],
27
- "subagents": ["planu-challenger", "planu-readiness-auditor", "planu-spec-implementer", "planu-validator"]
28
- },
29
- "compatibility": { "minimumHostVersion": "1.0.0", "requiredFeatures": ["mcp-tools", "file-editing"] },
30
- "repository": "https://github.com/planu-dev/planu",
31
- "author": "Planu",
32
- "license": "SEE LICENSE IN LICENSE",
33
- "homepage": "https://planu.dev",
34
- "keywords": ["sdd", "spec-driven-development", "mcp", "specs", "planning", "ai", "bdd", "tdd"]
35
- }