create-egregore 0.19.5 → 0.19.7
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/assets/egregore-launcher.js +411 -25
- package/bin/cli.js +34 -20
- package/lib/local.js +21 -5
- package/lib/pi-runtime.js +186 -0
- package/lib/setup.js +56 -11
- package/lib/ui.js +1 -1
- package/package.json +7 -5
- package/runtime/codex/.codex/spec-manifest.json +1 -1
- package/runtime/codex/AGENTS.md +7 -2
- package/runtime/codex/bin/codex-render-spec.mjs +6 -1
- package/runtime/codex/bin/codex-session-start.sh +5 -59
- package/runtime/codex/bin/codex-skill-render.mjs +7 -5
- package/runtime/codex/bin/lib/context.sh +8 -1
- package/runtime/codex/bin/lib/greeting.sh +12 -108
- package/runtime/codex/bin/lib/metrics.sh +374 -0
- package/runtime/codex/bin/publish-artifact.sh +14 -0
- package/runtime/codex/bin/settings.sh +274 -0
- package/runtime/codex/manifest.json +2 -0
- package/runtime/pi/.codex/config.toml +15 -0
- package/runtime/pi/.codex/hooks/branch-guard.js +242 -0
- package/runtime/pi/.codex/hooks/search-hint.js +65 -0
- package/runtime/pi/.codex/hooks.json +30 -0
- package/runtime/pi/.codex/skills/activity/SKILL.md +70 -0
- package/runtime/pi/.codex/skills/add/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/announce/SKILL.md +54 -0
- package/runtime/pi/.codex/skills/answer/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/archive/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/ask/SKILL.md +59 -0
- package/runtime/pi/.codex/skills/branch/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/checkup/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/commit/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/contribute/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/dark-mode/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/dashboard/SKILL.md +59 -0
- package/runtime/pi/.codex/skills/deep-reflect/SKILL.md +74 -0
- package/runtime/pi/.codex/skills/delete-user/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/egregore-voice/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/emissary/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/env/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/handoff/SKILL.md +67 -0
- package/runtime/pi/.codex/skills/harvest/SKILL.md +107 -0
- package/runtime/pi/.codex/skills/ingest/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/ingest-google/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/ingest-user-interview/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/invite/SKILL.md +40 -0
- package/runtime/pi/.codex/skills/issue/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/me/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/meeting/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/minion/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/note/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/onboarding/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/pr/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/project/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/pull/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/push/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/quest/SKILL.md +77 -0
- package/runtime/pi/.codex/skills/quest-suggest/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/reflect/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/review-pr/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/save/SKILL.md +62 -0
- package/runtime/pi/.codex/skills/scroll/SKILL.md +168 -0
- package/runtime/pi/.codex/skills/scroll/agents/openai.yaml +4 -0
- package/runtime/pi/.codex/skills/scroll/assets/shell.html +542 -0
- package/runtime/pi/.codex/skills/search/SKILL.md +56 -0
- package/runtime/pi/.codex/skills/session-view/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/setup/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/summon/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/sync-repos/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/telegram-connect/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/telemetry/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/test/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/the-spiral/SKILL.md +84 -0
- package/runtime/pi/.codex/skills/thread/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/todo/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/tui-design/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/tutorial/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/update/SKILL.md +25 -0
- package/runtime/pi/.codex/skills/view/SKILL.md +156 -0
- package/runtime/pi/.codex/skills/view/agents/openai.yaml +4 -0
- package/runtime/pi/.codex/skills/view/assets/compose-scaffold.html +221 -0
- package/runtime/pi/.codex/skills/visual-explain/SKILL.md +41 -0
- package/runtime/pi/.codex/skills/wrap/SKILL.md +55 -0
- package/runtime/pi/.codex/spec-manifest.json +114 -0
- package/runtime/pi/.pi/APPEND_SYSTEM.md +255 -0
- package/runtime/pi/.pi/extensions/egregore.ts +324 -0
- package/runtime/pi/.pi/settings.json +6 -0
- package/runtime/pi/.pi/spec-manifest.json +12 -0
- package/runtime/pi/AGENTS.md +350 -0
- package/runtime/pi/bin/activity-data.sh +242 -0
- package/runtime/pi/bin/agent.sh +677 -0
- package/runtime/pi/bin/codex-install-skills.sh +78 -0
- package/runtime/pi/bin/codex-render-spec.mjs +394 -0
- package/runtime/pi/bin/codex-session-start.sh +188 -0
- package/runtime/pi/bin/codex-skill-render.mjs +323 -0
- package/runtime/pi/bin/codex-sync-skills.sh +227 -0
- package/runtime/pi/bin/dashboard-data.sh +178 -0
- package/runtime/pi/bin/graph-batch.sh +60 -0
- package/runtime/pi/bin/graph-op.sh +431 -0
- package/runtime/pi/bin/graph-wal.sh +228 -0
- package/runtime/pi/bin/graph.sh +177 -0
- package/runtime/pi/bin/handoff-pr-backfill.sh +86 -0
- package/runtime/pi/bin/handoff-run.sh +581 -0
- package/runtime/pi/bin/handoff-save-egregore.sh +136 -0
- package/runtime/pi/bin/index-handoff.sh +312 -0
- package/runtime/pi/bin/lib/artifact-id.sh +46 -0
- package/runtime/pi/bin/lib/config.sh +71 -0
- package/runtime/pi/bin/lib/context.sh +542 -0
- package/runtime/pi/bin/lib/dashboard-artifact.sh +142 -0
- package/runtime/pi/bin/lib/ensure-develop.sh +183 -0
- package/runtime/pi/bin/lib/git-sync.sh +288 -0
- package/runtime/pi/bin/lib/greeting.sh +340 -0
- package/runtime/pi/bin/lib/hash.sh +13 -0
- package/runtime/pi/bin/lib/identity.sh +174 -0
- package/runtime/pi/bin/lib/metrics.sh +374 -0
- package/runtime/pi/bin/lib/permissions.sh +106 -0
- package/runtime/pi/bin/lib/time.sh +56 -0
- package/runtime/pi/bin/lib/worktree-links.sh +54 -0
- package/runtime/pi/bin/notify.sh +207 -0
- package/runtime/pi/bin/pi-branch-policy.mjs +15 -0
- package/runtime/pi/bin/pi-product-workflows.mjs +324 -0
- package/runtime/pi/bin/pi-render-spec.mjs +114 -0
- package/runtime/pi/bin/pi-session-start.sh +24 -0
- package/runtime/pi/bin/publish-artifact.sh +201 -0
- package/runtime/pi/bin/publish-references.sh +144 -0
- package/runtime/pi/bin/repo-state.sh +99 -0
- package/runtime/pi/bin/telemetry.sh +391 -0
- package/runtime/pi/bin/worktree-create.sh +118 -0
- package/runtime/pi/bin/worktree-remove.sh +50 -0
- package/runtime/pi/bin/worktree.sh +198 -0
- package/runtime/pi/manifest.json +176 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: scroll
|
|
3
|
+
description: 'Compose and tend an Egregore living paper with an explanatory face, embedded decision harvest, stable published URL, and versioned paste-back update loop. Use when the user invokes /scroll or $scroll, asks for a living paper or a spec with questions inside, presents a proposal/architecture/product/feature with open forks, or pastes a versioned scroll decisions return block.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Egregore Scroll
|
|
7
|
+
|
|
8
|
+
Native Codex Egregore skill. Use only inside an Egregore checkout.
|
|
9
|
+
|
|
10
|
+
A scroll is one self-contained Meridian HTML artifact with two linked views:
|
|
11
|
+
the readable paper and the open decisions living inside it. Every return block
|
|
12
|
+
updates the same artifact at the same stable id.
|
|
13
|
+
|
|
14
|
+
Use `$view` for a static document with no pending decisions, `$harvest` for
|
|
15
|
+
elicitation without a published explaining face, and a concise question for one
|
|
16
|
+
small fork. A scroll requires all three legs: face, harvest, and update loop.
|
|
17
|
+
|
|
18
|
+
## Structured UX parity
|
|
19
|
+
|
|
20
|
+
The browser artifact is the primary output. Preserve both tabs, deep links from
|
|
21
|
+
honest costs into decisions, the versioned copydock fence, stable URL, and local
|
|
22
|
+
source path. Do not substitute a prose-only summary or expose raw publish output.
|
|
23
|
+
|
|
24
|
+
## Route the invocation
|
|
25
|
+
|
|
26
|
+
- A normal request creates version 1.
|
|
27
|
+
- A pasted block matching `#<slug>-decisions:v<N>` runs the update loop.
|
|
28
|
+
- If a pasted version is stale, absorb still-applicable answers and state which
|
|
29
|
+
forks moved after that version.
|
|
30
|
+
|
|
31
|
+
Run inline with shell and filesystem tools. Do not invoke Claude Code commands
|
|
32
|
+
or Loom delegation.
|
|
33
|
+
|
|
34
|
+
## Build a new scroll
|
|
35
|
+
|
|
36
|
+
1. Read the source design, relevant memory, code, and quest context in full.
|
|
37
|
+
2. Derive a stable kebab-case slug of at most 50 characters. Create:
|
|
38
|
+
- surface id `ds-<date>-<slug>`;
|
|
39
|
+
- harvest id `harvest-<date>-<slug>`;
|
|
40
|
+
- a short unique `<prefix>.harvest` browser storage key.
|
|
41
|
+
3. Copy `.codex/skills/scroll/assets/shell.html` into `tmp/<slug>/index.html`.
|
|
42
|
+
Keep this build source in the worktree so future turns can tend it.
|
|
43
|
+
4. Inject the canonical design-system CSS at build time from
|
|
44
|
+
`packages/egregore-artifacts/lib/vendor/design-system/dist/egregore-design.css`
|
|
45
|
+
into `/*__MERIDIAN_CSS__*/`. If the packages tree is unavailable, extract the
|
|
46
|
+
same path from `egregore-artifacts@latest` rather than freezing tokens.
|
|
47
|
+
5. Fill every placeholder and replace the `__FACE__` and `__HARVEST__` slot
|
|
48
|
+
comments using the grammar documented in the shell.
|
|
49
|
+
|
|
50
|
+
### Write the face
|
|
51
|
+
|
|
52
|
+
Create a light paper, not a transcript dump:
|
|
53
|
+
|
|
54
|
+
- A paper header with kicker, title, italic subtitle, grounds, date, and
|
|
55
|
+
`Version vN — updates in place at this URL`.
|
|
56
|
+
- The setting: current reality, load-bearing verified numbers, the gap, and a
|
|
57
|
+
thesis reframe.
|
|
58
|
+
- Two to four genuinely different mental models that stress-test the design.
|
|
59
|
+
- The machine: concrete anatomy and protocol, using layers, steps, and
|
|
60
|
+
tokenized SVG figures. Mark illustrative charts `shapes, not measurements`.
|
|
61
|
+
- Consequences for product or practice.
|
|
62
|
+
- Honest costs as cards. Every cost must call `goFork('<fork-id>')` and link to
|
|
63
|
+
the harvest decision that prices it.
|
|
64
|
+
|
|
65
|
+
### Write the harvest
|
|
66
|
+
|
|
67
|
+
Create two to four bands of decision cards. Each card needs:
|
|
68
|
+
|
|
69
|
+
- a stable fork id, grounded framing, and a reference back into the face;
|
|
70
|
+
- two to four real options, each with one credible advantage and disadvantage;
|
|
71
|
+
- at most one starred lean, presented as a position to challenge;
|
|
72
|
+
- a why textarea whose note returns with the pick.
|
|
73
|
+
|
|
74
|
+
Add open prompts for material that is not a fork. Prefer questions grounded in
|
|
75
|
+
the work over meta-prompts asking what to ask next. The copydock must emit:
|
|
76
|
+
|
|
77
|
+
```text
|
|
78
|
+
#<slug>-decisions:v<N>
|
|
79
|
+
surface: <surface-id>
|
|
80
|
+
harvest: <harvest-id>
|
|
81
|
+
date: <date>
|
|
82
|
+
|
|
83
|
+
Q1 <fork-id>: <key> ("<label>") | UNDECIDED
|
|
84
|
+
note: <why, verbatim>
|
|
85
|
+
O1 <prompt-id>: <text | UNDECIDED>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Theme and asset constraints
|
|
89
|
+
|
|
90
|
+
Choose the default theme pair from the primary reader's recorded preference
|
|
91
|
+
when available: `sovereign`/`bedrock`, `meridian`/`nocturne`, or
|
|
92
|
+
`agronomic`/`soil`. Record a newly stated preference in that person's memory
|
|
93
|
+
profile.
|
|
94
|
+
|
|
95
|
+
Keep theme state on `<html data-theme>` and restore it before paint. In authored
|
|
96
|
+
body content and SVGs, every theme-sensitive fill, stroke, background, border,
|
|
97
|
+
and text color must use `var(--token)`. Do not emit inline hex colors. Preserve
|
|
98
|
+
the shell's persisted palette picker and print/mobile behavior.
|
|
99
|
+
|
|
100
|
+
Before publishing:
|
|
101
|
+
|
|
102
|
+
1. Confirm no `__[A-Z_]*__` placeholders remain.
|
|
103
|
+
2. Check tag balance and that every `goFork()` id has one matching
|
|
104
|
+
`data-decision` card.
|
|
105
|
+
3. Grep authored content for raw hex and resolved inline palette values.
|
|
106
|
+
4. Capture both `file://...` and `file://...#harvest` views and inspect them.
|
|
107
|
+
5. Confirm headings use the intended display face rather than a system serif.
|
|
108
|
+
|
|
109
|
+
## Publish and record
|
|
110
|
+
|
|
111
|
+
Publish connected configurations to the permanent slug:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
bash bin/publish-artifact.sh document tmp/<slug>/index.html --raw-html \
|
|
115
|
+
--id <slug> --title "<title>" --author "<author>" \
|
|
116
|
+
--description "<description>"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Verify the returned URL, open it, and report it. Every later version must reuse
|
|
120
|
+
the same `--id`; never mint a new URL for an update. In local mode, publishing
|
|
121
|
+
is unavailable: open the file locally and report the source path without
|
|
122
|
+
suggesting configuration changes.
|
|
123
|
+
|
|
124
|
+
Add the URL or local path, source location, version, and fence tag to the
|
|
125
|
+
relevant quest's log/artifacts tables. If no quest is relevant, keep the source
|
|
126
|
+
path as the durable record and state it.
|
|
127
|
+
|
|
128
|
+
## Update loop
|
|
129
|
+
|
|
130
|
+
On a returned fence:
|
|
131
|
+
|
|
132
|
+
1. **Absorb.** Parse Q/O lines and notes. Write durable decisions with their
|
|
133
|
+
reasoning to `memory/knowledge/decisions/`, update the underlying spec or
|
|
134
|
+
plan, and add connected HarvestTurn records when available. `UNDECIDED` is a
|
|
135
|
+
valid answer.
|
|
136
|
+
2. **Rewrite the face.** Weave settled answers and reasoning into fresh prose,
|
|
137
|
+
mark them `decided v<N> · <date>`, and update linked cost cards to accepted,
|
|
138
|
+
mitigated, or remaining residuals.
|
|
139
|
+
3. **Regenerate the harvest.** Retire answered cards. Carry an undecided fork
|
|
140
|
+
once at most; after two undecided returns, reframe it or demote it to an open
|
|
141
|
+
prompt. If its note actually resolves it, absorb the note as the decision.
|
|
142
|
+
Mint new forks from newly unlocked consequences, respondent requests, and
|
|
143
|
+
new ground truth.
|
|
144
|
+
4. **Show, then ask.** When abstract forks run dry or the respondent asks for
|
|
145
|
+
something concrete, place the draft under discussion directly in the
|
|
146
|
+
harvest view with in-place reaction prompts.
|
|
147
|
+
5. **Version.** Bump every version marker, update the copydock, and append a
|
|
148
|
+
one-line changelog with absorbed and newly opened forks.
|
|
149
|
+
6. **Republish.** Publish to the same stable id, update the quest record, open
|
|
150
|
+
the refreshed URL, and state what changed and what the new version asks.
|
|
151
|
+
|
|
152
|
+
Multiple returns against one version are separate turns. Merge compatible
|
|
153
|
+
answers; turn conflicting choices into a new explicit fork instead of silently
|
|
154
|
+
resolving them.
|
|
155
|
+
|
|
156
|
+
## Voice and telemetry
|
|
157
|
+
|
|
158
|
+
Write the face as external-grade Egregore prose: declarative, precise, grounded
|
|
159
|
+
in real numbers, and honest about costs. Put metaphor in visuals rather than
|
|
160
|
+
labels; prefer established terms over coinages.
|
|
161
|
+
|
|
162
|
+
After completion, emit telemetry best-effort:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
bash bin/telemetry.sh emit "command" '{"command":"scroll"}' 2>/dev/null &
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Never call the deprecated `egregore-handoff` CLI.
|