shadok-ai 0.19.85 → 0.19.86

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/README.md CHANGED
@@ -609,8 +609,10 @@ Enter to skip; you can add it later from the web UI).
609
609
  about, terminal), its ⋯ menu, schedules and webhooks, the composer (attach, add
610
610
  a skill, dictate), the toolbar (secrets, ledger, Skill Factory, profiles,
611
611
  Telegram, sound, and what the ⋯ holds), the people buttons (Users, Reports,
612
- Security), the quota bars, and the cockpit's name and settings menu. Skip and
613
- Escape end it at any point; ⋯ → *Guided tour* replays it. A step whose target
612
+ Security), the quota bars, and the cockpit's name and settings menu. Each card
613
+ is a couple of plain sentences. Skip and Escape end it at any point — a click
614
+ beside the card does **not**, so a stray click cannot throw the tour away — and
615
+ ⋯ → *Replay the guided tour* brings it back. A step whose target
614
616
  isn't on screen is **dropped rather than faked** — a member has no Reports
615
617
  button, a phone has no groups column — so it gets a shorter tour instead of a
616
618
  spotlight on nothing. One case is staged instead: a cockpit with **no agent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadok-ai",
3
- "version": "0.19.85",
3
+ "version": "0.19.86",
4
4
  "main": "dist/session.js",
5
5
  "scripts": {
6
6
  "test": "node --import tsx --test --test-timeout=120000 test/*.ts context/*/test/*.test.mjs",
package/public/index.html CHANGED
@@ -2393,8 +2393,8 @@
2393
2393
  position: fixed;
2394
2394
  border-radius: 10px;
2395
2395
  box-shadow: 0 0 0 9999px rgba(8, 9, 13, 0.72);
2396
- /* Clicks in the hole fall through to the overlay, which ends the tour —
2397
- the same "click outside" gesture as everywhere else. */
2396
+ /* Clicks in the hole fall through to the overlay, which swallows them: the
2397
+ tour ends on Skip, Done or Escape, never on a click that missed. */
2398
2398
  pointer-events: none;
2399
2399
  transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease;
2400
2400
  }
@@ -3575,7 +3575,7 @@
3575
3575
  <div class="mm-sep" id="whoSep" hidden></div>
3576
3576
  <button id="toggleDiff">Diff</button>
3577
3577
  <button id="instanceStatsBtn">📊 Instance stats</button>
3578
- <button id="tourReplay">Guided tour</button>
3578
+ <button id="tourReplay">Replay the guided tour</button>
3579
3579
  <!-- On a phone the header star pill is dropped (it's the widest tool, and
3580
3580
  pushed the icons off the row); it reappears here instead. -->
3581
3581
  <button id="starMenuItem">★ Star on GitHub</button>
@@ -17529,9 +17529,13 @@
17529
17529
 
17530
17530
  $("tourNext").addEventListener("click", () => paintTourStep(true));
17531
17531
  $("tourSkip").addEventListener("click", endTour);
17532
- // A click on the overlay itself — including through the hole, which has
17533
- // pointer-events: none — ends it. Nobody is trapped in a tutorial.
17534
- $("tourOverlay").addEventListener("click", (e) => { if (e.target === $("tourOverlay")) endTour(); });
17532
+ // A click beside the bubble does NOT end the tour. It used to ("the same
17533
+ // click-outside gesture as everywhere else"), and that is the wrong gesture
17534
+ // here: a popin is closed by someone who opened it, the tour is met by
17535
+ // someone who did not ask for it and is reaching for a button behind the
17536
+ // dim. One stray click threw the whole thing away, marked as seen. Leaving
17537
+ // is a decision — Skip, Done, or Escape — and nobody is trapped: all three
17538
+ // are always available, and ⋯ → "Replay the guided tour" brings it back.
17535
17539
  document.addEventListener("keydown", (e) => {
17536
17540
  if (e.key === "Escape" && !$("tourOverlay").hidden) { endTour(); e.preventDefault(); }
17537
17541
  });
@@ -29,28 +29,36 @@
29
29
  * six steps were silently filtered out on a phone — including every step that
30
30
  * mentioned agents at all, i.e. the subject of the product.
31
31
  */
