spell 0.8.5 → 0.8.6
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/app/package.json +1 -1
- package/app/spaces/@spell/examples/Solitaire/__project.json5 +22 -4
- package/dist/epic/cli/epicGroups.js +1 -0
- package/dist/epic/command/epicArgs.js +3 -1
- package/dist/epic/comments/ThreadFacts.js +10 -2
- package/dist/epic/components/__pack/epics.entry.js +41 -41
- package/dist/epic/components/__pack/epics.pack.js +1517 -1481
- package/dist/epic/components/epic-answer/EpicAnswer.css +21 -11
- package/dist/epic/components/epic-answer/EpicAnswer.css.inline.js +1 -1
- package/dist/epic/components/epic-item/CollapseAll.css +3 -3
- package/dist/epic/components/epic-item/Fold.js +105 -81
- package/dist/epic/components/epic-overview/EpicOverview.js +0 -2
- package/dist/epic/components/epic-phase/EpicPhase.css +16 -7
- package/dist/epic/components/epic-phase/EpicPhase.css.inline.js +1 -1
- package/dist/epic/components/epic-phase/EpicPhase.js +1 -3
- package/dist/epic/components/epic-section/EpicFold.css +15 -0
- package/dist/epic/components/epic-section/EpicFold.css.inline.js +1 -1
- package/dist/epic/components/epic-section/EpicFold.js +80 -52
- package/dist/epic/components/epic-section/EpicSection.js +1 -3
- package/dist/epic/components/epic-section/EpicSection.types.js +1 -15
- package/dist/epic/components/epic-section/PhaseDrag.js +7 -4
- package/dist/epic/docs/__data/components.json5 +0 -42
- package/dist/epic/docs/epic-overview.html +6 -6
- package/dist/epic/docs/epic-phase.html +12 -5
- package/dist/epic/docs/epic-section.html +6 -4
- package/dist/epic/review/ReviewClient.js +9 -0
- package/dist/epic/tool/InboxCommands.js +12 -1
- package/dist/epic/tool/PLAN-DOC.md +9 -0
- package/dist/epic/tool/PlanDoc.js +17 -5
- package/dist/epic/tool/PlanDocCommands.js +6 -3
- package/dist/epic/tool/ReviewInbox.js +20 -4
- package/dist/epic/tools/_assets/commands.js +452 -451
- package/dist/epic/tools/_assets/core-reference.js +656 -655
- package/dist/epic/tools/_assets/spell-comments.js +575 -569
- package/dist/epic/tools/_assets/spell-doc-runtime.js +16 -3
- package/dist/epic/tools/_assets/spell-syntax.js +415 -414
- package/dist/epic/tools/_assets/spell-ui.entry.js +3 -2
- package/dist/epic/tools/_assets/spell-ui.js +7898 -7835
- package/dist/server/WebServer.js +2 -1
- package/dist/server/liveClient.d.ts +37 -1
- package/dist/server/liveClient.js +119 -6
- package/dist/server/site/PagePatch.d.ts +35 -1
- package/dist/server/site/PagePatch.js +94 -12
- package/dist/ui/components/ui-components/PackHotSwap.d.ts +6 -0
- package/dist/ui/components/ui-components/PackHotSwap.js +12 -2
- package/dist/ui/components/ui-section/UISection.d.ts +8 -0
- package/dist/ui/components/ui-section/UISection.js +22 -11
- package/dist/ui/docs-components/ui-docs-theme-bench/UIDocsThemeBench.d.ts +1 -1
- package/dist/util/spell/constants.js +1 -1
- package/epic/package.json +1 -1
- package/epic/skills/epic/SKILL.md +16 -0
- package/epic/src/AGENTS.md +29 -4
- package/epic/src/tool/PLAN-DOC.md +9 -0
- package/package.json +1 -1
- package/parser/package.json +1 -1
- package/ui/package.json +1 -1
package/app/package.json
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Solitaire",
|
|
3
3
|
"description": "Klondike solitaire in spellx, Spell in tags: its own cards, deck and piles, each its own element; the card a two sided view, the game's moves its actions, with keys and a right-click menu; `pause for` animates the deal",
|
|
4
|
-
"imports": [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
"imports": [
|
|
5
|
+
{
|
|
6
|
+
"path": "/Card.spellml",
|
|
7
|
+
"active": true
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"path": "/Deck.spellml",
|
|
11
|
+
"active": true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"path": "/Pile.spellml",
|
|
15
|
+
"active": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"path": "/Solitaire.spellml",
|
|
19
|
+
"active": true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "/styles.css",
|
|
23
|
+
"active": true
|
|
24
|
+
}
|
|
25
|
+
]
|
|
8
26
|
}
|
|
@@ -1048,6 +1048,7 @@ var VERB_FLAGS = {
|
|
|
1048
1048
|
"--changes <html>": "a phase's changes",
|
|
1049
1049
|
"--goal <html>": "a phase's goal",
|
|
1050
1050
|
"--plan <html>": "a phase's build plan, waiting for Owen's Accept",
|
|
1051
|
+
"--accepted": "with --plan: written accepted, Owen's comments on his Accept folded in (no second Accept)",
|
|
1051
1052
|
"--files <html>": "a phase's files",
|
|
1052
1053
|
"--verify <html>": "how a phase is checked",
|
|
1053
1054
|
"--estimate <time>": "a phase's estimate, e.g. 1-2h",
|
|
@@ -165,6 +165,8 @@ function updateArgs(args, at, target) {
|
|
|
165
165
|
}
|
|
166
166
|
} else if (phase !== void 0) {
|
|
167
167
|
const body = PHASE_BODY.filter((key) => key in flags).flatMap((key) => [`--${key}`, value(key)]);
|
|
168
|
+
if (flags.accepted && !("plan" in flags)) throw new EpicCommandError("update: --accepted goes with --plan");
|
|
169
|
+
if (flags.accepted) body.push("--accepted");
|
|
168
170
|
if (body.length) runs.push(["phase-body", epic, phase, ...body]);
|
|
169
171
|
if ("estimate" in flags) runs.push(["estimate", epic, phase, value("estimate")]);
|
|
170
172
|
rename(phaseLabel(phase));
|
|
@@ -314,7 +316,7 @@ var CARD_EXAMPLES = {
|
|
|
314
316
|
done: ' done ["<summary>"]',
|
|
315
317
|
noted: ' noted "<what was recorded>"'
|
|
316
318
|
};
|
|
317
|
-
var PHASE_FIELDS = [...PHASE_BODY, "estimate", "title", "html"];
|
|
319
|
+
var PHASE_FIELDS = [...PHASE_BODY, "accepted", "estimate", "title", "html"];
|
|
318
320
|
var ITEM_FIELDS = ["title", "html", "calm", "loud"];
|
|
319
321
|
var PAGE_FIELDS = ["standing", "noStanding"];
|
|
320
322
|
export {
|
|
@@ -69,13 +69,21 @@ var ThreadFacts = class _ThreadFacts {
|
|
|
69
69
|
// ## What it's on
|
|
70
70
|
////////////////
|
|
71
71
|
/**
|
|
72
|
-
* A few words
|
|
73
|
-
*
|
|
72
|
+
* A few words for a thread's header and the comment pane's: the start of Owen's own words once he's written
|
|
73
|
+
* some (Owen, 2026-10-29, epic `epic-engine` I162: "show beginning of my text instead" of what was selected: the
|
|
74
|
+
* page already highlights that); else what it's on, the start of the selected text, else of its block's, in
|
|
75
|
+
* quotes; "This page" for the page.
|
|
74
76
|
*/
|
|
75
77
|
static headline(place) {
|
|
78
|
+
const own = (place.text ?? "").replace(/\s+/g, " ").trim();
|
|
79
|
+
if (own) return _ThreadFacts.quoted(own);
|
|
76
80
|
if (place.kind === "page") return "This page";
|
|
77
81
|
const words = (place.quote || place.excerpt || place.label || "").replace(/\s+/g, " ").trim();
|
|
78
82
|
if (!words) return `This ${_ThreadFacts.kindName(place.kind)}`;
|
|
83
|
+
return _ThreadFacts.quoted(words);
|
|
84
|
+
}
|
|
85
|
+
/** `words` in quotes, cut at `HEADLINE_CHARS` with "…". */
|
|
86
|
+
static quoted(words) {
|
|
79
87
|
return `“${words.length > HEADLINE_CHARS ? `${words.slice(0, HEADLINE_CHARS).trimEnd()}…` : words}”`;
|
|
80
88
|
}
|
|
81
89
|
/**
|
|
@@ -9,47 +9,47 @@ SpellUI.registerPack({
|
|
|
9
9
|
prefix: "epic-",
|
|
10
10
|
catalog: CATALOG,
|
|
11
11
|
families: {
|
|
12
|
-
"epic-actions": "
|
|
13
|
-
"epic-agents": "
|
|
14
|
-
"epic-answer": "
|
|
15
|
-
"epic-aside": "
|
|
16
|
-
"epic-ask": "
|
|
17
|
-
"epic-cards": "
|
|
18
|
-
"epic-change": "
|
|
19
|
-
"epic-choice-rows": "
|
|
20
|
-
"epic-choices": "
|
|
21
|
-
"epic-choices-bar": "
|
|
22
|
-
"epic-code": "
|
|
23
|
-
"epic-comment-pane": "
|
|
24
|
-
"epic-commit": "
|
|
25
|
-
"epic-event": "
|
|
26
|
-
"epic-item": "
|
|
27
|
-
"epic-link": "
|
|
28
|
-
"epic-list": "
|
|
29
|
-
"epic-mark": "
|
|
30
|
-
"epic-net-effect": "
|
|
31
|
-
"epic-new-item": "
|
|
32
|
-
"epic-note": "
|
|
33
|
-
"epic-original": "
|
|
34
|
-
"epic-overview": "
|
|
35
|
-
"epic-page": "
|
|
36
|
-
"epic-page-note-head": "
|
|
37
|
-
"epic-phase": "
|
|
38
|
-
"epic-prompt": "
|
|
39
|
-
"epic-question": "
|
|
40
|
-
"epic-review": "
|
|
41
|
-
"epic-run": "
|
|
42
|
-
"epic-run-row": "
|
|
43
|
-
"epic-section": "
|
|
44
|
-
"epic-send": "
|
|
45
|
-
"epic-send-buttons": "
|
|
46
|
-
"epic-state-filter": "
|
|
47
|
-
"epic-status": "
|
|
48
|
-
"epic-summary": "
|
|
49
|
-
"epic-test-run": "
|
|
50
|
-
"epic-text-box": "
|
|
51
|
-
"epic-thread": "
|
|
52
|
-
"epic-update": "
|
|
12
|
+
"epic-actions": "160f8d3c8011dc92",
|
|
13
|
+
"epic-agents": "0c941bb944ef625f",
|
|
14
|
+
"epic-answer": "bf3b2ce7d504bc33",
|
|
15
|
+
"epic-aside": "a6b3df5e24971e8a",
|
|
16
|
+
"epic-ask": "a6567191da2ce5a9",
|
|
17
|
+
"epic-cards": "cf196ed6fc26a720",
|
|
18
|
+
"epic-change": "2922cb0fe9eaa6a4",
|
|
19
|
+
"epic-choice-rows": "9e51d6e018378dfa",
|
|
20
|
+
"epic-choices": "dcb82f758e74b12a",
|
|
21
|
+
"epic-choices-bar": "dc4e9c4be806da16",
|
|
22
|
+
"epic-code": "2693b326113194d2",
|
|
23
|
+
"epic-comment-pane": "ddb71cc9257986e3",
|
|
24
|
+
"epic-commit": "9288cabc0d31f759",
|
|
25
|
+
"epic-event": "d1ba06280e64f93b",
|
|
26
|
+
"epic-item": "941b55c0039dd8f9",
|
|
27
|
+
"epic-link": "56125b97a9804bb5",
|
|
28
|
+
"epic-list": "c9a07631a4a55156",
|
|
29
|
+
"epic-mark": "b169fe455a14551f",
|
|
30
|
+
"epic-net-effect": "681f89bb9ba643e4",
|
|
31
|
+
"epic-new-item": "ffee1b1a4bd8bd91",
|
|
32
|
+
"epic-note": "005be5f9a9131f14",
|
|
33
|
+
"epic-original": "b9d38b82860d6b51",
|
|
34
|
+
"epic-overview": "82e760d9efec5f82",
|
|
35
|
+
"epic-page": "7c5c660c65eff770",
|
|
36
|
+
"epic-page-note-head": "89791f06a644d1e6",
|
|
37
|
+
"epic-phase": "e9f2c017a2b336c2",
|
|
38
|
+
"epic-prompt": "db5bdfa1e2df2246",
|
|
39
|
+
"epic-question": "362b832838927b8e",
|
|
40
|
+
"epic-review": "7904eb8ddd0e66c7",
|
|
41
|
+
"epic-run": "6e1f5d0aafbe9809",
|
|
42
|
+
"epic-run-row": "8376d0fcf27c5214",
|
|
43
|
+
"epic-section": "f43d8f5d020ac59c",
|
|
44
|
+
"epic-send": "b958e58c8379fb9f",
|
|
45
|
+
"epic-send-buttons": "824a822ce78342c0",
|
|
46
|
+
"epic-state-filter": "ddbc0bf120d088c5",
|
|
47
|
+
"epic-status": "9a8146f109d5a722",
|
|
48
|
+
"epic-summary": "da799f5c202048a5",
|
|
49
|
+
"epic-test-run": "adfb2c2c79f80c94",
|
|
50
|
+
"epic-text-box": "3fe93a5a92e174da",
|
|
51
|
+
"epic-thread": "6f4d1de110ea1141",
|
|
52
|
+
"epic-update": "a31a4635772d1fd1"
|
|
53
53
|
},
|
|
54
54
|
define: /* @__PURE__ */ __name(() => Promise.all([
|
|
55
55
|
import("../epic-actions/index.js"),
|