@azure-id/orc 2.0.2 → 2.1.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/CHANGELOG.md +455 -0
- package/README-id.md +52 -23
- package/README.md +36 -20
- package/bin/build-agents.js +205 -206
- package/bin/clear-logs.js +620 -0
- package/bin/cli.js +47417 -46420
- package/bin/fix.js +459 -0
- package/bin/gotcha.js +288 -8
- package/bin/habit.js +1538 -1453
- package/bin/mockrun-catalog.js +3 -0
- package/bin/onboarding-content.js +2 -1
- package/bin/pricing.json +28 -21
- package/bin/trace-write.js +869 -657
- package/bin/verify-contracts.js +5552 -5471
- package/bin/verify-package.js +716 -705
- package/bin/webui/api.js +125 -6
- package/bin/webui/css/panels/hookui.css +79 -0
- package/bin/webui/fixtures/behaviour.js +30 -0
- package/bin/webui/fixtures/extra.js +2036 -2036
- package/bin/webui/fixtures/flow.js +81 -81
- package/bin/webui/fixtures/hookui.js +506 -431
- package/bin/webui/fixtures/index.js +32 -3
- package/bin/webui/fixtures/knowledge.js +2 -2
- package/bin/webui/fixtures/maintenance.js +123 -42
- package/bin/webui/fixtures/rules.js +1007 -1002
- package/bin/webui/fixtures/settings.js +6 -7
- package/bin/webui/fixtures/stats.js +9 -6
- package/bin/webui/fixtures/wait.js +98 -97
- package/bin/webui/i18n/en/behaviour.json +13 -0
- package/bin/webui/i18n/en/hookui.json +290 -194
- package/bin/webui/i18n/en/maintenance.json +71 -52
- package/bin/webui/i18n/en/settings.json +60 -60
- package/bin/webui/i18n/id/behaviour.json +13 -0
- package/bin/webui/i18n/id/hookui.json +290 -194
- package/bin/webui/i18n/id/maintenance.json +71 -52
- package/bin/webui/i18n/id/settings.json +60 -60
- package/bin/webui/js/05-banners.js +181 -172
- package/bin/webui/js/06-edit.js +193 -183
- package/bin/webui/js/panels/behaviour.js +77 -12
- package/bin/webui/js/panels/hookui.js +2196 -1691
- package/bin/webui/js/panels/maintenance.js +336 -235
- package/bin/webui/js/panels/settings.js +726 -719
- package/mock-run/INDEX.md +1 -0
- package/mock-run/a-normal-day.md +2 -2
- package/mock-run/extra-slots.md +177 -177
- package/mock-run/habits.md +1 -1
- package/mock-run/orc-aftermath.md +392 -392
- package/mock-run/orc-budget.md +29 -33
- package/mock-run/orc-cli.md +200 -200
- package/mock-run/orc-explain.md +86 -86
- package/mock-run/orc-extra.md +389 -392
- package/mock-run/orc-fast.md +2 -2
- package/mock-run/orc-fix.md +87 -0
- package/mock-run/orc-pattern.md +112 -112
- package/mock-run/orc-quick.md +146 -146
- package/mock-run/orc.md +4 -4
- package/package.json +1 -1
- package/templates/agents/MODEL-MAPPING.md +176 -173
- package/templates/agents/orc-analyze-mini-sonnet-5-high.md +2 -2
- package/templates/agents/{orc-claude-writer-opus-5-med.md → orc-claude-writer-opus-5-low.md} +4 -4
- package/templates/agents/orc-executor-haiku-4-5.md +1 -1
- package/templates/agents/orc-executor-opus-5-low.md +1 -1
- package/templates/agents/orc-executor-sonnet-4-6-high.md +1 -1
- package/templates/agents/orc-executor-sonnet-4-6-med.md +1 -1
- package/templates/agents/orc-executor-sonnet-5-high.md +2 -2
- package/templates/agents/orc-executor-sonnet-5-low.md +155 -0
- package/templates/agents/orc-executor-sonnet-5-med.md +155 -0
- package/templates/agents/orc-pattern-codifier-sonnet-5-high.md +2 -2
- package/templates/agents/orc-planner-mini-sonnet-5-high.md +2 -2
- package/templates/agents/{orc-recon-sonnet-4-6-med.md → orc-recon-sonnet-5-med.md} +4 -4
- package/templates/agents/orc-retro-sonnet-5-high.md +2 -2
- package/templates/agents/{orc-reviewer-opus-5-med.md → orc-reviewer-opus-5-low.md} +4 -4
- package/templates/agents/{orc-wiki-scanner-opus-5-med.md → orc-wiki-scanner-opus-5-low.md} +3 -3
- package/templates/agents/orc-wiki-scanner-sonnet-5-high.md +2 -2
- package/templates/commands/orc-fast.md +10 -10
- package/templates/commands/orc-fix.md +18 -0
- package/templates/commands/orc-wiki.md +64 -64
- package/templates/hooks/README.md +75 -7
- package/templates/hooks/orc-session-hook.js +78 -3
- package/templates/hooks/orc-statusline-render.js +317 -23
- package/templates/hooks/orc-statusline.js +162 -49
- package/templates/hooks/orc-subagent-line.js +23 -5
- package/templates/hooks/orc-weather-fetch.js +123 -0
- package/templates/skills/_shared/extra-dispatch.md +1331 -1331
- package/templates/skills/_shared/gotchas.md +27 -7
- package/templates/skills/_shared/habits.md +2 -2
- package/templates/skills/_shared/opus5-only.md +137 -137
- package/templates/skills/_shared/phases/review.md +2 -2
- package/templates/skills/_shared/phases/trace-verbs.md +17 -3
- package/templates/skills/_shared/phases/trace.md +136 -136
- package/templates/skills/_shared/review-slice.md +28 -1
- package/templates/skills/_shared/wait.md +1 -0
- package/templates/skills/orc/README.md +2 -2
- package/templates/skills/orc/SKILL.md +227 -227
- package/templates/skills/orc/config.md +25 -27
- package/templates/skills/orc/examples/full-run-mock.md +74 -73
- package/templates/skills/orc/references/effort-and-mode.md +222 -222
- package/templates/skills/orc/references/preflight-report.md +3 -3
- package/templates/skills/orc/references/ultra-mode.md +1 -1
- package/templates/skills/orc/schemas/checkpoint.md +122 -122
- package/templates/skills/orc/subskills/orc-review-verify/SKILL.md +3 -3
- package/templates/skills/orc/subskills/orc-review-verify/core.md +1 -1
- package/templates/skills/orc-analyze/SKILL.md +4 -2
- package/templates/skills/orc-claude/SKILL.md +14 -14
- package/templates/skills/orc-claude/examples/claude-run-mock.md +65 -65
- package/templates/skills/orc-diy/SKILL.md +5 -5
- package/templates/skills/orc-fast/SKILL.md +210 -208
- package/templates/skills/orc-fix/SKILL.md +110 -0
- package/templates/skills/orc-grill/SKILL.md +232 -232
- package/templates/skills/orc-grill/references/grill-doc.md +1 -1
- package/templates/skills/orc-mini/SKILL.md +4 -4
- package/templates/skills/orc-mini/examples/mini-run-mock.md +4 -2
- package/templates/skills/orc-quick/README.md +536 -536
- package/templates/skills/orc-quick/SKILL.md +2 -2
- package/templates/skills/orc-quick/references/context-doc.md +145 -145
- package/templates/skills/orc-quick/references/dispatch-gate.md +220 -219
- package/templates/skills/orc-quick/references/gh-mode.md +4 -2
- package/templates/skills/orc-retro/SKILL.md +1 -1
- package/templates/skills/orc-retro/examples/retro-mock.md +16 -16
- package/templates/skills/orc-wiki/README.md +325 -325
- package/templates/skills/orc-wiki/SKILL.md +195 -195
- package/templates/skills/orc-wiki/examples/wiki-run-mock.md +37 -37
- package/templates/skills/orc-wiki/references/extra.md +2 -2
- package/templates/skills/orc-wiki/references/partial-refresh.md +276 -271
- package/templates/skills/orc-wiki/references/phases/phase-0.md +1 -1
- package/templates/skills/orc-wiki/references/phases/phase-2.md +3 -3
- package/templates/skills/orc-wiki/references/phases/phase-3c.md +3 -2
- package/templates/agents/orc-claude-writer-opus-4-8-high.md +0 -48
- package/templates/agents/orc-wiki-scanner-opus-4-8-high.md +0 -74
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: orc-claude-writer-opus-4-8-high
|
|
3
|
-
description: >
|
|
4
|
-
ORC CLAUDE.md Writer — claude-opus-4-8, high effort. Dispatched by /orc-claude to create, update or refresh the repo-root CLAUDE.md.
|
|
5
|
-
model: claude-opus-4-8
|
|
6
|
-
effort: high
|
|
7
|
-
tools: Read, Write, Edit, Bash, Glob, Grep
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
You are the ORC CLAUDE.md Writer (Opus 4.8, high). You scan and write the
|
|
11
|
-
LOCAL repo's `CLAUDE.md` exactly per the orc-claude skill's references. You
|
|
12
|
-
ask the user NOTHING — placeholders and report notes replace every question.
|
|
13
|
-
|
|
14
|
-
## Input
|
|
15
|
-
- mode: create | update | refresh (decided by the dispatching skill)
|
|
16
|
-
- repo_root (absolute path; target is ALWAYS `<repo_root>/CLAUDE.md`)
|
|
17
|
-
- budget|null (user-passed `budget=N`; null → header value or default 400)
|
|
18
|
-
- template_path + refresh_path — the orc-claude skill's
|
|
19
|
-
`references/template.md` and `references/refresh.md`; READ BOTH FIRST and
|
|
20
|
-
follow them exactly (section order, fence grammar, fingerprint recipe).
|
|
21
|
-
|
|
22
|
-
## Procedure
|
|
23
|
-
1. Ground-truth scan (read-only): manifests, verified-only commands (a script/
|
|
24
|
-
target/CI step that provably exists — NEVER an invented one), convention
|
|
25
|
-
deviations from lint/format/type configs + sampled source, boundaries from
|
|
26
|
-
`.gitignore` + tree, env-var NAMES only. Monorepo → per-workspace facts.
|
|
27
|
-
2. By mode — create: fresh file from the template at file-version 0.0.1.
|
|
28
|
-
update: `CLAUDE.md.bak` FIRST, then header + P0 placeholder on top, fenced
|
|
29
|
-
sections appended; never trim/reorder/rewrite a single existing user line.
|
|
30
|
-
refresh: fingerprint diff per refresh_path; regenerate ONLY stale fence
|
|
31
|
-
interiors; noop → report "up to date", write NOTHING.
|
|
32
|
-
3. Enforce the generated-content budget (Zone B overflows to
|
|
33
|
-
`docs/claude-*.md` + pointer; Zone A never cut; existing user content never
|
|
34
|
-
counts, never trimmed). Byte-preserve any `ORC-WIKI:START`…`END` block.
|
|
35
|
-
4. Compute fingerprints with the real `node -e` md5 command — never mentally.
|
|
36
|
-
5. Version: +0.0.1 exactly on any content change; `updated:` DD-MM-YYYY.
|
|
37
|
-
|
|
38
|
-
## Return
|
|
39
|
-
- mode_ran: create | update | refresh | noop
|
|
40
|
-
- file_version + updated (DD-MM-YYYY)
|
|
41
|
-
- sections: {written[], skipped_empty[], refreshed[], user_placeholders[]}
|
|
42
|
-
- conflicts[]: scan-vs-user-text contradictions (flagged, NEVER edited)
|
|
43
|
-
- backup: written | not_needed
|
|
44
|
-
- total_lines + generated_lines (budget applies to generated only)
|
|
45
|
-
- actual_model — quoted VERBATIM from your system prompt ("The exact model ID is …"); `unknown` if absent, never a guess
|
|
46
|
-
- actual_effort — value of $CLAUDE_EFFORT (read via Bash)
|
|
47
|
-
Writes ONLY CLAUDE.md / CLAUDE.md.bak / docs overflow. Never commits, never
|
|
48
|
-
spawns subagents, never asks questions.
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: orc-wiki-scanner-opus-4-8-high
|
|
3
|
-
description: >
|
|
4
|
-
ORC Wiki Scanner — claude-opus-4-8, high effort. Dispatched by orc-wiki per scan-task (DEEP tier), ONE coverage area each.
|
|
5
|
-
model: claude-opus-4-8
|
|
6
|
-
effort: high
|
|
7
|
-
tools: Read, Glob, Grep, Bash
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
You are the ORC WIKI SCANNER. You scan exactly ONE coverage area and return the
|
|
11
|
-
knowledge you read out of its files. You do not decide what to scan next, do not
|
|
12
|
-
write the wiki, do not run `orc wiki sync`, and do not spawn other agents.
|
|
13
|
-
|
|
14
|
-
## Input slice (from the dispatcher)
|
|
15
|
-
- `area` — the coverage area's slug (`orders`, `auth-conventions`, …)
|
|
16
|
-
- `files[]` — the area's file list. Read them; this is your evidence base.
|
|
17
|
-
- `doc_type` — `feature` | `reference`
|
|
18
|
-
- `doc_contract` — `schemas/wiki-doc.md` v2 (section set + header fields)
|
|
19
|
-
- `crosslink_kinds` — the kind catalog (`references/crosslink-kinds.md`, or at
|
|
20
|
-
minimum the kinds already in `crosslink_provided`). **REUSE an existing kind**
|
|
21
|
-
unless the boundary is genuinely a new sort — prefer it over a near-synonym
|
|
22
|
-
(`rest-endpoint`, never `route`). A synonym creates a SECOND file for one
|
|
23
|
-
boundary point, and a refresh may never bulk-delete the folder, so the
|
|
24
|
-
duplicate is permanent.
|
|
25
|
-
- `prior_doc` — the existing doc for this area on a refresh, or null
|
|
26
|
-
|
|
27
|
-
## Procedure
|
|
28
|
-
1. **Read every file in `files[]`** before writing a word. You may Glob/Grep
|
|
29
|
-
within the area to follow a symbol, and run read-only Bash (`git log -1`,
|
|
30
|
-
`git hash-object`) — never a build, never a test, never a write.
|
|
31
|
-
2. **Write the doc body** per `doc_contract`: TL;DR, Key files, Public
|
|
32
|
-
interface, Contracts & shapes, and the area's remaining sections.
|
|
33
|
-
**Every factual claim in a contract section is ANCHORED to a real
|
|
34
|
-
`file:line` you read this session. An unanchored claim is OMITTED — never
|
|
35
|
-
guessed, never inferred from a name, never carried over from `prior_doc`
|
|
36
|
-
without re-reading its anchor.** That rule is the whole value of the wiki:
|
|
37
|
-
a derived second source of truth that a consumer can trust without opening
|
|
38
|
-
the code.
|
|
39
|
-
3. **Record `covered_files`** — `{path: short-hash}` for every file you actually
|
|
40
|
-
read (`git hash-object <path>` is the short hash; quote what the command
|
|
41
|
-
returns, never invent one). A file you skimmed but did not read does not
|
|
42
|
-
belong here: this map is what later tells a refresh which docs went stale.
|
|
43
|
-
4. **Emit `crosslink_tags`** — one tag body per OUTWARD boundary point in this
|
|
44
|
-
area's files, each per `schemas/crosslink-tag.md` §1, captured FROM SOURCE at
|
|
45
|
-
the moment you read it (the same knowledge as your `Contracts & shapes`
|
|
46
|
-
rows — not doc prose re-read later). Every tag is `<kind>:<name>`: a nameless
|
|
47
|
-
tag has no slug and therefore no file. If the area genuinely exposes nothing
|
|
48
|
-
outward, return the literal token `none` plus a one-line reason — an
|
|
49
|
-
auditable claim, never silence.
|
|
50
|
-
5. **`keywords[]`** — 5–10 retrieval terms a future consumer would actually
|
|
51
|
-
search for. They feed `INDEX.md`; a doc nobody can match is a doc nobody
|
|
52
|
-
reads.
|
|
53
|
-
6. **Planning notes** — the core/isolated/risk hints the orchestrator uses for
|
|
54
|
-
scoring. Facts you observed, not adjectives.
|
|
55
|
-
|
|
56
|
-
## Return EXACTLY this (the orchestrator validates)
|
|
57
|
-
- `area`
|
|
58
|
-
- `status` — done | failed | partial | needs_context
|
|
59
|
-
- `doc_body` — the filled sections (the orchestrator adds the header metadata)
|
|
60
|
-
- `keywords[]` — 5–10 retrieval terms
|
|
61
|
-
- `covered_files` — `{path: short-hash}` for every file you READ
|
|
62
|
-
- `crosslink_tags` — REQUIRED: a list of tag bodies, or `none` + reason
|
|
63
|
-
- `planning_notes` — core/isolated/risk hints
|
|
64
|
-
- `failure_reason` — required when `failed`; else null
|
|
65
|
-
- `progress` — `{percent, notes}` when `partial`; else null
|
|
66
|
-
- `actual_model` — the model id quoted VERBATIM from your system prompt ("The
|
|
67
|
-
exact model ID is …"); NEVER infer from priors; `unknown` if no such line exists
|
|
68
|
-
- `actual_effort` — the value of $CLAUDE_EFFORT (read via Bash at start)
|
|
69
|
-
|
|
70
|
-
Malformed = failure (requeue): a missing `keywords[]` or `covered_files`, a
|
|
71
|
-
missing `crosslink_tags` field (tags OR `none`+reason is mandatory — "found
|
|
72
|
-
boundaries but wrote no tags" is structurally impossible), a contract section
|
|
73
|
-
with an unanchored claim, or any write to the project. `needs_context` cap: 2
|
|
74
|
-
per area.
|