prizmkit 1.0.34 → 1.0.35
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
CHANGED
|
@@ -101,12 +101,3 @@ DEV-14: 若 `npm test` 中存在 pre-existing 失败,不得忽略——必须
|
|
|
101
101
|
- 发送 ESCALATION 上报接口歧义或任务阻塞
|
|
102
102
|
- 接收 TASK_ASSIGNMENT 获取分配的工作
|
|
103
103
|
|
|
104
|
-
### Framework Self-Development Rules (self-evolve mode)
|
|
105
|
-
|
|
106
|
-
When working in self-evolve mode (developing the PrizmKit framework itself), these additional rules apply:
|
|
107
|
-
|
|
108
|
-
1. **Skill metadata sync**: If you modify any file in `core/skills/<skill-name>/`, you MUST also update `core/skills/<skill-name>/_metadata.json` to reflect changes (description, version, dependencies).
|
|
109
|
-
2. **Template variable check**: If you modify any file in `dev-pipeline/templates/`, verify all `{{PLACEHOLDER}}` markers are resolvable by checking `dev-pipeline/scripts/generate-bootstrap-prompt.py` for matching entries.
|
|
110
|
-
3. **Pre-completion validation**: Before marking implementation complete, run `node tests/validate-all.js` and fix any failures.
|
|
111
|
-
4. **Bundle protection**: NEVER directly modify files in `create-prizmkit/bundled/`. These are auto-generated by `scripts/bundle.js` — your changes would be overwritten.
|
|
112
|
-
5. **Reload tracking**: If you modify files in `dev-pipeline/scripts/`, `dev-pipeline/templates/`, or `core/skills/` that the pipeline actively uses, note this in your Implementation Log so the orchestrator can set `reload_needed: true`.
|
|
@@ -122,12 +122,3 @@ REV-10: 禁止使用 timeout 命令(macOS 不兼容)。运行测试时直接
|
|
|
122
122
|
- 发送 ISSUE_REPORT 报告 CRITICAL 发现
|
|
123
123
|
- 接收 TASK_ASSIGNMENT 获取分配的工作
|
|
124
124
|
|
|
125
|
-
### Framework Self-Development Review (self-evolve mode)
|
|
126
|
-
|
|
127
|
-
When reviewing in self-evolve mode (framework is modifying itself), add these review dimensions:
|
|
128
|
-
|
|
129
|
-
1. **`_metadata.json` ↔ skill directory 1:1 mapping**: Verify every `core/skills/*/` has a `_metadata.json`, and every `_metadata.json` references a valid skill directory. Run `node tests/validate-all.js` to automate this check.
|
|
130
|
-
2. **Template variable completeness**: For modified `dev-pipeline/templates/*.md` files, verify all `{{PLACEHOLDER}}` markers have matching open/close tags and are resolvable by `generate-bootstrap-prompt.py`.
|
|
131
|
-
3. **Agent frontmatter validation**: For modified `core/agents/*.md` files, validate YAML frontmatter contains required fields: `name`, `description`, `tools`. Optionally check `model`, `skills`.
|
|
132
|
-
4. **CI gate execution**: Run `npm run ci` and report the full result. Any failure here is **CRITICAL** severity — the framework must always ship green.
|
|
133
|
-
5. **Bundle safety check**: Verify no files in `create-prizmkit/bundled/` were directly modified (use `git diff --name-only` to check). Direct modifications to bundled assets are always CRITICAL.
|
package/package.json
CHANGED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
set -euo pipefail
|
|
3
|
-
|
|
4
|
-
# ============================================================
|
|
5
|
-
# validate-framework.sh — Framework CI Pipeline for Self-Evolve Mode
|
|
6
|
-
#
|
|
7
|
-
# Runs the full PrizmKit framework validation pipeline step by step,
|
|
8
|
-
# reporting each stage individually so agents can pinpoint failures.
|
|
9
|
-
#
|
|
10
|
-
# Steps:
|
|
11
|
-
# 1. validate-all.js — structural validation (skills, agents, metadata)
|
|
12
|
-
# 2. bundle.js — rebuild bundled assets
|
|
13
|
-
# 3. verify-bundle.js — verify bundle integrity
|
|
14
|
-
# 4. eslint — lint check
|
|
15
|
-
# 5. vitest — unit tests
|
|
16
|
-
#
|
|
17
|
-
# Usage:
|
|
18
|
-
# bash dev-pipeline/scripts/validate-framework.sh
|
|
19
|
-
# ============================================================
|
|
20
|
-
|
|
21
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
22
|
-
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
23
|
-
|
|
24
|
-
RED='\033[0;31m'
|
|
25
|
-
GREEN='\033[0;32m'
|
|
26
|
-
YELLOW='\033[1;33m'
|
|
27
|
-
BOLD='\033[1m'
|
|
28
|
-
NC='\033[0m'
|
|
29
|
-
|
|
30
|
-
pass_count=0
|
|
31
|
-
fail_count=0
|
|
32
|
-
failed_steps=()
|
|
33
|
-
|
|
34
|
-
run_step() {
|
|
35
|
-
local step_name="$1"
|
|
36
|
-
shift
|
|
37
|
-
local cmd="$*"
|
|
38
|
-
|
|
39
|
-
echo ""
|
|
40
|
-
echo -e "${BOLD}[$step_name]${NC} Running: $cmd"
|
|
41
|
-
echo "────────────────────────────────────────"
|
|
42
|
-
|
|
43
|
-
if (cd "$PROJECT_ROOT" && eval "$cmd"); then
|
|
44
|
-
echo -e "${GREEN}✓ $step_name passed${NC}"
|
|
45
|
-
pass_count=$((pass_count + 1))
|
|
46
|
-
else
|
|
47
|
-
echo -e "${RED}✗ $step_name FAILED${NC}"
|
|
48
|
-
fail_count=$((fail_count + 1))
|
|
49
|
-
failed_steps+=("$step_name")
|
|
50
|
-
fi
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
echo ""
|
|
54
|
-
echo -e "${BOLD}════════════════════════════════════════════════════${NC}"
|
|
55
|
-
echo -e "${BOLD} PrizmKit Framework Validation Pipeline${NC}"
|
|
56
|
-
echo -e "${BOLD}════════════════════════════════════════════════════${NC}"
|
|
57
|
-
|
|
58
|
-
# Step 1: Structural validation
|
|
59
|
-
run_step "validate-all" "node tests/validate-all.js"
|
|
60
|
-
|
|
61
|
-
# Step 2: Bundle rebuild
|
|
62
|
-
run_step "bundle" "node scripts/bundle.js"
|
|
63
|
-
|
|
64
|
-
# Step 3: Verify bundle integrity
|
|
65
|
-
run_step "verify-bundle" "node scripts/verify-bundle.js"
|
|
66
|
-
|
|
67
|
-
# Step 4: Lint
|
|
68
|
-
run_step "eslint" "npx eslint . --max-warnings 0 2>/dev/null || npx eslint ."
|
|
69
|
-
|
|
70
|
-
# Step 5: Unit tests
|
|
71
|
-
run_step "vitest" "npx vitest run --reporter=verbose 2>&1 || npx vitest run"
|
|
72
|
-
|
|
73
|
-
# Summary
|
|
74
|
-
echo ""
|
|
75
|
-
echo -e "${BOLD}════════════════════════════════════════════════════${NC}"
|
|
76
|
-
if [[ $fail_count -eq 0 ]]; then
|
|
77
|
-
echo -e "${GREEN} All $pass_count steps passed ✓${NC}"
|
|
78
|
-
echo -e "${BOLD}════════════════════════════════════════════════════${NC}"
|
|
79
|
-
exit 0
|
|
80
|
-
else
|
|
81
|
-
echo -e "${RED} $fail_count/$((pass_count + fail_count)) steps FAILED:${NC}"
|
|
82
|
-
for step in "${failed_steps[@]}"; do
|
|
83
|
-
echo -e "${RED} - $step${NC}"
|
|
84
|
-
done
|
|
85
|
-
echo -e "${BOLD}════════════════════════════════════════════════════${NC}"
|
|
86
|
-
exit 1
|
|
87
|
-
fi
|