driftseal 0.6.0 → 1.0.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/README.md CHANGED
@@ -216,6 +216,7 @@ Single-step commands that only build, check, or record work already done — com
216
216
  | `driftseal hook install --target TARGET [--scope project\|global] [--root path] [--force]` | Install advisory lifecycle reminders into Kimi Code, Claude Code, or Codex. |
217
217
  | `driftseal hook prompt\|stop [--format plain\|claude-code]` | Emit the reminder a lifecycle hook injects; never blocks. |
218
218
  | `driftseal init` | Add the adoption protocol to `AGENTS.md`. |
219
+ | `driftseal --version` or `driftseal -V` | Print the installed DriftSeal version. |
219
220
  | `driftseal help` | Print CLI usage. |
220
221
 
221
222
  When `begin` declares one or more `--decision <id>` links, every linked
package/README.zh-CN.md CHANGED
@@ -210,6 +210,7 @@ driftseal end \
210
210
  | `driftseal hook install --target TARGET [--scope project\|global] [--root path] [--force]` | 把建议性的 lifecycle 提醒安装到 Kimi Code、Claude Code 或 Codex。 |
211
211
  | `driftseal hook prompt\|stop [--format plain\|claude-code]` | 输出 lifecycle hook 注入的提醒;绝不阻断。 |
212
212
  | `driftseal init` | 把接入协议写入 `AGENTS.md`。 |
213
+ | `driftseal --version` 或 `driftseal -V` | 输出当前安装的 DriftSeal 版本。 |
213
214
  | `driftseal help` | 查看 CLI 用法。 |
214
215
 
215
216
  如果 `begin` 通过一个或多个 `--decision <id>` 声明了关联,那么 intent
package/bin/driftseal.js CHANGED
@@ -24,6 +24,7 @@ const path = require('path');
24
24
  const crypto = require('crypto');
25
25
  const os = require('os');
26
26
  const { execFileSync } = require('child_process');
27
+ const { version: PACKAGE_VERSION } = require('../package.json');
27
28
 
28
29
  const END_STATUSES = ['completed', 'partial', 'failed', 'abandoned'];
29
30
  const DECISION_STATUSES = [
@@ -2524,6 +2525,7 @@ usage:
2524
2525
  driftseal hook prompt|stop [--format plain|claude-code]
2525
2526
  emit the reminder a lifecycle hook injects; never blocks
2526
2527
  driftseal init inject intent and decision protocols into ./AGENTS.md
2528
+ driftseal --version | -V print the installed DriftSeal version
2527
2529
  driftseal help
2528
2530
 
2529
2531
  decision add options:
@@ -2536,6 +2538,11 @@ intent log: $DRIFTSEAL_HOME/events.jsonl, or .intent-log/events.jsonl
2536
2538
  decision log: $DRIFTSEAL_DECISION_HOME, or .decision-log/ in the current directory`);
2537
2539
  return null;
2538
2540
  },
2541
+
2542
+ version() {
2543
+ printLine(PACKAGE_VERSION);
2544
+ return PACKAGE_VERSION;
2545
+ },
2539
2546
  };
2540
2547
 
2541
2548
  function requestedEndStatus(argv) {
@@ -2563,6 +2570,10 @@ function mutationResources(cmd, argv) {
2563
2570
 
2564
2571
  function dispatch(argv) {
2565
2572
  const [cmd, ...rest] = argv;
2573
+ if (cmd === '--version' || cmd === '-V') {
2574
+ if (rest.length > 0) fail('usage: driftseal --version | -V');
2575
+ return { data: commands.version(), exitCode: 0 };
2576
+ }
2566
2577
  if (!cmd || cmd === 'help' || cmd === '--help' || cmd === '-h') {
2567
2578
  return { data: commands.help(), exitCode: cmd ? 0 : 1 };
2568
2579
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "driftseal",
3
- "version": "0.6.0",
3
+ "version": "1.0.0",
4
4
  "description": "Seal intent, verification, and decisions into an auditable workflow for agentic coding",
5
5
  "keywords": [
6
6
  "driftseal",