32
+ // COPY RULES, held by test/tour-steps.test.ts. Each one was asked for by the
33
+ // person reading the tour, not derived:
34
+ // - short: a body is a couple of sentences (TOUR_BODY_MAX), because a card
35
+ // nobody finishes teaches nothing, and eleven of them is already a lot;
36
+ // - plain: no em or en dash, no arrow, no semicolon. They read as machine
37
+ // prose, and a tour that sounds generated is skimmed;
38
+ // - no implementation words in what a newcomer reads first (worktree, branch,
39
+ // token, shell): the welcome and the agents step say what it DOES.
40
+ export const TOUR_BODY_MAX = 230;
41
+
32
42
  export const TOUR_STEPS = [
33
43
  {
34
44
  id: "welcome",
35
45
  title: "Welcome to shadok-ai",
36
46
  body:
37
- "Every agent here is a real Claude Code session, running in its own directory " +
38
- "and its own git branch, so several can work at once without colliding. " +
39
- "You drive them from this page — or from Telegram, where one topic is one agent.",
47
+ "Every agent here is a real Claude Code session, so several can work at once without " +
48
+ "colliding. You drive them from this page, or from Telegram, where one topic is one " +
49
+ "agent.",
40
50
  target: null,
41
51
  },
42
52
  {
43
53
  id: "groups",
44
54
  title: "Groups sort the work",
45
- // Says "can also be a wall" rather than listing private/restricted as
46
- // things to click: a single-tenant instance (the `npx` default) refuses to
47
- // create either, and a tour promising a control that answers "not here" is
48
- // the copy twin of a spotlight on empty space.
55
+ // Says "on a shared cockpit … can be" rather than listing private and
56
+ // restricted as things to click: a single-tenant instance (the `npx`
57
+ // default) refuses to create either, and a tour promising a control that
58
+ // answers "not here" is the copy twin of a spotlight on empty space.
49
59
  body:
50
- "Agents are filed into groups — one per project, team or subject. Pick a group to " +
51
- "narrow the list to it. On a cockpit set up for several people a group can also be a " +
52
- "wall: restricted to a team or private to you, with its own secrets, and agents that " +
53
- "run apart from everyone else's.",
60
+ "Groups sort your agents by project, team or subject. Pick one to see only its " +
61
+ "agents. On a shared cockpit, a group can be restricted to a team or private to you.",
54
62
  // The rail is hidden when there is nothing to show in it, and a phone lists
55
63
  // the groups inside the closed agents sheet — both drop this step honestly.
56
64
  target: "#groupRail",
@@ -59,10 +67,9 @@ export const TOUR_STEPS = [
59
67
  id: "agents",
60
68
  title: "Your agents live here",
61
69
  body:
62
- "Every agent gets its own git worktree and branch, so several never collide. " +
63
- "Pick one here to follow it, and “+ New agent” starts another. One of them is this " +
64
- "cockpit's home agent: the only one that cannot be closed. A room is the exception: " +
65
- "a conversation between people, with no agent behind it and no quota spent.",
70
+ "Pick an agent to follow it, or start another with “+ New agent”. The home agent is " +
71
+ "the only one that cannot be closed. A room is a conversation between people, with no " +
72
+ "agent behind it.",
66
73
  // The column on desktop, the agents-picker button on a phone — never both at
67
74
  // once. The phone's `#chanPicker` opens the SAME column as a bottom sheet, so
68
75
  // "+ New agent" and Tweak are reachable there too now — but the spotlight
@@ -79,21 +86,17 @@ export const TOUR_STEPS = [
79
86
  // what "left to right" cost. Schedule and webhooks sit inside this frame
80
87
  // too and are deliberately NOT described here: they get their own stop.
81
88
  body:
82
- "The bar above the conversation is about the agent on screen. The gallery gathers " +
83
- "every photo and video exchanged with it, “About” lists the skills it uses and its " +
84
- "schedules, and the terminal shows the raw Claude Code screen — for the rare moment " +
85
- "the chat is not enough.",
89
+ "These buttons belong to the agent on screen: the gallery of its photos and videos, " +
90
+ "its skills and schedules, and its raw terminal.",
86
91
  target: ["#chanGallery", "#chanCron", "#chanWebhooks", "#chanInfo", "#chanTerm"],
87
92
  },
88
93
  {
89
94
  id: "tab",
90
95
  title: "Each agent has its own menu",
91
96
  body:
92
- "This ⋯ holds an agent's controls: mute, reload, rename, change its profile, its model " +
93
- "or how hard it thinks, read its token stats, mirror it to a Telegram topic, or have " +
94
- "it report to another agent when it finishes. " +
95
- "“Context sent” shows exactly what shadok told it at spawn — and, except for the home " +
96
- "agent, this is where you close it.",
97
+ "This menu holds the rest: rename, reload, mute, change the profile or the model, see " +
98
+ "its stats, mirror it to Telegram. “Context sent” shows what shadok told the agent at " +
99
+ "start. This is also where you close it.",
97
100
  // `#chanMenu`, NOT `.tab.active`. Two reasons, and the second is why it
98
101
  // changed: it is literally the button this body tells you to press (the
99
102
  // tab's own ⋯ opens the same menu), and it exists on BOTH layouts, whereas
@@ -115,19 +118,17 @@ export const TOUR_STEPS = [
115
118
  // the two buttons now, and the menu remains the fallback target for a
116
119
  // layout that would not render them.
117
120
  body:
118
- "A schedule pairs a recurring prompt with a shell check that runs without the model. " +
119
- "Silent check → nothing happened, the agent stays asleep at zero tokens. Otherwise it " +
120
- "wakes up holding the finding, and tells you here or on Telegram. A webhook is the " +
121
- "same idea from outside: an HTTP call from another system wakes the agent.",
121
+ "A schedule sends the agent a prompt at set times. Add a check and the agent only " +
122
+ "wakes up when there is something to report, at no cost otherwise. A webhook lets " +
123
+ "another system wake it.",
122
124
  target: ["#chanCron", "#chanWebhooks"],
123
125
  },
124
126
  {
125
127
  id: "composer",
126
- title: "Talk to it — with more than text",
128
+ title: "Talk to your agent",
127
129
  body:
128
- "Write to the agent here. Attach a file, or paste or drop one in; add one of its " +
129
- "skills to the prompt; or dictate instead of typing. It works the other way too: " +
130
- "when an agent's result is a file, it arrives in the conversation as a download.",
130
+ "Write here. You can also attach a file, add a skill or dictate. Files the agent " +
131
+ "sends back arrive here as downloads.",
131
132
  target: "#composer",
132
133
  },
133
134
  {
@@ -143,12 +144,8 @@ export const TOUR_STEPS = [
143
144
  // told the ledger was "profiles". An order is a claim about the DOM that
144
145
  // no test here can hold; a list of functions is not.
145
146
  body:
146
- "The secret vault injected into agents that need it, the shared ledger of what your " +
147
- "agents have already resolved, the Skill Factory where skills are written, released " +
148
- "and shared, and profiles (role, guardrails, model). Telegram and the notification " +
149
- "sound live under the ⋯ — which also holds the diff of an agent's work, the whole " +
150
- "instance's stats, light or dark mode, the palette, and this tour. On a narrow screen " +
151
- "the rest fold in there too.",
147
+ "Secrets, the shared ledger, the Skill Factory and profiles. The ⋯ menu holds the " +
148
+ "rest: Telegram, sound, the diff, stats, light or dark mode and this tour.",
152
149
  // NOT `.hdr-tools`, which is `display: contents` on desktop and therefore
153
150
  // generates no box at all — its rect is all zeros, so the step would have
154
151
  // been dropped as "not visible" on the very layout where the toolbar is
@@ -176,7 +173,7 @@ export const TOUR_STEPS = [
176
173
  },
177
174
  {
178
175
  id: "people",
179
- title: "People, not only agents",
176
+ title: "People",
180
177
  // Its own step BECAUSE it is conditional: all three buttons start `hidden`
181
178
  // and which ones show depends on the role (`loadMe`). Folded into the
182
179
  // toolbar body they would be named to people who do not have them. Here the
@@ -186,20 +183,17 @@ export const TOUR_STEPS = [
186
183
  // It does NOT say "this instance has accounts": the lone admin of a
187
184
  // no-password instance sees all three, and has none.
188
185
  body:
189
- "A few buttons are about people rather than agents — which ones you see depends on " +
190
- "your role. Users is where people are invited and where you add a passkey for " +
191
- "two-factor sign-in, Reports is where a stuck agent asks an admin for help, and " +
192
- "Security shows what happened to your own account.",
186
+ "These buttons are about people. Which ones you see depends on your role: Users for " +
187
+ "invitations and two-factor sign-in, Reports for agents asking an admin for help, " +
188
+ "Security for activity on your account.",
193
189
  target: ["#securityBtn", "#reportsBtn", "#usersBtn"],
194
190
  },
195
191
  {
196
192
  id: "quota",
197
193
  title: "Watch your quota",
198
194
  body:
199
- "Your 5h and 7d subscription usage. Each bar fills with what you've spent, and the " +
200
- "white marker is the pace that would spend the window exactly on time — a fill past " +
201
- "the marker means you're burning faster. Past the pace, a new prompt is held back " +
202
- "unless you choose to send it anyway.",
195
+ "Your 5h and 7d usage. The white marker is the ideal pace: past it, you are spending " +
196
+ "too fast and a new prompt asks for confirmation.",
203
197
  target: ["#quota5h", "#quota7d"],
204
198
  },
205
199
  {
@@ -210,10 +204,9 @@ export const TOUR_STEPS = [
210
204
  // menu behind the version has since become where an instance is configured,
211
205
  // which a clause could no longer carry.
212
206
  body:
213
- "The name tells this cockpit apart when you run several; an admin can change it. The " +
214
- "version opens this instance's settings, most of them an admin's: the Claude account " +
215
- "and when its sign-in expires, updates and their channel, the permission mode and " +
216
- "default model for new agents, and the instance context every agent here receives.",
207
+ "The name tells your cockpits apart. The version opens the settings: Claude account " +
208
+ "and when its sign-in expires, updates, permission mode, default model and instance " +
209
+ "context.",
217
210
  target: ["#brandName", "#verView", "#verChan"],
218
211
  },
219
212
  ];
@@ -238,7 +231,7 @@ export const TOUR_STEPS = [
238
231
  * an example that entered the tab registry could be persisted as a channel.
239
232
  */
240
233
  export const TOUR_DEMO = {
241
- note: "Example — nothing here is running. Your own agents take this place once Claude is connected.",
234
+ note: "Example: nothing here is running. Your agents will appear here once Claude is connected.",
242
235
  tag: "example",
243
236
  agents: [
244
237
  { name: "general", active: true },