@primitive.ai/prim 0.1.0-alpha.107 → 0.1.0-alpha.108
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 +1 -1
- package/SKILL.md +8 -5
- package/dist/{chunk-6VFUHQ4J.js → chunk-AIAYIXBJ.js} +1 -1
- package/dist/{chunk-7NNJ67YN.js → chunk-D24AUSVP.js} +1 -1
- package/dist/{chunk-4CO4A6NR.js → chunk-EQYIPUFX.js} +1 -1
- package/dist/{chunk-6L7EYXVF.js → chunk-FDXDV2AT.js} +3 -3
- package/dist/{chunk-FFYZ3XMX.js → chunk-GFJ4QIVR.js} +210 -117
- package/dist/{chunk-P5I4HGMW.js → chunk-LFZYNNQQ.js} +1 -1
- package/dist/{chunk-TPWJQD5E.js → chunk-QJOK2VOE.js} +1 -1
- package/dist/{chunk-72CQVK4E.js → chunk-RXD6LFA2.js} +1 -1
- package/dist/{chunk-LVRD562C.js → chunk-YQFJUBNU.js} +1 -1
- package/dist/daemon/server.js +210 -117
- package/dist/hook-runtime/daemon/server.js +210 -117
- package/dist/hook-runtime/hooks/post-commit.js +210 -117
- package/dist/hook-runtime/hooks/post-rewrite.js +210 -117
- package/dist/hook-runtime/hooks/post-tool-use.js +210 -117
- package/dist/hook-runtime/hooks/pre-tool-use.js +210 -117
- package/dist/hook-runtime/hooks/prim-hook.js +210 -117
- package/dist/hook-runtime/hooks/session-start.js +210 -117
- package/dist/hook-runtime/index.js +259 -140
- package/dist/hooks/post-commit.js +3 -3
- package/dist/hooks/post-rewrite.js +3 -3
- package/dist/hooks/post-tool-use.js +9 -9
- package/dist/hooks/pre-tool-use.js +6 -6
- package/dist/hooks/prim-hook.js +8 -8
- package/dist/hooks/session-start.js +3 -3
- package/dist/index.js +53 -27
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ After successful setup, the optional **author story** puts you in a new engineer
|
|
|
49
49
|
shoes in a disposable project:
|
|
50
50
|
|
|
51
51
|
```text
|
|
52
|
-
Implement CSV export → Your earlier Decision blocks email →
|
|
52
|
+
Implement CSV export → Your earlier Decision blocks email → Accept or Supercede
|
|
53
53
|
→ Real outcome email
|
|
54
54
|
```
|
|
55
55
|
|
package/SKILL.md
CHANGED
|
@@ -190,8 +190,8 @@ If blocked, end with the observed cause (or explicitly unknown boundary), the
|
|
|
190
190
|
single next repair, and the command to resume the retained run.
|
|
191
191
|
|
|
192
192
|
Render each `presentation` once as Markdown, preserving diagrams and file evidence.
|
|
193
|
-
Do not echo JSON/STDERR, expand the records, or add a prose recap. Keep the
|
|
194
|
-
**
|
|
193
|
+
Do not echo JSON/STDERR, expand the records, or add a prose recap. Keep the returned
|
|
194
|
+
**[DEMO]** titles. This uses the production semantic
|
|
195
195
|
evaluator on private demo records and a demo-only blocking policy; native production
|
|
196
196
|
hooks did not supply the verdict. Production outcomes still vary by agent and
|
|
197
197
|
Decision state, including Claude's permission prompt.
|
|
@@ -201,10 +201,13 @@ same chat. At `awaitUserPrompt`, show the copyable CSV-export task and **wait fo
|
|
|
201
201
|
user to enter it**. Only then run `attemptAction`. Do not auto-submit it, ask them to
|
|
202
202
|
adopt the prior Decision, or implement the feature yourself.
|
|
203
203
|
|
|
204
|
-
At the actual block, show the unchanged file and
|
|
205
|
-
|
|
204
|
+
At the actual block, show the returned unchanged file and **Accept / Supercede** choices.
|
|
205
|
+
Accept uses `choices.adhere`; Supercede uses `choices.supersede`. Supercede approves the replacement,
|
|
206
206
|
**Allow customer names and email addresses in CSV exports**, and requires a short
|
|
207
|
-
reason in the user's own words.
|
|
207
|
+
reason in the user's own words. If missing, ask `choices.supersede.prompt` exactly;
|
|
208
|
+
if already supplied, do not ask again. The exploration prompts in the success message
|
|
209
|
+
are suggestions for the participant, not actions to execute automatically.
|
|
210
|
+
Append `'--reason'` and their single-quoted reason
|
|
208
211
|
to `choices.supersede.command`; escape any apostrophe as `'\''`, matching the
|
|
209
212
|
command's existing shell quoting. Never invent a reason or execute a placeholder.
|
|
210
213
|
Do not call production `reconcile` or `decisions create` for these samples.
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
analyzeShellTargets,
|
|
6
6
|
extractFileTargets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D24AUSVP.js";
|
|
8
8
|
import {
|
|
9
9
|
scrubEnvironmentPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YQFJUBNU.js";
|
|
11
11
|
import {
|
|
12
12
|
cachedCollectScopeAdmits
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GFJ4QIVR.js";
|
|
14
14
|
import {
|
|
15
15
|
canonicalRepositoryPath,
|
|
16
16
|
currentBranch,
|