@pi-in-go/pigpen-ahp 0.1.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.
Files changed (304) hide show
  1. package/CREDITS.md +27 -0
  2. package/LICENSE +23 -0
  3. package/README.md +148 -0
  4. package/extensions/ahp/access_options_test.go +116 -0
  5. package/extensions/ahp/extension.go +54 -0
  6. package/extensions/ahp/go.mod +12 -0
  7. package/extensions/ahp/go.sum +2 -0
  8. package/extensions/ahp/go.work +8 -0
  9. package/extensions/ahp/internal/channels/chat.go +110 -0
  10. package/extensions/ahp/internal/channels/root.go +32 -0
  11. package/extensions/ahp/internal/channels/session.go +128 -0
  12. package/extensions/ahp/internal/channels/session_test.go +108 -0
  13. package/extensions/ahp/internal/compose/compose.go +153 -0
  14. package/extensions/ahp/internal/compose/compose_test.go +120 -0
  15. package/extensions/ahp/internal/gaps/gaps_test.go +88 -0
  16. package/extensions/ahp/internal/host/handshake_test.go +206 -0
  17. package/extensions/ahp/internal/host/host.go +1305 -0
  18. package/extensions/ahp/internal/host/reconnect_test.go +197 -0
  19. package/extensions/ahp/internal/host/replaywindow_test.go +31 -0
  20. package/extensions/ahp/internal/host/schema_test.go +79 -0
  21. package/extensions/ahp/internal/host/store.go +291 -0
  22. package/extensions/ahp/internal/host/store_update_test.go +85 -0
  23. package/extensions/ahp/internal/host/subscriptions_test.go +160 -0
  24. package/extensions/ahp/internal/host/surface_test.go +95 -0
  25. package/extensions/ahp/internal/host/workarounds.go +458 -0
  26. package/extensions/ahp/internal/host/workarounds_test.go +96 -0
  27. package/extensions/ahp/internal/live/live.go +328 -0
  28. package/extensions/ahp/internal/live/live_test.go +91 -0
  29. package/extensions/ahp/internal/live/store.go +113 -0
  30. package/extensions/ahp/internal/mapper/activity.go +199 -0
  31. package/extensions/ahp/internal/mapper/activity_test.go +188 -0
  32. package/extensions/ahp/internal/mapper/bench_test.go +38 -0
  33. package/extensions/ahp/internal/mapper/event_mapper_test.go +380 -0
  34. package/extensions/ahp/internal/mapper/fixtures_test.go +387 -0
  35. package/extensions/ahp/internal/mapper/helpers_test.go +251 -0
  36. package/extensions/ahp/internal/mapper/js.go +131 -0
  37. package/extensions/ahp/internal/mapper/mapper.go +600 -0
  38. package/extensions/ahp/internal/mapper/message_input_test.go +196 -0
  39. package/extensions/ahp/internal/mapper/messageinput.go +272 -0
  40. package/extensions/ahp/internal/mapper/schema_helpers_test.go +5 -0
  41. package/extensions/ahp/internal/mapper/testdata/LICENSE-pi-ahp +21 -0
  42. package/extensions/ahp/internal/mapper/testdata/fixtures/abort.json +711 -0
  43. package/extensions/ahp/internal/mapper/testdata/fixtures/bash-long-output.json +1312 -0
  44. package/extensions/ahp/internal/mapper/testdata/fixtures/compaction.json +6285 -0
  45. package/extensions/ahp/internal/mapper/testdata/fixtures/parallel-tools.json +2622 -0
  46. package/extensions/ahp/internal/mapper/testdata/fixtures/plain-text.json +1856 -0
  47. package/extensions/ahp/internal/mapper/testdata/fixtures/single-tool.json +1128 -0
  48. package/extensions/ahp/internal/mapper/testdata/fixtures/steering.json +3926 -0
  49. package/extensions/ahp/internal/mapper/testdata/fixtures/tool-bash.json +2372 -0
  50. package/extensions/ahp/internal/mapper/testdata/fixtures/tool-edit.json +3983 -0
  51. package/extensions/ahp/internal/mapper/testdata/fixtures/tool-error.json +2850 -0
  52. package/extensions/ahp/internal/mapper/testdata/fixtures/tool-find.json +1162 -0
  53. package/extensions/ahp/internal/mapper/testdata/fixtures/tool-grep.json +2783 -0
  54. package/extensions/ahp/internal/mapper/testdata/fixtures/tool-loop.json +1693 -0
  55. package/extensions/ahp/internal/mapper/testdata/fixtures/tool-ls.json +2427 -0
  56. package/extensions/ahp/internal/mapper/testdata/fixtures/tool-write.json +1271 -0
  57. package/extensions/ahp/internal/mapper/title.go +34 -0
  58. package/extensions/ahp/internal/mapper/usermsg.go +87 -0
  59. package/extensions/ahp/internal/pi/activeturn_test.go +296 -0
  60. package/extensions/ahp/internal/pi/backend.go +64 -0
  61. package/extensions/ahp/internal/pi/catalogue.go +370 -0
  62. package/extensions/ahp/internal/pi/catalogue_test.go +271 -0
  63. package/extensions/ahp/internal/pi/chatdriver.go +533 -0
  64. package/extensions/ahp/internal/pi/chatdriver_test.go +416 -0
  65. package/extensions/ahp/internal/pi/clientactions.go +212 -0
  66. package/extensions/ahp/internal/pi/clientactions_test.go +273 -0
  67. package/extensions/ahp/internal/pi/completions.go +230 -0
  68. package/extensions/ahp/internal/pi/completions_test.go +272 -0
  69. package/extensions/ahp/internal/pi/config_test.go +269 -0
  70. package/extensions/ahp/internal/pi/deletesession.go +69 -0
  71. package/extensions/ahp/internal/pi/deletesession_test.go +153 -0
  72. package/extensions/ahp/internal/pi/disposal_test.go +362 -0
  73. package/extensions/ahp/internal/pi/fixture_test.go +308 -0
  74. package/extensions/ahp/internal/pi/foreign_test.go +122 -0
  75. package/extensions/ahp/internal/pi/harness_test.go +83 -0
  76. package/extensions/ahp/internal/pi/history.go +269 -0
  77. package/extensions/ahp/internal/pi/hydrated_test.go +171 -0
  78. package/extensions/ahp/internal/pi/hydratedlifecycle_test.go +196 -0
  79. package/extensions/ahp/internal/pi/hydration_test.go +209 -0
  80. package/extensions/ahp/internal/pi/hydrator.go +212 -0
  81. package/extensions/ahp/internal/pi/imageinput.go +224 -0
  82. package/extensions/ahp/internal/pi/imageinput_test.go +57 -0
  83. package/extensions/ahp/internal/pi/lifecycle_test.go +381 -0
  84. package/extensions/ahp/internal/pi/models.go +212 -0
  85. package/extensions/ahp/internal/pi/models_test.go +128 -0
  86. package/extensions/ahp/internal/pi/paging.go +95 -0
  87. package/extensions/ahp/internal/pi/pagingtruncate_test.go +323 -0
  88. package/extensions/ahp/internal/pi/projecttrust.go +222 -0
  89. package/extensions/ahp/internal/pi/registry.go +924 -0
  90. package/extensions/ahp/internal/pi/restart_test.go +185 -0
  91. package/extensions/ahp/internal/pi/services.go +70 -0
  92. package/extensions/ahp/internal/pi/sessionconfig.go +64 -0
  93. package/extensions/ahp/internal/pi/sessionfiles_test.go +74 -0
  94. package/extensions/ahp/internal/pi/sessionstore.go +83 -0
  95. package/extensions/ahp/internal/pi/summary_test.go +426 -0
  96. package/extensions/ahp/internal/pi/workarounds_wire_test.go +208 -0
  97. package/extensions/ahp/internal/pisession/fromentries_test.go +32 -0
  98. package/extensions/ahp/internal/pisession/json.go +31 -0
  99. package/extensions/ahp/internal/pisession/pisession.go +580 -0
  100. package/extensions/ahp/internal/settings/access.go +63 -0
  101. package/extensions/ahp/internal/settings/access_test.go +52 -0
  102. package/extensions/ahp/internal/settings/settings.go +117 -0
  103. package/extensions/ahp/internal/settings/settings_test.go +104 -0
  104. package/extensions/ahp/internal/svc/etag_other.go +15 -0
  105. package/extensions/ahp/internal/svc/etag_unix.go +34 -0
  106. package/extensions/ahp/internal/svc/glob.go +197 -0
  107. package/extensions/ahp/internal/svc/mime.go +37 -0
  108. package/extensions/ahp/internal/svc/paths.go +108 -0
  109. package/extensions/ahp/internal/svc/pty.go +64 -0
  110. package/extensions/ahp/internal/svc/pty_darwin.go +42 -0
  111. package/extensions/ahp/internal/svc/pty_linux.go +36 -0
  112. package/extensions/ahp/internal/svc/pty_other.go +9 -0
  113. package/extensions/ahp/internal/svc/pty_test.go +114 -0
  114. package/extensions/ahp/internal/svc/pty_unix.go +147 -0
  115. package/extensions/ahp/internal/svc/resource.go +495 -0
  116. package/extensions/ahp/internal/svc/resource_test.go +501 -0
  117. package/extensions/ahp/internal/svc/stat_bsd.go +9 -0
  118. package/extensions/ahp/internal/svc/stat_linux.go +9 -0
  119. package/extensions/ahp/internal/svc/terminal.go +454 -0
  120. package/extensions/ahp/internal/svc/terminal_test.go +512 -0
  121. package/extensions/ahp/internal/svc/watch.go +590 -0
  122. package/extensions/ahp/internal/svc/watch_test.go +627 -0
  123. package/extensions/ahp/internal/svc/watchevents_test.go +452 -0
  124. package/extensions/ahp/internal/svc/watchpolicy.go +81 -0
  125. package/extensions/ahp/internal/svc/watchpolicy_test.go +151 -0
  126. package/extensions/ahp/internal/svc/watchracy_test.go +61 -0
  127. package/extensions/ahp/internal/testkit/schema/LICENSE-agent-host-protocol +21 -0
  128. package/extensions/ahp/internal/testkit/schema/actions.schema.json +9208 -0
  129. package/extensions/ahp/internal/testkit/schema/commands.schema.json +10862 -0
  130. package/extensions/ahp/internal/testkit/schema/errors.schema.json +10928 -0
  131. package/extensions/ahp/internal/testkit/schema/notifications.schema.json +6667 -0
  132. package/extensions/ahp/internal/testkit/schema/state.schema.json +6392 -0
  133. package/extensions/ahp/internal/testkit/schema.go +360 -0
  134. package/extensions/ahp/internal/testkit/testkit.go +367 -0
  135. package/extensions/ahp/internal/twin/twin.go +27 -0
  136. package/extensions/ahp/internal/wire/dispatchable.go +106 -0
  137. package/extensions/ahp/internal/wire/dispatchable_list.go +15 -0
  138. package/extensions/ahp/internal/wire/helpers_test.go +5 -0
  139. package/extensions/ahp/internal/wire/wire.go +218 -0
  140. package/extensions/ahp/internal/wire/wire_test.go +123 -0
  141. package/extensions/ahp/internal/ws/helpers_test.go +7 -0
  142. package/extensions/ahp/internal/ws/vscode_test.go +198 -0
  143. package/extensions/ahp/internal/ws/ws.go +674 -0
  144. package/extensions/ahp/internal/ws/ws_test.go +324 -0
  145. package/extensions/ahp/realpig_test.go +589 -0
  146. package/extensions/ahp/runtime.go +311 -0
  147. package/extensions/ahp/runtime_test.go +110 -0
  148. package/extensions/ahp/testdata/upstream-tests.json +3833 -0
  149. package/extensions/ahp/third_party/agent-host-protocol-go/LICENSE +21 -0
  150. package/extensions/ahp/third_party/agent-host-protocol-go/NOTICE-PIGPEN.md +18 -0
  151. package/extensions/ahp/third_party/agent-host-protocol-go/ahp/client.go +1011 -0
  152. package/extensions/ahp/third_party/agent-host-protocol-go/ahp/error.go +111 -0
  153. package/extensions/ahp/third_party/agent-host-protocol-go/ahp/multi_host_state_mirror.go +239 -0
  154. package/extensions/ahp/third_party/agent-host-protocol-go/ahp/reducers.go +1939 -0
  155. package/extensions/ahp/third_party/agent-host-protocol-go/ahp/transport.go +176 -0
  156. package/extensions/ahp/third_party/agent-host-protocol-go/ahptypes/actions.generated.go +2447 -0
  157. package/extensions/ahp/third_party/agent-host-protocol-go/ahptypes/commands.generated.go +1546 -0
  158. package/extensions/ahp/third_party/agent-host-protocol-go/ahptypes/common.go +205 -0
  159. package/extensions/ahp/third_party/agent-host-protocol-go/ahptypes/errors.generated.go +65 -0
  160. package/extensions/ahp/third_party/agent-host-protocol-go/ahptypes/messages.generated.go +138 -0
  161. package/extensions/ahp/third_party/agent-host-protocol-go/ahptypes/notifications.generated.go +264 -0
  162. package/extensions/ahp/third_party/agent-host-protocol-go/ahptypes/state.generated.go +6171 -0
  163. package/extensions/ahp/third_party/agent-host-protocol-go/ahptypes/version.generated.go +31 -0
  164. package/extensions/ahp/third_party/agent-host-protocol-go/go.mod +3 -0
  165. package/extensions/ahp/twins_test.go +91 -0
  166. package/package.json +40 -0
  167. package/proof/PORT.md +121 -0
  168. package/proof/mutations.json +152 -0
  169. package/proof/oracle/LICENSE +21 -0
  170. package/proof/oracle/README.md +120 -0
  171. package/proof/oracle/UPSTREAM.md +7 -0
  172. package/proof/oracle/package.json +68 -0
  173. package/proof/oracle/src/bin/cli.ts +66 -0
  174. package/proof/oracle/src/bin/tunnel.ts +128 -0
  175. package/proof/oracle/src/channels/chat.ts +134 -0
  176. package/proof/oracle/src/channels/root.ts +39 -0
  177. package/proof/oracle/src/channels/session.ts +118 -0
  178. package/proof/oracle/src/channels/terminal.ts +11 -0
  179. package/proof/oracle/src/core/channels.ts +108 -0
  180. package/proof/oracle/src/core/client-workarounds.ts +358 -0
  181. package/proof/oracle/src/core/connection.ts +41 -0
  182. package/proof/oracle/src/core/host.ts +882 -0
  183. package/proof/oracle/src/core/sequencer.ts +75 -0
  184. package/proof/oracle/src/core/state-store.ts +162 -0
  185. package/proof/oracle/src/core/uri.ts +25 -0
  186. package/proof/oracle/src/host/direct-settings.ts +110 -0
  187. package/proof/oracle/src/host/pi-host.ts +220 -0
  188. package/proof/oracle/src/host/serve.ts +71 -0
  189. package/proof/oracle/src/host/terminal-service.ts +346 -0
  190. package/proof/oracle/src/pi/activity.ts +171 -0
  191. package/proof/oracle/src/pi/changeset-service.ts +646 -0
  192. package/proof/oracle/src/pi/changeset-uri.ts +64 -0
  193. package/proof/oracle/src/pi/chat-driver.ts +529 -0
  194. package/proof/oracle/src/pi/completions.ts +160 -0
  195. package/proof/oracle/src/pi/delete-session.ts +53 -0
  196. package/proof/oracle/src/pi/event-mapper.ts +648 -0
  197. package/proof/oracle/src/pi/git-changes.ts +605 -0
  198. package/proof/oracle/src/pi/history.ts +305 -0
  199. package/proof/oracle/src/pi/image-input.ts +56 -0
  200. package/proof/oracle/src/pi/image-mime.ts +8 -0
  201. package/proof/oracle/src/pi/in-process-backend.ts +155 -0
  202. package/proof/oracle/src/pi/message-input.ts +212 -0
  203. package/proof/oracle/src/pi/models.ts +124 -0
  204. package/proof/oracle/src/pi/project-trust.ts +66 -0
  205. package/proof/oracle/src/pi/provider.ts +2 -0
  206. package/proof/oracle/src/pi/resource-paths.ts +80 -0
  207. package/proof/oracle/src/pi/resource-service.ts +356 -0
  208. package/proof/oracle/src/pi/resource-watch-policy.ts +35 -0
  209. package/proof/oracle/src/pi/resource-watch.ts +357 -0
  210. package/proof/oracle/src/pi/session-catalogue.ts +318 -0
  211. package/proof/oracle/src/pi/session-config.ts +84 -0
  212. package/proof/oracle/src/pi/session-history.ts +75 -0
  213. package/proof/oracle/src/pi/session-hydrator.ts +219 -0
  214. package/proof/oracle/src/pi/session-registry.ts +815 -0
  215. package/proof/oracle/src/pi/session-storage.ts +29 -0
  216. package/proof/oracle/src/pi/session-title.ts +18 -0
  217. package/proof/oracle/src/pi/turn-paging.ts +94 -0
  218. package/proof/oracle/src/pi/user-message.ts +66 -0
  219. package/proof/oracle/src/protocol/errors.ts +44 -0
  220. package/proof/oracle/src/protocol/jsonrpc.ts +89 -0
  221. package/proof/oracle/src/protocol/version.ts +39 -0
  222. package/proof/oracle/src/transport/websocket.ts +136 -0
  223. package/proof/oracle/src/tunnel/devtunnel.ts +293 -0
  224. package/proof/oracle/src/tunnel/discovery.ts +37 -0
  225. package/proof/oracle/test/active-turn-reconnect.test.ts +274 -0
  226. package/proof/oracle/test/activity.test.ts +171 -0
  227. package/proof/oracle/test/changeset-lifecycle.test.serial.ts +303 -0
  228. package/proof/oracle/test/changeset-uri.test.ts +37 -0
  229. package/proof/oracle/test/changeset.test.serial.ts +487 -0
  230. package/proof/oracle/test/chat-driver.test.ts +691 -0
  231. package/proof/oracle/test/client-actions.test.ts +409 -0
  232. package/proof/oracle/test/client-workarounds.test.ts +320 -0
  233. package/proof/oracle/test/completions.test.ts +323 -0
  234. package/proof/oracle/test/delete-session.test.ts +142 -0
  235. package/proof/oracle/test/direct-settings.test.ts +81 -0
  236. package/proof/oracle/test/event-mapper.test.ts +619 -0
  237. package/proof/oracle/test/fetch-turns.test.ts +207 -0
  238. package/proof/oracle/test/fixtures/abort.json +711 -0
  239. package/proof/oracle/test/fixtures/bash-long-output.json +1312 -0
  240. package/proof/oracle/test/fixtures/compaction.json +6285 -0
  241. package/proof/oracle/test/fixtures/parallel-tools.json +2622 -0
  242. package/proof/oracle/test/fixtures/plain-text.json +1856 -0
  243. package/proof/oracle/test/fixtures/single-tool.json +1128 -0
  244. package/proof/oracle/test/fixtures/steering.json +3926 -0
  245. package/proof/oracle/test/fixtures/tool-bash.json +2372 -0
  246. package/proof/oracle/test/fixtures/tool-edit.json +3983 -0
  247. package/proof/oracle/test/fixtures/tool-error.json +2850 -0
  248. package/proof/oracle/test/fixtures/tool-find.json +1162 -0
  249. package/proof/oracle/test/fixtures/tool-grep.json +2783 -0
  250. package/proof/oracle/test/fixtures/tool-loop.json +1693 -0
  251. package/proof/oracle/test/fixtures/tool-ls.json +2427 -0
  252. package/proof/oracle/test/fixtures/tool-write.json +1271 -0
  253. package/proof/oracle/test/handshake.test.ts +275 -0
  254. package/proof/oracle/test/harness.ts +153 -0
  255. package/proof/oracle/test/hydrated-session-lifecycle.test.ts +211 -0
  256. package/proof/oracle/test/image-input.test.ts +28 -0
  257. package/proof/oracle/test/image-session.test.ts +69 -0
  258. package/proof/oracle/test/live-turn.test.ts +304 -0
  259. package/proof/oracle/test/mapper-fixtures.test.ts +293 -0
  260. package/proof/oracle/test/message-input.test.ts +181 -0
  261. package/proof/oracle/test/model-discovery.test.ts +170 -0
  262. package/proof/oracle/test/models.test.ts +109 -0
  263. package/proof/oracle/test/pi-host.test.ts +91 -0
  264. package/proof/oracle/test/pi-replay.test.ts +141 -0
  265. package/proof/oracle/test/project-trust.test.ts +125 -0
  266. package/proof/oracle/test/protocol-surface.test.ts +121 -0
  267. package/proof/oracle/test/pty.test.ts +100 -0
  268. package/proof/oracle/test/reconnect.test.ts +389 -0
  269. package/proof/oracle/test/resource-watch-policy.test.ts +78 -0
  270. package/proof/oracle/test/resource-watch.test.serial.ts +536 -0
  271. package/proof/oracle/test/resource.test.ts +499 -0
  272. package/proof/oracle/test/schema.test.ts +88 -0
  273. package/proof/oracle/test/session-catalogue.test.ts +314 -0
  274. package/proof/oracle/test/session-config.test.ts +224 -0
  275. package/proof/oracle/test/session-disposal.test.ts +364 -0
  276. package/proof/oracle/test/session-hydration.test.ts +194 -0
  277. package/proof/oracle/test/session-lifecycle.test.ts +416 -0
  278. package/proof/oracle/test/session-storage.test.serial.ts +32 -0
  279. package/proof/oracle/test/session-summary.test.ts +418 -0
  280. package/proof/oracle/test/subscriptions.test.ts +198 -0
  281. package/proof/oracle/test/support/assertions.ts +32 -0
  282. package/proof/oracle/test/support/async.ts +26 -0
  283. package/proof/oracle/test/support/hydrated-session.ts +205 -0
  284. package/proof/oracle/test/support/images.ts +8 -0
  285. package/proof/oracle/test/support/recorded-fixtures.ts +60 -0
  286. package/proof/oracle/test/support/recorded-scenarios.ts +145 -0
  287. package/proof/oracle/test/support/replay.ts +194 -0
  288. package/proof/oracle/test/support/schema.ts +221 -0
  289. package/proof/oracle/test/support/session-files.ts +12 -0
  290. package/proof/oracle/test/support/session-storage.ts +22 -0
  291. package/proof/oracle/test/support/upstream.ts +25 -0
  292. package/proof/oracle/test/support/watch-events.ts +108 -0
  293. package/proof/oracle/test/terminal-service.test.ts +495 -0
  294. package/proof/oracle/test/truncate.test.ts +230 -0
  295. package/proof/oracle/test/tunnel.test.ts +258 -0
  296. package/proof/oracle/test/upstream-workarounds.test.ts +37 -0
  297. package/proof/oracle/test/uri.test.ts +24 -0
  298. package/proof/oracle/test/watch-events.test.ts +118 -0
  299. package/proof/oracle/tsconfig.json +32 -0
  300. package/proof/proof-piglet/piglet.yaml +18 -0
  301. package/proof/tools/fakellm/go.mod +3 -0
  302. package/proof/tools/fakellm/main.go +109 -0
  303. package/proof/tools/gen-dispatchable.py +30 -0
  304. package/provenance.json +28 -0
