@hagicode/cli 0.1.0-dev.49.1.aa038f5 → 0.1.0-dev.50.1.674e23d
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 +9 -6
- package/dist/chunks/{main-D5eiMFz8.js → main-BHYpWMTH.js} +127 -125
- package/dist/cli.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/resources/saga/manifest.json +11 -9
- package/skills/hagi/SKILL.md +1 -0
- package/skills/hagi/references/cli-usage.md +1 -0
- package/skills/hagi/references/local-development.md +4 -2
- package/skills/hagi/references/saga.md +48 -15
package/README.md
CHANGED
|
@@ -86,6 +86,7 @@ that contain spaces.
|
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
88
|
hagi saga init --path "./My Project"
|
|
89
|
+
hagi saga method run --json
|
|
89
90
|
hagi saga new demo --path "./My Project" --json
|
|
90
91
|
hagi saga list --path "./My Project"
|
|
91
92
|
hagi saga status demo --project-id <project-id> --json
|
|
@@ -96,7 +97,7 @@ hagi saga tick demo T1 --path "./My Project" --token "$SAGA_EXECUTION_TOKEN" --j
|
|
|
96
97
|
```
|
|
97
98
|
|
|
98
99
|
Write and check commands (`claim`, `assert-owner`, `release`, `freeze`, `check`, `tick`, `block`, `set-status`, `amend`,
|
|
99
|
-
`archive`) run in the CLI itself
|
|
100
|
+
`archive`) run in the CLI itself. The CLI installs only the ignore rule and reads the six method prompts from its own package with `hagi saga method <name>`; there is no standalone Saga tool and no project-local copy of the methods. Mutating commands read the execution token
|
|
100
101
|
from `--token` or `SAGA_EXECUTION_TOKEN`; with `--project-id`, `--token` is rejected because it is the backend token, so use
|
|
101
102
|
`SAGA_EXECUTION_TOKEN` there. Exit code `0` means success, `1` a refusal or failed check, and `2` a usage error.
|
|
102
103
|
|
|
@@ -110,11 +111,13 @@ See the [Saga command reference](skills/hagi/references/saga.md#worker-sessions)
|
|
|
110
111
|
With `--project-id`, the CLI uses the normal base URL, token, and language settings to resolve the project through the
|
|
111
112
|
backend. The returned project path must exist on the machine running the CLI; it is not a remote filesystem path.
|
|
112
113
|
|
|
113
|
-
`saga init` installs
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
`saga init` installs only the runtime ignore rule in `.hagicode/sagas/.gitignore`, merged additively, and creates no
|
|
115
|
+
`prompts/` directory. Existing project-local `prompts/` files are left untouched and are no longer read. `saga method <name>`
|
|
116
|
+
prints a published method (`goal`, `research`, `acceptance`, `plan`, `run`, `amend`) from the installed package, verified
|
|
117
|
+
against its manifest, with `--json` returning `{ name, sha256, content }`. `freeze` records the method digests in
|
|
118
|
+
`contract.lock`, and `check --phase run --json` reports method drift as a notice that never fails the check. Initialization
|
|
119
|
+
refuses redirected or unsafe targets and leaves identical resources untouched on repeat runs. See the
|
|
120
|
+
[Saga command reference](skills/hagi/references/saga.md) for outcomes, safety behavior, and JSON details.
|
|
118
121
|
|
|
119
122
|
For offline use, install the package or use a cached `npx` package. An uncached `npx @hagicode/cli` invocation may need
|
|
120
123
|
network access to download the package even though `saga ... --path` itself does not use a backend, except `saga session create`, which does.
|