samagotchi 0.164.0 → 0.166.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +88 -1
- data/docs/architecture.md +7 -5
- data/docs/cli.md +23 -12
- data/docs/configuration.md +8 -2
- data/docs/guardrails.md +19 -18
- data/docs/internals/block-renderers.md +1 -1
- data/docs/internals/bridge.md +10 -3
- data/docs/internals/bundles.md +4 -2
- data/docs/internals/inline-widgets.md +8 -1
- data/docs/internals/remote-sessions.md +1 -1
- data/docs/internals/web-frontend.md +73 -13
- data/docs/memory.md +12 -7
- data/docs/plugins.md +6 -4
- data/docs/releasing.md +17 -4
- data/docs/scheduling.md +25 -3
- data/docs/sessions.md +12 -10
- data/docs/testing.md +37 -4
- data/lib/samagotchi/block_renderers.rb +3 -6
- data/lib/samagotchi/bridge/card_store.rb +2 -1
- data/lib/samagotchi/bridge/turn_accumulator.rb +7 -8
- data/lib/samagotchi/bridge.rb +45 -3
- data/lib/samagotchi/bundle_command/installed_check.rb +2 -1
- data/lib/samagotchi/bundles/system/manifest.yml +1 -1
- data/lib/samagotchi/chi_home.rb +44 -2
- data/lib/samagotchi/client_id.rb +34 -3
- data/lib/samagotchi/compat.rb +34 -0
- data/lib/samagotchi/context_command.rb +3 -0
- data/lib/samagotchi/context_providers.rb +5 -6
- data/lib/samagotchi/context_sources.rb +2 -2
- data/lib/samagotchi/continue_intent.rb +50 -5
- data/lib/samagotchi/events.rb +4 -4
- data/lib/samagotchi/extension_load.rb +2 -1
- data/lib/samagotchi/guardrails/approvals.rb +36 -9
- data/lib/samagotchi/guardrails/child_boundary.rb +7 -27
- data/lib/samagotchi/guardrails/rules.rb +11 -9
- data/lib/samagotchi/guardrails/targets.rb +3 -4
- data/lib/samagotchi/inline_widgets.rb +16 -1
- data/lib/samagotchi/memory_bundle/provenance.rb +46 -4
- data/lib/samagotchi/memory_bundle/status.rb +2 -1
- data/lib/samagotchi/memory_command.rb +3 -0
- data/lib/samagotchi/memory_orphans.rb +4 -7
- data/lib/samagotchi/memory_paths.rb +64 -7
- data/lib/samagotchi/memory_usage.rb +1 -1
- data/lib/samagotchi/plugin/sessions.rb +8 -3
- data/lib/samagotchi/project_command.rb +4 -1
- data/lib/samagotchi/project_id_clash.rb +37 -26
- data/lib/samagotchi/project_init.rb +24 -7
- data/lib/samagotchi/reply_wait/poll.rb +4 -14
- data/lib/samagotchi/reply_wait.rb +0 -23
- data/lib/samagotchi/run_options.rb +1 -1
- data/lib/samagotchi/schedules.rb +124 -106
- data/lib/samagotchi/send_command.rb +71 -18
- data/lib/samagotchi/session.rb +3 -2
- data/lib/samagotchi/session_access/local.rb +19 -2
- data/lib/samagotchi/session_access/remote.rb +13 -17
- data/lib/samagotchi/session_chain/links.rb +109 -0
- data/lib/samagotchi/session_chain.rb +7 -19
- data/lib/samagotchi/session_continue.rb +138 -54
- data/lib/samagotchi/session_inbox.rb +1 -1
- data/lib/samagotchi/session_inbox_delivery.rb +57 -38
- data/lib/samagotchi/session_manager/delivery.rb +104 -18
- data/lib/samagotchi/session_manager/removal.rb +13 -7
- data/lib/samagotchi/session_manager.rb +1 -0
- data/lib/samagotchi/session_retention.rb +20 -10
- data/lib/samagotchi/session_setup.rb +31 -1
- data/lib/samagotchi/state_format.rb +12 -8
- data/lib/samagotchi/terminal_ui/attach_launcher.rb +6 -7
- data/lib/samagotchi/terminal_ui.rb +20 -9
- data/lib/samagotchi/tools/delegate.rb +2 -3
- data/lib/samagotchi/verify_fresh.rb +4 -1
- data/lib/samagotchi/version.rb +1 -1
- data/lib/samagotchi/web/public/activity.js +2 -2
- data/lib/samagotchi/web/public/app.js +28 -21
- data/lib/samagotchi/web/public/auth_lost.js +3 -1
- data/lib/samagotchi/web/public/bar_fold.js +293 -0
- data/lib/samagotchi/web/public/card.js +1 -1
- data/lib/samagotchi/web/public/chip_popover.js +5 -1
- data/lib/samagotchi/web/public/composer_mode.js +5 -7
- data/lib/samagotchi/web/public/delivery_line.js +19 -4
- data/lib/samagotchi/web/public/index.html +242 -94
- data/lib/samagotchi/web/public/info_bar.js +28 -16
- data/lib/samagotchi/web/public/info_bar_model.js +76 -2
- data/lib/samagotchi/web/public/live_timing.js +3 -0
- data/lib/samagotchi/web/public/more_sheet.js +98 -40
- data/lib/samagotchi/web/public/resync_reach.js +59 -0
- data/lib/samagotchi/web/public/session_fields.js +1 -0
- data/lib/samagotchi/web/public/session_state.js +5 -0
- data/lib/samagotchi/web/public/stage_frame.js +4 -2
- data/lib/samagotchi/web/public/stage_stall.js +134 -0
- data/lib/samagotchi/web/public/stage_view.js +78 -7
- data/lib/samagotchi/web/public/stream_handlers.js +1 -1
- data/lib/samagotchi/web/public/turn_events.js +0 -122
- data/lib/samagotchi/web/public/turn_model.js +1 -1
- data/lib/samagotchi/web/public/widget_picks.js +18 -3
- data/lib/samagotchi/web/session_control.rb +15 -2
- data/lib/samagotchi/web/session_create.rb +4 -2
- data/lib/samagotchi/web/token.rb +2 -2
- data/lib/samagotchi/web/update_check.rb +27 -8
- metadata +5 -1
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
// text field in a session, always there so the composer never changes
|
|
3
3
|
// height (the stage above it would jump). Idle it holds the key hint; while
|
|
4
4
|
// the open session's turn runs it says where a message typed now goes in,
|
|
5
|
-
// and offers the other two deliveries as links:
|
|
5
|
+
// and offers the other two deliveries as links (a phone has no row: idle
|
|
6
|
+
// the line is gone; running it lies over the session bar's left, where
|
|
7
|
+
// status, ctx and speed are, only while it matters: the text field focused
|
|
8
|
+
// or holding text or images, a choice armed or an Apply turn held, the last
|
|
9
|
+
// two written here as data-armed and data-held; index.html):
|
|
6
10
|
//
|
|
7
11
|
// ↳ goes in after this thinking step · 2:31 · 31k chars cut in now · queue for after the turn
|
|
8
12
|
// ↳ goes in after this tool call (execute · 0:12) queue for after the turn
|
|
@@ -215,6 +219,7 @@ export function createDeliveryControl({ el, read, composerEmpty, send, session =
|
|
|
215
219
|
if (mode !== "running" || !line?.[which]?.enabled) return;
|
|
216
220
|
if (!composerEmpty()) {
|
|
217
221
|
armed = null;
|
|
222
|
+
mark();
|
|
218
223
|
send(which);
|
|
219
224
|
return;
|
|
220
225
|
}
|
|
@@ -222,15 +227,25 @@ export function createDeliveryControl({ el, read, composerEmpty, send, session =
|
|
|
222
227
|
refresh();
|
|
223
228
|
};
|
|
224
229
|
|
|
230
|
+
// For a phone's CSS (index.html): whether a choice is armed or an Apply
|
|
231
|
+
// turn held while the turn runs ("1" or ""): the line shows then. Not the
|
|
232
|
+
// queue chip's pressed look: a participant's turn draws it with nothing
|
|
233
|
+
// armed.
|
|
234
|
+
const mark = () => {
|
|
235
|
+
el.dataset.armed = mode === "running" && armed ? "1" : "";
|
|
236
|
+
el.dataset.held = mode === "running" && held() ? "1" : "";
|
|
237
|
+
};
|
|
238
|
+
|
|
225
239
|
function refresh() {
|
|
226
|
-
if (mode
|
|
227
|
-
|
|
228
|
-
render(idleTemplate(), el);
|
|
240
|
+
if (mode !== "running") {
|
|
241
|
+
mark();
|
|
242
|
+
if (mode === "idle") render(idleTemplate(), el);
|
|
229
243
|
return;
|
|
230
244
|
}
|
|
231
245
|
line = deliveryLine({ ...read(), now: now(), armed, held: held() });
|
|
232
246
|
// A choice no longer possible (a tool started) disarms.
|
|
233
247
|
armed = line.armed;
|
|
248
|
+
mark();
|
|
234
249
|
render(deliveryLineTemplate(line, { onCut: () => click("cut"), onQueue: () => click("queue") }), el);
|
|
235
250
|
}
|
|
236
251
|
|