@pasko70/pibo 1.9.11 → 1.9.13
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 +183 -183
- package/context/codex-base-prompt.md +148 -148
- package/context/compute-worker.md +23 -23
- package/context/pibo-compaction-prompt.md +100 -100
- package/context/pibo-native-tooling.md +18 -18
- package/context/pibo-system-prompt.md +77 -77
- package/dist/apps/chat/agent-store.js +248 -248
- package/dist/apps/chat/data/project-service.js +168 -168
- package/dist/apps/chat/data/read-state-service.js +18 -18
- package/dist/apps/chat/data/session-query-service.js +25 -25
- package/dist/apps/chat/data/timeline-query-service.js +25 -14
- package/dist/apps/chat/static-assets.js +854 -854
- package/dist/apps/chat/trace.js +2 -0
- package/dist/apps/chat/web-app.js +7 -0
- package/dist/apps/chat/workflow-persistence.js +255 -255
- package/dist/apps/chat-ui/index.html +16 -16
- package/dist/apps/chat-ui/manifest.webmanifest +25 -25
- package/dist/apps/chat-ui/sw.js +47 -47
- package/dist/apps/chat-vscode-web/index.html +12 -12
- package/dist/apps/cli-ui/cliSessionsCommand.js +23 -23
- package/dist/apps/context-files-ui/index.html +11 -11
- package/dist/apps/vscode-artifacts/latest.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.9.13.vsix +0 -0
- package/dist/cli.js +39 -39
- package/dist/compute/cli.js +54 -54
- package/dist/cron/cli.js +15 -15
- package/dist/cron/store.js +49 -49
- package/dist/data/cli.js +23 -23
- package/dist/data/event-log.js +23 -23
- package/dist/data/ingest-service.js +7 -0
- package/dist/data/message-store.js +31 -20
- package/dist/data/navigation-store.js +9 -9
- package/dist/data/observation-store.js +4 -4
- package/dist/data/payload-store.js +17 -17
- package/dist/data/schema.js +433 -431
- package/dist/data/session-store.js +4 -4
- package/dist/data/telemetry-queries.js +54 -54
- package/dist/data/telemetry.js +197 -197
- package/dist/debug/events.js +12 -12
- package/dist/debug/failures.js +6 -6
- package/dist/debug/index.js +227 -227
- package/dist/debug/messages.js +6 -6
- package/dist/debug/pty.js +124 -124
- package/dist/debug/session.js +29 -29
- package/dist/debug/tools.js +5 -5
- package/dist/debug/web-snapshot-browser-scripts.js +294 -294
- package/dist/debug/web-streaming-browser-library.js +925 -925
- package/dist/debug/web-streaming-browser-scripts.js +232 -232
- package/dist/debug/web-streaming-provider-telemetry.js +4 -4
- package/dist/debug/web.js +93 -93
- package/dist/gateway/cli.js +19 -19
- package/dist/mcp/config-command.js +53 -53
- package/dist/mcp/index.js +21 -21
- package/dist/mcp/registry.js +11 -11
- package/dist/pi-packages/cli.js +11 -11
- package/dist/plugins/context-files-store.js +110 -110
- package/dist/plugins/context-files.js +4 -4
- package/dist/ralph/cli.js +18 -18
- package/dist/ralph/templates.js +140 -140
- package/dist/reliability/store.js +226 -226
- package/dist/resources/lifecycle.js +4 -6
- package/dist/resources/reaper-state.js +30 -3
- package/dist/resources/reaper.js +43 -15
- package/dist/sessions/pibo-data-store.js +16 -16
- package/dist/sessions/sqlite-store.js +53 -53
- package/dist/setup/cli.js +58 -58
- package/dist/shared/trace-engine.js +3 -2
- package/dist/shared/trace-event-projection.js +26 -0
- package/dist/tools/agent-browser-wrapper.js +80 -80
- package/dist/tools/browser-use-cdp.js +12 -12
- package/dist/tools/browser-use-wrapper.js +762 -762
- package/dist/tools/guides.js +538 -538
- package/dist/tools/index.js +99 -99
- package/dist/tools/runtime/node-worker-source.js +205 -205
- package/dist/tools/runtime/python-worker-source.js +177 -177
- package/dist/vscode/cli.js +9 -9
- package/dist/web-annotations/cdp.js +900 -900
- package/dist/web-annotations/store.js +96 -96
- package/docs/README.md +23 -23
- package/docs/ops/install-developer-host.md +112 -112
- package/docs/ops/install-user-host.md +96 -96
- package/docs/ops/upgrade-user-to-developer-host.md +69 -69
- package/docs/ops/vscode-extension-release.md +160 -160
- package/package.json +95 -95
- package/skills/builtin/graphify/SKILL.md +52 -52
- package/skills/builtin/pi-agent-harness/SKILL.md +319 -319
- package/skills/builtin/pi-agent-harness/agents/openai.yaml +4 -4
- package/skills/builtin/pibo-docker-system/SKILL.md +170 -170
- package/skills/builtin/pibo-spec-writing/SKILL.md +330 -330
- package/skills/builtin/prd/SKILL.md +143 -143
- package/skills/builtin/ralph-loop/SKILL.md +359 -359
- package/skills/builtin/ralph-prd-json/SKILL.md +123 -123
- package/skills/builtin/skill-creator/LICENSE.txt +201 -201
- package/skills/builtin/skill-creator/SKILL.md +513 -513
- package/skills/builtin/skill-creator/agents/analyzer.md +274 -274
- package/skills/builtin/skill-creator/agents/comparator.md +202 -202
- package/skills/builtin/skill-creator/agents/grader.md +223 -223
- package/skills/builtin/skill-creator/assets/eval_review.html +146 -146
- package/skills/builtin/skill-creator/eval-viewer/generate_review.py +471 -471
- package/skills/builtin/skill-creator/eval-viewer/viewer.html +1325 -1325
- package/skills/builtin/skill-creator/references/schemas.md +430 -430
- package/skills/builtin/skill-creator/scripts/aggregate_benchmark.py +401 -401
- package/skills/builtin/skill-creator/scripts/generate_report.py +326 -326
- package/skills/builtin/skill-creator/scripts/improve_description.py +247 -247
- package/skills/builtin/skill-creator/scripts/package_skill.py +136 -136
- package/skills/builtin/skill-creator/scripts/quick_validate.py +102 -102
- package/skills/builtin/skill-creator/scripts/run_eval.py +310 -310
- package/skills/builtin/skill-creator/scripts/run_loop.py +328 -328
- package/skills/builtin/skill-creator/scripts/utils.py +47 -47
- package/skills/builtin/web-annotations/SKILL.md +93 -93
- package/src/mcp/LICENSE.mcp-cli +21 -21
package/dist/debug/index.js
CHANGED
|
@@ -1010,275 +1010,275 @@ function payloadType(payload) {
|
|
|
1010
1010
|
return typeof candidate.type === "string" ? candidate.type : undefined;
|
|
1011
1011
|
}
|
|
1012
1012
|
function printDebugDiscovery() {
|
|
1013
|
-
console.log(`pibo debug - inspect local Pibo data
|
|
1014
|
-
|
|
1015
|
-
Commands:
|
|
1016
|
-
db Inspect and query local SQLite stores
|
|
1017
|
-
session Inspect one Pibo Session by id or Chat URL
|
|
1018
|
-
summary Show compact session diagnosis and drill-down commands
|
|
1019
|
-
messages List or show stored user/assistant messages
|
|
1020
|
-
final Show the latest assistant message
|
|
1021
|
-
trace Rebuild the Chat Web trace view for one Pibo Session
|
|
1022
|
-
events Inspect compact event payload fields for one Pibo Session
|
|
1023
|
-
tool Inspect one grouped tool call
|
|
1024
|
-
failures List failed tool calls and trace/session errors
|
|
1025
|
-
jobs Inspect durable Pibo jobs and DLQ
|
|
1026
|
-
runs Inspect durable yielded runs
|
|
1027
|
-
resources Show gateway memory reserve, related child processes, and heavy daemons
|
|
1028
|
-
signals Inspect live session signal snapshots through Chat Web APIs
|
|
1029
|
-
telemetry Inspect runtime observability telemetry
|
|
1030
|
-
web Inspect browser render state via CDP
|
|
1031
|
-
pty Run and inspect interactive CLI/TUI commands under a PTY
|
|
1032
|
-
|
|
1033
|
-
Next:
|
|
1034
|
-
pibo debug db
|
|
1035
|
-
pibo debug summary <pibo-session-id>
|
|
1036
|
-
pibo debug final <pibo-session-id>
|
|
1037
|
-
pibo debug messages <pibo-session-id> list
|
|
1038
|
-
pibo debug trace <pibo-session-id> --running-only
|
|
1039
|
-
pibo debug events stream --topic pibo.output
|
|
1040
|
-
pibo debug resources --json
|
|
1041
|
-
pibo debug signals tree ps_...
|
|
1042
|
-
pibo debug telemetry sessions --active
|
|
1043
|
-
pibo debug web targets
|
|
1044
|
-
pibo debug pty run -- pibo tui:sessions --demo
|
|
1013
|
+
console.log(`pibo debug - inspect local Pibo data
|
|
1014
|
+
|
|
1015
|
+
Commands:
|
|
1016
|
+
db Inspect and query local SQLite stores
|
|
1017
|
+
session Inspect one Pibo Session by id or Chat URL
|
|
1018
|
+
summary Show compact session diagnosis and drill-down commands
|
|
1019
|
+
messages List or show stored user/assistant messages
|
|
1020
|
+
final Show the latest assistant message
|
|
1021
|
+
trace Rebuild the Chat Web trace view for one Pibo Session
|
|
1022
|
+
events Inspect compact event payload fields for one Pibo Session
|
|
1023
|
+
tool Inspect one grouped tool call
|
|
1024
|
+
failures List failed tool calls and trace/session errors
|
|
1025
|
+
jobs Inspect durable Pibo jobs and DLQ
|
|
1026
|
+
runs Inspect durable yielded runs
|
|
1027
|
+
resources Show gateway memory reserve, related child processes, and heavy daemons
|
|
1028
|
+
signals Inspect live session signal snapshots through Chat Web APIs
|
|
1029
|
+
telemetry Inspect runtime observability telemetry
|
|
1030
|
+
web Inspect browser render state via CDP
|
|
1031
|
+
pty Run and inspect interactive CLI/TUI commands under a PTY
|
|
1032
|
+
|
|
1033
|
+
Next:
|
|
1034
|
+
pibo debug db
|
|
1035
|
+
pibo debug summary <pibo-session-id>
|
|
1036
|
+
pibo debug final <pibo-session-id>
|
|
1037
|
+
pibo debug messages <pibo-session-id> list
|
|
1038
|
+
pibo debug trace <pibo-session-id> --running-only
|
|
1039
|
+
pibo debug events stream --topic pibo.output
|
|
1040
|
+
pibo debug resources --json
|
|
1041
|
+
pibo debug signals tree ps_...
|
|
1042
|
+
pibo debug telemetry sessions --active
|
|
1043
|
+
pibo debug web targets
|
|
1044
|
+
pibo debug pty run -- pibo tui:sessions --demo
|
|
1045
1045
|
`);
|
|
1046
1046
|
}
|
|
1047
1047
|
function printDebugResourcesDiscovery() {
|
|
1048
|
-
console.log(`pibo debug resources - inspect gateway resource guard state
|
|
1049
|
-
|
|
1050
|
-
Usage:
|
|
1051
|
-
pibo debug resources [--json]
|
|
1052
|
-
|
|
1053
|
-
Reports:
|
|
1054
|
-
Gateway RSS/heap headroom, host free-memory reserve, direct child processes, and known heavy local daemons such as ComfyUI or Unity when process listing is available.
|
|
1055
|
-
|
|
1056
|
-
Environment:
|
|
1057
|
-
PIBO_GATEWAY_RESOURCE_GUARD=warn|block|off
|
|
1058
|
-
PIBO_GATEWAY_MIN_FREE_MEMORY_BYTES=<bytes>
|
|
1059
|
-
PIBO_GATEWAY_MIN_HEAP_AVAILABLE_BYTES=<bytes>
|
|
1060
|
-
PIBO_GATEWAY_MAX_RSS_BYTES=<bytes>
|
|
1061
|
-
PIBO_GATEWAY_KNOWN_DAEMON_WARNING_RSS_BYTES=<bytes>
|
|
1062
|
-
|
|
1063
|
-
Next:
|
|
1064
|
-
pibo debug resources --json
|
|
1065
|
-
pibo compute health --json
|
|
1048
|
+
console.log(`pibo debug resources - inspect gateway resource guard state
|
|
1049
|
+
|
|
1050
|
+
Usage:
|
|
1051
|
+
pibo debug resources [--json]
|
|
1052
|
+
|
|
1053
|
+
Reports:
|
|
1054
|
+
Gateway RSS/heap headroom, host free-memory reserve, direct child processes, and known heavy local daemons such as ComfyUI or Unity when process listing is available.
|
|
1055
|
+
|
|
1056
|
+
Environment:
|
|
1057
|
+
PIBO_GATEWAY_RESOURCE_GUARD=warn|block|off
|
|
1058
|
+
PIBO_GATEWAY_MIN_FREE_MEMORY_BYTES=<bytes>
|
|
1059
|
+
PIBO_GATEWAY_MIN_HEAP_AVAILABLE_BYTES=<bytes>
|
|
1060
|
+
PIBO_GATEWAY_MAX_RSS_BYTES=<bytes>
|
|
1061
|
+
PIBO_GATEWAY_KNOWN_DAEMON_WARNING_RSS_BYTES=<bytes>
|
|
1062
|
+
|
|
1063
|
+
Next:
|
|
1064
|
+
pibo debug resources --json
|
|
1065
|
+
pibo compute health --json
|
|
1066
1066
|
`);
|
|
1067
1067
|
}
|
|
1068
1068
|
function printDebugSignalsDiscovery() {
|
|
1069
|
-
console.log(`pibo debug signals - inspect live Session Signal snapshots
|
|
1070
|
-
|
|
1071
|
-
Usage:
|
|
1072
|
-
pibo debug signals session <pibo-session-id> [--json] [--cookie <path>]
|
|
1073
|
-
pibo debug signals tree <root-pibo-session-id> [--json] [--cookie <path>]
|
|
1074
|
-
|
|
1075
|
-
Environment:
|
|
1076
|
-
PIBO_GATEWAY_URL=http://127.0.0.1:4788
|
|
1077
|
-
|
|
1078
|
-
Auth:
|
|
1079
|
-
--cookie <path> reads a Cookie header value from a local file.
|
|
1080
|
-
--auth-header <value> sends an Authorization header. Values are not printed.
|
|
1081
|
-
|
|
1082
|
-
Next:
|
|
1083
|
-
pibo debug signals tree ps_...
|
|
1069
|
+
console.log(`pibo debug signals - inspect live Session Signal snapshots
|
|
1070
|
+
|
|
1071
|
+
Usage:
|
|
1072
|
+
pibo debug signals session <pibo-session-id> [--json] [--cookie <path>]
|
|
1073
|
+
pibo debug signals tree <root-pibo-session-id> [--json] [--cookie <path>]
|
|
1074
|
+
|
|
1075
|
+
Environment:
|
|
1076
|
+
PIBO_GATEWAY_URL=http://127.0.0.1:4788
|
|
1077
|
+
|
|
1078
|
+
Auth:
|
|
1079
|
+
--cookie <path> reads a Cookie header value from a local file.
|
|
1080
|
+
--auth-header <value> sends an Authorization header. Values are not printed.
|
|
1081
|
+
|
|
1082
|
+
Next:
|
|
1083
|
+
pibo debug signals tree ps_...
|
|
1084
1084
|
`);
|
|
1085
1085
|
}
|
|
1086
1086
|
function printDebugTelemetryDiscovery() {
|
|
1087
|
-
console.log(`pibo debug telemetry - inspect bounded runtime observability telemetry
|
|
1088
|
-
|
|
1089
|
-
Usage:
|
|
1090
|
-
pibo debug telemetry sessions [--active] [--stale] [--limit n] [--json]
|
|
1091
|
-
pibo debug telemetry session <pibo-session-id> [--limit n] [--json]
|
|
1092
|
-
pibo debug telemetry turn <turn-id-or-event-id> [--events] [--limit n] [--json]
|
|
1093
|
-
pibo debug telemetry provider <provider-request-id> [--json]
|
|
1094
|
-
pibo debug telemetry provider <provider-request-id> events [--after seq] [--fields a,b] [--limit n] [--json]
|
|
1095
|
-
pibo debug telemetry provider <provider-request-id> payload <preview-or-event-summary-id> [--json]
|
|
1096
|
-
pibo debug telemetry tool <tool-call-id> [--json]
|
|
1097
|
-
pibo debug telemetry stale [--threshold-ms n] [--limit n] [--json]
|
|
1098
|
-
pibo debug telemetry stats [--retention class] [--json]
|
|
1099
|
-
pibo debug telemetry prune --retention class --before iso-date [--dry-run|--apply] [--json]
|
|
1100
|
-
|
|
1101
|
-
Commands:
|
|
1102
|
-
sessions List recent, active, or stale telemetry sessions
|
|
1103
|
-
session Show compact session telemetry and next turn/provider/tool commands
|
|
1104
|
-
turn Show a phase timeline for one turn or event id
|
|
1105
|
-
provider Show provider request summary, event pages, and preview-unavailable diagnostics
|
|
1106
|
-
tool Show tool-call argument and execution telemetry
|
|
1107
|
-
stale List read-only stale active work
|
|
1108
|
-
stats Show telemetry retention counts and byte estimates
|
|
1109
|
-
prune Dry-run telemetry retention cleanup unless --apply is explicit
|
|
1110
|
-
|
|
1111
|
-
Next:
|
|
1112
|
-
pibo debug telemetry sessions --active
|
|
1113
|
-
pibo debug telemetry session ps_...
|
|
1114
|
-
pibo debug telemetry turn turn_...
|
|
1115
|
-
pibo debug telemetry provider pr_... events --limit 20
|
|
1087
|
+
console.log(`pibo debug telemetry - inspect bounded runtime observability telemetry
|
|
1088
|
+
|
|
1089
|
+
Usage:
|
|
1090
|
+
pibo debug telemetry sessions [--active] [--stale] [--limit n] [--json]
|
|
1091
|
+
pibo debug telemetry session <pibo-session-id> [--limit n] [--json]
|
|
1092
|
+
pibo debug telemetry turn <turn-id-or-event-id> [--events] [--limit n] [--json]
|
|
1093
|
+
pibo debug telemetry provider <provider-request-id> [--json]
|
|
1094
|
+
pibo debug telemetry provider <provider-request-id> events [--after seq] [--fields a,b] [--limit n] [--json]
|
|
1095
|
+
pibo debug telemetry provider <provider-request-id> payload <preview-or-event-summary-id> [--json]
|
|
1096
|
+
pibo debug telemetry tool <tool-call-id> [--json]
|
|
1097
|
+
pibo debug telemetry stale [--threshold-ms n] [--limit n] [--json]
|
|
1098
|
+
pibo debug telemetry stats [--retention class] [--json]
|
|
1099
|
+
pibo debug telemetry prune --retention class --before iso-date [--dry-run|--apply] [--json]
|
|
1100
|
+
|
|
1101
|
+
Commands:
|
|
1102
|
+
sessions List recent, active, or stale telemetry sessions
|
|
1103
|
+
session Show compact session telemetry and next turn/provider/tool commands
|
|
1104
|
+
turn Show a phase timeline for one turn or event id
|
|
1105
|
+
provider Show provider request summary, event pages, and preview-unavailable diagnostics
|
|
1106
|
+
tool Show tool-call argument and execution telemetry
|
|
1107
|
+
stale List read-only stale active work
|
|
1108
|
+
stats Show telemetry retention counts and byte estimates
|
|
1109
|
+
prune Dry-run telemetry retention cleanup unless --apply is explicit
|
|
1110
|
+
|
|
1111
|
+
Next:
|
|
1112
|
+
pibo debug telemetry sessions --active
|
|
1113
|
+
pibo debug telemetry session ps_...
|
|
1114
|
+
pibo debug telemetry turn turn_...
|
|
1115
|
+
pibo debug telemetry provider pr_... events --limit 20
|
|
1116
1116
|
`);
|
|
1117
1117
|
}
|
|
1118
1118
|
function printDebugDbDiscovery() {
|
|
1119
|
-
console.log(`pibo debug db - inspect local SQLite stores
|
|
1120
|
-
|
|
1121
|
-
Stores:
|
|
1122
|
-
home ${getPiboHome()}
|
|
1123
|
-
pibo-data pibo.sqlite unified sessions, rooms, events, messages, observations, navigation, stats
|
|
1124
|
-
sessions pibo.sqlite V2 alias for session metadata
|
|
1125
|
-
chat pibo.sqlite V2 alias for Chat Web data
|
|
1126
|
-
agents chat-agents.sqlite
|
|
1127
|
-
auth auth.sqlite
|
|
1128
|
-
bindings session-bindings.sqlite
|
|
1129
|
-
reliability pibo-events.sqlite
|
|
1130
|
-
|
|
1131
|
-
Commands:
|
|
1132
|
-
stores List known stores and paths
|
|
1133
|
-
tables <store> List tables only
|
|
1134
|
-
schema <store> List tables and columns
|
|
1135
|
-
query <store> <sql> Run read-only SQL
|
|
1136
|
-
|
|
1137
|
-
Next:
|
|
1138
|
-
pibo debug db schema pibo-data
|
|
1139
|
-
pibo debug db query pibo-data "select id, profile from sessions limit 5"
|
|
1119
|
+
console.log(`pibo debug db - inspect local SQLite stores
|
|
1120
|
+
|
|
1121
|
+
Stores:
|
|
1122
|
+
home ${getPiboHome()}
|
|
1123
|
+
pibo-data pibo.sqlite unified sessions, rooms, events, messages, observations, navigation, stats
|
|
1124
|
+
sessions pibo.sqlite V2 alias for session metadata
|
|
1125
|
+
chat pibo.sqlite V2 alias for Chat Web data
|
|
1126
|
+
agents chat-agents.sqlite
|
|
1127
|
+
auth auth.sqlite
|
|
1128
|
+
bindings session-bindings.sqlite
|
|
1129
|
+
reliability pibo-events.sqlite
|
|
1130
|
+
|
|
1131
|
+
Commands:
|
|
1132
|
+
stores List known stores and paths
|
|
1133
|
+
tables <store> List tables only
|
|
1134
|
+
schema <store> List tables and columns
|
|
1135
|
+
query <store> <sql> Run read-only SQL
|
|
1136
|
+
|
|
1137
|
+
Next:
|
|
1138
|
+
pibo debug db schema pibo-data
|
|
1139
|
+
pibo debug db query pibo-data "select id, profile from sessions limit 5"
|
|
1140
1140
|
`);
|
|
1141
1141
|
}
|
|
1142
1142
|
function printDebugSessionDiscovery() {
|
|
1143
|
-
console.log(`pibo debug session - inspect one Pibo Session
|
|
1144
|
-
|
|
1145
|
-
Usage:
|
|
1146
|
-
pibo debug session <url-or-pibo-session-id> [--events] [--limit n] [--json]
|
|
1147
|
-
|
|
1148
|
-
Inputs:
|
|
1149
|
-
ps_...
|
|
1150
|
-
/apps/chat/rooms/<roomId>/sessions/<piboSessionId>
|
|
1151
|
-
/apps/chat/sessions/<piboSessionId>
|
|
1152
|
-
|
|
1153
|
-
Next:
|
|
1154
|
-
pibo debug session ps_...
|
|
1143
|
+
console.log(`pibo debug session - inspect one Pibo Session
|
|
1144
|
+
|
|
1145
|
+
Usage:
|
|
1146
|
+
pibo debug session <url-or-pibo-session-id> [--events] [--limit n] [--json]
|
|
1147
|
+
|
|
1148
|
+
Inputs:
|
|
1149
|
+
ps_...
|
|
1150
|
+
/apps/chat/rooms/<roomId>/sessions/<piboSessionId>
|
|
1151
|
+
/apps/chat/sessions/<piboSessionId>
|
|
1152
|
+
|
|
1153
|
+
Next:
|
|
1154
|
+
pibo debug session ps_...
|
|
1155
1155
|
`);
|
|
1156
1156
|
}
|
|
1157
1157
|
function printDebugSummaryDiscovery() {
|
|
1158
|
-
console.log(`pibo debug summary - compact diagnosis with drill-down commands
|
|
1159
|
-
|
|
1160
|
-
Usage:
|
|
1161
|
-
pibo debug summary <pibo-session-id> [--json]
|
|
1162
|
-
|
|
1163
|
-
Next:
|
|
1164
|
-
pibo debug final ps_...
|
|
1165
|
-
pibo debug failures ps_...
|
|
1166
|
-
pibo debug messages ps_... list
|
|
1158
|
+
console.log(`pibo debug summary - compact diagnosis with drill-down commands
|
|
1159
|
+
|
|
1160
|
+
Usage:
|
|
1161
|
+
pibo debug summary <pibo-session-id> [--json]
|
|
1162
|
+
|
|
1163
|
+
Next:
|
|
1164
|
+
pibo debug final ps_...
|
|
1165
|
+
pibo debug failures ps_...
|
|
1166
|
+
pibo debug messages ps_... list
|
|
1167
1167
|
`);
|
|
1168
1168
|
}
|
|
1169
1169
|
function printDebugMessagesDiscovery() {
|
|
1170
|
-
console.log(`pibo debug messages - list or show stored chat messages
|
|
1171
|
-
|
|
1172
|
-
Usage:
|
|
1173
|
-
pibo debug messages <pibo-session-id> list [--limit n] [--json]
|
|
1174
|
-
pibo debug messages <pibo-session-id> show <selector> [--full|--no-truncate] [--from n --bytes n] [--max-bytes n] [--plain] [--json]
|
|
1175
|
-
|
|
1176
|
-
Selectors:
|
|
1177
|
-
1, last, assistant:last, user:last, stream:<stream-id>, msg:<event-id>
|
|
1178
|
-
|
|
1179
|
-
Next:
|
|
1180
|
-
pibo debug messages ps_... list
|
|
1181
|
-
pibo debug messages ps_... show assistant:last --full
|
|
1170
|
+
console.log(`pibo debug messages - list or show stored chat messages
|
|
1171
|
+
|
|
1172
|
+
Usage:
|
|
1173
|
+
pibo debug messages <pibo-session-id> list [--limit n] [--json]
|
|
1174
|
+
pibo debug messages <pibo-session-id> show <selector> [--full|--no-truncate] [--from n --bytes n] [--max-bytes n] [--plain] [--json]
|
|
1175
|
+
|
|
1176
|
+
Selectors:
|
|
1177
|
+
1, last, assistant:last, user:last, stream:<stream-id>, msg:<event-id>
|
|
1178
|
+
|
|
1179
|
+
Next:
|
|
1180
|
+
pibo debug messages ps_... list
|
|
1181
|
+
pibo debug messages ps_... show assistant:last --full
|
|
1182
1182
|
`);
|
|
1183
1183
|
}
|
|
1184
1184
|
function printDebugFinalDiscovery() {
|
|
1185
|
-
console.log(`pibo debug final - show the latest assistant message
|
|
1186
|
-
|
|
1187
|
-
Usage:
|
|
1188
|
-
pibo debug final <pibo-session-id> [--max-bytes n] [--from n --bytes n] [--no-truncate] [--plain] [--json]
|
|
1189
|
-
|
|
1190
|
-
Note:
|
|
1191
|
-
Full messages may contain private data. Use --no-truncate intentionally.
|
|
1192
|
-
|
|
1193
|
-
Next:
|
|
1194
|
-
pibo debug final ps_...
|
|
1195
|
-
pibo debug final ps_... --no-truncate
|
|
1185
|
+
console.log(`pibo debug final - show the latest assistant message
|
|
1186
|
+
|
|
1187
|
+
Usage:
|
|
1188
|
+
pibo debug final <pibo-session-id> [--max-bytes n] [--from n --bytes n] [--no-truncate] [--plain] [--json]
|
|
1189
|
+
|
|
1190
|
+
Note:
|
|
1191
|
+
Full messages may contain private data. Use --no-truncate intentionally.
|
|
1192
|
+
|
|
1193
|
+
Next:
|
|
1194
|
+
pibo debug final ps_...
|
|
1195
|
+
pibo debug final ps_... --no-truncate
|
|
1196
1196
|
`);
|
|
1197
1197
|
}
|
|
1198
1198
|
function printDebugToolDiscovery() {
|
|
1199
|
-
console.log(`pibo debug tool - inspect one grouped tool call
|
|
1200
|
-
|
|
1201
|
-
Usage:
|
|
1202
|
-
pibo debug tool <pibo-session-id> <tool-call-id> [--args|--output|--error] [--no-truncate] [--json]
|
|
1203
|
-
|
|
1204
|
-
Next:
|
|
1205
|
-
pibo debug failures ps_...
|
|
1206
|
-
pibo debug tool ps_... call_... --output --no-truncate
|
|
1199
|
+
console.log(`pibo debug tool - inspect one grouped tool call
|
|
1200
|
+
|
|
1201
|
+
Usage:
|
|
1202
|
+
pibo debug tool <pibo-session-id> <tool-call-id> [--args|--output|--error] [--no-truncate] [--json]
|
|
1203
|
+
|
|
1204
|
+
Next:
|
|
1205
|
+
pibo debug failures ps_...
|
|
1206
|
+
pibo debug tool ps_... call_... --output --no-truncate
|
|
1207
1207
|
`);
|
|
1208
1208
|
}
|
|
1209
1209
|
function printDebugFailuresDiscovery() {
|
|
1210
|
-
console.log(`pibo debug failures - list failed tool calls and trace/session errors
|
|
1211
|
-
|
|
1212
|
-
Usage:
|
|
1213
|
-
pibo debug failures <pibo-session-id> [--limit n] [--json]
|
|
1214
|
-
|
|
1215
|
-
Next:
|
|
1216
|
-
pibo debug failures ps_...
|
|
1217
|
-
pibo debug tool ps_... <tool-call-id> --output
|
|
1210
|
+
console.log(`pibo debug failures - list failed tool calls and trace/session errors
|
|
1211
|
+
|
|
1212
|
+
Usage:
|
|
1213
|
+
pibo debug failures <pibo-session-id> [--limit n] [--json]
|
|
1214
|
+
|
|
1215
|
+
Next:
|
|
1216
|
+
pibo debug failures ps_...
|
|
1217
|
+
pibo debug tool ps_... <tool-call-id> --output
|
|
1218
1218
|
`);
|
|
1219
1219
|
}
|
|
1220
1220
|
function printDebugTraceDiscovery() {
|
|
1221
|
-
console.log(`pibo debug trace - rebuild one Chat Web trace view
|
|
1222
|
-
|
|
1223
|
-
Usage:
|
|
1224
|
-
pibo debug trace <pibo-session-id> [--running-only] [--check] [--medium] [--json]
|
|
1225
|
-
pibo debug trace <pibo-session-id> show <node-id> [--json]
|
|
1226
|
-
|
|
1227
|
-
Output:
|
|
1228
|
-
Compact trace nodes from the same buildTraceView logic used by /api/chat/trace.
|
|
1229
|
-
--check adds consistency diagnostics for ids, parents, ordering, and links.
|
|
1230
|
-
|
|
1231
|
-
Next:
|
|
1232
|
-
pibo debug trace ps_... --check
|
|
1233
|
-
pibo debug trace ps_... --medium
|
|
1234
|
-
pibo debug trace ps_... show <node-id>
|
|
1221
|
+
console.log(`pibo debug trace - rebuild one Chat Web trace view
|
|
1222
|
+
|
|
1223
|
+
Usage:
|
|
1224
|
+
pibo debug trace <pibo-session-id> [--running-only] [--check] [--medium] [--json]
|
|
1225
|
+
pibo debug trace <pibo-session-id> show <node-id> [--json]
|
|
1226
|
+
|
|
1227
|
+
Output:
|
|
1228
|
+
Compact trace nodes from the same buildTraceView logic used by /api/chat/trace.
|
|
1229
|
+
--check adds consistency diagnostics for ids, parents, ordering, and links.
|
|
1230
|
+
|
|
1231
|
+
Next:
|
|
1232
|
+
pibo debug trace ps_... --check
|
|
1233
|
+
pibo debug trace ps_... --medium
|
|
1234
|
+
pibo debug trace ps_... show <node-id>
|
|
1235
1235
|
`);
|
|
1236
1236
|
}
|
|
1237
1237
|
function printDebugEventsDiscovery() {
|
|
1238
|
-
console.log(`pibo debug events - inspect compact event payload fields and Pibo event streams
|
|
1239
|
-
|
|
1240
|
-
Usage:
|
|
1241
|
-
pibo debug events <pibo-session-id> [list] [--type name] [--fields a,b.c] [--limit n] [--json]
|
|
1242
|
-
pibo debug events <pibo-session-id> show <stream-id-or-event-id> [--payload|--raw] [--field path] [--no-truncate] [--json]
|
|
1243
|
-
pibo debug events stream [--topic topic] [--after stream_id] [--limit n] [--json]
|
|
1244
|
-
pibo debug events stats [--topic topic] [--session pibo-session-id] [--retention class] [--json]
|
|
1245
|
-
pibo debug events prune --topic topic --retention class --before iso-date [--limit n] [--destructive] [--json]
|
|
1246
|
-
pibo debug events compact-deltas [--dry-run|--apply] [--store pibo-data|chat|reliability] [--session ps_...] [--json]
|
|
1247
|
-
pibo debug events consumers [--json]
|
|
1248
|
-
|
|
1249
|
-
Examples:
|
|
1250
|
-
pibo debug events ps_... --type tool_execution_finished --fields toolName,toolCallId,result.details.status
|
|
1251
|
-
pibo debug events ps_... show 356910 --field attributes_json.inlinePayload
|
|
1252
|
-
|
|
1253
|
-
Next:
|
|
1254
|
-
pibo debug events ps_... --limit 20
|
|
1255
|
-
pibo debug events ps_... show <stream-id> --payload
|
|
1256
|
-
pibo debug events stats --topic pibo.output --retention live_delta
|
|
1257
|
-
pibo debug events stream --topic pibo.output --after 123
|
|
1238
|
+
console.log(`pibo debug events - inspect compact event payload fields and Pibo event streams
|
|
1239
|
+
|
|
1240
|
+
Usage:
|
|
1241
|
+
pibo debug events <pibo-session-id> [list] [--type name] [--fields a,b.c] [--limit n] [--json]
|
|
1242
|
+
pibo debug events <pibo-session-id> show <stream-id-or-event-id> [--payload|--raw] [--field path] [--no-truncate] [--json]
|
|
1243
|
+
pibo debug events stream [--topic topic] [--after stream_id] [--limit n] [--json]
|
|
1244
|
+
pibo debug events stats [--topic topic] [--session pibo-session-id] [--retention class] [--json]
|
|
1245
|
+
pibo debug events prune --topic topic --retention class --before iso-date [--limit n] [--destructive] [--json]
|
|
1246
|
+
pibo debug events compact-deltas [--dry-run|--apply] [--store pibo-data|chat|reliability] [--session ps_...] [--json]
|
|
1247
|
+
pibo debug events consumers [--json]
|
|
1248
|
+
|
|
1249
|
+
Examples:
|
|
1250
|
+
pibo debug events ps_... --type tool_execution_finished --fields toolName,toolCallId,result.details.status
|
|
1251
|
+
pibo debug events ps_... show 356910 --field attributes_json.inlinePayload
|
|
1252
|
+
|
|
1253
|
+
Next:
|
|
1254
|
+
pibo debug events ps_... --limit 20
|
|
1255
|
+
pibo debug events ps_... show <stream-id> --payload
|
|
1256
|
+
pibo debug events stats --topic pibo.output --retention live_delta
|
|
1257
|
+
pibo debug events stream --topic pibo.output --after 123
|
|
1258
1258
|
`);
|
|
1259
1259
|
}
|
|
1260
1260
|
function printDebugJobsDiscovery() {
|
|
1261
|
-
console.log(`pibo debug jobs - inspect durable Pibo jobs
|
|
1262
|
-
|
|
1263
|
-
Usage:
|
|
1264
|
-
pibo debug jobs list [--queue queue] [--limit n] [--json]
|
|
1265
|
-
pibo debug jobs dead [--queue queue] [--limit n] [--json]
|
|
1266
|
-
pibo debug jobs replay <job-id> [--json]
|
|
1267
|
-
|
|
1268
|
-
Next:
|
|
1269
|
-
pibo debug jobs list --queue runs
|
|
1270
|
-
pibo debug jobs dead --queue runs
|
|
1261
|
+
console.log(`pibo debug jobs - inspect durable Pibo jobs
|
|
1262
|
+
|
|
1263
|
+
Usage:
|
|
1264
|
+
pibo debug jobs list [--queue queue] [--limit n] [--json]
|
|
1265
|
+
pibo debug jobs dead [--queue queue] [--limit n] [--json]
|
|
1266
|
+
pibo debug jobs replay <job-id> [--json]
|
|
1267
|
+
|
|
1268
|
+
Next:
|
|
1269
|
+
pibo debug jobs list --queue runs
|
|
1270
|
+
pibo debug jobs dead --queue runs
|
|
1271
1271
|
`);
|
|
1272
1272
|
}
|
|
1273
1273
|
function printDebugRunsDiscovery() {
|
|
1274
|
-
console.log(`pibo debug runs - inspect durable yielded runs
|
|
1275
|
-
|
|
1276
|
-
Usage:
|
|
1277
|
-
pibo debug runs list <pibo-session-id> [--json]
|
|
1278
|
-
pibo debug runs inspect <run-id> [--json]
|
|
1279
|
-
|
|
1280
|
-
Next:
|
|
1281
|
-
pibo debug runs list ps_...
|
|
1274
|
+
console.log(`pibo debug runs - inspect durable yielded runs
|
|
1275
|
+
|
|
1276
|
+
Usage:
|
|
1277
|
+
pibo debug runs list <pibo-session-id> [--json]
|
|
1278
|
+
pibo debug runs inspect <run-id> [--json]
|
|
1279
|
+
|
|
1280
|
+
Next:
|
|
1281
|
+
pibo debug runs list ps_...
|
|
1282
1282
|
`);
|
|
1283
1283
|
}
|
|
1284
1284
|
function formatSchemaText(tables) {
|
package/dist/debug/messages.js
CHANGED
|
@@ -103,12 +103,12 @@ function readMessages(piboSessionId, store, limit) {
|
|
|
103
103
|
try {
|
|
104
104
|
if (!tableExists(db, "event_log"))
|
|
105
105
|
return { rows: [], limited: false };
|
|
106
|
-
const rows = db.prepare(`
|
|
107
|
-
SELECT stream_id, session_id, session_sequence, event_id, type, created_at, preview_text, attributes_json
|
|
108
|
-
FROM event_log
|
|
109
|
-
WHERE session_id = ?
|
|
110
|
-
ORDER BY stream_id ASC
|
|
111
|
-
LIMIT ?
|
|
106
|
+
const rows = db.prepare(`
|
|
107
|
+
SELECT stream_id, session_id, session_sequence, event_id, type, created_at, preview_text, attributes_json
|
|
108
|
+
FROM event_log
|
|
109
|
+
WHERE session_id = ?
|
|
110
|
+
ORDER BY stream_id ASC
|
|
111
|
+
LIMIT ?
|
|
112
112
|
`).all(piboSessionId, limit + 1);
|
|
113
113
|
const messages = [];
|
|
114
114
|
for (const row of rows) {
|