samagotchi 0.141.0 → 0.143.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 +111 -7
- data/README.md +2 -1
- data/bin/chi +2 -0
- data/docs/architecture.md +25 -289
- data/docs/bundle-authoring.md +7 -6
- data/docs/bundles.md +1232 -0
- data/docs/cli.md +51 -13
- data/docs/configuration.md +68 -30
- data/docs/context.md +12 -12
- data/docs/guardrails.md +27 -20
- data/docs/hooks.md +28 -9
- data/docs/internals/attached-context.md +225 -0
- data/docs/internals/background-tasks.md +1 -1
- data/docs/internals/bridge.md +380 -0
- data/docs/internals/bundles.md +6 -3
- data/docs/internals/context-telemetry.md +1 -1
- data/docs/internals/engine.md +31 -19
- data/docs/internals/participants.md +13 -12
- data/docs/internals/prompt-caching.md +12 -12
- data/docs/internals/remote-sessions.md +1 -1
- data/docs/internals/{tool-guardrails.md → tool-output-limits.md} +21 -2
- data/docs/internals/web-push.md +1 -1
- data/docs/memory.md +33 -3
- data/docs/plugins.md +127 -1231
- data/docs/sessions.md +51 -27
- data/docs/sub-agent.md +6 -6
- data/docs/system-one.md +122 -0
- data/docs/testing.md +3 -1
- data/lib/samagotchi/bridge.rb +2 -0
- data/lib/samagotchi/bundle_command/api_calls.rb +132 -0
- data/lib/samagotchi/bundle_command/check.rb +50 -34
- data/lib/samagotchi/bundle_command/installed_check.rb +86 -0
- data/lib/samagotchi/bundle_command/scaffold.rb +1 -0
- data/lib/samagotchi/bundle_settings_check.rb +58 -0
- data/lib/samagotchi/bundles/agents-md/manifest.yml +4 -2
- data/lib/samagotchi/bundles/agents-md/plugin.rb +1 -1
- data/lib/samagotchi/bundles/btw/manifest.yml +4 -2
- data/lib/samagotchi/bundles/btw/plugin.rb +1 -1
- data/lib/samagotchi/bundles/check-in/manifest.yml +7 -3
- data/lib/samagotchi/bundles/check-in/plugin.rb +101 -11
- data/lib/samagotchi/bundles/claude-peer/manifest.yml +3 -3
- data/lib/samagotchi/bundles/claude-peer/plugin.rb +1 -1
- data/lib/samagotchi/bundles/claude-peer/scripts/pair +1 -1
- data/lib/samagotchi/bundles/codex-peer/manifest.yml +2 -2
- data/lib/samagotchi/bundles/codex-peer/plugin.rb +1 -1
- data/lib/samagotchi/bundles/coordinator/manifest.yml +2 -2
- data/lib/samagotchi/bundles/coordinator/plugin.rb +1 -1
- data/lib/samagotchi/bundles/core/manifest.yml +2 -2
- data/lib/samagotchi/bundles/cost-cap/manifest.yml +6 -3
- data/lib/samagotchi/bundles/cost-cap/plugin.rb +5 -7
- data/lib/samagotchi/bundles/github-pr/manifest.yml +3 -1
- data/lib/samagotchi/bundles/known-names/manifest.yml +3 -1
- data/lib/samagotchi/bundles/loop-guard/manifest.yml +4 -2
- data/lib/samagotchi/bundles/loop-guard/plugin.rb +1 -1
- data/lib/samagotchi/bundles/mcp/manifest.yml +4 -2
- data/lib/samagotchi/bundles/mcp/plugin.rb +2 -2
- data/lib/samagotchi/bundles/ruby/manifest.yml +2 -2
- data/lib/samagotchi/bundles/ruby/plugin.rb +1 -1
- data/lib/samagotchi/bundles/skills/manifest.yml +4 -2
- data/lib/samagotchi/bundles/skills/plugin.rb +1 -1
- data/lib/samagotchi/bundles/slow-commands/manifest.yml +4 -2
- data/lib/samagotchi/bundles/slow-commands/plugin.rb +1 -1
- data/lib/samagotchi/bundles/source-links/manifest.yml +3 -1
- data/lib/samagotchi/bundles/system/config_modification_protocol.md +3 -3
- data/lib/samagotchi/bundles/system/manifest.yml +4 -4
- data/lib/samagotchi/bundles/system/memory_guide.md +1 -1
- data/lib/samagotchi/bundles/system/self_map.md +3 -3
- data/lib/samagotchi/bundles/work-cap/manifest.yml +6 -3
- data/lib/samagotchi/bundles/work-cap/plugin.rb +11 -13
- data/lib/samagotchi/config.rb +74 -14
- data/lib/samagotchi/context_candidate_choice.rb +20 -3
- data/lib/samagotchi/context_candidates.rb +4 -1
- data/lib/samagotchi/context_candidates_log.rb +36 -1
- data/lib/samagotchi/context_judge.rb +6 -2
- data/lib/samagotchi/context_status.rb +1 -2
- data/lib/samagotchi/engine.rb +96 -70
- data/lib/samagotchi/extension_load.rb +11 -4
- data/lib/samagotchi/guardrail_wiring.rb +36 -31
- data/lib/samagotchi/guardrails/chi_dirs.rb +7 -4
- data/lib/samagotchi/guardrails/path_resolve.rb +1 -1
- data/lib/samagotchi/guardrails/protected_paths.rb +7 -4
- data/lib/samagotchi/guardrails_command.rb +3 -3
- data/lib/samagotchi/hook_routes.rb +37 -2
- data/lib/samagotchi/hooks/bundle_loader.rb +20 -4
- data/lib/samagotchi/hooks/registry.rb +23 -5
- data/lib/samagotchi/host_model.rb +3 -3
- data/lib/samagotchi/host_registry.rb +14 -7
- data/lib/samagotchi/judgments_command.rb +155 -0
- data/lib/samagotchi/kernel_loop.rb +20 -3
- data/lib/samagotchi/llm/chat_loop.rb +79 -10
- data/lib/samagotchi/llm/errors.rb +7 -5
- data/lib/samagotchi/llm/stray_tool_call.rb +68 -0
- data/lib/samagotchi/log_line.rb +1 -1
- data/lib/samagotchi/memory_bundle/builder.rb +4 -2
- data/lib/samagotchi/memory_bundle/entry_size.rb +100 -0
- data/lib/samagotchi/memory_bundle/installed_bundle.rb +9 -2
- data/lib/samagotchi/memory_bundle/installed_copy.rb +92 -0
- data/lib/samagotchi/memory_bundle/installer.rb +2 -0
- data/lib/samagotchi/memory_bundle/manifest.rb +23 -13
- data/lib/samagotchi/memory_bundle/provenance.rb +4 -1
- data/lib/samagotchi/memory_bundle/shipped_update.rb +13 -1
- data/lib/samagotchi/model_catalog.rb +3 -2
- data/lib/samagotchi/models_command.rb +1 -1
- data/lib/samagotchi/plugin/api.rb +41 -7
- data/lib/samagotchi/plugin/context.rb +59 -1
- data/lib/samagotchi/plugin/judgments.rb +72 -0
- data/lib/samagotchi/plugin/loader.rb +6 -3
- data/lib/samagotchi/plugin/peer.rb +17 -22
- data/lib/samagotchi/plugin_session_state.rb +32 -5
- data/lib/samagotchi/prompt_warmup.rb +1 -9
- data/lib/samagotchi/run_options.rb +1 -0
- data/lib/samagotchi/self_report.rb +36 -0
- data/lib/samagotchi/session_access/contract.rb +1 -1
- data/lib/samagotchi/session_access/local.rb +1 -1
- data/lib/samagotchi/session_access/remote.rb +3 -3
- data/lib/samagotchi/session_archive_command.rb +3 -3
- data/lib/samagotchi/session_commands.rb +7 -4
- data/lib/samagotchi/session_config.rb +9 -3
- data/lib/samagotchi/session_continue.rb +1 -1
- data/lib/samagotchi/session_manager.rb +25 -5
- data/lib/samagotchi/session_retention.rb +10 -0
- data/lib/samagotchi/side_judgments.rb +12 -1
- data/lib/samagotchi/system_one/answer.rb +63 -11
- data/lib/samagotchi/system_one/approval_label.rb +56 -0
- data/lib/samagotchi/system_one/approval_question.rb +2 -0
- data/lib/samagotchi/system_one/client.rb +43 -17
- data/lib/samagotchi/system_one/fake_backend.rb +1 -1
- data/lib/samagotchi/system_one/http_backend.rb +12 -4
- data/lib/samagotchi/system_one/judgment_settings.rb +61 -0
- data/lib/samagotchi/system_one/judgments.rb +243 -0
- data/lib/samagotchi/system_one/log.rb +25 -2
- data/lib/samagotchi/system_one/recording.rb +117 -0
- data/lib/samagotchi/system_one/runs.rb +179 -0
- data/lib/samagotchi/system_one/runs_store.rb +230 -0
- data/lib/samagotchi/system_one.rb +9 -0
- data/lib/samagotchi/terminal_ui/attach_link.rb +2 -2
- data/lib/samagotchi/terminal_ui/attached_loop/exit_commands.rb +1 -1
- data/lib/samagotchi/terminal_ui/attached_loop.rb +1 -1
- data/lib/samagotchi/terminal_ui/local_link.rb +1 -1
- data/lib/samagotchi/terminal_ui/remote_link.rb +1 -2
- data/lib/samagotchi/testing/bundle.rb +9 -2
- data/lib/samagotchi/testing/host.rb +2 -1
- data/lib/samagotchi/testing/judgments.rb +176 -0
- data/lib/samagotchi/testing/recorder.rb +5 -0
- data/lib/samagotchi/testing/recording_api.rb +1 -1
- data/lib/samagotchi/tool_output_cut.rb +26 -6
- data/lib/samagotchi/tool_response.rb +1 -1
- data/lib/samagotchi/tool_runner.rb +63 -4
- data/lib/samagotchi/toolkit_suggest.rb +11 -2
- data/lib/samagotchi/tools/memory.rb +28 -0
- data/lib/samagotchi/turn_note.rb +9 -0
- data/lib/samagotchi/update_command.rb +49 -16
- data/lib/samagotchi/version.rb +1 -1
- data/lib/samagotchi/web/app.rb +1 -0
- data/lib/samagotchi/web/auto_update.rb +79 -49
- data/lib/samagotchi/web/auto_update_record.rb +59 -0
- data/lib/samagotchi/web/public/app.js +8 -4
- data/lib/samagotchi/web/public/hash_intent.js +24 -0
- data/lib/samagotchi/web/public/index.html +3 -1
- data/lib/samagotchi/web/public/revise_stack.js +14 -5
- data/lib/samagotchi/web/session_control.rb +3 -3
- data/lib/samagotchi/web/update_check.rb +7 -6
- data/lib/samagotchi/web/update_ops.rb +80 -25
- metadata +23 -2
|
@@ -9,6 +9,7 @@ require_relative "../client_id"
|
|
|
9
9
|
require_relative "../installed_gem"
|
|
10
10
|
require_relative "../live_versions"
|
|
11
11
|
require_relative "../log"
|
|
12
|
+
require_relative "../process_group"
|
|
12
13
|
require_relative "../session"
|
|
13
14
|
require_relative "../session_manager"
|
|
14
15
|
require_relative "../version"
|
|
@@ -26,18 +27,38 @@ module Samagotchi
|
|
|
26
27
|
# chi update's own words when it printed no rows.
|
|
27
28
|
class UpdateFailed < StandardError; end
|
|
28
29
|
|
|
30
|
+
# What an operation asked for with wait: true answers once it ended.
|
|
31
|
+
# +state+: done or failed; +rows+: the same hashes its frames carry
|
|
32
|
+
# (the page's JSON, in chi update --json's own shape).
|
|
33
|
+
Result = Data.define(:state, :rows) do
|
|
34
|
+
def done? = state == "done"
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# How long the chi update child may run: far past a gem install on a slow
|
|
38
|
+
# line. Past it the child is stuck, and holding the one-at-a-time rule
|
|
39
|
+
# would answer 409 to every later operation and hold AutoUpdate for good.
|
|
40
|
+
UPDATE_TIMEOUT = 30 * 60
|
|
41
|
+
# A stopped child's TERM to KILL, and how long what a child that has
|
|
42
|
+
# exited left behind may hold its pipes.
|
|
43
|
+
STOP_GRACE = 5
|
|
44
|
+
|
|
29
45
|
# @param hub [SessionHub, nil] the frames' publisher
|
|
30
46
|
# @param manager [#restart_session] SessionManager
|
|
31
47
|
# @param state_dir [String, nil] the sessions dir (nil: the default)
|
|
32
48
|
# @param runner [#call] `(argv, env:, progress:) → [stdout, success]`
|
|
33
49
|
# runs the chi update child
|
|
34
50
|
# @param blocked [#call] why this install can't take a gem, or nil
|
|
35
|
-
|
|
51
|
+
# @param deadline [#call] `(wait_thread) → truthy` when the child ended in time
|
|
52
|
+
# @param stop_grace [Numeric] STOP_GRACE
|
|
53
|
+
def initialize(hub:, manager: SessionManager, state_dir: nil, runner: nil, blocked: nil,
|
|
54
|
+
deadline: ->(child) { child.join(UPDATE_TIMEOUT) }, stop_grace: STOP_GRACE)
|
|
36
55
|
@hub = hub
|
|
37
56
|
@manager = manager
|
|
38
57
|
@state_dir = state_dir
|
|
39
58
|
@runner = runner || method(:run_update_command)
|
|
40
59
|
@blocked = blocked || -> { UpdateCheck.blocked_reason }
|
|
60
|
+
@deadline = deadline
|
|
61
|
+
@stop_grace = stop_grace
|
|
41
62
|
@mutex = Mutex.new
|
|
42
63
|
@running = false
|
|
43
64
|
@restart_web = nil
|
|
@@ -58,10 +79,10 @@ module Samagotchi
|
|
|
58
79
|
def running? = @mutex.synchronize { @running }
|
|
59
80
|
|
|
60
81
|
# Runs `chi update --to +version+` on a thread.
|
|
61
|
-
# @param wait [Boolean] block until it ends and answer its
|
|
62
|
-
#
|
|
63
|
-
# @return [Symbol,
|
|
64
|
-
# :start_failed (no thread); with wait: the
|
|
82
|
+
# @param wait [Boolean] block until it ends and answer its Result
|
|
83
|
+
# instead of :started
|
|
84
|
+
# @return [Symbol, Result] :started, :busy (another operation runs) or
|
|
85
|
+
# :start_failed (no thread); with wait: the Result
|
|
65
86
|
def install(version, wait: false, auto: false)
|
|
66
87
|
return :busy unless claim
|
|
67
88
|
|
|
@@ -80,12 +101,15 @@ module Samagotchi
|
|
|
80
101
|
# Restarts every stale worker (the worker refuses atomically when busy).
|
|
81
102
|
# @param select [#call, nil] asked of each stale worker (a
|
|
82
103
|
# LiveVersions::Worker): false leaves it, as a `skipped` row
|
|
83
|
-
# @
|
|
84
|
-
|
|
104
|
+
# @param quiet [Boolean] no frames until a worker restarts (AutoUpdate's
|
|
105
|
+
# repeated passes: each frame is a sticky toast on the page, and a
|
|
106
|
+
# pass that changes nothing has nothing to say)
|
|
107
|
+
# @return [Symbol, Result] as #install
|
|
108
|
+
def restart_workers(wait: false, auto: false, select: nil, quiet: false)
|
|
85
109
|
return :busy unless claim
|
|
86
110
|
|
|
87
|
-
@hub.publish_update(state: "running", rows: [], operation: "workers", auto: auto)
|
|
88
|
-
thread = Thread.new { perform_worker_restarts(auto, select) }
|
|
111
|
+
@hub.publish_update(state: "running", rows: [], operation: "workers", auto: auto) unless quiet
|
|
112
|
+
thread = Thread.new { perform_worker_restarts(auto, select, quiet) }
|
|
89
113
|
wait ? thread.value : :started
|
|
90
114
|
rescue ThreadError => e
|
|
91
115
|
release
|
|
@@ -100,7 +124,7 @@ module Samagotchi
|
|
|
100
124
|
# pipes read here) or a worker restart pass would die mid-way, so
|
|
101
125
|
# neither may run, and none starts once the restart is asked for.
|
|
102
126
|
# @return [Symbol] :unavailable (no restart lambda), :busy, :started,
|
|
103
|
-
# :no_wrapper
|
|
127
|
+
# :no_wrapper, :requested (already restarting) or :start_failed
|
|
104
128
|
def restart_web
|
|
105
129
|
return :unavailable unless @restart_web
|
|
106
130
|
|
|
@@ -119,6 +143,10 @@ module Samagotchi
|
|
|
119
143
|
end
|
|
120
144
|
release
|
|
121
145
|
answer
|
|
146
|
+
rescue StandardError => e
|
|
147
|
+
release
|
|
148
|
+
Log.warn(:web, "restart_web_start_failed", error: e.class.name, msg: e.message)
|
|
149
|
+
:start_failed
|
|
122
150
|
end
|
|
123
151
|
|
|
124
152
|
# The chi update child: with a chi home, the home's chi (its gem dirs
|
|
@@ -161,13 +189,13 @@ module Samagotchi
|
|
|
161
189
|
@hub.refresh_installed if success
|
|
162
190
|
state = success ? "done" : "failed"
|
|
163
191
|
@hub.publish_update(state: state, rows: rows, operation: "install", version: version, auto: auto)
|
|
164
|
-
|
|
192
|
+
Result.new(state: state, rows: rows)
|
|
165
193
|
rescue StandardError => e
|
|
166
194
|
Log.exception(:web, "update_failed", e)
|
|
167
195
|
rows = [{ "component" => "chi update", "status" => "failed (#{e.message.lines.first.to_s.strip})",
|
|
168
196
|
"failed" => true, "kept" => [] }]
|
|
169
197
|
@hub.publish_update(state: "failed", rows: rows, operation: "install", version: version, auto: auto)
|
|
170
|
-
|
|
198
|
+
Result.new(state: "failed", rows: rows)
|
|
171
199
|
ensure
|
|
172
200
|
release
|
|
173
201
|
end
|
|
@@ -180,16 +208,38 @@ module Samagotchi
|
|
|
180
208
|
nil
|
|
181
209
|
end
|
|
182
210
|
|
|
211
|
+
# In a process group of its own, so a stop reaches what it started too.
|
|
183
212
|
def run_update_command(argv, env:, progress:)
|
|
184
|
-
Open3.popen3(env, *argv) do |stdin, stdout, stderr, wait_thread|
|
|
213
|
+
Open3.popen3(env, *argv, pgroup: true) do |stdin, stdout, stderr, wait_thread|
|
|
185
214
|
stdin.close
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
215
|
+
output = ProcessGroup::PipeReader.new(stdout)
|
|
216
|
+
stderr_thread = progress_thread(stderr, progress)
|
|
217
|
+
stop_update_child(wait_thread) unless @deadline.call(wait_thread)
|
|
218
|
+
# Both pipes end with the child, unless something it left behind holds them.
|
|
219
|
+
output.finish(poll: @stop_grace, grace: 1)
|
|
220
|
+
stderr_thread.join(@stop_grace)
|
|
221
|
+
[output.text, wait_thread.value.success?]
|
|
190
222
|
end
|
|
191
223
|
end
|
|
192
224
|
|
|
225
|
+
def progress_thread(stderr, progress)
|
|
226
|
+
Thread.new do
|
|
227
|
+
Thread.current.report_on_exception = false
|
|
228
|
+
stderr.each_line { |line| progress.call(line.chomp) }
|
|
229
|
+
rescue IOError # popen3's block ended with something still holding the pipe
|
|
230
|
+
nil
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# @raise [UpdateFailed] always: perform_install's failed row says it
|
|
235
|
+
def stop_update_child(child)
|
|
236
|
+
pid = child.pid
|
|
237
|
+
Log.warn(:web, "update_timed_out", pid: pid)
|
|
238
|
+
ProcessGroup.stop(pid, grace: @stop_grace, poll: 0.05, leader: true,
|
|
239
|
+
stopped: -> { !child.alive? && !ProcessGroup.group_alive?(pid) })
|
|
240
|
+
raise UpdateFailed, "chi update stopped after #{UPDATE_TIMEOUT / 60} minutes without finishing"
|
|
241
|
+
end
|
|
242
|
+
|
|
193
243
|
# One worker's restart as its row.
|
|
194
244
|
def restart_one(worker)
|
|
195
245
|
restarted = @manager.restart_session(worker.session_id, state_dir: @state_dir, client_id: ClientId::WEB_RESTART)
|
|
@@ -215,23 +265,28 @@ module Samagotchi
|
|
|
215
265
|
|
|
216
266
|
def default_state_dir = @state_dir || Session.default_state_dir
|
|
217
267
|
|
|
218
|
-
def perform_worker_restarts(auto, select)
|
|
268
|
+
def perform_worker_restarts(auto, select, quiet)
|
|
269
|
+
frames = !quiet
|
|
219
270
|
# Installed now: the hub's own look is up to a full probe old (nil right after chi web started).
|
|
220
271
|
target = @hub.refresh_installed || VERSION
|
|
221
272
|
rows = []
|
|
222
|
-
LiveVersions.stale_workers(target, state_dir: default_state_dir)
|
|
273
|
+
workers = LiveVersions.stale_workers(target, state_dir: default_state_dir)
|
|
274
|
+
workers.each do |worker|
|
|
223
275
|
row = select && !select.call(worker) ? skipped(worker) : restart_one(worker)
|
|
224
276
|
rows << row
|
|
225
|
-
|
|
277
|
+
frames ||= row["state"] == "restarted"
|
|
278
|
+
@hub.publish_update(state: "running", rows: rows.dup, operation: "workers", auto: auto) if frames
|
|
226
279
|
end
|
|
227
280
|
state = rows.any? { |row| row["state"] == "failed" } ? "failed" : "done"
|
|
228
|
-
@hub.publish_update(state: state, rows: rows, operation: "workers", auto: auto)
|
|
229
|
-
|
|
281
|
+
@hub.publish_update(state: state, rows: rows, operation: "workers", auto: auto) if frames
|
|
282
|
+
Result.new(state: state, rows: rows)
|
|
230
283
|
rescue StandardError => e
|
|
231
|
-
|
|
284
|
+
# The batch failed, not one worker: the sessions it was working through
|
|
285
|
+
# go on the record, as restart_one puts its own sid there.
|
|
286
|
+
Log.exception(:web, "worker_restart_failed", e, sids: workers&.map(&:session_id))
|
|
232
287
|
rows = [{ "state" => "failed", "reason" => e.class.name, "detail" => e.message }]
|
|
233
|
-
@hub.publish_update(state: "failed", rows: rows, operation: "workers", auto: auto)
|
|
234
|
-
|
|
288
|
+
@hub.publish_update(state: "failed", rows: rows, operation: "workers", auto: auto) if frames
|
|
289
|
+
Result.new(state: "failed", rows: rows)
|
|
235
290
|
ensure
|
|
236
291
|
release
|
|
237
292
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: samagotchi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.143.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Dedov
|
|
@@ -145,6 +145,7 @@ files:
|
|
|
145
145
|
- docs/architecture.md
|
|
146
146
|
- docs/broadcast.md
|
|
147
147
|
- docs/bundle-authoring.md
|
|
148
|
+
- docs/bundles.md
|
|
148
149
|
- docs/cli.md
|
|
149
150
|
- docs/configuration.md
|
|
150
151
|
- docs/context.md
|
|
@@ -152,7 +153,9 @@ files:
|
|
|
152
153
|
- docs/guardrails.md
|
|
153
154
|
- docs/hooks.md
|
|
154
155
|
- docs/internals/anthropic.md
|
|
156
|
+
- docs/internals/attached-context.md
|
|
155
157
|
- docs/internals/background-tasks.md
|
|
158
|
+
- docs/internals/bridge.md
|
|
156
159
|
- docs/internals/bundles.md
|
|
157
160
|
- docs/internals/context-telemetry.md
|
|
158
161
|
- docs/internals/engine.md
|
|
@@ -163,7 +166,7 @@ files:
|
|
|
163
166
|
- docs/internals/participants.md
|
|
164
167
|
- docs/internals/prompt-caching.md
|
|
165
168
|
- docs/internals/remote-sessions.md
|
|
166
|
-
- docs/internals/tool-
|
|
169
|
+
- docs/internals/tool-output-limits.md
|
|
167
170
|
- docs/internals/web-frontend.md
|
|
168
171
|
- docs/internals/web-push.md
|
|
169
172
|
- docs/internals/working-set.md
|
|
@@ -172,6 +175,7 @@ files:
|
|
|
172
175
|
- docs/releasing.md
|
|
173
176
|
- docs/sessions.md
|
|
174
177
|
- docs/sub-agent.md
|
|
178
|
+
- docs/system-one.md
|
|
175
179
|
- docs/testing.md
|
|
176
180
|
- lib/samagotchi.rb
|
|
177
181
|
- lib/samagotchi/analytics_file.rb
|
|
@@ -209,7 +213,9 @@ files:
|
|
|
209
213
|
- lib/samagotchi/broadcast/triage_model.rb
|
|
210
214
|
- lib/samagotchi/broadcast_command.rb
|
|
211
215
|
- lib/samagotchi/bundle_command.rb
|
|
216
|
+
- lib/samagotchi/bundle_command/api_calls.rb
|
|
212
217
|
- lib/samagotchi/bundle_command/check.rb
|
|
218
|
+
- lib/samagotchi/bundle_command/installed_check.rb
|
|
213
219
|
- lib/samagotchi/bundle_command/scaffold.rb
|
|
214
220
|
- lib/samagotchi/bundle_command/test_run.rb
|
|
215
221
|
- lib/samagotchi/bundle_command/try/command.rb
|
|
@@ -218,6 +224,7 @@ files:
|
|
|
218
224
|
- lib/samagotchi/bundle_command/try/sandbox.rb
|
|
219
225
|
- lib/samagotchi/bundle_command/try/trace.rb
|
|
220
226
|
- lib/samagotchi/bundle_needs.rb
|
|
227
|
+
- lib/samagotchi/bundle_settings_check.rb
|
|
221
228
|
- lib/samagotchi/bundles/agents-md/manifest.yml
|
|
222
229
|
- lib/samagotchi/bundles/agents-md/plugin.rb
|
|
223
230
|
- lib/samagotchi/bundles/btw/manifest.yml
|
|
@@ -408,6 +415,7 @@ files:
|
|
|
408
415
|
- lib/samagotchi/installed_versions.rb
|
|
409
416
|
- lib/samagotchi/interrupted_turn.rb
|
|
410
417
|
- lib/samagotchi/iteration_limit.rb
|
|
418
|
+
- lib/samagotchi/judgments_command.rb
|
|
411
419
|
- lib/samagotchi/kernel_loop.rb
|
|
412
420
|
- lib/samagotchi/last_turn.rb
|
|
413
421
|
- lib/samagotchi/launch_mode.rb
|
|
@@ -432,6 +440,7 @@ files:
|
|
|
432
440
|
- lib/samagotchi/llm/openai_chat.rb
|
|
433
441
|
- lib/samagotchi/llm/prompt_cache.rb
|
|
434
442
|
- lib/samagotchi/llm/refusal_memo.rb
|
|
443
|
+
- lib/samagotchi/llm/stray_tool_call.rb
|
|
435
444
|
- lib/samagotchi/llm/stream_drops.rb
|
|
436
445
|
- lib/samagotchi/llm/turn_settings.rb
|
|
437
446
|
- lib/samagotchi/llm/usage.rb
|
|
@@ -453,10 +462,12 @@ files:
|
|
|
453
462
|
- lib/samagotchi/memory_bundle/asset_installer.rb
|
|
454
463
|
- lib/samagotchi/memory_bundle/builder.rb
|
|
455
464
|
- lib/samagotchi/memory_bundle/bundle_hook.rb
|
|
465
|
+
- lib/samagotchi/memory_bundle/entry_size.rb
|
|
456
466
|
- lib/samagotchi/memory_bundle/index_size.rb
|
|
457
467
|
- lib/samagotchi/memory_bundle/index_sync.rb
|
|
458
468
|
- lib/samagotchi/memory_bundle/index_updater.rb
|
|
459
469
|
- lib/samagotchi/memory_bundle/installed_bundle.rb
|
|
470
|
+
- lib/samagotchi/memory_bundle/installed_copy.rb
|
|
460
471
|
- lib/samagotchi/memory_bundle/installer.rb
|
|
461
472
|
- lib/samagotchi/memory_bundle/listing.rb
|
|
462
473
|
- lib/samagotchi/memory_bundle/manifest.rb
|
|
@@ -512,6 +523,7 @@ files:
|
|
|
512
523
|
- lib/samagotchi/plugin/context.rb
|
|
513
524
|
- lib/samagotchi/plugin/http.rb
|
|
514
525
|
- lib/samagotchi/plugin/http_transport.rb
|
|
526
|
+
- lib/samagotchi/plugin/judgments.rb
|
|
515
527
|
- lib/samagotchi/plugin/loader.rb
|
|
516
528
|
- lib/samagotchi/plugin/peer.rb
|
|
517
529
|
- lib/samagotchi/plugin/prompt_sections.rb
|
|
@@ -610,14 +622,20 @@ files:
|
|
|
610
622
|
- lib/samagotchi/steer_cut_after.rb
|
|
611
623
|
- lib/samagotchi/system_one.rb
|
|
612
624
|
- lib/samagotchi/system_one/answer.rb
|
|
625
|
+
- lib/samagotchi/system_one/approval_label.rb
|
|
613
626
|
- lib/samagotchi/system_one/approval_question.rb
|
|
614
627
|
- lib/samagotchi/system_one/client.rb
|
|
615
628
|
- lib/samagotchi/system_one/errors.rb
|
|
616
629
|
- lib/samagotchi/system_one/fake_backend.rb
|
|
617
630
|
- lib/samagotchi/system_one/http_backend.rb
|
|
631
|
+
- lib/samagotchi/system_one/judgment_settings.rb
|
|
632
|
+
- lib/samagotchi/system_one/judgments.rb
|
|
618
633
|
- lib/samagotchi/system_one/log.rb
|
|
619
634
|
- lib/samagotchi/system_one/question.rb
|
|
620
635
|
- lib/samagotchi/system_one/record.rb
|
|
636
|
+
- lib/samagotchi/system_one/recording.rb
|
|
637
|
+
- lib/samagotchi/system_one/runs.rb
|
|
638
|
+
- lib/samagotchi/system_one/runs_store.rb
|
|
621
639
|
- lib/samagotchi/system_one/self_protect.rb
|
|
622
640
|
- lib/samagotchi/system_one/similar.rb
|
|
623
641
|
- lib/samagotchi/system_prompt.rb
|
|
@@ -670,6 +688,7 @@ files:
|
|
|
670
688
|
- lib/samagotchi/testing/helpers.rb
|
|
671
689
|
- lib/samagotchi/testing/host.rb
|
|
672
690
|
- lib/samagotchi/testing/install.rb
|
|
691
|
+
- lib/samagotchi/testing/judgments.rb
|
|
673
692
|
- lib/samagotchi/testing/minitest.rb
|
|
674
693
|
- lib/samagotchi/testing/recorder.rb
|
|
675
694
|
- lib/samagotchi/testing/recording_api.rb
|
|
@@ -762,6 +781,7 @@ files:
|
|
|
762
781
|
- lib/samagotchi/waiting_steer.rb
|
|
763
782
|
- lib/samagotchi/web/app.rb
|
|
764
783
|
- lib/samagotchi/web/auto_update.rb
|
|
784
|
+
- lib/samagotchi/web/auto_update_record.rb
|
|
765
785
|
- lib/samagotchi/web/capabilities.rb
|
|
766
786
|
- lib/samagotchi/web/editor.rb
|
|
767
787
|
- lib/samagotchi/web/grants.rb
|
|
@@ -821,6 +841,7 @@ files:
|
|
|
821
841
|
- lib/samagotchi/web/public/feature_gates.js
|
|
822
842
|
- lib/samagotchi/web/public/format.js
|
|
823
843
|
- lib/samagotchi/web/public/forms.css
|
|
844
|
+
- lib/samagotchi/web/public/hash_intent.js
|
|
824
845
|
- lib/samagotchi/web/public/history_reveal.js
|
|
825
846
|
- lib/samagotchi/web/public/icons/chi-180.png
|
|
826
847
|
- lib/samagotchi/web/public/icons/chi-192.png
|