@hagicode/cli 0.7.0 → 0.8.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/dist/cli.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./chunks/main-B6wZS0Ah.js");s.runCli().then(e=>{e!==0&&(process.exitCode=e)}).catch(e=>{const n=e instanceof Error?e.stack??e.message:String(e);process.stderr.write(`${n}
2
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./chunks/main-BUHthS3C.js");s.runCli().then(e=>{e!==0&&(process.exitCode=e)}).catch(e=>{const n=e instanceof Error?e.stack??e.message:String(e);process.stderr.write(`${n}
3
3
  `),process.exitCode=s.EXIT_CODES.UNKNOWN});
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/main-B6wZS0Ah.js");exports.createCliApp=e.createCliApp;exports.runCli=e.runCli;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/main-BUHthS3C.js");exports.createCliApp=e.createCliApp;exports.runCli=e.runCli;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hagicode/cli",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "HagiCode CLI for project, proposal, vault, chat, and AutoTask management.",
5
5
  "homepage": "https://github.com/HagiCode-org/cli#readme",
6
6
  "bugs": {
@@ -139,6 +139,13 @@ hagi saga release demo --path "./My Project" --token "$SAGA_EXECUTION_TOKEN" --w
139
139
  - `claim --session <id>` creates the lock exclusively and returns the token once, in the human output and as `token` in
140
140
  JSON. A second claim is refused with code `1` and names the owning session. A lock is never taken over because of its
141
141
  age, and a refused claim changes no file.
142
+ - After the lock is taken, `claim` marks the owner session as the Saga's orchestrator: it adds `saga.id` (the Saga) and
143
+ `saga.role=master` to that session's `userMetadata` through the backend, so the session lists show the orchestrator
144
+ inside the Saga's group with its Workers. The mark is best effort and never fails the claim: an owner ID that is not a
145
+ HagiCode session, an unreachable backend, or a session that already carries another `saga.id` is reported as
146
+ `master: { "marked": false, "reason": "..." }` in JSON and as `master mark not set: <reason>` in the human output. A
147
+ successful mark is `master: { "sessionId": "<id>", "marked": true }`. Stored entries are never changed. Pass
148
+ `--no-mark-session` to skip the mark.
142
149
  - While a lock exists, a mutating command needs the holder's token. A missing or different token is refused with exit
143
150
  code `1` and changes no file. Without a lock, mutating commands run under their own gates, so a Saga created before ownership stays runnable.
144
151
  - `assert-owner` exits `0` when no lock exists or the token matches, and `1` otherwise.