@planu/cli 5.3.26 → 5.3.28

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 (85) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cli/commands/doctor.d.ts +4 -10
  3. package/dist/cli/commands/doctor.js +5 -31
  4. package/dist/cli/commands/inspect.js +2 -14
  5. package/dist/cli/commands/offline.d.ts +1 -2
  6. package/dist/cli/commands/offline.js +24 -41
  7. package/dist/config/release-policy.json +1 -79
  8. package/dist/engine/auto-updater/release-verifier.js +17 -35
  9. package/dist/engine/core-bridge.d.ts +6 -23
  10. package/dist/engine/core-bridge.js +35 -376
  11. package/dist/engine/execution/job-runtime.d.ts +0 -11
  12. package/dist/engine/execution/job-runtime.js +0 -23
  13. package/dist/engine/handoff-artifacts/io.js +1 -0
  14. package/dist/engine/handoff-artifacts/schemas.d.ts +46 -0
  15. package/dist/engine/handoff-artifacts/schemas.js +15 -0
  16. package/dist/engine/lifecycle-reconciliation.js +6 -5
  17. package/dist/engine/living-spec/annotation-parser.js +0 -14
  18. package/dist/engine/project-graph/native.js +2 -2
  19. package/dist/engine/sandbox/profiles/macos.sb +33 -0
  20. package/dist/engine/scan-project/module-discoverer.js +10 -53
  21. package/dist/engine/scope-boundaries/contradiction-checker.js +1 -1
  22. package/dist/engine/validation/validation-receipt.d.ts +5 -0
  23. package/dist/engine/validation/validation-receipt.js +9 -1
  24. package/dist/engine/validator/deep-code-checker.js +19 -26
  25. package/dist/engine/validator/validation-report-writer.d.ts +1 -0
  26. package/dist/engine/validator/validation-report-writer.js +3 -2
  27. package/dist/security/adapters/macos-keychain.d.ts +5 -3
  28. package/dist/security/adapters/macos-keychain.js +46 -20
  29. package/dist/tools/create-spec/autopilot-analyzer.d.ts +1 -1
  30. package/dist/tools/create-spec/autopilot-analyzer.js +2 -2
  31. package/dist/tools/create-spec/relevance-scorer.d.ts +1 -1
  32. package/dist/tools/create-spec/relevance-scorer.js +1 -17
  33. package/dist/tools/create-spec.js +1 -1
  34. package/dist/tools/update-status/dod-gates.d.ts +1 -0
  35. package/dist/tools/update-status/dod-gates.js +123 -4
  36. package/dist/types/atomic-upgrade.d.ts +0 -2
  37. package/dist/types/core-bridge.d.ts +0 -108
  38. package/dist/types/core-bridge.js +1 -1
  39. package/dist/types/durable-job.d.ts +0 -40
  40. package/dist/types/handoff-artifacts.d.ts +17 -1
  41. package/dist/types/security.d.ts +0 -5
  42. package/dist/types/transition-log.d.ts +1 -1
  43. package/package.json +7 -43
  44. package/planu-plugin.json +1 -1
  45. package/dist/config/native-release-public-key.pem +0 -3
  46. package/dist/config/native-targets.json +0 -87
  47. package/dist/engine/execution/job-executor.d.ts +0 -16
  48. package/dist/engine/execution/job-executor.js +0 -140
  49. package/dist/engine/execution/native-relevance-scorer.d.ts +0 -6
  50. package/dist/engine/execution/native-relevance-scorer.js +0 -64
  51. package/dist/engine/execution/native-worker-dispatch.d.ts +0 -3
  52. package/dist/engine/execution/native-worker-dispatch.js +0 -46
  53. package/dist/engine/execution/native-worker-protocol.d.ts +0 -6
  54. package/dist/engine/execution/native-worker-protocol.js +0 -33
  55. package/dist/engine/execution/native-worker-runtime.d.ts +0 -4
  56. package/dist/engine/execution/native-worker-runtime.js +0 -177
  57. package/dist/engine/execution/native-worker-thread.d.ts +0 -2
  58. package/dist/engine/execution/native-worker-thread.js +0 -66
  59. package/dist/engine/macos-keychain-native-port.d.ts +0 -10
  60. package/dist/engine/macos-keychain-native-port.js +0 -64
  61. package/dist/engine/native-capability-policy.d.ts +0 -4
  62. package/dist/engine/native-capability-policy.js +0 -24
  63. package/dist/engine/native-platform.d.ts +0 -3
  64. package/dist/engine/native-platform.js +0 -44
  65. package/dist/engine/native-runtime-handshake.d.ts +0 -20
  66. package/dist/engine/native-runtime-handshake.js +0 -230
  67. package/dist/engine/planu-core.darwin-arm64.node.manifest.json +0 -39
  68. package/dist/engine/planu-core.darwin-arm64.node.sbom.json +0 -1310
  69. package/dist/engine/planu-core.darwin-x64.node.manifest.json +0 -39
  70. package/dist/engine/planu-core.darwin-x64.node.sbom.json +0 -1310
  71. package/dist/engine/planu-core.linux-arm64-gnu.node.manifest.json +0 -38
  72. package/dist/engine/planu-core.linux-arm64-gnu.node.sbom.json +0 -1310
  73. package/dist/engine/planu-core.linux-arm64-musl.node.manifest.json +0 -38
  74. package/dist/engine/planu-core.linux-arm64-musl.node.sbom.json +0 -1310
  75. package/dist/engine/planu-core.linux-x64-gnu.node.manifest.json +0 -38
  76. package/dist/engine/planu-core.linux-x64-gnu.node.sbom.json +0 -1310
  77. package/dist/engine/planu-core.linux-x64-musl.node.manifest.json +0 -38
  78. package/dist/engine/planu-core.linux-x64-musl.node.sbom.json +0 -1310
  79. package/dist/engine/planu-core.win32-arm64-msvc.node.manifest.json +0 -38
  80. package/dist/engine/planu-core.win32-arm64-msvc.node.sbom.json +0 -1310
  81. package/dist/engine/planu-core.win32-x64-msvc.node.manifest.json +0 -38
  82. package/dist/engine/planu-core.win32-x64-msvc.node.sbom.json +0 -1310
  83. package/dist/types/native-worker.d.ts +0 -48
  84. package/dist/types/native-worker.js +0 -2
  85. package/planu-native.json +0 -82
