@hagicode/cli 0.6.0 → 0.6.1

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-IYdi0hAA.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-De3wSyDS.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-IYdi0hAA.js");exports.createCliApp=e.createCliApp;exports.runCli=e.runCli;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/main-De3wSyDS.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.6.0",
3
+ "version": "0.6.1",
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
- ".gitignore": "b43c8b58f191b9e0a0b54b6938c0aa4685d70b8f4ae2294c83a9ad6e728b7c0a"
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, `.gitignore`,
69
- and `manifest.json`; there is no standalone Saga tool and no sync step. Keep the bytes raw: do not render templates or
70
- normalize line endings. The manifest uses schema version `2` with two maps: `install` lists `.gitignore`, and `methods`
71
- maps each method name (`goal`, `research`, `acceptance`, `plan`, `run`, `amend`) to the digest of `prompts/<name>.md`.
72
- Paths are sorted POSIX relative paths and every digest is lowercase SHA-256. The manifest does not hash itself. Only
73
- `.gitignore` is installed into a project; the methods are read from the package with `hagi saga method`.
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" --force --json
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 hidden `.gitignore` template. `pack:check` verifies the actual package
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.