@primitive.ai/prim 0.1.0-alpha.86 → 0.1.0-alpha.88
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/SKILL.md +1 -1
- package/dist/chunk-BOW3Y3KS.js +18531 -0
- package/dist/{chunk-XGADQPCI.js → chunk-EWM3RYCA.js} +11 -1
- package/dist/{chunk-4CZTNXIS.js → chunk-GBEPUEPZ.js} +1 -1
- package/dist/{chunk-7O6NAUKJ.js → chunk-KL322THW.js} +1 -1
- package/dist/{chunk-OUXH3UEP.js → chunk-MDDHTIXL.js} +1 -1
- package/dist/{chunk-HWSS4BV5.js → chunk-WPD4QRNJ.js} +1 -1
- package/dist/daemon/server.js +8387 -2511
- package/dist/hook-runtime/daemon/server.js +8387 -2511
- package/dist/hook-runtime/hooks/post-commit.js +18292 -179
- package/dist/hook-runtime/hooks/post-rewrite.js +18110 -2
- package/dist/hook-runtime/hooks/post-tool-use.js +18550 -351
- package/dist/hook-runtime/hooks/pre-tool-use.js +18255 -138
- package/dist/hook-runtime/hooks/prim-hook.js +18281 -163
- package/dist/hook-runtime/hooks/session-start.js +18167 -208
- package/dist/hook-runtime/index.js +11429 -5040
- package/dist/hooks/post-commit.js +12 -3
- package/dist/hooks/post-rewrite.js +8 -4
- package/dist/hooks/post-tool-use.js +19 -6
- package/dist/hooks/pre-tool-use.js +16 -4
- package/dist/hooks/prim-hook.js +34 -22
- package/dist/hooks/session-start.js +8 -3
- package/dist/index.js +558 -12175
- package/package.json +1 -1
- package/dist/chunk-TJTVHDJ5.js +0 -321
package/SKILL.md
CHANGED
|
@@ -176,7 +176,7 @@ Both `--intent` and `--attribution` are required. Set `--attribution user` only
|
|
|
176
176
|
|
|
177
177
|
Word `--intent` as a short sentence-case normative headline — ideally 4–12 words, no terminal period — stating the standing constraint future work must follow, not a report of the action taken: "Consume AADT and safety data from street_export, not gps_probes_osm", never "Migrate AADT and safety data managers off gps_probes_osm". A one-time-action verb (Migrate, Backfill, Publish) headlines a task execution: restate the ongoing constraint the action implies, and when none exists, do not record a decision at all. Make the intent self-contained for a reader who wasn't in the session — name the release, artifact, or system explicitly, and state what a referenced change does rather than citing a PR or ticket number, which is itself session context; "limit this release" and "keep the GitHub surface (PR 1102)" are failures. Carry one governing decision per intent — a reader of the intent alone must see which option is now in force. Expand every binding specific the choice adopts — scope boundaries, defaults, invariants, schema or API shapes, exceptions, required mechanisms — into `--decided`, and move non-binding reasoning into `--rationale`; a paragraph-length intent that inlines its constraints and reasons is a failure.
|
|
178
178
|
|
|
179
|
-
Other flags: `--kind` (change|exploration|task_execution|unclear, default change), `--rationale` (required by the recording policy above — the CLI accepts its absence, but only for the declined/unanswered fallback), `--area` (a single short lowercase noun — `auth`, `billing`, `infra`), `--decided`, `--alternatives`, `--confidence` (high|medium|low, default high), `--reversibility` (high|low, default high), and `--files` (comma-separated repo-relative paths the decision governs — these are the files Conflict Gates check on later edits when Enforcement is enabled, in the same path form as `decisions check`).
|
|
179
|
+
Other flags: `--kind` (change|exploration|task_execution|unclear, default change), `--rationale` (required by the recording policy above — the CLI accepts its absence, but only for the declined/unanswered fallback), `--area` (a single short lowercase noun — `auth`, `billing`, `infra`), `--decided`, `--alternatives`, `--confidence` (high|medium|low, default high), `--reversibility` (high|low, default high), and `--files` (comma-separated repo-relative paths the decision governs — these are the files Conflict Gates check on later edits when Enforcement is enabled, in the same path form as `decisions check`). Scope a repository-bound Decision more broadly with `--scope-repo`, repeated `--scope-dir <prefix>`, repeated `--scope-glob <glob>`, and/or repeated `--scope-branch <pattern>`; set an effective window with `--effective-from` and `--effective-until`; or limit its audience with repeated `--for-user <id>`, `--for-role <owner|admin|member>`, `--for-agent <claude_code|codex|hermes>`, and `--for-credential <workos_jwt|workos_api_key|service_token>`. Omit selectors for broad directions: a repository-bound Decision without selectors applies to the whole repository. Change a recorded Decision with `decisions rescope <idOrShortId>` and the same selectors; `--clear-window` removes its effective window. Calling `rescope` with no scope options clears its explicit location scope, while a time- or audience-only rescope preserves that location scope. STDOUT is the created identity `{ decisionId, shortId, createdAt }`; STDERR prints `[prim] created dec_<short>.` — pass that `dec_<short>` straight into `decisions show` / `cascade` / `confirm`.
|
|
180
180
|
|
|
181
181
|
`--decided` carries the enforceable detail as standalone bullets — one per independently adopted constraint, the core choice first, with exact names and values. Each bullet states what must remain true and makes sense by itself: never narrate the session ("Chose to document the behavior" is a failure) and never pack independent rules into one semicolon-delimited entry. `--alternatives` takes one concise entry per option actually considered and rejected; omitting it when none were named is normal. The decision's own negation is never an alternative — restating the prohibited or displaced behavior adds nothing; list only options a source or the conversation actually names as considered. Both flags are repeatable: pass one entry per flag occurrence, verbatim — repeat `--decided` for each bullet and `--alternatives` for each option. Values are never split on commas, so write entries as natural prose; a repeated flag, not a delimiter, is what separates entries.
|
|
182
182
|
|