@oneie/claude 0.7.0 → 0.9.0
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/agents/abm-strategist.md +89 -0
- package/agents/ads-meta.md +97 -0
- package/agents/analyst.md +173 -0
- package/agents/architect.md +280 -0
- package/agents/brand-guardian.md +88 -0
- package/agents/brand-strategist.md +92 -0
- package/agents/campaign-content.md +90 -0
- package/agents/campaign-email.md +88 -0
- package/agents/campaign-sms.md +87 -0
- package/agents/campaign-social.md +87 -0
- package/agents/cco.md +99 -0
- package/agents/ceo.md +106 -0
- package/agents/chairman.md +120 -0
- package/agents/cmo.md +101 -0
- package/agents/community-greeter.md +89 -0
- package/agents/community-moderator.md +92 -0
- package/agents/compliance.md +92 -0
- package/agents/copywriter.md +100 -0
- package/agents/creative-strategist.md +95 -0
- package/agents/cro.md +98 -0
- package/agents/cto.md +267 -0
- package/agents/customer-interviewer.md +93 -0
- package/agents/customer-researcher.md +89 -0
- package/agents/customer-success-manager.md +90 -0
- package/agents/customer-trainer.md +90 -0
- package/agents/cxo.md +100 -0
- package/agents/demand-creator.md +89 -0
- package/agents/demo-mover.md +83 -0
- package/agents/demo-specialist.md +89 -0
- package/agents/demo-thai-family-law.md +87 -0
- package/agents/designer.md +112 -0
- package/agents/discovery-caller.md +98 -0
- package/agents/doctor.md +139 -0
- package/agents/educate-coach.md +100 -0
- package/agents/elevate-tutor.md +83 -0
- package/agents/email-lifecycle-marketer.md +91 -0
- package/agents/engage-specialist.md +99 -0
- package/agents/events-coordinator.md +90 -0
- package/agents/foundation-builder.md +94 -0
- package/agents/funnel-architect.md +89 -0
- package/agents/gift-creator.md +100 -0
- package/agents/google-ads.md +103 -0
- package/agents/guide.md +292 -0
- package/agents/helpdesk-dispatcher.md +88 -0
- package/agents/hook-specialist.md +91 -0
- package/agents/identify-optimizer.md +101 -0
- package/agents/implementer.md +305 -0
- package/agents/incident-commander.md +120 -0
- package/agents/insights-lead.md +93 -0
- package/agents/journey-runner.md +113 -0
- package/agents/linkedin-ads.md +123 -0
- package/agents/live-sales-chat.md +90 -0
- package/agents/market-researcher.md +88 -0
- package/agents/media-buyer.md +96 -0
- package/agents/movers-customer-researcher.md +95 -0
- package/agents/movers-foundation-builder.md +96 -0
- package/agents/movers-market-researcher.md +97 -0
- package/agents/movers-pricing-strategist.md +171 -0
- package/agents/nurture-architect.md +99 -0
- package/agents/offer-architect.md +92 -0
- package/agents/onboarder.md +222 -0
- package/agents/onboarding-specialist.md +92 -0
- package/agents/operations-dashboard.md +98 -0
- package/agents/perf-engineer.md +348 -0
- package/agents/playbook-writer.md +71 -0
- package/agents/plg-strategist.md +91 -0
- package/agents/positioning-architect.md +88 -0
- package/agents/press-officer.md +89 -0
- package/agents/pricing-strategist.md +94 -0
- package/agents/privacy-officer.md +92 -0
- package/agents/referral-manager.md +91 -0
- package/agents/refine-analyst.md +102 -0
- package/agents/release-manager.md +261 -0
- package/agents/renewals-upsell-rep.md +90 -0
- package/agents/review-engineer.md +327 -0
- package/agents/rewards-steward.md +82 -0
- package/agents/sales-call-coach.md +94 -0
- package/agents/sales-closer.md +98 -0
- package/agents/security-auditor.md +313 -0
- package/agents/sell-closer.md +101 -0
- package/agents/share-amplifier.md +99 -0
- package/agents/social-media-manager.md +92 -0
- package/agents/storyteller.md +250 -0
- package/agents/strategist.md +83 -0
- package/agents/strategy-aligner.md +94 -0
- package/agents/support-agent.md +90 -0
- package/agents/tagger.md +245 -0
- package/agents/tech-writer.md +216 -0
- package/agents/test-engineer.md +243 -0
- package/agents/tiktok-ads.md +105 -0
- package/agents/tracking-engineer.md +92 -0
- package/agents/upsell-strategist.md +101 -0
- package/agents/voice.md +85 -0
- package/agents/w4-tools.md +153 -0
- package/agents/w4-verify.md +20 -138
- package/agents/workflow-optimiser.md +84 -0
- package/commands/close.md +814 -160
- package/commands/create.md +2 -2
- package/commands/deploy.md +554 -175
- package/commands/do.md +119 -109
- package/commands/fast.md +67 -0
- package/commands/improve.md +2 -2
- package/commands/one.md +418 -0
- package/commands/see.md +1 -1
- package/commands/sync.md +1 -1
- package/commands/tasks.md +222 -0
- package/commands/vespio.md +110 -0
- package/commands/vespio.remote.md +227 -0
- package/hooks/hooks.json +25 -79
- package/hooks/lib/governor-escape-match.sh +88 -0
- package/hooks/lib/hook.sh +4 -13
- package/hooks/lib/signal.sh +9 -2
- package/hooks/scripts/branch-pin.sh +6 -0
- package/hooks/scripts/config-protect.sh +6 -0
- package/hooks/scripts/do-outcome-gate.sh +19 -2
- package/hooks/scripts/git-add-guard.sh +43 -2
- package/hooks/scripts/governor-escape.sh +96 -0
- package/hooks/scripts/load-guard.sh +127 -0
- package/hooks/scripts/post-edit-check.sh +36 -29
- package/hooks/scripts/session-start.sh +34 -80
- package/hooks/scripts/task-complete-verify.sh +46 -40
- package/package.json +1 -1
- package/rules/documentation.md +9 -0
- package/scripts/ad-copy-lint.sh +656 -0
- package/scripts/agentverse-audit.sh +256 -0
- package/scripts/asi-walk.sh +435 -0
- package/scripts/astro-build-cached.sh +143 -0
- package/scripts/blocks-manifest-cached.sh +100 -0
- package/scripts/blocks-manifest.mjs +497 -0
- package/scripts/blocks-ratchet.sh +116 -0
- package/scripts/blocks-render-probe.mjs +529 -0
- package/scripts/blocks-usage.mjs +334 -0
- package/scripts/chat-context-check.sh +89 -0
- package/scripts/close-metrics.sh +558 -0
- package/scripts/close-owner.sh +268 -0
- package/scripts/db-sync-lock-check.sh +116 -0
- package/scripts/deploy-dev.sh +35 -0
- package/scripts/deploy-emit.sh +298 -0
- package/scripts/deploy-gate-check.sh +128 -0
- package/scripts/deploy-ready.sh +78 -0
- package/scripts/deploy-record.sh +605 -0
- package/scripts/deploy.sh +1273 -0
- package/scripts/do-auto.sh +598 -48
- package/scripts/do-brief.sh +113 -0
- package/scripts/do-close.sh +1137 -0
- package/scripts/do-commit.sh +75 -0
- package/scripts/do-consumer-sweep.sh +18 -1
- package/scripts/do-cycle-shape-check.sh +160 -0
- package/scripts/do-decide.sh +476 -0
- package/scripts/do-derive-check.sh +436 -0
- package/scripts/do-fleet.sh +106 -28
- package/scripts/do-folder.sh +10 -1
- package/scripts/do-next.sh +106 -0
- package/scripts/do-orchestrate.sh +17 -5
- package/scripts/do-plan-json.mjs +201 -0
- package/scripts/do-plan-json.sh +8 -0
- package/scripts/do-preflight.sh +117 -0
- package/scripts/do-project.sh +157 -0
- package/scripts/do-prove-selftest.sh +108 -0
- package/scripts/do-prove.sh +295 -23
- package/scripts/do-rank.py +31 -1
- package/scripts/do-recon-cache.sh +7 -1
- package/scripts/do-recon-pack.sh +196 -0
- package/scripts/do-reconcile.sh +121 -4
- package/scripts/do-signal.sh +280 -23
- package/scripts/do-smoke.sh +18 -1
- package/scripts/do-test-gate.sh +80 -0
- package/scripts/do-tick.sh +102 -0
- package/scripts/do-tier.sh +6 -0
- package/scripts/do-triage.sh +182 -0
- package/scripts/do-ui-gate.sh +1 -1
- package/scripts/do-w4-gates.sh +451 -0
- package/scripts/do-walk.sh +12 -1
- package/scripts/env-sync.sh +173 -0
- package/scripts/factory-brief-check.sh +330 -0
- package/scripts/factory-check.sh +68 -14
- package/scripts/factory-close-check.sh +257 -0
- package/scripts/factory-emit.sh +211 -0
- package/scripts/factory-executor-check.mjs +353 -0
- package/scripts/factory-peak.sh +301 -0
- package/scripts/factory-repo.sh +118 -3
- package/scripts/factory-review-check.mjs +61 -0
- package/scripts/factory-ship.sh +61 -0
- package/scripts/factory-tasks-check.sh +18 -1
- package/scripts/factory-turn.sh +326 -0
- package/scripts/factory-walk.sh +396 -0
- package/scripts/factory-width.sh +57 -0
- package/scripts/fade-toxic.sh +4 -3
- package/scripts/fixtures/factory-brief-real.md +44 -0
- package/scripts/fixtures/triage-dupe.md +5 -0
- package/scripts/fleet-manifest.mjs +108 -0
- package/scripts/fleet-status.sh +110 -0
- package/scripts/full-suite-paths-check.sh +144 -0
- package/scripts/gate-reaper-check.sh +98 -0
- package/scripts/gate-reaper.sh +125 -0
- package/scripts/gate-run.sh +73 -0
- package/scripts/gc-content-check.sh +140 -0
- package/scripts/gen-dev-config.py +20 -0
- package/scripts/govern-bound-check.sh +60 -0
- package/scripts/govern-claims-check.sh +233 -0
- package/scripts/govern-mem-check.sh +290 -0
- package/scripts/governor-doors-check.sh +362 -0
- package/scripts/governor-escape-check.sh +171 -0
- package/scripts/health.sh +413 -0
- package/scripts/id-inventory.mjs +418 -0
- package/scripts/land.sh +551 -0
- package/scripts/lib/gc-finished.sh +77 -0
- package/scripts/lib/govern.sh +361 -0
- package/scripts/lib/govern.ts +756 -0
- package/scripts/lighthouse-run.sh +187 -0
- package/scripts/livekit-live-check.sh +61 -0
- package/scripts/livekit-ratchet.sh +46 -0
- package/scripts/load-guard-check.sh +49 -0
- package/scripts/machine-check.sh +102 -0
- package/scripts/machine-watch.sh +177 -0
- package/scripts/one-agents.mjs +415 -0
- package/scripts/one-resume.sh +78 -0
- package/scripts/orphan-baseline.json +182 -0
- package/scripts/orphan-modules.mjs +179 -0
- package/scripts/pr-body.sh +335 -0
- package/scripts/preview-fd-check.sh +289 -0
- package/scripts/promise-manifest.mjs +24 -1
- package/scripts/release.sh +322 -0
- package/scripts/roles-check.sh +946 -0
- package/scripts/sdk-build-cached.sh +64 -0
- package/scripts/signal-watch.sh +241 -0
- package/scripts/skills-publish.sh +94 -0
- package/scripts/speed-cache-check.sh +173 -0
- package/scripts/speed-check.mjs +907 -0
- package/scripts/speed-parity-check.sh +648 -0
- package/scripts/speed-waterfall-check.sh +355 -0
- package/scripts/substrate-env-parity.mjs +156 -0
- package/scripts/tasks-claim-race.mjs +108 -0
- package/scripts/tasks-loop.sh +185 -0
- package/scripts/test-cached.sh +255 -0
- package/scripts/test-full.sh +87 -0
- package/scripts/test-honesty.mjs +137 -0
- package/scripts/test-lanes.sh +166 -0
- package/scripts/test-speed.sh +94 -0
- package/scripts/triage-shape-check.sh +149 -0
- package/scripts/tsc-cached.sh +179 -0
- package/scripts/typedb-flake-check.sh +197 -0
- package/scripts/urls-lint.sh +15 -0
- package/scripts/verify-fast.sh +445 -0
- package/scripts/vespio-sync.sh +149 -0
- package/scripts/wf-check.mjs +104 -1
- package/scripts/worktree-preview.sh +879 -0
- package/scripts/worktree-up.sh +208 -0
- package/skills/livekit-agents/SKILL.md +285 -0
- package/skills/livekit-agents/references/freshness-rules.md +168 -0
- package/skills/shadcn/SKILL.md +1 -1
- package/skills/signal/SKILL.md +0 -1
- package/skills/voice/SKILL.md +94 -6
- package/skills/voice/corpus-check.sh +87 -0
- package/hooks/scripts/compact-hint.sh +0 -35
- package/hooks/scripts/gate-guard.sh +0 -83
- package/hooks/scripts/read-tracker.sh +0 -26
- package/hooks/scripts/session-end-verify.sh +0 -51
- package/hooks/scripts/stop-reflect.sh +0 -140
- package/hooks/scripts/sync-priority-todo.sh +0 -57
- package/hooks/scripts/sync-todo-docs.sh +0 -46
- package/hooks/scripts/tool-signal.sh +0 -48
- package/scripts/do-tasks-bridge.py +0 -366
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# do-brief.sh <slug> [--files <path>...] — the CYCLE COMPILER.
|
|
3
|
+
#
|
|
4
|
+
# manifest: needs-env
|
|
5
|
+
#
|
|
6
|
+
# needs-env, not portable: this is a JOIN over do-tier.sh and do-folder.sh, both
|
|
7
|
+
# of which are needs-env, so it cannot be cleaner than its inputs. Classified
|
|
8
|
+
# portable on the first pass and the factory build caught it.
|
|
9
|
+
#
|
|
10
|
+
# WHY. Every wave of a /do cycle used to spend model tokens NARRATING facts that a
|
|
11
|
+
# script in this directory already emits. W1 read the plan an LLM could have been
|
|
12
|
+
# handed; W2 re-derived the tier; W4 re-derived the folder and the verify command.
|
|
13
|
+
# Five model calls, each carrying ~130KB of markdown, to reach a decision whose
|
|
14
|
+
# inputs were all deterministic. Measured 2026-09-01: the deterministic half of a
|
|
15
|
+
# cycle is ~30s of compute; the prose around it was the bill.
|
|
16
|
+
#
|
|
17
|
+
# This is a JOIN, not new logic. It composes the existing single-purpose scripts
|
|
18
|
+
# into ONE json object — the brief — so the loop makes at most two model calls per
|
|
19
|
+
# cycle (decide, then edit) and the gates stay exactly what they were.
|
|
20
|
+
#
|
|
21
|
+
# do-plan-json.sh -> worktree, outcome, batches, open cycles
|
|
22
|
+
# do-next.sh -> which cycles are READY right now (DAG, not batch barrier)
|
|
23
|
+
# do-tier.sh -> tier, pruned spine, classifier, ceiling, w2 model
|
|
24
|
+
# do-folder.sh -> target folder(s) + verify/build commands
|
|
25
|
+
#
|
|
26
|
+
# Output: one JSON object on stdout. Non-zero exit + no stdout when the plan
|
|
27
|
+
# cannot be parsed — a brief that half-resolved is worse than no brief, because
|
|
28
|
+
# the caller cannot tell which half is missing.
|
|
29
|
+
#
|
|
30
|
+
# --self-test runs the fixtures; exits non-zero on failure.
|
|
31
|
+
set -euo pipefail
|
|
32
|
+
|
|
33
|
+
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
34
|
+
S="$ROOT/.claude/scripts"
|
|
35
|
+
|
|
36
|
+
_self_test() {
|
|
37
|
+
local fails=0 t
|
|
38
|
+
t="$(mktemp -d)"; trap 'rm -rf "$t"' RETURN
|
|
39
|
+
|
|
40
|
+
# 1. a missing slug must FAIL, not emit a half-brief.
|
|
41
|
+
if out=$(bash "$S/do-brief.sh" __nosuchplan__ 2>/dev/null); then
|
|
42
|
+
echo "FAIL: missing plan produced a brief"; fails=$((fails+1))
|
|
43
|
+
else
|
|
44
|
+
[ -z "${out:-}" ] || { echo "FAIL: missing plan wrote to stdout"; fails=$((fails+1)); }
|
|
45
|
+
echo "ok: missing plan refuses (exit non-zero, empty stdout)"
|
|
46
|
+
fi
|
|
47
|
+
|
|
48
|
+
# 2. the join must be valid JSON carrying every required key.
|
|
49
|
+
# Use --files so the test needs no plan file at all.
|
|
50
|
+
local req='.tier and .spine and .folders and .files and .ceiling_tokens'
|
|
51
|
+
if out=$(bash "$S/do-brief.sh" --files one.ie/web/src/lib/authority.ts 2>/dev/null); then
|
|
52
|
+
if printf '%s' "$out" | jq -e "$req" >/dev/null 2>&1; then
|
|
53
|
+
echo "ok: --files brief is valid JSON with all required keys"
|
|
54
|
+
else
|
|
55
|
+
echo "FAIL: brief missing required keys: $out"; fails=$((fails+1))
|
|
56
|
+
fi
|
|
57
|
+
else
|
|
58
|
+
echo "FAIL: --files brief did not run"; fails=$((fails+1))
|
|
59
|
+
fi
|
|
60
|
+
|
|
61
|
+
# 3. RED PROOF — a checker that cannot go red proves nothing. Feed a file list
|
|
62
|
+
# that must classify above PATCH and assert the tier actually MOVES.
|
|
63
|
+
local patch_tier deep_tier
|
|
64
|
+
patch_tier=$(bash "$S/do-brief.sh" --files text/readme.md 2>/dev/null | jq -r .tier)
|
|
65
|
+
deep_tier=$(bash "$S/do-brief.sh" --files schema/one.tql 2>/dev/null | jq -r .tier)
|
|
66
|
+
if [ "$patch_tier" = "$deep_tier" ]; then
|
|
67
|
+
echo "FAIL: tier does not discriminate (doc=$patch_tier schema=$deep_tier)"; fails=$((fails+1))
|
|
68
|
+
else
|
|
69
|
+
echo "ok: tier discriminates (doc=$patch_tier schema=$deep_tier)"
|
|
70
|
+
fi
|
|
71
|
+
|
|
72
|
+
[ "$fails" -eq 0 ] && { echo "do-brief: self-test PASS"; return 0; }
|
|
73
|
+
echo "do-brief: self-test FAILED ($fails)"; return 1
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[ "${1:-}" = "--self-test" ] && { _self_test; exit $?; }
|
|
77
|
+
|
|
78
|
+
SLUG=""; FILES=()
|
|
79
|
+
while [ $# -gt 0 ]; do
|
|
80
|
+
case "$1" in
|
|
81
|
+
--files) shift; while [ $# -gt 0 ] && [ "${1#--}" = "$1" ]; do FILES+=("$1"); shift; done ;;
|
|
82
|
+
--*) shift ;;
|
|
83
|
+
*) SLUG="$1"; shift ;;
|
|
84
|
+
esac
|
|
85
|
+
done
|
|
86
|
+
|
|
87
|
+
plan='null'; nextc='null'
|
|
88
|
+
if [ -n "$SLUG" ]; then
|
|
89
|
+
# A plan that cannot be parsed is a HARD stop: the whole point of the compiler
|
|
90
|
+
# is that the caller never has to guess which half resolved.
|
|
91
|
+
plan="$(bash "$S/do-plan-json.sh" "$SLUG" 2>/dev/null)" || {
|
|
92
|
+
echo "do-brief: cannot parse plan '$SLUG' (do-plan-json refused)" >&2; exit 1; }
|
|
93
|
+
nextc="$(bash "$S/do-next.sh" "$SLUG" --all 2>/dev/null | jq -Rs 'split("\n")|map(select(length>0))' 2>/dev/null || echo 'null')"
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
# File list: explicit --files, else the cycle's own working diff.
|
|
97
|
+
if [ "${#FILES[@]}" -eq 0 ]; then
|
|
98
|
+
mapfile -t FILES < <(git -C "$ROOT" diff --name-only HEAD 2>/dev/null; git -C "$ROOT" ls-files --others --exclude-standard 2>/dev/null) || true
|
|
99
|
+
fi
|
|
100
|
+
[ "${#FILES[@]}" -eq 0 ] && FILES=("text/${SLUG:-none}-todo.md")
|
|
101
|
+
|
|
102
|
+
tier="$(printf '%s\n' "${FILES[@]}" | bash "$S/do-tier.sh" 2>/dev/null || echo '{}')"
|
|
103
|
+
folders="$(printf '%s\n' "${FILES[@]}" | bash "$S/do-folder.sh" 2>/dev/null | jq -s '.' 2>/dev/null || echo '[]')"
|
|
104
|
+
files_json="$(printf '%s\n' "${FILES[@]}" | jq -Rs 'split("\n")|map(select(length>0))')"
|
|
105
|
+
|
|
106
|
+
jq -n --argjson plan "${plan:-null}" \
|
|
107
|
+
--argjson tier "${tier:-{\}}" \
|
|
108
|
+
--argjson folders "${folders:-[]}" \
|
|
109
|
+
--argjson files "$files_json" \
|
|
110
|
+
--argjson next "${nextc:-null}" \
|
|
111
|
+
--arg slug "$SLUG" '
|
|
112
|
+
{slug: $slug, plan: $plan, ready: $next, files: $files, folders: $folders}
|
|
113
|
+
+ ($tier | {tier, spine, classifier, ceiling_tokens, w2_model})'
|