prizmkit 1.0.4 → 1.0.6
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/bundled/VERSION.json +3 -3
- package/bundled/skills/prizm-kit/assets/hooks/prizm-commit-hook.json +3 -4
- package/bundled/skills/prizmkit-prizm-docs/assets/PRIZM-SPEC.md +10 -13
- package/bundled/templates/hooks/commit-intent-claude.json +3 -4
- package/bundled/templates/hooks/commit-intent-codebuddy.json +2 -3
- package/package.json +1 -1
package/bundled/VERSION.json
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
"hooks": {
|
|
3
3
|
"UserPromptSubmit": [
|
|
4
4
|
{
|
|
5
|
-
"matcher": "
|
|
5
|
+
"matcher": "\\b(commit|Commit|push|Push|finish|Finish|ship|Ship|merge|Merge|pull request|Pull Request|pr|PR)\\b|提交|推送|收尾|完成任务|合并|发版|发布",
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
|
-
"type": "
|
|
9
|
-
"
|
|
10
|
-
"timeout": 10
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "echo 'PRIZMKIT_DOC_UPDATE_REQUIRED: Before committing, you MUST update .prizm-docs/ per Prizm auto-update protocol. Steps: 1) Run git diff --cached --name-status. 2) Map changed files to modules via root.prizm MODULE_INDEX. 3) Read and update affected .prizm files (only changed sections). 4) Append to changelog.prizm. 5) Stage .prizm files with git add .prizm-docs/. 6) Then proceed with commit using prizmkit-committer workflow. RULES: Never rewrite entire .prizm files. Never add prose. Only update affected sections.'"
|
|
11
10
|
}
|
|
12
11
|
]
|
|
13
12
|
}
|
|
@@ -665,11 +665,11 @@ STEPS:
|
|
|
665
665
|
|
|
666
666
|
## 11.1 Mechanism
|
|
667
667
|
|
|
668
|
-
HOOK_TYPE:
|
|
668
|
+
HOOK_TYPE: command (shell echo, fast and reliable)
|
|
669
669
|
EVENT: UserPromptSubmit
|
|
670
|
-
BEHAVIOR:
|
|
671
|
-
|
|
672
|
-
|
|
670
|
+
BEHAVIOR: When matcher detects commit-related keywords, echoes doc update reminder as stdout
|
|
671
|
+
INJECTION: stdout content is injected into AI's context as a system-reminder
|
|
672
|
+
NOTE: Previously used type: prompt (LLM-evaluated), but switched to type: command for reliability — prompt type is prone to timeout and JSON format errors
|
|
673
673
|
|
|
674
674
|
## 11.2 Configuration Template
|
|
675
675
|
|
|
@@ -680,11 +680,11 @@ JSON:
|
|
|
680
680
|
"hooks": {
|
|
681
681
|
"UserPromptSubmit": [
|
|
682
682
|
{
|
|
683
|
+
"matcher": "(?i)\\b(commit|push|finish|ship|merge|pull request|pr)\\b|提交|推送|收尾|完成任务|合并|发版|发布",
|
|
683
684
|
"hooks": [
|
|
684
685
|
{
|
|
685
|
-
"type": "
|
|
686
|
-
"
|
|
687
|
-
"timeout": 10
|
|
686
|
+
"type": "command",
|
|
687
|
+
"command": "echo 'PRIZMKIT_DOC_UPDATE_REQUIRED: Before committing, you MUST update .prizm-docs/ per Prizm auto-update protocol. Steps: 1) Run git diff --cached --name-status. 2) Map changed files to modules via root.prizm MODULE_INDEX. 3) Read and update affected .prizm files (only changed sections). 4) Append to changelog.prizm. 5) Stage .prizm files with git add .prizm-docs/. 6) Then proceed with commit. RULES: Never rewrite entire .prizm files. Never add prose. Only update affected sections.'"
|
|
688
688
|
}
|
|
689
689
|
]
|
|
690
690
|
}
|
|
@@ -696,13 +696,10 @@ JSON:
|
|
|
696
696
|
|
|
697
697
|
FLOW:
|
|
698
698
|
1. User types prompt (e.g., "commit these changes" or "push to main")
|
|
699
|
-
2. UserPromptSubmit hook fires
|
|
700
|
-
3.
|
|
701
|
-
4. IF commit intent: Returns {ok: true, reason: "PRIZM_UPDATE_REQUIRED: ..."}
|
|
702
|
-
- The "reason" content is injected into AI's context as additional instructions
|
|
699
|
+
2. UserPromptSubmit hook fires, matcher regex checks for commit-related keywords
|
|
700
|
+
3. IF matcher matches: command hook runs echo, stdout is injected as system-reminder
|
|
703
701
|
- AI sees the update instructions and executes them before committing
|
|
704
|
-
|
|
705
|
-
- AI proceeds normally, no extra context injected
|
|
702
|
+
4. IF matcher does not match: hook does not fire, AI proceeds normally
|
|
706
703
|
|
|
707
704
|
KEYWORDS_DETECTED: commit, push, finish, done, ship, merge, PR, pull request, /commit, save changes
|
|
708
705
|
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
"hooks": {
|
|
3
3
|
"UserPromptSubmit": [
|
|
4
4
|
{
|
|
5
|
-
"matcher": "
|
|
5
|
+
"matcher": "\\b(commit|Commit|push|Push|finish|Finish|ship|Ship|merge|Merge|pull request|Pull Request|pr|PR)\\b|提交|推送|收尾|完成任务|合并|发版|发布",
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
|
-
"type": "
|
|
9
|
-
"
|
|
10
|
-
"timeout": 10
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "echo 'PRIZMKIT_DOC_UPDATE_REQUIRED: Before committing, you MUST update .prizm-docs/ per Prizm auto-update protocol. Steps: 1) Run git diff --cached --name-status. 2) Map changed files to modules via root.prizm MODULE_INDEX. 3) Read and update affected .prizm files (only changed sections). 4) Append to changelog.prizm. 5) Stage .prizm files with git add .prizm-docs/. 6) Then proceed with commit using prizmkit-committer workflow. RULES: Never rewrite entire .prizm files. Never add prose. Only update affected sections.'"
|
|
11
10
|
}
|
|
12
11
|
]
|
|
13
12
|
}
|
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
"matcher": "(?i)\\b(commit|push|finish|ship|merge|pull request|pr)\\b|提交|推送|收尾|完成任务|合并|发版|发布",
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
|
-
"type": "
|
|
9
|
-
"
|
|
10
|
-
"timeout": 10
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "echo 'PRIZMKIT_DOC_UPDATE_REQUIRED: Before committing, you MUST update .prizm-docs/ per Prizm auto-update protocol. Steps: 1) Run git diff --cached --name-status. 2) Map changed files to modules via root.prizm MODULE_INDEX. 3) Read and update affected .prizm files (only changed sections). 4) Append to changelog.prizm. 5) Stage .prizm files with git add .prizm-docs/. 6) Then proceed with commit using prizmkit-committer workflow. RULES: Never rewrite entire .prizm files. Never add prose. Only update affected sections.'"
|
|
11
10
|
}
|
|
12
11
|
]
|
|
13
12
|
}
|