@pasko70/pibo 1.4.0 → 1.4.2
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 +82 -82
- package/dist/apps/chat/data/project-service.js +166 -166
- package/dist/apps/chat/data/read-state-service.js +18 -18
- package/dist/apps/chat/data/timeline-query-service.js +8 -8
- package/dist/apps/chat/model-catalog.js +5 -1
- package/dist/apps/chat/static-assets.js +853 -853
- package/dist/apps/chat/workflow-persistence.js +255 -255
- package/dist/apps/chat-ui/assets/{dist-7YaJd19a.js → dist-B2BEpL7n.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CiYeO8nN.js → dist-BAGS_xkV.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-BIvPnn_C.js → dist-BAXNalar.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CjSI6y5z.js → dist-BwUvs6Ph.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-Ubstha8t.js → dist-C0zsJ8II.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-KXCMNKIL.js → dist-C3PnEkhb.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CVQU42Fn.js → dist-CYPL-B2Z.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-BbNE72h8.js → dist-CiDSXgtg.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-D7TCkoFT.js → dist-DnACFKyO.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-ChSZNqKE.js → dist-ZB1-ui2y.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-8Noo5eCN.js → dist-vKlxFkTa.js} +1 -1
- package/dist/apps/chat-ui/assets/{index-CmxtUVG1.js → index-0x7tuTNX.js} +3 -3
- package/dist/apps/chat-ui/assets/{index-C25VYnyb.css → index-B-qaya1G.css} +1 -1
- package/dist/apps/chat-ui/index.html +18 -18
- package/dist/apps/chat-ui/manifest.webmanifest +25 -25
- package/dist/apps/chat-ui/sw.js +41 -41
- 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.4.2.vsix +0 -0
- package/dist/bin/pibo.js +0 -0
- package/dist/bin/rg.js +0 -0
- package/dist/cli.js +35 -35
- package/dist/compute/cli.js +54 -54
- package/dist/core/runtime.js +2 -0
- package/dist/core/session-router.js +1 -0
- 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/message-store.js +20 -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 +429 -429
- package/dist/data/session-store.js +4 -4
- package/dist/data/telemetry-queries.js +54 -54
- package/dist/data/telemetry.js +156 -156
- package/dist/debug/events.js +12 -12
- package/dist/debug/failures.js +6 -6
- package/dist/debug/index.js +207 -207
- 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/providers/glm.js +59 -0
- package/dist/ralph/cli.js +18 -18
- package/dist/ralph/templates.js +140 -140
- package/dist/reliability/store.js +226 -226
- 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/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 +455 -455
- 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 +1 -1
- 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/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.3.3.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.3.4.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.3.5.vsix +0 -0
- package/dist/core/shared-app.js +0 -17
- package/dist/data/final-app-space-cutover-migration.js +0 -728
- package/dist/data/shared-app-migration.js +0 -757
- package/dist/session-ui/ownerViewModel.js +0 -27
- package/dist/shared-app.js +0 -4
package/dist/debug/index.js
CHANGED
|
@@ -993,252 +993,252 @@ function payloadType(payload) {
|
|
|
993
993
|
return typeof candidate.type === "string" ? candidate.type : undefined;
|
|
994
994
|
}
|
|
995
995
|
function printDebugDiscovery() {
|
|
996
|
-
console.log(`pibo debug - inspect local Pibo data
|
|
997
|
-
|
|
998
|
-
Commands:
|
|
999
|
-
db Inspect and query local SQLite stores
|
|
1000
|
-
session Inspect one Pibo Session by id or Chat URL
|
|
1001
|
-
summary Show compact session diagnosis and drill-down commands
|
|
1002
|
-
messages List or show stored user/assistant messages
|
|
1003
|
-
final Show the latest assistant message
|
|
1004
|
-
trace Rebuild the Chat Web trace view for one Pibo Session
|
|
1005
|
-
events Inspect compact event payload fields for one Pibo Session
|
|
1006
|
-
tool Inspect one grouped tool call
|
|
1007
|
-
failures List failed tool calls and trace/session errors
|
|
1008
|
-
jobs Inspect durable Pibo jobs and DLQ
|
|
1009
|
-
runs Inspect durable yielded runs
|
|
1010
|
-
signals Inspect live session signal snapshots through Chat Web APIs
|
|
1011
|
-
telemetry Inspect runtime observability telemetry
|
|
1012
|
-
web Inspect browser render state via CDP
|
|
1013
|
-
pty Run and inspect interactive CLI/TUI commands under a PTY
|
|
1014
|
-
|
|
1015
|
-
Next:
|
|
1016
|
-
pibo debug db
|
|
1017
|
-
pibo debug summary <pibo-session-id>
|
|
1018
|
-
pibo debug final <pibo-session-id>
|
|
1019
|
-
pibo debug messages <pibo-session-id> list
|
|
1020
|
-
pibo debug trace <pibo-session-id> --running-only
|
|
1021
|
-
pibo debug events stream --topic pibo.output
|
|
1022
|
-
pibo debug signals tree ps_...
|
|
1023
|
-
pibo debug telemetry sessions --active
|
|
1024
|
-
pibo debug web targets
|
|
1025
|
-
pibo debug pty run -- pibo tui:sessions --demo
|
|
996
|
+
console.log(`pibo debug - inspect local Pibo data
|
|
997
|
+
|
|
998
|
+
Commands:
|
|
999
|
+
db Inspect and query local SQLite stores
|
|
1000
|
+
session Inspect one Pibo Session by id or Chat URL
|
|
1001
|
+
summary Show compact session diagnosis and drill-down commands
|
|
1002
|
+
messages List or show stored user/assistant messages
|
|
1003
|
+
final Show the latest assistant message
|
|
1004
|
+
trace Rebuild the Chat Web trace view for one Pibo Session
|
|
1005
|
+
events Inspect compact event payload fields for one Pibo Session
|
|
1006
|
+
tool Inspect one grouped tool call
|
|
1007
|
+
failures List failed tool calls and trace/session errors
|
|
1008
|
+
jobs Inspect durable Pibo jobs and DLQ
|
|
1009
|
+
runs Inspect durable yielded runs
|
|
1010
|
+
signals Inspect live session signal snapshots through Chat Web APIs
|
|
1011
|
+
telemetry Inspect runtime observability telemetry
|
|
1012
|
+
web Inspect browser render state via CDP
|
|
1013
|
+
pty Run and inspect interactive CLI/TUI commands under a PTY
|
|
1014
|
+
|
|
1015
|
+
Next:
|
|
1016
|
+
pibo debug db
|
|
1017
|
+
pibo debug summary <pibo-session-id>
|
|
1018
|
+
pibo debug final <pibo-session-id>
|
|
1019
|
+
pibo debug messages <pibo-session-id> list
|
|
1020
|
+
pibo debug trace <pibo-session-id> --running-only
|
|
1021
|
+
pibo debug events stream --topic pibo.output
|
|
1022
|
+
pibo debug signals tree ps_...
|
|
1023
|
+
pibo debug telemetry sessions --active
|
|
1024
|
+
pibo debug web targets
|
|
1025
|
+
pibo debug pty run -- pibo tui:sessions --demo
|
|
1026
1026
|
`);
|
|
1027
1027
|
}
|
|
1028
1028
|
function printDebugSignalsDiscovery() {
|
|
1029
|
-
console.log(`pibo debug signals - inspect live Session Signal snapshots
|
|
1030
|
-
|
|
1031
|
-
Usage:
|
|
1032
|
-
pibo debug signals session <pibo-session-id> [--json] [--cookie <path>]
|
|
1033
|
-
pibo debug signals tree <root-pibo-session-id> [--json] [--cookie <path>]
|
|
1034
|
-
|
|
1035
|
-
Environment:
|
|
1036
|
-
PIBO_GATEWAY_URL=http://127.0.0.1:4788
|
|
1037
|
-
|
|
1038
|
-
Auth:
|
|
1039
|
-
--cookie <path> reads a Cookie header value from a local file.
|
|
1040
|
-
--auth-header <value> sends an Authorization header. Values are not printed.
|
|
1041
|
-
|
|
1042
|
-
Next:
|
|
1043
|
-
pibo debug signals tree ps_...
|
|
1029
|
+
console.log(`pibo debug signals - inspect live Session Signal snapshots
|
|
1030
|
+
|
|
1031
|
+
Usage:
|
|
1032
|
+
pibo debug signals session <pibo-session-id> [--json] [--cookie <path>]
|
|
1033
|
+
pibo debug signals tree <root-pibo-session-id> [--json] [--cookie <path>]
|
|
1034
|
+
|
|
1035
|
+
Environment:
|
|
1036
|
+
PIBO_GATEWAY_URL=http://127.0.0.1:4788
|
|
1037
|
+
|
|
1038
|
+
Auth:
|
|
1039
|
+
--cookie <path> reads a Cookie header value from a local file.
|
|
1040
|
+
--auth-header <value> sends an Authorization header. Values are not printed.
|
|
1041
|
+
|
|
1042
|
+
Next:
|
|
1043
|
+
pibo debug signals tree ps_...
|
|
1044
1044
|
`);
|
|
1045
1045
|
}
|
|
1046
1046
|
function printDebugTelemetryDiscovery() {
|
|
1047
|
-
console.log(`pibo debug telemetry - inspect bounded runtime observability telemetry
|
|
1048
|
-
|
|
1049
|
-
Usage:
|
|
1050
|
-
pibo debug telemetry sessions [--active] [--stale] [--limit n] [--json]
|
|
1051
|
-
pibo debug telemetry session <pibo-session-id> [--limit n] [--json]
|
|
1052
|
-
pibo debug telemetry turn <turn-id-or-event-id> [--events] [--limit n] [--json]
|
|
1053
|
-
pibo debug telemetry provider <provider-request-id> [--json]
|
|
1054
|
-
pibo debug telemetry provider <provider-request-id> events [--after seq] [--fields a,b] [--limit n] [--json]
|
|
1055
|
-
pibo debug telemetry provider <provider-request-id> payload <preview-or-event-summary-id> [--json]
|
|
1056
|
-
pibo debug telemetry tool <tool-call-id> [--json]
|
|
1057
|
-
pibo debug telemetry stale [--threshold-ms n] [--limit n] [--json]
|
|
1058
|
-
pibo debug telemetry stats [--retention class] [--json]
|
|
1059
|
-
pibo debug telemetry prune --retention class --before iso-date [--dry-run|--apply] [--json]
|
|
1060
|
-
|
|
1061
|
-
Commands:
|
|
1062
|
-
sessions List recent, active, or stale telemetry sessions
|
|
1063
|
-
session Show compact session telemetry and next turn/provider/tool commands
|
|
1064
|
-
turn Show a phase timeline for one turn or event id
|
|
1065
|
-
provider Show provider request summary, event pages, and preview-unavailable diagnostics
|
|
1066
|
-
tool Show tool-call argument and execution telemetry
|
|
1067
|
-
stale List read-only stale active work
|
|
1068
|
-
stats Show telemetry retention counts and byte estimates
|
|
1069
|
-
prune Dry-run telemetry retention cleanup unless --apply is explicit
|
|
1070
|
-
|
|
1071
|
-
Next:
|
|
1072
|
-
pibo debug telemetry sessions --active
|
|
1073
|
-
pibo debug telemetry session ps_...
|
|
1074
|
-
pibo debug telemetry turn turn_...
|
|
1075
|
-
pibo debug telemetry provider pr_... events --limit 20
|
|
1047
|
+
console.log(`pibo debug telemetry - inspect bounded runtime observability telemetry
|
|
1048
|
+
|
|
1049
|
+
Usage:
|
|
1050
|
+
pibo debug telemetry sessions [--active] [--stale] [--limit n] [--json]
|
|
1051
|
+
pibo debug telemetry session <pibo-session-id> [--limit n] [--json]
|
|
1052
|
+
pibo debug telemetry turn <turn-id-or-event-id> [--events] [--limit n] [--json]
|
|
1053
|
+
pibo debug telemetry provider <provider-request-id> [--json]
|
|
1054
|
+
pibo debug telemetry provider <provider-request-id> events [--after seq] [--fields a,b] [--limit n] [--json]
|
|
1055
|
+
pibo debug telemetry provider <provider-request-id> payload <preview-or-event-summary-id> [--json]
|
|
1056
|
+
pibo debug telemetry tool <tool-call-id> [--json]
|
|
1057
|
+
pibo debug telemetry stale [--threshold-ms n] [--limit n] [--json]
|
|
1058
|
+
pibo debug telemetry stats [--retention class] [--json]
|
|
1059
|
+
pibo debug telemetry prune --retention class --before iso-date [--dry-run|--apply] [--json]
|
|
1060
|
+
|
|
1061
|
+
Commands:
|
|
1062
|
+
sessions List recent, active, or stale telemetry sessions
|
|
1063
|
+
session Show compact session telemetry and next turn/provider/tool commands
|
|
1064
|
+
turn Show a phase timeline for one turn or event id
|
|
1065
|
+
provider Show provider request summary, event pages, and preview-unavailable diagnostics
|
|
1066
|
+
tool Show tool-call argument and execution telemetry
|
|
1067
|
+
stale List read-only stale active work
|
|
1068
|
+
stats Show telemetry retention counts and byte estimates
|
|
1069
|
+
prune Dry-run telemetry retention cleanup unless --apply is explicit
|
|
1070
|
+
|
|
1071
|
+
Next:
|
|
1072
|
+
pibo debug telemetry sessions --active
|
|
1073
|
+
pibo debug telemetry session ps_...
|
|
1074
|
+
pibo debug telemetry turn turn_...
|
|
1075
|
+
pibo debug telemetry provider pr_... events --limit 20
|
|
1076
1076
|
`);
|
|
1077
1077
|
}
|
|
1078
1078
|
function printDebugDbDiscovery() {
|
|
1079
|
-
console.log(`pibo debug db - inspect local SQLite stores
|
|
1080
|
-
|
|
1081
|
-
Stores:
|
|
1082
|
-
home ${getPiboHome()}
|
|
1083
|
-
pibo-data pibo.sqlite unified sessions, rooms, events, messages, observations, navigation, stats
|
|
1084
|
-
sessions pibo.sqlite V2 alias for session metadata
|
|
1085
|
-
chat pibo.sqlite V2 alias for Chat Web data
|
|
1086
|
-
agents chat-agents.sqlite
|
|
1087
|
-
auth auth.sqlite
|
|
1088
|
-
bindings session-bindings.sqlite
|
|
1089
|
-
reliability pibo-events.sqlite
|
|
1090
|
-
|
|
1091
|
-
Commands:
|
|
1092
|
-
stores List known stores and paths
|
|
1093
|
-
tables <store> List tables only
|
|
1094
|
-
schema <store> List tables and columns
|
|
1095
|
-
query <store> <sql> Run read-only SQL
|
|
1096
|
-
|
|
1097
|
-
Next:
|
|
1098
|
-
pibo debug db schema pibo-data
|
|
1099
|
-
pibo debug db query pibo-data "select id, profile from sessions limit 5"
|
|
1079
|
+
console.log(`pibo debug db - inspect local SQLite stores
|
|
1080
|
+
|
|
1081
|
+
Stores:
|
|
1082
|
+
home ${getPiboHome()}
|
|
1083
|
+
pibo-data pibo.sqlite unified sessions, rooms, events, messages, observations, navigation, stats
|
|
1084
|
+
sessions pibo.sqlite V2 alias for session metadata
|
|
1085
|
+
chat pibo.sqlite V2 alias for Chat Web data
|
|
1086
|
+
agents chat-agents.sqlite
|
|
1087
|
+
auth auth.sqlite
|
|
1088
|
+
bindings session-bindings.sqlite
|
|
1089
|
+
reliability pibo-events.sqlite
|
|
1090
|
+
|
|
1091
|
+
Commands:
|
|
1092
|
+
stores List known stores and paths
|
|
1093
|
+
tables <store> List tables only
|
|
1094
|
+
schema <store> List tables and columns
|
|
1095
|
+
query <store> <sql> Run read-only SQL
|
|
1096
|
+
|
|
1097
|
+
Next:
|
|
1098
|
+
pibo debug db schema pibo-data
|
|
1099
|
+
pibo debug db query pibo-data "select id, profile from sessions limit 5"
|
|
1100
1100
|
`);
|
|
1101
1101
|
}
|
|
1102
1102
|
function printDebugSessionDiscovery() {
|
|
1103
|
-
console.log(`pibo debug session - inspect one Pibo Session
|
|
1104
|
-
|
|
1105
|
-
Usage:
|
|
1106
|
-
pibo debug session <url-or-pibo-session-id> [--events] [--limit n] [--json]
|
|
1107
|
-
|
|
1108
|
-
Inputs:
|
|
1109
|
-
ps_...
|
|
1110
|
-
/apps/chat/rooms/<roomId>/sessions/<piboSessionId>
|
|
1111
|
-
/apps/chat/sessions/<piboSessionId>
|
|
1112
|
-
|
|
1113
|
-
Next:
|
|
1114
|
-
pibo debug session ps_...
|
|
1103
|
+
console.log(`pibo debug session - inspect one Pibo Session
|
|
1104
|
+
|
|
1105
|
+
Usage:
|
|
1106
|
+
pibo debug session <url-or-pibo-session-id> [--events] [--limit n] [--json]
|
|
1107
|
+
|
|
1108
|
+
Inputs:
|
|
1109
|
+
ps_...
|
|
1110
|
+
/apps/chat/rooms/<roomId>/sessions/<piboSessionId>
|
|
1111
|
+
/apps/chat/sessions/<piboSessionId>
|
|
1112
|
+
|
|
1113
|
+
Next:
|
|
1114
|
+
pibo debug session ps_...
|
|
1115
1115
|
`);
|
|
1116
1116
|
}
|
|
1117
1117
|
function printDebugSummaryDiscovery() {
|
|
1118
|
-
console.log(`pibo debug summary - compact diagnosis with drill-down commands
|
|
1119
|
-
|
|
1120
|
-
Usage:
|
|
1121
|
-
pibo debug summary <pibo-session-id> [--json]
|
|
1122
|
-
|
|
1123
|
-
Next:
|
|
1124
|
-
pibo debug final ps_...
|
|
1125
|
-
pibo debug failures ps_...
|
|
1126
|
-
pibo debug messages ps_... list
|
|
1118
|
+
console.log(`pibo debug summary - compact diagnosis with drill-down commands
|
|
1119
|
+
|
|
1120
|
+
Usage:
|
|
1121
|
+
pibo debug summary <pibo-session-id> [--json]
|
|
1122
|
+
|
|
1123
|
+
Next:
|
|
1124
|
+
pibo debug final ps_...
|
|
1125
|
+
pibo debug failures ps_...
|
|
1126
|
+
pibo debug messages ps_... list
|
|
1127
1127
|
`);
|
|
1128
1128
|
}
|
|
1129
1129
|
function printDebugMessagesDiscovery() {
|
|
1130
|
-
console.log(`pibo debug messages - list or show stored chat messages
|
|
1131
|
-
|
|
1132
|
-
Usage:
|
|
1133
|
-
pibo debug messages <pibo-session-id> list [--limit n] [--json]
|
|
1134
|
-
pibo debug messages <pibo-session-id> show <selector> [--full|--no-truncate] [--from n --bytes n] [--max-bytes n] [--plain] [--json]
|
|
1135
|
-
|
|
1136
|
-
Selectors:
|
|
1137
|
-
1, last, assistant:last, user:last, stream:<stream-id>, msg:<event-id>
|
|
1138
|
-
|
|
1139
|
-
Next:
|
|
1140
|
-
pibo debug messages ps_... list
|
|
1141
|
-
pibo debug messages ps_... show assistant:last --full
|
|
1130
|
+
console.log(`pibo debug messages - list or show stored chat messages
|
|
1131
|
+
|
|
1132
|
+
Usage:
|
|
1133
|
+
pibo debug messages <pibo-session-id> list [--limit n] [--json]
|
|
1134
|
+
pibo debug messages <pibo-session-id> show <selector> [--full|--no-truncate] [--from n --bytes n] [--max-bytes n] [--plain] [--json]
|
|
1135
|
+
|
|
1136
|
+
Selectors:
|
|
1137
|
+
1, last, assistant:last, user:last, stream:<stream-id>, msg:<event-id>
|
|
1138
|
+
|
|
1139
|
+
Next:
|
|
1140
|
+
pibo debug messages ps_... list
|
|
1141
|
+
pibo debug messages ps_... show assistant:last --full
|
|
1142
1142
|
`);
|
|
1143
1143
|
}
|
|
1144
1144
|
function printDebugFinalDiscovery() {
|
|
1145
|
-
console.log(`pibo debug final - show the latest assistant message
|
|
1146
|
-
|
|
1147
|
-
Usage:
|
|
1148
|
-
pibo debug final <pibo-session-id> [--max-bytes n] [--from n --bytes n] [--no-truncate] [--plain] [--json]
|
|
1149
|
-
|
|
1150
|
-
Note:
|
|
1151
|
-
Full messages may contain private data. Use --no-truncate intentionally.
|
|
1152
|
-
|
|
1153
|
-
Next:
|
|
1154
|
-
pibo debug final ps_...
|
|
1155
|
-
pibo debug final ps_... --no-truncate
|
|
1145
|
+
console.log(`pibo debug final - show the latest assistant message
|
|
1146
|
+
|
|
1147
|
+
Usage:
|
|
1148
|
+
pibo debug final <pibo-session-id> [--max-bytes n] [--from n --bytes n] [--no-truncate] [--plain] [--json]
|
|
1149
|
+
|
|
1150
|
+
Note:
|
|
1151
|
+
Full messages may contain private data. Use --no-truncate intentionally.
|
|
1152
|
+
|
|
1153
|
+
Next:
|
|
1154
|
+
pibo debug final ps_...
|
|
1155
|
+
pibo debug final ps_... --no-truncate
|
|
1156
1156
|
`);
|
|
1157
1157
|
}
|
|
1158
1158
|
function printDebugToolDiscovery() {
|
|
1159
|
-
console.log(`pibo debug tool - inspect one grouped tool call
|
|
1160
|
-
|
|
1161
|
-
Usage:
|
|
1162
|
-
pibo debug tool <pibo-session-id> <tool-call-id> [--args|--output|--error] [--no-truncate] [--json]
|
|
1163
|
-
|
|
1164
|
-
Next:
|
|
1165
|
-
pibo debug failures ps_...
|
|
1166
|
-
pibo debug tool ps_... call_... --output --no-truncate
|
|
1159
|
+
console.log(`pibo debug tool - inspect one grouped tool call
|
|
1160
|
+
|
|
1161
|
+
Usage:
|
|
1162
|
+
pibo debug tool <pibo-session-id> <tool-call-id> [--args|--output|--error] [--no-truncate] [--json]
|
|
1163
|
+
|
|
1164
|
+
Next:
|
|
1165
|
+
pibo debug failures ps_...
|
|
1166
|
+
pibo debug tool ps_... call_... --output --no-truncate
|
|
1167
1167
|
`);
|
|
1168
1168
|
}
|
|
1169
1169
|
function printDebugFailuresDiscovery() {
|
|
1170
|
-
console.log(`pibo debug failures - list failed tool calls and trace/session errors
|
|
1171
|
-
|
|
1172
|
-
Usage:
|
|
1173
|
-
pibo debug failures <pibo-session-id> [--limit n] [--json]
|
|
1174
|
-
|
|
1175
|
-
Next:
|
|
1176
|
-
pibo debug failures ps_...
|
|
1177
|
-
pibo debug tool ps_... <tool-call-id> --output
|
|
1170
|
+
console.log(`pibo debug failures - list failed tool calls and trace/session errors
|
|
1171
|
+
|
|
1172
|
+
Usage:
|
|
1173
|
+
pibo debug failures <pibo-session-id> [--limit n] [--json]
|
|
1174
|
+
|
|
1175
|
+
Next:
|
|
1176
|
+
pibo debug failures ps_...
|
|
1177
|
+
pibo debug tool ps_... <tool-call-id> --output
|
|
1178
1178
|
`);
|
|
1179
1179
|
}
|
|
1180
1180
|
function printDebugTraceDiscovery() {
|
|
1181
|
-
console.log(`pibo debug trace - rebuild one Chat Web trace view
|
|
1182
|
-
|
|
1183
|
-
Usage:
|
|
1184
|
-
pibo debug trace <pibo-session-id> [--running-only] [--check] [--medium] [--json]
|
|
1185
|
-
pibo debug trace <pibo-session-id> show <node-id> [--json]
|
|
1186
|
-
|
|
1187
|
-
Output:
|
|
1188
|
-
Compact trace nodes from the same buildTraceView logic used by /api/chat/trace.
|
|
1189
|
-
--check adds consistency diagnostics for ids, parents, ordering, and links.
|
|
1190
|
-
|
|
1191
|
-
Next:
|
|
1192
|
-
pibo debug trace ps_... --check
|
|
1193
|
-
pibo debug trace ps_... --medium
|
|
1194
|
-
pibo debug trace ps_... show <node-id>
|
|
1181
|
+
console.log(`pibo debug trace - rebuild one Chat Web trace view
|
|
1182
|
+
|
|
1183
|
+
Usage:
|
|
1184
|
+
pibo debug trace <pibo-session-id> [--running-only] [--check] [--medium] [--json]
|
|
1185
|
+
pibo debug trace <pibo-session-id> show <node-id> [--json]
|
|
1186
|
+
|
|
1187
|
+
Output:
|
|
1188
|
+
Compact trace nodes from the same buildTraceView logic used by /api/chat/trace.
|
|
1189
|
+
--check adds consistency diagnostics for ids, parents, ordering, and links.
|
|
1190
|
+
|
|
1191
|
+
Next:
|
|
1192
|
+
pibo debug trace ps_... --check
|
|
1193
|
+
pibo debug trace ps_... --medium
|
|
1194
|
+
pibo debug trace ps_... show <node-id>
|
|
1195
1195
|
`);
|
|
1196
1196
|
}
|
|
1197
1197
|
function printDebugEventsDiscovery() {
|
|
1198
|
-
console.log(`pibo debug events - inspect compact event payload fields and Pibo event streams
|
|
1199
|
-
|
|
1200
|
-
Usage:
|
|
1201
|
-
pibo debug events <pibo-session-id> [list] [--type name] [--fields a,b.c] [--limit n] [--json]
|
|
1202
|
-
pibo debug events <pibo-session-id> show <stream-id-or-event-id> [--payload|--raw] [--field path] [--no-truncate] [--json]
|
|
1203
|
-
pibo debug events stream [--topic topic] [--after stream_id] [--limit n] [--json]
|
|
1204
|
-
pibo debug events stats [--topic topic] [--session pibo-session-id] [--retention class] [--json]
|
|
1205
|
-
pibo debug events prune --topic topic --retention class --before iso-date [--limit n] [--destructive] [--json]
|
|
1206
|
-
pibo debug events compact-deltas [--dry-run|--apply] [--store pibo-data|chat|reliability] [--session ps_...] [--json]
|
|
1207
|
-
pibo debug events consumers [--json]
|
|
1208
|
-
|
|
1209
|
-
Examples:
|
|
1210
|
-
pibo debug events ps_... --type tool_execution_finished --fields toolName,toolCallId,result.details.status
|
|
1211
|
-
pibo debug events ps_... show 356910 --field attributes_json.inlinePayload
|
|
1212
|
-
|
|
1213
|
-
Next:
|
|
1214
|
-
pibo debug events ps_... --limit 20
|
|
1215
|
-
pibo debug events ps_... show <stream-id> --payload
|
|
1216
|
-
pibo debug events stats --topic pibo.output --retention live_delta
|
|
1217
|
-
pibo debug events stream --topic pibo.output --after 123
|
|
1198
|
+
console.log(`pibo debug events - inspect compact event payload fields and Pibo event streams
|
|
1199
|
+
|
|
1200
|
+
Usage:
|
|
1201
|
+
pibo debug events <pibo-session-id> [list] [--type name] [--fields a,b.c] [--limit n] [--json]
|
|
1202
|
+
pibo debug events <pibo-session-id> show <stream-id-or-event-id> [--payload|--raw] [--field path] [--no-truncate] [--json]
|
|
1203
|
+
pibo debug events stream [--topic topic] [--after stream_id] [--limit n] [--json]
|
|
1204
|
+
pibo debug events stats [--topic topic] [--session pibo-session-id] [--retention class] [--json]
|
|
1205
|
+
pibo debug events prune --topic topic --retention class --before iso-date [--limit n] [--destructive] [--json]
|
|
1206
|
+
pibo debug events compact-deltas [--dry-run|--apply] [--store pibo-data|chat|reliability] [--session ps_...] [--json]
|
|
1207
|
+
pibo debug events consumers [--json]
|
|
1208
|
+
|
|
1209
|
+
Examples:
|
|
1210
|
+
pibo debug events ps_... --type tool_execution_finished --fields toolName,toolCallId,result.details.status
|
|
1211
|
+
pibo debug events ps_... show 356910 --field attributes_json.inlinePayload
|
|
1212
|
+
|
|
1213
|
+
Next:
|
|
1214
|
+
pibo debug events ps_... --limit 20
|
|
1215
|
+
pibo debug events ps_... show <stream-id> --payload
|
|
1216
|
+
pibo debug events stats --topic pibo.output --retention live_delta
|
|
1217
|
+
pibo debug events stream --topic pibo.output --after 123
|
|
1218
1218
|
`);
|
|
1219
1219
|
}
|
|
1220
1220
|
function printDebugJobsDiscovery() {
|
|
1221
|
-
console.log(`pibo debug jobs - inspect durable Pibo jobs
|
|
1222
|
-
|
|
1223
|
-
Usage:
|
|
1224
|
-
pibo debug jobs list [--queue queue] [--limit n] [--json]
|
|
1225
|
-
pibo debug jobs dead [--queue queue] [--limit n] [--json]
|
|
1226
|
-
pibo debug jobs replay <job-id> [--json]
|
|
1227
|
-
|
|
1228
|
-
Next:
|
|
1229
|
-
pibo debug jobs list --queue runs
|
|
1230
|
-
pibo debug jobs dead --queue runs
|
|
1221
|
+
console.log(`pibo debug jobs - inspect durable Pibo jobs
|
|
1222
|
+
|
|
1223
|
+
Usage:
|
|
1224
|
+
pibo debug jobs list [--queue queue] [--limit n] [--json]
|
|
1225
|
+
pibo debug jobs dead [--queue queue] [--limit n] [--json]
|
|
1226
|
+
pibo debug jobs replay <job-id> [--json]
|
|
1227
|
+
|
|
1228
|
+
Next:
|
|
1229
|
+
pibo debug jobs list --queue runs
|
|
1230
|
+
pibo debug jobs dead --queue runs
|
|
1231
1231
|
`);
|
|
1232
1232
|
}
|
|
1233
1233
|
function printDebugRunsDiscovery() {
|
|
1234
|
-
console.log(`pibo debug runs - inspect durable yielded runs
|
|
1235
|
-
|
|
1236
|
-
Usage:
|
|
1237
|
-
pibo debug runs list <pibo-session-id> [--json]
|
|
1238
|
-
pibo debug runs inspect <run-id> [--json]
|
|
1239
|
-
|
|
1240
|
-
Next:
|
|
1241
|
-
pibo debug runs list ps_...
|
|
1234
|
+
console.log(`pibo debug runs - inspect durable yielded runs
|
|
1235
|
+
|
|
1236
|
+
Usage:
|
|
1237
|
+
pibo debug runs list <pibo-session-id> [--json]
|
|
1238
|
+
pibo debug runs inspect <run-id> [--json]
|
|
1239
|
+
|
|
1240
|
+
Next:
|
|
1241
|
+
pibo debug runs list ps_...
|
|
1242
1242
|
`);
|
|
1243
1243
|
}
|
|
1244
1244
|
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) {
|