@hagicode/cli 0.1.0-dev.59.1.47fc04a → 0.1.0-dev.61.1.fa6f884

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
@@ -101,13 +101,15 @@ Write and check commands (`claim`, `assert-owner`, `release`, `freeze`, `check`,
101
101
  from `--token` or `SAGA_EXECUTION_TOKEN`; with `--project-id`, `--token` is rejected because it is the backend token, so use
102
102
  `SAGA_EXECUTION_TOKEN` there. Exit code `0` means success, `1` a refusal or failed check, and `2` a usage error.
103
103
 
104
- `saga session create --saga <id> --path <root> --title <title> --role implementation|verification --master <session-id> [--item <id>]`
105
- creates one Worker chat session and records it in `runtime/sessions.md`. Unlike the other Saga commands it calls the
104
+ `saga session create --saga <id> --path <root> --title <title> --role implementation|verification --master <session-id> [--item <id>] [--hero <name-or-id>]`
105
+ creates one Worker chat session and records it in `runtime/sessions.md`. `--hero` binds the Worker to a Hero by name or ID (a GUID is an ID); the Hero is not written to the metadata or the record, and the human result and `--json` show it as `chatHero` when the backend returns one. Unlike the other Saga commands it calls the
106
106
  backend even with `--path`: the registered project whose real path matches `<root>` supplies the project ID, and no match
107
107
  or several matches is a refusal. The execution token comes only from `SAGA_EXECUTION_TOKEN`; `--token` is refused with
108
108
  either selector. The session carries `saga.*` metadata. The command sends no message and does not archive the session.
109
109
  See the [Saga command reference](skills/hagi/references/saga.md#worker-sessions) for the options, metadata keys and exit codes.
110
110
 
111
+ `saga session list <saga-id>` reads the Worker records of a Saga without a token. `saga log append <saga-id> --message <text>` appends one line to `runtime/orchestrator-log.md` under the execution token. Both are described in the [run records](skills/hagi/references/saga.md#run-records) section.
112
+
111
113
  With `--project-id`, the CLI uses the normal base URL, token, and language settings to resolve the project through the
112
114
  backend. The returned project path must exist on the machine running the CLI; it is not a remote filesystem path.
113
115
 
@@ -506,6 +508,8 @@ Start a Super Commit only when the user asked for it. Add `--need-push` only whe
506
508
 
507
509
  Use `--prompt-id` instead of `--task-id` for a prompt template with no structured input. `--input` needs `--task-id`. Input is read from a file, or from stdin with `--input -`. The CLI only checks that the input is a JSON object. The backend checks the keys and values. It rejects a key that the schema does not list, and a missing required value. Its error is printed unchanged, and no session is reported as created. `--hero-selection-mode` takes `first` (the default) or `random`.
508
510
 
511
+ `--hero <name-or-id>` picks the Hero the session runs. A GUID is sent as a Hero ID; any other value is a Hero name, matched without regard to letter case or surrounding spaces. Give `--hero` or `--hero-id`, not both: the CLI exits `2` before any request. A name that matches no Hero, or a request that names both a Hero ID and a name, fails with the backend's message and creates no session. The CLI only sends the reference; the backend checks it. The Hero-name field needs a backend that includes it; an older backend ignores the name and runs its default Hero.
512
+
509
513
  The backend must have a hero available for the task's script. Without one, `hagitask create` fails with a 400 whose error is `no-executable-hero`.
510
514
 
511
515
  Send a follow-up message to the HagiTask session: