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.
Files changed (56) hide show
  1. package/app/package.json +1 -1
  2. package/app/spaces/@spell/examples/Solitaire/__project.json5 +22 -4
  3. package/dist/epic/cli/epicGroups.js +1 -0
  4. package/dist/epic/command/epicArgs.js +3 -1
  5. package/dist/epic/comments/ThreadFacts.js +10 -2
  6. package/dist/epic/components/__pack/epics.entry.js +41 -41
  7. package/dist/epic/components/__pack/epics.pack.js +1517 -1481
  8. package/dist/epic/components/epic-answer/EpicAnswer.css +21 -11
  9. package/dist/epic/components/epic-answer/EpicAnswer.css.inline.js +1 -1
  10. package/dist/epic/components/epic-item/CollapseAll.css +3 -3
  11. package/dist/epic/components/epic-item/Fold.js +105 -81
  12. package/dist/epic/components/epic-overview/EpicOverview.js +0 -2
  13. package/dist/epic/components/epic-phase/EpicPhase.css +16 -7
  14. package/dist/epic/components/epic-phase/EpicPhase.css.inline.js +1 -1
  15. package/dist/epic/components/epic-phase/EpicPhase.js +1 -3
  16. package/dist/epic/components/epic-section/EpicFold.css +15 -0
  17. package/dist/epic/components/epic-section/EpicFold.css.inline.js +1 -1
  18. package/dist/epic/components/epic-section/EpicFold.js +80 -52
  19. package/dist/epic/components/epic-section/EpicSection.js +1 -3
  20. package/dist/epic/components/epic-section/EpicSection.types.js +1 -15
  21. package/dist/epic/components/epic-section/PhaseDrag.js +7 -4
  22. package/dist/epic/docs/__data/components.json5 +0 -42
  23. package/dist/epic/docs/epic-overview.html +6 -6
  24. package/dist/epic/docs/epic-phase.html +12 -5
  25. package/dist/epic/docs/epic-section.html +6 -4
  26. package/dist/epic/review/ReviewClient.js +9 -0
  27. package/dist/epic/tool/InboxCommands.js +12 -1
  28. package/dist/epic/tool/PLAN-DOC.md +9 -0
  29. package/dist/epic/tool/PlanDoc.js +17 -5
  30. package/dist/epic/tool/PlanDocCommands.js +6 -3
  31. package/dist/epic/tool/ReviewInbox.js +20 -4
  32. package/dist/epic/tools/_assets/commands.js +452 -451
  33. package/dist/epic/tools/_assets/core-reference.js +656 -655
  34. package/dist/epic/tools/_assets/spell-comments.js +575 -569
  35. package/dist/epic/tools/_assets/spell-doc-runtime.js +16 -3
  36. package/dist/epic/tools/_assets/spell-syntax.js +415 -414
  37. package/dist/epic/tools/_assets/spell-ui.entry.js +3 -2
  38. package/dist/epic/tools/_assets/spell-ui.js +7898 -7835
  39. package/dist/server/WebServer.js +2 -1
  40. package/dist/server/liveClient.d.ts +37 -1
  41. package/dist/server/liveClient.js +119 -6
  42. package/dist/server/site/PagePatch.d.ts +35 -1
  43. package/dist/server/site/PagePatch.js +94 -12
  44. package/dist/ui/components/ui-components/PackHotSwap.d.ts +6 -0
  45. package/dist/ui/components/ui-components/PackHotSwap.js +12 -2
  46. package/dist/ui/components/ui-section/UISection.d.ts +8 -0
  47. package/dist/ui/components/ui-section/UISection.js +22 -11
  48. package/dist/ui/docs-components/ui-docs-theme-bench/UIDocsThemeBench.d.ts +1 -1
  49. package/dist/util/spell/constants.js +1 -1
  50. package/epic/package.json +1 -1
  51. package/epic/skills/epic/SKILL.md +16 -0
  52. package/epic/src/AGENTS.md +29 -4
  53. package/epic/src/tool/PLAN-DOC.md +9 -0
  54. package/package.json +1 -1
  55. package/parser/package.json +1 -1
  56. package/ui/package.json +1 -1
package/app/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spell-app",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "spell": {
@@ -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
- "path": "/styles.css",
6
- "active": true
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 of what a comment is on, for a thread's header and the comment pane's: the start of the selected
73
- * text, else of its block's text, in quotes; "This page" for the page.
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": "64a6b0f4ae78d388",
13
- "epic-agents": "40ba4079fe9d4b32",
14
- "epic-answer": "1fc20acb72ffe6dc",
15
- "epic-aside": "d4b5edc5b19d9894",
16
- "epic-ask": "813094f912c0b0dc",
17
- "epic-cards": "3db1fbf52093a40b",
18
- "epic-change": "ef1535e7b79f5157",
19
- "epic-choice-rows": "2c92f1b0109b2d60",
20
- "epic-choices": "d9cf330df7435773",
21
- "epic-choices-bar": "2999e041dd055513",
22
- "epic-code": "310cef0802d7338a",
23
- "epic-comment-pane": "dab59dc77cdc4320",
24
- "epic-commit": "67d9d7a8e11ba2a7",
25
- "epic-event": "e27f27269e1c8bf7",
26
- "epic-item": "b3e17e761f13932e",
27
- "epic-link": "2257fcddb40f0d12",
28
- "epic-list": "6f08215bd73627e9",
29
- "epic-mark": "e3812e05fd56ddcb",
30
- "epic-net-effect": "5b3072279b7a1000",
31
- "epic-new-item": "744368def713732d",
32
- "epic-note": "3861214a0ec6ea50",
33
- "epic-original": "32a248e6c9f144aa",
34
- "epic-overview": "37cdc014d9ed0b99",
35
- "epic-page": "6df2220f700bc0c8",
36
- "epic-page-note-head": "90258ef6b41dd930",
37
- "epic-phase": "97b1e90c9db28ddf",
38
- "epic-prompt": "4eb62dea032dcb4e",
39
- "epic-question": "cc05a743d1011775",
40
- "epic-review": "cd0ee744c7f462a3",
41
- "epic-run": "7a81da52b986c063",
42
- "epic-run-row": "fc56872bb2d391e0",
43
- "epic-section": "4cf1bbf989c58fe7",
44
- "epic-send": "c6d7d1be3b547c49",
45
- "epic-send-buttons": "919dfa9c216a9f35",
46
- "epic-state-filter": "48908f37da6c4ed5",
47
- "epic-status": "b453d735bdb9741d",
48
- "epic-summary": "8bd75063f4c2218b",
49
- "epic-test-run": "de231402ea66abe3",
50
- "epic-text-box": "057493503a7471ce",
51
- "epic-thread": "5ef4069516de2e0e",
52
- "epic-update": "5d223cbe9581428c"
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"),