@@ -1,48 +0,0 @@
1
- import type { Worker } from 'node:worker_threads';
2
- export type NativeWorkerOperation = 'scan-and-hash-files' | 'scan-project-metadata' | 'scan-spec-annotations' | 'detect-drift' | 'scan-specs' | 'find-relevant-files' | 'scan-project-graph-sources';
3
- export interface NativeWorkerHandshake {
4
- readonly kind: 'handshake';
5
- readonly protocolAbi: number;
6
- readonly capabilityAbi: number;
7
- readonly storageSchema: number;
8
- readonly schemaHash: string;
9
- readonly capabilities: readonly NativeWorkerOperation[];
10
- readonly engineVersion: string | null;
11
- readonly target: string | null;
12
- readonly artifactHash: string | null;
13
- readonly compatible: boolean;
14
- }
15
- export interface NativeWorkerRequest {
16
- readonly kind: 'request';
17
- readonly secret: string;
18
- readonly requestId: string;
19
- readonly projectId: string;
20
- readonly deadlineAt: number;
21
- readonly cancellationId: string;
22
- readonly operation: NativeWorkerOperation;
23
- readonly payload: Readonly<Record<string, unknown>>;
24
- }
25
- export type NativeWorkerResponse = {
26
- readonly kind: 'result';
27
- readonly requestId: string;
28
- readonly value: unknown;
29
- } | {
30
- readonly kind: 'error';
31
- readonly requestId: string;
32
- readonly message: string;
33
- };
34
- export interface NativeWorkerCall {
35
- readonly projectId: string;
36
- readonly operation: NativeWorkerOperation;
37
- readonly payload: Readonly<Record<string, unknown>>;
38
- readonly deadlineAt: number;
39
- readonly requestId?: string;
40
- readonly cancellationId?: string;
41
- readonly signal?: AbortSignal;
42
- }
43
- export type NativeWorkerFactory = (url: URL, options: {
44
- workerData: {
45
- secret: string;
46
- };
47
- }) => Worker;
48
- //# sourceMappingURL=native-worker.d.ts.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=native-worker.js.map
package/planu-native.json DELETED
@@ -1,82 +0,0 @@
1
- {
2
- "name": "dev.planu.native",
3
- "displayName": "Planu Native Lightweight Surface",
4
- "version": "5.3.26",
5
- "packageName": "@planu/cli",
6
- "modes": {
7
- "lightweight": {
8
- "requiresMcp": false,
9
- "requiresDaemon": false,
10
- "hosts": ["codex", "claude-code"],
11
- "commands": [
12
- {
13
- "id": "planu.status",
14
- "title": "Project status",
15
- "description": "Show the compact Planu project snapshot without loading the MCP tool graph.",
16
- "invocation": "planu status",
17
- "hosts": ["codex", "claude-code"],
18
- "requiresMcp": false,
19
- "requiresDaemon": false,
20
- "mapsTo": "handlePlanStatus"
21
- },
22
- {
23
- "id": "planu.spec.create",
24
- "title": "Create spec",
25
- "description": "Create a new spec through the CLI-backed SDD contract.",
26
- "invocation": "planu spec create \"<title>\"",
27
- "hosts": ["codex", "claude-code"],
28
- "requiresMcp": false,
29
- "requiresDaemon": false,
30
- "mapsTo": "handleCreateSpec"
31
- },
32
- {
33
- "id": "planu.spec.list",
34
- "title": "List specs",
35
- "description": "List specs in the current project with optional status/type filters.",
36
- "invocation": "planu spec list",
37
- "hosts": ["codex", "claude-code"],
38
- "requiresMcp": false,
39
- "requiresDaemon": false,
40
- "mapsTo": "handleListSpecs"
41
- },
42
- {
43
- "id": "planu.spec.validate",
44
- "title": "Validate spec",
45
- "description": "Validate a spec against the current codebase from the native CLI surface.",
46
- "invocation": "planu spec validate SPEC-001",
47
- "hosts": ["codex", "claude-code"],
48
- "requiresMcp": false,
49
- "requiresDaemon": false,
50
- "mapsTo": "handleValidate"
51
- },
52
- {
53
- "id": "planu.audit.debt",
54
- "title": "Audit technical debt",
55
- "description": "Run the read-only project audit path for lightweight debt checks.",
56
- "invocation": "planu audit debt",
57
- "hosts": ["codex", "claude-code"],
58
- "requiresMcp": false,
59
- "requiresDaemon": false,
60
- "mapsTo": "handleAudit"
61
- },
62
- {
63
- "id": "planu.release.check",
64
- "title": "Check release readiness",
65
- "description": "Check local-first release readiness, branch cleanliness, and optional gitflow drift.",
66
- "invocation": "planu release check",
67
- "hosts": ["codex", "claude-code"],
68
- "requiresMcp": false,
69
- "requiresDaemon": false,
70
- "mapsTo": "releaseCommand"
71
- }
72
- ],
73
- "fullMcpFallback": "Use full MCP mode for advanced lifecycle mutations, generators, governance, and automation beyond the curated lightweight commands."
74
- },
75
- "fullMcp": {
76
- "requiresMcp": true,
77
- "requiresDaemon": false,
78
- "manifest": "planu-plugin.json",
79
- "useWhen": "Use full MCP mode when the task needs the complete Planu tool graph, MCP resources, prompts, or multi-step automation."
80
- }
81
- }
82
- }