@@ -0,0 +1,1162 @@
1
+ {
2
+ "name": "tool-find",
3
+ "description": "A `find` call — path globbing, with its own result limit.",
4
+ "prompt": "Use the find tool to locate every .ts file under src. Reply with their paths only.",
5
+ "partials": [
6
+ {
7
+ "role": "assistant",
8
+ "content": [
9
+ {
10
+ "type": "thinking",
11
+ "thinking": "",
12
+ "thinkingSignature": ""
13
+ },
14
+ {
15
+ "type": "toolCall",
16
+ "id": "toolcall_0",
17
+ "name": "find",
18
+ "arguments": {
19
+ "pattern": "src/**/*.ts",
20
+ "path": ".",
21
+ "limit": 1000
22
+ }
23
+ }
24
+ ],
25
+ "api": "openai-responses",
26
+ "provider": "github-copilot",
27
+ "model": "gpt-5.4",
28
+ "usage": {
29
+ "input": 1567,
30
+ "output": 50,
31
+ "cacheRead": 0,
32
+ "cacheWrite": 0,
33
+ "reasoning": 20,
34
+ "totalTokens": 1617,
35
+ "cost": {
36
+ "input": 0.0039175,
37
+ "output": 0.00075,
38
+ "cacheRead": 0,
39
+ "cacheWrite": 0,
40
+ "total": 0.0046675
41
+ }
42
+ },
43
+ "stopReason": "toolUse",
44
+ "timestamp": 0,
45
+ "responseId": ""
46
+ },
47
+ {
48
+ "role": "assistant",
49
+ "content": [
50
+ {
51
+ "type": "text",
52
+ "text": "src/x.ts\nsrc/y.ts",
53
+ "textSignature": ""
54
+ }
55
+ ],
56
+ "api": "openai-responses",
57
+ "provider": "github-copilot",
58
+ "model": "gpt-5.4",
59
+ "usage": {
60
+ "input": 1634,
61
+ "output": 11,
62
+ "cacheRead": 0,
63
+ "cacheWrite": 0,
64
+ "reasoning": 0,
65
+ "totalTokens": 1645,
66
+ "cost": {
67
+ "input": 0.004085,
68
+ "output": 0.000165,
69
+ "cacheRead": 0,
70
+ "cacheWrite": 0,
71
+ "total": 0.00425
72
+ }
73
+ },
74
+ "stopReason": "stop",
75
+ "timestamp": 0,
76
+ "responseId": ""
77
+ }
78
+ ],
79
+ "turns": [
80
+ [
81
+ {
82
+ "type": "start",
83
+ "partialRef": 0
84
+ },
85
+ {
86
+ "type": "thinking_start",
87
+ "contentIndex": 0,
88
+ "partialRef": 0
89
+ },
90
+ {
91
+ "type": "thinking_end",
92
+ "contentIndex": 0,
93
+ "content": "",
94
+ "partialRef": 0
95
+ },
96
+ {
97
+ "type": "toolcall_start",
98
+ "contentIndex": 1,
99
+ "partialRef": 0
100
+ },
101
+ {
102
+ "type": "toolcall_delta",
103
+ "contentIndex": 1,
104
+ "delta": "{\"",
105
+ "partialRef": 0
106
+ },
107
+ {
108
+ "type": "toolcall_delta",
109
+ "contentIndex": 1,
110
+ "delta": "pattern",
111
+ "partialRef": 0
112
+ },
113
+ {
114
+ "type": "toolcall_delta",
115
+ "contentIndex": 1,
116
+ "delta": "\":\"",
117
+ "partialRef": 0
118
+ },
119
+ {
120
+ "type": "toolcall_delta",
121
+ "contentIndex": 1,
122
+ "delta": "src",
123
+ "partialRef": 0
124
+ },
125
+ {
126
+ "type": "toolcall_delta",
127
+ "contentIndex": 1,
128
+ "delta": "/**/*.",
129
+ "partialRef": 0
130
+ },
131
+ {
132
+ "type": "toolcall_delta",
133
+ "contentIndex": 1,
134
+ "delta": "ts",
135
+ "partialRef": 0
136
+ },
137
+ {
138
+ "type": "toolcall_delta",
139
+ "contentIndex": 1,
140
+ "delta": "\",\"",
141
+ "partialRef": 0
142
+ },
143
+ {
144
+ "type": "toolcall_delta",
145
+ "contentIndex": 1,
146
+ "delta": "path",
147
+ "partialRef": 0
148
+ },
149
+ {
150
+ "type": "toolcall_delta",
151
+ "contentIndex": 1,
152
+ "delta": "\":",
153
+ "partialRef": 0
154
+ },
155
+ {
156
+ "type": "toolcall_delta",
157
+ "contentIndex": 1,
158
+ "delta": "\".",
159
+ "partialRef": 0
160
+ },
161
+ {
162
+ "type": "toolcall_delta",
163
+ "contentIndex": 1,
164
+ "delta": "\",\"",
165
+ "partialRef": 0
166
+ },
167
+ {
168
+ "type": "toolcall_delta",
169
+ "contentIndex": 1,
170
+ "delta": "limit",
171
+ "partialRef": 0
172
+ },
173
+ {
174
+ "type": "toolcall_delta",
175
+ "contentIndex": 1,
176
+ "delta": "\":",
177
+ "partialRef": 0
178
+ },
179
+ {
180
+ "type": "toolcall_delta",
181
+ "contentIndex": 1,
182
+ "delta": "100",
183
+ "partialRef": 0
184
+ },
185
+ {
186
+ "type": "toolcall_delta",
187
+ "contentIndex": 1,
188
+ "delta": "0",
189
+ "partialRef": 0
190
+ },
191
+ {
192
+ "type": "toolcall_delta",
193
+ "contentIndex": 1,
194
+ "delta": "}",
195
+ "partialRef": 0
196
+ },
197
+ {
198
+ "type": "toolcall_end",
199
+ "contentIndex": 1,
200
+ "toolCall": {
201
+ "type": "toolCall",
202
+ "id": "toolcall_0",
203
+ "name": "find",
204
+ "arguments": {
205
+ "pattern": "src/**/*.ts",
206
+ "path": ".",
207
+ "limit": 1000
208
+ }
209
+ },
210
+ "partialRef": 0
211
+ },
212
+ {
213
+ "type": "done",
214
+ "reason": "toolUse",
215
+ "message": {
216
+ "role": "assistant",
217
+ "content": [
218
+ {
219
+ "type": "thinking",
220
+ "thinking": "",
221
+ "thinkingSignature": ""
222
+ },
223
+ {
224
+ "type": "toolCall",
225
+ "id": "toolcall_0",
226
+ "name": "find",
227
+ "arguments": {
228
+ "pattern": "src/**/*.ts",
229
+ "path": ".",
230
+ "limit": 1000
231
+ }
232
+ }
233
+ ],
234
+ "api": "openai-responses",
235
+ "provider": "github-copilot",
236
+ "model": "gpt-5.4",
237
+ "usage": {
238
+ "input": 1567,
239
+ "output": 50,
240
+ "cacheRead": 0,
241
+ "cacheWrite": 0,
242
+ "reasoning": 20,
243
+ "totalTokens": 1617,
244
+ "cost": {
245
+ "input": 0.0039175,
246
+ "output": 0.00075,
247
+ "cacheRead": 0,
248
+ "cacheWrite": 0,
249
+ "total": 0.0046675
250
+ }
251
+ },
252
+ "stopReason": "toolUse",
253
+ "timestamp": 0,
254
+ "responseId": ""
255
+ }
256
+ }
257
+ ],
258
+ [
259
+ {
260
+ "type": "start",
261
+ "partialRef": 1
262
+ },
263
+ {
264
+ "type": "text_start",
265
+ "contentIndex": 0,
266
+ "partialRef": 1
267
+ },
268
+ {
269
+ "type": "text_delta",
270
+ "contentIndex": 0,
271
+ "delta": "src",
272
+ "partialRef": 1
273
+ },
274
+ {
275
+ "type": "text_delta",
276
+ "contentIndex": 0,
277
+ "delta": "/x",
278
+ "partialRef": 1
279
+ },
280
+ {
281
+ "type": "text_delta",
282
+ "contentIndex": 0,
283
+ "delta": ".ts",
284
+ "partialRef": 1
285
+ },
286
+ {
287
+ "type": "text_delta",
288
+ "contentIndex": 0,
289
+ "delta": "\n",
290
+ "partialRef": 1
291
+ },
292
+ {
293
+ "type": "text_delta",
294
+ "contentIndex": 0,
295
+ "delta": "src",
296
+ "partialRef": 1
297
+ },
298
+ {
299
+ "type": "text_delta",
300
+ "contentIndex": 0,
301
+ "delta": "/y",
302
+ "partialRef": 1
303
+ },
304
+ {
305
+ "type": "text_delta",
306
+ "contentIndex": 0,
307
+ "delta": ".ts",
308
+ "partialRef": 1
309
+ },
310
+ {
311
+ "type": "text_end",
312
+ "contentIndex": 0,
313
+ "content": "src/x.ts\nsrc/y.ts",
314
+ "partialRef": 1
315
+ },
316
+ {
317
+ "type": "done",
318
+ "reason": "stop",
319
+ "message": {
320
+ "role": "assistant",
321
+ "content": [
322
+ {
323
+ "type": "text",
324
+ "text": "src/x.ts\nsrc/y.ts",
325
+ "textSignature": ""
326
+ }
327
+ ],
328
+ "api": "openai-responses",
329
+ "provider": "github-copilot",
330
+ "model": "gpt-5.4",
331
+ "usage": {
332
+ "input": 1634,
333
+ "output": 11,
334
+ "cacheRead": 0,
335
+ "cacheWrite": 0,
336
+ "reasoning": 0,
337
+ "totalTokens": 1645,
338
+ "cost": {
339
+ "input": 0.004085,
340
+ "output": 0.000165,
341
+ "cacheRead": 0,
342
+ "cacheWrite": 0,
343
+ "total": 0.00425
344
+ }
345
+ },
346
+ "stopReason": "stop",
347
+ "timestamp": 0,
348
+ "responseId": ""
349
+ }
350
+ }
351
+ ]
352
+ ],
353
+ "events": [
354
+ {
355
+ "type": "agent_start"
356
+ },
357
+ {
358
+ "type": "turn_start"
359
+ },
360
+ {
361
+ "type": "message_start",
362
+ "message": {
363
+ "role": "user",
364
+ "content": [
365
+ {
366
+ "type": "text",
367
+ "text": "Use the find tool to locate every .ts file under src. Reply with their paths only."
368
+ }
369
+ ],
370
+ "timestamp": 0
371
+ }
372
+ },
373
+ {
374
+ "type": "message_end",
375
+ "message": {
376
+ "role": "user",
377
+ "content": [
378
+ {
379
+ "type": "text",
380
+ "text": "Use the find tool to locate every .ts file under src. Reply with their paths only."
381
+ }
382
+ ],
383
+ "timestamp": 0
384
+ }
385
+ },
386
+ {
387
+ "type": "message_start",
388
+ "message": {
389
+ "role": "assistant",
390
+ "content": [
391
+ {
392
+ "type": "thinking",
393
+ "thinking": "",
394
+ "thinkingSignature": ""
395
+ },
396
+ {
397
+ "type": "toolCall",
398
+ "id": "toolcall_0",
399
+ "name": "find",
400
+ "arguments": {
401
+ "pattern": "src/**/*.ts",
402
+ "path": ".",
403
+ "limit": 1000
404
+ }
405
+ }
406
+ ],
407
+ "api": "openai-responses",
408
+ "provider": "github-copilot",
409
+ "model": "gpt-5.4",
410
+ "usage": {
411
+ "input": 0,
412
+ "output": 0,
413
+ "cacheRead": 0,
414
+ "cacheWrite": 0,
415
+ "totalTokens": 0,
416
+ "cost": {
417
+ "input": 0,
418
+ "output": 0,
419
+ "cacheRead": 0,
420
+ "cacheWrite": 0,
421
+ "total": 0
422
+ }
423
+ },
424
+ "stopReason": "stop",
425
+ "timestamp": 0
426
+ }
427
+ },
428
+ {
429
+ "type": "message_update",
430
+ "assistantMessageEvent": {
431
+ "type": "thinking_start",
432
+ "contentIndex": 0
433
+ },
434
+ "message": {
435
+ "role": "assistant"
436
+ }
437
+ },
438
+ {
439
+ "type": "message_update",
440
+ "assistantMessageEvent": {
441
+ "type": "thinking_end",
442
+ "contentIndex": 0,
443
+ "content": ""
444
+ },
445
+ "message": {
446
+ "role": "assistant"
447
+ }
448
+ },
449
+ {
450
+ "type": "message_update",
451
+ "assistantMessageEvent": {
452
+ "type": "toolcall_start",
453
+ "contentIndex": 1,
454
+ "partial": {
455
+ "role": "assistant",
456
+ "content": [
457
+ {
458
+ "type": "thinking",
459
+ "thinking": "",
460
+ "thinkingSignature": ""
461
+ },
462
+ {
463
+ "type": "toolCall",
464
+ "id": "toolcall_0",
465
+ "name": "find",
466
+ "arguments": {
467
+ "pattern": "src/**/*.ts",
468
+ "path": ".",
469
+ "limit": 1000
470
+ }
471
+ }
472
+ ],
473
+ "api": "openai-responses",
474
+ "provider": "github-copilot",
475
+ "model": "gpt-5.4",
476
+ "usage": {
477
+ "input": 1567,
478
+ "output": 50,
479
+ "cacheRead": 0,
480
+ "cacheWrite": 0,
481
+ "reasoning": 20,
482
+ "totalTokens": 1617,
483
+ "cost": {
484
+ "input": 0.0039175,
485
+ "output": 0.00075,
486
+ "cacheRead": 0,
487
+ "cacheWrite": 0,
488
+ "total": 0.0046675
489
+ }
490
+ },
491
+ "stopReason": "toolUse",
492
+ "timestamp": 0,
493
+ "responseId": ""
494
+ }
495
+ },
496
+ "message": {
497
+ "role": "assistant"
498
+ }
499
+ },
500
+ {
501
+ "type": "message_update",
502
+ "assistantMessageEvent": {
503
+ "type": "toolcall_delta",
504
+ "contentIndex": 1,
505
+ "delta": "{\""
506
+ },
507
+ "message": {
508
+ "role": "assistant"
509
+ }
510
+ },
511
+ {
512
+ "type": "message_update",
513
+ "assistantMessageEvent": {
514
+ "type": "toolcall_delta",
515
+ "contentIndex": 1,
516
+ "delta": "pattern"
517
+ },
518
+ "message": {
519
+ "role": "assistant"
520
+ }
521
+ },
522
+ {
523
+ "type": "message_update",
524
+ "assistantMessageEvent": {
525
+ "type": "toolcall_delta",
526
+ "contentIndex": 1,
527
+ "delta": "\":\""
528
+ },
529
+ "message": {
530
+ "role": "assistant"
531
+ }
532
+ },
533
+ {
534
+ "type": "message_update",
535
+ "assistantMessageEvent": {
536
+ "type": "toolcall_delta",
537
+ "contentIndex": 1,
538
+ "delta": "src"
539
+ },
540
+ "message": {
541
+ "role": "assistant"
542
+ }
543
+ },
544
+ {
545
+ "type": "message_update",
546
+ "assistantMessageEvent": {
547
+ "type": "toolcall_delta",
548
+ "contentIndex": 1,
549
+ "delta": "/**/*."
550
+ },
551
+ "message": {
552
+ "role": "assistant"
553
+ }
554
+ },
555
+ {
556
+ "type": "message_update",
557
+ "assistantMessageEvent": {
558
+ "type": "toolcall_delta",
559
+ "contentIndex": 1,
560
+ "delta": "ts"
561
+ },
562
+ "message": {
563
+ "role": "assistant"
564
+ }
565
+ },
566
+ {
567
+ "type": "message_update",
568
+ "assistantMessageEvent": {
569
+ "type": "toolcall_delta",
570
+ "contentIndex": 1,
571
+ "delta": "\",\""
572
+ },
573
+ "message": {
574
+ "role": "assistant"
575
+ }
576
+ },
577
+ {
578
+ "type": "message_update",
579
+ "assistantMessageEvent": {
580
+ "type": "toolcall_delta",
581
+ "contentIndex": 1,
582
+ "delta": "path"
583
+ },
584
+ "message": {
585
+ "role": "assistant"
586
+ }
587
+ },
588
+ {
589
+ "type": "message_update",
590
+ "assistantMessageEvent": {
591
+ "type": "toolcall_delta",
592
+ "contentIndex": 1,
593
+ "delta": "\":"
594
+ },
595
+ "message": {
596
+ "role": "assistant"
597
+ }
598
+ },
599
+ {
600
+ "type": "message_update",
601
+ "assistantMessageEvent": {
602
+ "type": "toolcall_delta",
603
+ "contentIndex": 1,
604
+ "delta": "\"."
605
+ },
606
+ "message": {
607
+ "role": "assistant"
608
+ }
609
+ },
610
+ {
611
+ "type": "message_update",
612
+ "assistantMessageEvent": {
613
+ "type": "toolcall_delta",
614
+ "contentIndex": 1,
615
+ "delta": "\",\""
616
+ },
617
+ "message": {
618
+ "role": "assistant"
619
+ }
620
+ },
621
+ {
622
+ "type": "message_update",
623
+ "assistantMessageEvent": {
624
+ "type": "toolcall_delta",
625
+ "contentIndex": 1,
626
+ "delta": "limit"
627
+ },
628
+ "message": {
629
+ "role": "assistant"
630
+ }
631
+ },
632
+ {
633
+ "type": "message_update",
634
+ "assistantMessageEvent": {
635
+ "type": "toolcall_delta",
636
+ "contentIndex": 1,
637
+ "delta": "\":"
638
+ },
639
+ "message": {
640
+ "role": "assistant"
641
+ }
642
+ },
643
+ {
644
+ "type": "message_update",
645
+ "assistantMessageEvent": {
646
+ "type": "toolcall_delta",
647
+ "contentIndex": 1,
648
+ "delta": "100"
649
+ },
650
+ "message": {
651
+ "role": "assistant"
652
+ }
653
+ },
654
+ {
655
+ "type": "message_update",
656
+ "assistantMessageEvent": {
657
+ "type": "toolcall_delta",
658
+ "contentIndex": 1,
659
+ "delta": "0"
660
+ },
661
+ "message": {
662
+ "role": "assistant"
663
+ }
664
+ },
665
+ {
666
+ "type": "message_update",
667
+ "assistantMessageEvent": {
668
+ "type": "toolcall_delta",
669
+ "contentIndex": 1,
670
+ "delta": "}"
671
+ },
672
+ "message": {
673
+ "role": "assistant"
674
+ }
675
+ },
676
+ {
677
+ "type": "message_update",
678
+ "assistantMessageEvent": {
679
+ "type": "toolcall_end",
680
+ "contentIndex": 1,
681
+ "toolCall": {
682
+ "type": "toolCall",
683
+ "id": "toolcall_0",
684
+ "name": "find",
685
+ "arguments": {
686
+ "pattern": "src/**/*.ts",
687
+ "path": ".",
688
+ "limit": 1000
689
+ }
690
+ }
691
+ },
692
+ "message": {
693
+ "role": "assistant"
694
+ }
695
+ },
696
+ {
697
+ "type": "message_end",
698
+ "message": {
699
+ "role": "assistant",
700
+ "content": [
701
+ {
702
+ "type": "thinking",
703
+ "thinking": "",
704
+ "thinkingSignature": ""
705
+ },
706
+ {
707
+ "type": "toolCall",
708
+ "id": "toolcall_0",
709
+ "name": "find",
710
+ "arguments": {
711
+ "pattern": "src/**/*.ts",
712
+ "path": ".",
713
+ "limit": 1000
714
+ }
715
+ }
716
+ ],
717
+ "api": "openai-responses",
718
+ "provider": "github-copilot",
719
+ "model": "gpt-5.4",
720
+ "usage": {
721
+ "input": 1567,
722
+ "output": 50,
723
+ "cacheRead": 0,
724
+ "cacheWrite": 0,
725
+ "reasoning": 20,
726
+ "totalTokens": 1617,
727
+ "cost": {
728
+ "input": 0.0039175,
729
+ "output": 0.00075,
730
+ "cacheRead": 0,
731
+ "cacheWrite": 0,
732
+ "total": 0.0046675
733
+ }
734
+ },
735
+ "stopReason": "toolUse",
736
+ "timestamp": 0,
737
+ "responseId": ""
738
+ }
739
+ },
740
+ {
741
+ "type": "tool_execution_start",
742
+ "toolCallId": "toolcall_0",
743
+ "toolName": "find",
744
+ "args": {
745
+ "pattern": "src/**/*.ts",
746
+ "path": ".",
747
+ "limit": 1000
748
+ }
749
+ },
750
+ {
751
+ "type": "tool_execution_end",
752
+ "toolCallId": "toolcall_0",
753
+ "toolName": "find",
754
+ "result": {
755
+ "content": [
756
+ {
757
+ "type": "text",
758
+ "text": "src/x.ts\nsrc/y.ts"
759
+ }
760
+ ]
761
+ },
762
+ "isError": false
763
+ },
764
+ {
765
+ "type": "message_start",
766
+ "message": {
767
+ "role": "toolResult",
768
+ "toolCallId": "toolcall_0",
769
+ "toolName": "find",
770
+ "content": [
771
+ {
772
+ "type": "text",
773
+ "text": "src/x.ts\nsrc/y.ts"
774
+ }
775
+ ],
776
+ "isError": false,
777
+ "timestamp": 0
778
+ }
779
+ },
780
+ {
781
+ "type": "message_end",
782
+ "message": {
783
+ "role": "toolResult",
784
+ "toolCallId": "toolcall_0",
785
+ "toolName": "find",
786
+ "content": [
787
+ {
788
+ "type": "text",
789
+ "text": "src/x.ts\nsrc/y.ts"
790
+ }
791
+ ],
792
+ "isError": false,
793
+ "timestamp": 0
794
+ }
795
+ },
796
+ {
797
+ "type": "turn_end",
798
+ "message": {
799
+ "role": "assistant",
800
+ "content": [
801
+ {
802
+ "type": "thinking",
803
+ "thinking": "",
804
+ "thinkingSignature": ""
805
+ },
806
+ {
807
+ "type": "toolCall",
808
+ "id": "toolcall_0",
809
+ "name": "find",
810
+ "arguments": {
811
+ "pattern": "src/**/*.ts",
812
+ "path": ".",
813
+ "limit": 1000
814
+ }
815
+ }
816
+ ],
817
+ "api": "openai-responses",
818
+ "provider": "github-copilot",
819
+ "model": "gpt-5.4",
820
+ "usage": {
821
+ "input": 1567,
822
+ "output": 50,
823
+ "cacheRead": 0,
824
+ "cacheWrite": 0,
825
+ "reasoning": 20,
826
+ "totalTokens": 1617,
827
+ "cost": {
828
+ "input": 0.0039175,
829
+ "output": 0.00075,
830
+ "cacheRead": 0,
831
+ "cacheWrite": 0,
832
+ "total": 0.0046675
833
+ }
834
+ },
835
+ "stopReason": "toolUse",
836
+ "timestamp": 0,
837
+ "responseId": ""
838
+ },
839
+ "toolResults": [
840
+ {
841
+ "role": "toolResult",
842
+ "toolCallId": "toolcall_0",
843
+ "toolName": "find",
844
+ "content": [
845
+ {
846
+ "type": "text",
847
+ "text": "src/x.ts\nsrc/y.ts"
848
+ }
849
+ ],
850
+ "isError": false,
851
+ "timestamp": 0
852
+ }
853
+ ]
854
+ },
855
+ {
856
+ "type": "turn_start"
857
+ },
858
+ {
859
+ "type": "message_start",
860
+ "message": {
861
+ "role": "assistant",
862
+ "content": [
863
+ {
864
+ "type": "text",
865
+ "text": "src/x.ts\nsrc/y.ts",
866
+ "textSignature": ""
867
+ }
868
+ ],
869
+ "api": "openai-responses",
870
+ "provider": "github-copilot",
871
+ "model": "gpt-5.4",
872
+ "usage": {
873
+ "input": 0,
874
+ "output": 0,
875
+ "cacheRead": 0,
876
+ "cacheWrite": 0,
877
+ "totalTokens": 0,
878
+ "cost": {
879
+ "input": 0,
880
+ "output": 0,
881
+ "cacheRead": 0,
882
+ "cacheWrite": 0,
883
+ "total": 0
884
+ }
885
+ },
886
+ "stopReason": "stop",
887
+ "timestamp": 0
888
+ }
889
+ },
890
+ {
891
+ "type": "message_update",
892
+ "assistantMessageEvent": {
893
+ "type": "text_start",
894
+ "contentIndex": 0
895
+ },
896
+ "message": {
897
+ "role": "assistant"
898
+ }
899
+ },
900
+ {
901
+ "type": "message_update",
902
+ "assistantMessageEvent": {
903
+ "type": "text_delta",
904
+ "contentIndex": 0,
905
+ "delta": "src"
906
+ },
907
+ "message": {
908
+ "role": "assistant"
909
+ }
910
+ },
911
+ {
912
+ "type": "message_update",
913
+ "assistantMessageEvent": {
914
+ "type": "text_delta",
915
+ "contentIndex": 0,
916
+ "delta": "/x"
917
+ },
918
+ "message": {
919
+ "role": "assistant"
920
+ }
921
+ },
922
+ {
923
+ "type": "message_update",
924
+ "assistantMessageEvent": {
925
+ "type": "text_delta",
926
+ "contentIndex": 0,
927
+ "delta": ".ts"
928
+ },
929
+ "message": {
930
+ "role": "assistant"
931
+ }
932
+ },
933
+ {
934
+ "type": "message_update",
935
+ "assistantMessageEvent": {
936
+ "type": "text_delta",
937
+ "contentIndex": 0,
938
+ "delta": "\n"
939
+ },
940
+ "message": {
941
+ "role": "assistant"
942
+ }
943
+ },
944
+ {
945
+ "type": "message_update",
946
+ "assistantMessageEvent": {
947
+ "type": "text_delta",
948
+ "contentIndex": 0,
949
+ "delta": "src"
950
+ },
951
+ "message": {
952
+ "role": "assistant"
953
+ }
954
+ },
955
+ {
956
+ "type": "message_update",
957
+ "assistantMessageEvent": {
958
+ "type": "text_delta",
959
+ "contentIndex": 0,
960
+ "delta": "/y"
961
+ },
962
+ "message": {
963
+ "role": "assistant"
964
+ }
965
+ },
966
+ {
967
+ "type": "message_update",
968
+ "assistantMessageEvent": {
969
+ "type": "text_delta",
970
+ "contentIndex": 0,
971
+ "delta": ".ts"
972
+ },
973
+ "message": {
974
+ "role": "assistant"
975
+ }
976
+ },
977
+ {
978
+ "type": "message_update",
979
+ "assistantMessageEvent": {
980
+ "type": "text_end",
981
+ "contentIndex": 0,
982
+ "content": "src/x.ts\nsrc/y.ts"
983
+ },
984
+ "message": {
985
+ "role": "assistant"
986
+ }
987
+ },
988
+ {
989
+ "type": "message_end",
990
+ "message": {
991
+ "role": "assistant",
992
+ "content": [
993
+ {
994
+ "type": "text",
995
+ "text": "src/x.ts\nsrc/y.ts",
996
+ "textSignature": ""
997
+ }
998
+ ],
999
+ "api": "openai-responses",
1000
+ "provider": "github-copilot",
1001
+ "model": "gpt-5.4",
1002
+ "usage": {
1003
+ "input": 1634,
1004
+ "output": 11,
1005
+ "cacheRead": 0,
1006
+ "cacheWrite": 0,
1007
+ "reasoning": 0,
1008
+ "totalTokens": 1645,
1009
+ "cost": {
1010
+ "input": 0.004085,
1011
+ "output": 0.000165,
1012
+ "cacheRead": 0,
1013
+ "cacheWrite": 0,
1014
+ "total": 0.00425
1015
+ }
1016
+ },
1017
+ "stopReason": "stop",
1018
+ "timestamp": 0,
1019
+ "responseId": ""
1020
+ }
1021
+ },
1022
+ {
1023
+ "type": "turn_end",
1024
+ "message": {
1025
+ "role": "assistant",
1026
+ "content": [
1027
+ {
1028
+ "type": "text",
1029
+ "text": "src/x.ts\nsrc/y.ts",
1030
+ "textSignature": ""
1031
+ }
1032
+ ],
1033
+ "api": "openai-responses",
1034
+ "provider": "github-copilot",
1035
+ "model": "gpt-5.4",
1036
+ "usage": {
1037
+ "input": 1634,
1038
+ "output": 11,
1039
+ "cacheRead": 0,
1040
+ "cacheWrite": 0,
1041
+ "reasoning": 0,
1042
+ "totalTokens": 1645,
1043
+ "cost": {
1044
+ "input": 0.004085,
1045
+ "output": 0.000165,
1046
+ "cacheRead": 0,
1047
+ "cacheWrite": 0,
1048
+ "total": 0.00425
1049
+ }
1050
+ },
1051
+ "stopReason": "stop",
1052
+ "timestamp": 0,
1053
+ "responseId": ""
1054
+ },
1055
+ "toolResults": []
1056
+ },
1057
+ {
1058
+ "type": "agent_end",
1059
+ "messages": [
1060
+ {
1061
+ "role": "user",
1062
+ "content": [
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Use the find tool to locate every .ts file under src. Reply with their paths only."
1066
+ }
1067
+ ],
1068
+ "timestamp": 0
1069
+ },
1070
+ {
1071
+ "role": "assistant",
1072
+ "content": [
1073
+ {
1074
+ "type": "thinking",
1075
+ "thinking": "",
1076
+ "thinkingSignature": ""
1077
+ },
1078
+ {
1079
+ "type": "toolCall",
1080
+ "id": "toolcall_0",
1081
+ "name": "find",
1082
+ "arguments": {
1083
+ "pattern": "src/**/*.ts",
1084
+ "path": ".",
1085
+ "limit": 1000
1086
+ }
1087
+ }
1088
+ ],
1089
+ "api": "openai-responses",
1090
+ "provider": "github-copilot",
1091
+ "model": "gpt-5.4",
1092
+ "usage": {
1093
+ "input": 1567,
1094
+ "output": 50,
1095
+ "cacheRead": 0,
1096
+ "cacheWrite": 0,
1097
+ "reasoning": 20,
1098
+ "totalTokens": 1617,
1099
+ "cost": {
1100
+ "input": 0.0039175,
1101
+ "output": 0.00075,
1102
+ "cacheRead": 0,
1103
+ "cacheWrite": 0,
1104
+ "total": 0.0046675
1105
+ }
1106
+ },
1107
+ "stopReason": "toolUse",
1108
+ "timestamp": 0,
1109
+ "responseId": ""
1110
+ },
1111
+ {
1112
+ "role": "toolResult",
1113
+ "toolCallId": "toolcall_0",
1114
+ "toolName": "find",
1115
+ "content": [
1116
+ {
1117
+ "type": "text",
1118
+ "text": "src/x.ts\nsrc/y.ts"
1119
+ }
1120
+ ],
1121
+ "isError": false,
1122
+ "timestamp": 0
1123
+ },
1124
+ {
1125
+ "role": "assistant",
1126
+ "content": [
1127
+ {
1128
+ "type": "text",
1129
+ "text": "src/x.ts\nsrc/y.ts",
1130
+ "textSignature": ""
1131
+ }
1132
+ ],
1133
+ "api": "openai-responses",
1134
+ "provider": "github-copilot",
1135
+ "model": "gpt-5.4",
1136
+ "usage": {
1137
+ "input": 1634,
1138
+ "output": 11,
1139
+ "cacheRead": 0,
1140
+ "cacheWrite": 0,
1141
+ "reasoning": 0,
1142
+ "totalTokens": 1645,
1143
+ "cost": {
1144
+ "input": 0.004085,
1145
+ "output": 0.000165,
1146
+ "cacheRead": 0,
1147
+ "cacheWrite": 0,
1148
+ "total": 0.00425
1149
+ }
1150
+ },
1151
+ "stopReason": "stop",
1152
+ "timestamp": 0,
1153
+ "responseId": ""
1154
+ }
1155
+ ],
1156
+ "willRetry": false
1157
+ },
1158
+ {
1159
+ "type": "agent_settled"
1160
+ }
1161
+ ]
1162
+ }