@hagicode/cli 0.1.0-dev.50.1.674e23d → 0.1.0-dev.52.1.13cffe6
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/chunks/{main-BHYpWMTH.js → main-BjVumWEX.js} +29 -29
- package/dist/cli.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/resources/saga/manifest.json +1 -1
- package/skills/hagi/references/local-development.md +11 -6
- package/skills/hagi/references/saga.md +1 -1
- package/skills/hagi/references/validation.md +1 -1
- /package/resources/saga/{.gitignore → install/gitignore.template} +0 -0
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-
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./chunks/main-BjVumWEX.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-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/main-BjVumWEX.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.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.52.1.13cffe6",
|
|
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": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"install": {
|
|
4
|
-
".
|
|
4
|
+
"install/gitignore.template": "b43c8b58f191b9e0a0b54b6938c0aa4685d70b8f4ae2294c83a9ad6e728b7c0a"
|
|
5
5
|
},
|
|
6
6
|
"methods": {
|
|
7
7
|
"goal": "a545b01c9f6010df661f02cf62ef9bcae527ccf329f304ea82ffdda239b118df",
|
|
@@ -65,12 +65,17 @@ types of every removed route. When a proto DTO changes, edit or add the matching
|
|
|
65
65
|
|
|
66
66
|
## Saga asset bundle
|
|
67
67
|
|
|
68
|
-
The Saga resources are owned by this repository. `resources/saga/` contains the six method prompt files,
|
|
69
|
-
and `manifest.json`; there is no standalone Saga tool and no sync step. Keep the bytes raw:
|
|
70
|
-
normalize line endings. The manifest uses schema version `2` with two maps: `install` lists
|
|
71
|
-
maps each method name (`goal`, `research`, `acceptance`, `plan`, `run`,
|
|
72
|
-
Paths are sorted POSIX relative paths and every digest is lowercase
|
|
73
|
-
|
|
68
|
+
The Saga resources are owned by this repository. `resources/saga/` contains the six method prompt files,
|
|
69
|
+
`install/gitignore.template`, and `manifest.json`; there is no standalone Saga tool and no sync step. Keep the bytes raw:
|
|
70
|
+
do not render templates or normalize line endings. The manifest uses schema version `2` with two maps: `install` lists
|
|
71
|
+
`install/gitignore.template`, and `methods` maps each method name (`goal`, `research`, `acceptance`, `plan`, `run`,
|
|
72
|
+
`amend`) to the digest of `prompts/<name>.md`. Paths are sorted POSIX relative paths and every digest is lowercase
|
|
73
|
+
SHA-256. The manifest does not hash itself. Only that template is installed into a project, as `.hagicode/sagas/.gitignore`;
|
|
74
|
+
the methods are read from the package with `hagi saga method`.
|
|
75
|
+
|
|
76
|
+
The template must not be named `.gitignore` inside the package: npm renames a packaged `.gitignore` to `.npmignore` on
|
|
77
|
+
install, so the rule would be missing from the installed CLI. `tests/runtime/saga/assets.test.ts` fails if a dot-named
|
|
78
|
+
ignore file appears in the bundle.
|
|
74
79
|
|
|
75
80
|
After editing a prompt, update its digest in `manifest.json`. `tests/runtime/saga/assets.test.ts` fails on any mismatch
|
|
76
81
|
between the files and the manifest, and `pnpm run pack:check` verifies the published contents.
|
|
@@ -11,7 +11,7 @@ Run `init` before creating a Saga:
|
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
13
|
hagi saga init --path "./My Project"
|
|
14
|
-
hagi saga init --path "./My Project" --
|
|
14
|
+
hagi saga init --path "./My Project" --json
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Initialization installs only the ignore rule under `.hagicode/sagas/.gitignore`. It creates no `prompts/` directory and
|
|
@@ -160,5 +160,5 @@ pnpm run pack:check
|
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
The npm tarball ships `dist`, `README.md`, `skills/**`, and only
|
|
163
|
-
the allowlisted Saga resources, including the
|
|
163
|
+
the allowlisted Saga resources, including the `install/gitignore.template` file that becomes `.gitignore` in a project. `pack:check` verifies the actual package
|
|
164
164
|
contents and rejects source maps or unexpected resource files.
|
|
File without changes
|