@skathio/somi 3.0.0 → 3.0.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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.copilot-extension/extension.json +1 -1
- package/.copilot-extension/marketplace.json +1 -1
- package/VERSION +1 -1
- package/package.json +1 -1
- package/scripts/lib/dispatch-resolver.mjs +2 -1
- package/scripts/validate.sh +3 -3
- package/tests/scripts/somi-dispatch.sh +12 -0
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"url": "https://github.com/skathio/somi.git"
|
|
14
14
|
},
|
|
15
15
|
"description": "Multi-agent engineering workflow: discover/design → plan → code → review. Agents declare their own cost tiers and a per-session ceiling selects among them; SOLID, OWASP and clean-code guardrails.",
|
|
16
|
-
"version": "3.0.
|
|
16
|
+
"version": "3.0.1",
|
|
17
17
|
"tags": ["workflow", "agents", "review", "security"],
|
|
18
18
|
"homepage": "https://github.com/skathio/somi"
|
|
19
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "somi",
|
|
3
3
|
"displayName": "SoMi",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"description": "Multi-agent engineering workflow system: plan, code, review — with SOLID/OWASP guardrails, deterministic hooks, and a global ruleset.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"workflow",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"name": "somi",
|
|
12
12
|
"source": "github:skathio/somi",
|
|
13
13
|
"description": "Multi-agent engineering workflow: discover/design → plan → code → review. Agents declare their own cost tiers and a per-session ceiling selects among them; SOLID, OWASP and clean-code guardrails.",
|
|
14
|
-
"version": "3.0.
|
|
14
|
+
"version": "3.0.1",
|
|
15
15
|
"tags": ["workflow", "agents", "review", "security"],
|
|
16
16
|
"homepage": "https://github.com/skathio/somi"
|
|
17
17
|
}
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1
|
package/package.json
CHANGED
|
@@ -54,10 +54,11 @@ function err(code, message) {
|
|
|
54
54
|
|
|
55
55
|
// Extracts one field's raw value from the frontmatter block (the lines between the first two
|
|
56
56
|
// literal `---` delimiters) — same block scripts/validate.sh's cost_of()/model_of() awk parses.
|
|
57
|
+
// Splits on CRLF too: a Windows checkout with core.autocrlf turns `---` into `---\r` (#28).
|
|
57
58
|
function frontmatterField(content, field) {
|
|
58
59
|
const re = new RegExp(`^${field}:\\s*(.*)$`);
|
|
59
60
|
let dashes = 0;
|
|
60
|
-
for (const line of content.split(
|
|
61
|
+
for (const line of content.split(/\r?\n/)) {
|
|
61
62
|
if (line === '---') {
|
|
62
63
|
dashes++;
|
|
63
64
|
if (dashes >= 2) break;
|
package/scripts/validate.sh
CHANGED
|
@@ -198,10 +198,10 @@ echo "==> Validating cost-tier declarations..."
|
|
|
198
198
|
# the agent's own frontmatter is where high is truthfully declared, once -- and a cost: high agent
|
|
199
199
|
# Tasking a cost: low, medium helper does not pull that helper up to high either.
|
|
200
200
|
cost_of() {
|
|
201
|
-
awk '/^---$/{c++} c==1 && /^cost:[[:space:]]*/{sub(/^cost:[[:space:]]*/,""); print; exit}' "$1"
|
|
201
|
+
awk '{sub(/\r$/,"")} /^---$/{c++} c==1 && /^cost:[[:space:]]*/{sub(/^cost:[[:space:]]*/,""); print; exit}' "$1"
|
|
202
202
|
}
|
|
203
203
|
model_of() {
|
|
204
|
-
awk '/^---$/{c++} c==1 && /^model:[[:space:]]*/{sub(/^model:[[:space:]]*/,""); print; exit}' "$1"
|
|
204
|
+
awk '{sub(/\r$/,"")} /^---$/{c++} c==1 && /^model:[[:space:]]*/{sub(/^model:[[:space:]]*/,""); print; exit}' "$1"
|
|
205
205
|
}
|
|
206
206
|
cost_failed=0
|
|
207
207
|
|
|
@@ -601,7 +601,7 @@ parity_failed=0
|
|
|
601
601
|
for f in skills/*/SKILL.md; do
|
|
602
602
|
[ -f "$f" ] || continue
|
|
603
603
|
dir="$(basename "$(dirname "$f")")"
|
|
604
|
-
declared="$(awk '/^---$/{c++; next} c==1 && /^name:[[:space:]]*/{sub(/^name:[[:space:]]*/,""); gsub(/^["'"'"']|["'"'"']$/,""); sub(/[[:space:]]+$/,""); print; exit}' "$f")"
|
|
604
|
+
declared="$(awk '{sub(/\r$/,"")} /^---$/{c++; next} c==1 && /^name:[[:space:]]*/{sub(/^name:[[:space:]]*/,""); gsub(/^["'"'"']|["'"'"']$/,""); sub(/[[:space:]]+$/,""); print; exit}' "$f")"
|
|
605
605
|
if [ "$dir" != "$declared" ]; then
|
|
606
606
|
echo "SKILL NAME PARITY: skills/$dir/SKILL.md declares name: '$declared' (expected '$dir')" >&2
|
|
607
607
|
parity_failed=1
|
|
@@ -350,5 +350,17 @@ out="$(run "$R_ORIGIN" resolve --agent coder)" # a later bare call: state now
|
|
|
350
350
|
check "a later call: ceiling_source is 'state' but ceiling_origin still says 'config' -- actionable" \
|
|
351
351
|
"$(field "$out" ceiling_source),$(field "$out" ceiling_origin)" "state,config"
|
|
352
352
|
|
|
353
|
+
# --- CRLF checkout (#28): a Windows clone with core.autocrlf rewrites agent files to CRLF; the
|
|
354
|
+
# frontmatter delimiter is then `---\r`, which must still parse. Run a copy of the install whose
|
|
355
|
+
# agent files are CRLF. -----------------------------------------------------------------------------
|
|
356
|
+
CRLF_INSTALL="$(fresh)"
|
|
357
|
+
cp -R "$ROOT_REPO/scripts" "$ROOT_REPO/agents" "$CRLF_INSTALL/"
|
|
358
|
+
for f in "$CRLF_INSTALL"/agents/*.md; do sed -i 's/$/\r/' "$f"; done
|
|
359
|
+
crlf_rc=0
|
|
360
|
+
out="$(CLAUDE_PROJECT_DIR="$(fresh)" node "$CRLF_INSTALL/scripts/somi-dispatch.mjs" resolve --agent planner --host copilot 2>&1)" || crlf_rc=$?
|
|
361
|
+
check "CRLF agent files: resolve exits 0 (was 66, 'declares no cost:')" "$crlf_rc" "0"
|
|
362
|
+
[ "$crlf_rc" = 0 ] && check "CRLF agent files: planner's supported set parses without a trailing CR" \
|
|
363
|
+
"$(node -e 'process.stdout.write(JSON.parse(process.argv[1]).supported.join(","))' "$out")" "low,medium"
|
|
364
|
+
|
|
353
365
|
echo "somi-dispatch tests: $pass ok, $fail failed"
|
|
354
366
|
[ "$fail" -eq 0 ] || exit 1
|