@playcraft/common 0.2.15-test-a → 0.2.17

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 (345) hide show
  1. package/dist/agent-tools/replica-validation.d.ts +24 -24
  2. package/dist/agent-tools/types.d.ts +68 -0
  3. package/dist/agent-tools/types.d.ts.map +1 -1
  4. package/dist/agent-tools/video-model-proxy.d.ts +0 -39
  5. package/dist/agent-tools/video-model-proxy.d.ts.map +1 -1
  6. package/dist/agent-tools/video-model-proxy.js +14 -74
  7. package/dist/agent-tools/video-model-proxy.js.map +1 -1
  8. package/dist/audio-library-stream.d.ts +2 -2
  9. package/dist/cloud-workspace/runtime/agent-background-processes.d.ts +2 -2
  10. package/dist/cloud-workspace/runtime/agent-command.d.ts +1 -1
  11. package/dist/cloud-workspace/runtime/agent-competitor-report.d.ts +10 -10
  12. package/dist/cloud-workspace/runtime/agent-connection.d.ts +1 -1
  13. package/dist/cloud-workspace/runtime/agent-issue-artifacts.d.ts +4 -4
  14. package/dist/cloud-workspace/runtime/agent-lifecycle.d.ts +3 -3
  15. package/dist/cloud-workspace/runtime/agent-mutation.d.ts +3 -3
  16. package/dist/cloud-workspace/runtime/agent-opencode-gateway.d.ts.map +1 -1
  17. package/dist/cloud-workspace/runtime/agent-opencode-gateway.js +0 -1
  18. package/dist/cloud-workspace/runtime/agent-opencode-gateway.js.map +1 -1
  19. package/dist/cloud-workspace/runtime/agent-opencode.d.ts +3 -3
  20. package/dist/cloud-workspace/runtime/agent-read.d.ts +2 -2
  21. package/dist/cloud-workspace/runtime/agent-source-project.d.ts +3 -3
  22. package/dist/cloud-workspace/runtime/agent-variant-git.d.ts +2 -2
  23. package/dist/cloud-workspace/runtime/artifacts.d.ts +5 -10
  24. package/dist/cloud-workspace/runtime/artifacts.d.ts.map +1 -1
  25. package/dist/cloud-workspace/runtime/artifacts.js +2 -6
  26. package/dist/cloud-workspace/runtime/artifacts.js.map +1 -1
  27. package/dist/cloud-workspace/runtime/asset-generation.d.ts +4 -4
  28. package/dist/cloud-workspace/runtime/asset-library-import.d.ts.map +1 -1
  29. package/dist/cloud-workspace/runtime/asset-library-import.js +15 -41
  30. package/dist/cloud-workspace/runtime/asset-library-import.js.map +1 -1
  31. package/dist/cloud-workspace/runtime/asset-library-save.d.ts +2 -2
  32. package/dist/cloud-workspace/runtime/asset-transfers.d.ts.map +1 -1
  33. package/dist/cloud-workspace/runtime/asset-transfers.js +43 -100
  34. package/dist/cloud-workspace/runtime/asset-transfers.js.map +1 -1
  35. package/dist/cloud-workspace/runtime/attachment-base64.d.ts +0 -2
  36. package/dist/cloud-workspace/runtime/attachment-base64.d.ts.map +1 -1
  37. package/dist/cloud-workspace/runtime/attachment-base64.js +0 -4
  38. package/dist/cloud-workspace/runtime/attachment-base64.js.map +1 -1
  39. package/dist/cloud-workspace/runtime/audio-asset-protocol.d.ts +2 -2
  40. package/dist/cloud-workspace/runtime/audio-library.d.ts +8 -8
  41. package/dist/cloud-workspace/runtime/batch-generation.d.ts +0 -1
  42. package/dist/cloud-workspace/runtime/batch-generation.d.ts.map +1 -1
  43. package/dist/cloud-workspace/runtime/batch-runs.d.ts +29 -151
  44. package/dist/cloud-workspace/runtime/batch-runs.d.ts.map +1 -1
  45. package/dist/cloud-workspace/runtime/batch-runs.js +1 -13
  46. package/dist/cloud-workspace/runtime/batch-runs.js.map +1 -1
  47. package/dist/cloud-workspace/runtime/chat-realtime.d.ts +2 -2
  48. package/dist/cloud-workspace/runtime/connectivity.d.ts +7 -7
  49. package/dist/cloud-workspace/runtime/delivery-format.d.ts +0 -2
  50. package/dist/cloud-workspace/runtime/delivery-format.d.ts.map +1 -1
  51. package/dist/cloud-workspace/runtime/delivery-format.js +0 -11
  52. package/dist/cloud-workspace/runtime/delivery-format.js.map +1 -1
  53. package/dist/cloud-workspace/runtime/delivery.d.ts +69 -69
  54. package/dist/cloud-workspace/runtime/events.d.ts +4 -4
  55. package/dist/cloud-workspace/runtime/execution-admission.d.ts +7 -36
  56. package/dist/cloud-workspace/runtime/execution-admission.d.ts.map +1 -1
  57. package/dist/cloud-workspace/runtime/execution-admission.js +4 -17
  58. package/dist/cloud-workspace/runtime/execution-admission.js.map +1 -1
  59. package/dist/cloud-workspace/runtime/execution-context.d.ts +5 -131
  60. package/dist/cloud-workspace/runtime/execution-context.d.ts.map +1 -1
  61. package/dist/cloud-workspace/runtime/execution-context.js +32 -125
  62. package/dist/cloud-workspace/runtime/execution-context.js.map +1 -1
  63. package/dist/cloud-workspace/runtime/execution-grant.d.ts.map +1 -1
  64. package/dist/cloud-workspace/runtime/execution-grant.js +2 -3
  65. package/dist/cloud-workspace/runtime/execution-grant.js.map +1 -1
  66. package/dist/cloud-workspace/runtime/files.d.ts +1 -11
  67. package/dist/cloud-workspace/runtime/files.d.ts.map +1 -1
  68. package/dist/cloud-workspace/runtime/files.js +4 -7
  69. package/dist/cloud-workspace/runtime/files.js.map +1 -1
  70. package/dist/cloud-workspace/runtime/generations.d.ts +1 -1
  71. package/dist/cloud-workspace/runtime/generations.d.ts.map +1 -1
  72. package/dist/cloud-workspace/runtime/generations.js +0 -2
  73. package/dist/cloud-workspace/runtime/generations.js.map +1 -1
  74. package/dist/cloud-workspace/runtime/handshake.d.ts +0 -2
  75. package/dist/cloud-workspace/runtime/handshake.d.ts.map +1 -1
  76. package/dist/cloud-workspace/runtime/handshake.js +0 -3
  77. package/dist/cloud-workspace/runtime/handshake.js.map +1 -1
  78. package/dist/cloud-workspace/runtime/index.d.ts +1 -28
  79. package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
  80. package/dist/cloud-workspace/runtime/index.js +1 -28
  81. package/dist/cloud-workspace/runtime/index.js.map +1 -1
  82. package/dist/cloud-workspace/runtime/level-editor-agent.d.ts +0 -68
  83. package/dist/cloud-workspace/runtime/level-editor-agent.d.ts.map +1 -1
  84. package/dist/cloud-workspace/runtime/level-editor-agent.js +0 -6
  85. package/dist/cloud-workspace/runtime/level-editor-agent.js.map +1 -1
  86. package/dist/cloud-workspace/runtime/level-editor-authoring.d.ts +1 -1
  87. package/dist/cloud-workspace/runtime/level-editor-schema.d.ts +0 -20
  88. package/dist/cloud-workspace/runtime/level-editor-schema.d.ts.map +1 -1
  89. package/dist/cloud-workspace/runtime/level-editor-schema.js +0 -3
  90. package/dist/cloud-workspace/runtime/level-editor-schema.js.map +1 -1
  91. package/dist/cloud-workspace/runtime/model-capture-upload-grant.d.ts.map +1 -1
  92. package/dist/cloud-workspace/runtime/model-capture-upload-grant.js +1 -6
  93. package/dist/cloud-workspace/runtime/model-capture-upload-grant.js.map +1 -1
  94. package/dist/cloud-workspace/runtime/model-production.d.ts +31 -31
  95. package/dist/cloud-workspace/runtime/native-history.d.ts.map +1 -1
  96. package/dist/cloud-workspace/runtime/native-history.js +2 -2
  97. package/dist/cloud-workspace/runtime/native-history.js.map +1 -1
  98. package/dist/cloud-workspace/runtime/operations.d.ts +12 -100
  99. package/dist/cloud-workspace/runtime/operations.d.ts.map +1 -1
  100. package/dist/cloud-workspace/runtime/operations.js +2 -7
  101. package/dist/cloud-workspace/runtime/operations.js.map +1 -1
  102. package/dist/cloud-workspace/runtime/parameter-agent.d.ts +2 -2
  103. package/dist/cloud-workspace/runtime/parameter-locales.d.ts +2 -2
  104. package/dist/cloud-workspace/runtime/parameters.d.ts +14 -34
  105. package/dist/cloud-workspace/runtime/parameters.d.ts.map +1 -1
  106. package/dist/cloud-workspace/runtime/parameters.js +28 -87
  107. package/dist/cloud-workspace/runtime/parameters.js.map +1 -1
  108. package/dist/cloud-workspace/runtime/preview-runtime.d.ts +2 -2
  109. package/dist/cloud-workspace/runtime/previews.d.ts +7 -8
  110. package/dist/cloud-workspace/runtime/previews.d.ts.map +1 -1
  111. package/dist/cloud-workspace/runtime/remix-references.d.ts +44 -100
  112. package/dist/cloud-workspace/runtime/remix-references.d.ts.map +1 -1
  113. package/dist/cloud-workspace/runtime/remix-references.js +21 -71
  114. package/dist/cloud-workspace/runtime/remix-references.js.map +1 -1
  115. package/dist/cloud-workspace/runtime/resource-grant.d.ts +1 -1
  116. package/dist/cloud-workspace/runtime/resource-grant.d.ts.map +1 -1
  117. package/dist/cloud-workspace/runtime/resource-grant.js +2 -2
  118. package/dist/cloud-workspace/runtime/resource-grant.js.map +1 -1
  119. package/dist/cloud-workspace/runtime/scheduled-task-proposals.d.ts +9 -9
  120. package/dist/cloud-workspace/runtime/scheduled-tasks.d.ts +6 -7
  121. package/dist/cloud-workspace/runtime/scheduled-tasks.d.ts.map +1 -1
  122. package/dist/cloud-workspace/runtime/scheduled-tasks.js +1 -2
  123. package/dist/cloud-workspace/runtime/scheduled-tasks.js.map +1 -1
  124. package/dist/cloud-workspace/runtime/session-restore.d.ts +0 -31
  125. package/dist/cloud-workspace/runtime/session-restore.d.ts.map +1 -1
  126. package/dist/cloud-workspace/runtime/session-restore.js +4 -10
  127. package/dist/cloud-workspace/runtime/session-restore.js.map +1 -1
  128. package/dist/cloud-workspace/runtime/skill-activation.d.ts +0 -4
  129. package/dist/cloud-workspace/runtime/skill-activation.d.ts.map +1 -1
  130. package/dist/cloud-workspace/runtime/skill-activation.js +22 -69
  131. package/dist/cloud-workspace/runtime/skill-activation.js.map +1 -1
  132. package/dist/cloud-workspace/runtime/skills.d.ts +5 -10
  133. package/dist/cloud-workspace/runtime/skills.d.ts.map +1 -1
  134. package/dist/cloud-workspace/runtime/skills.js +5 -13
  135. package/dist/cloud-workspace/runtime/skills.js.map +1 -1
  136. package/dist/cloud-workspace/runtime/terminal-session.d.ts +1 -1
  137. package/dist/cloud-workspace/runtime/variant-workspace.d.ts +8 -8
  138. package/dist/cloud-workspace/runtime/workspace-binding.d.ts +4 -4
  139. package/dist/cloud-workspace/runtime/workspace-directories.d.ts +2 -2
  140. package/dist/cloud-workspace/runtime/workspace-facts.d.ts +2 -3
  141. package/dist/cloud-workspace/runtime/workspace-facts.d.ts.map +1 -1
  142. package/dist/cloud-workspace/runtime/workspace-notifications.d.ts +2 -18
  143. package/dist/cloud-workspace/runtime/workspace-notifications.d.ts.map +1 -1
  144. package/dist/cloud-workspace/runtime/workspace-notifications.js +53 -182
  145. package/dist/cloud-workspace/runtime/workspace-notifications.js.map +1 -1
  146. package/dist/cloud-workspace/runtime/workspace-ui.d.ts +13 -269
  147. package/dist/cloud-workspace/runtime/workspace-ui.d.ts.map +1 -1
  148. package/dist/cloud-workspace/runtime/workspace-ui.js +32 -196
  149. package/dist/cloud-workspace/runtime/workspace-ui.js.map +1 -1
  150. package/dist/inspiration/covers.d.ts +2 -2
  151. package/dist/inspiration/index.d.ts +12 -12
  152. package/dist/model-proxy/captures.d.ts +2 -2
  153. package/dist/model-proxy/diagnostics.d.ts +0 -9
  154. package/dist/model-proxy/diagnostics.d.ts.map +1 -1
  155. package/dist/model-proxy/index.d.ts +0 -6
  156. package/dist/model-proxy/index.d.ts.map +1 -1
  157. package/dist/model-proxy/index.js +0 -4
  158. package/dist/model-proxy/index.js.map +1 -1
  159. package/dist/project-skills/index.d.ts +0 -1
  160. package/dist/project-skills/index.d.ts.map +1 -1
  161. package/dist/project-skills/index.js +0 -1
  162. package/dist/project-skills/index.js.map +1 -1
  163. package/dist/project-skills/inventory.d.ts.map +1 -1
  164. package/dist/project-skills/inventory.js +13 -42
  165. package/dist/project-skills/inventory.js.map +1 -1
  166. package/dist/project-skills/local-snapshot.d.ts.map +1 -1
  167. package/dist/project-skills/local-snapshot.js +11 -36
  168. package/dist/project-skills/local-snapshot.js.map +1 -1
  169. package/dist/project-skills/protocol.d.ts +4 -1
  170. package/dist/project-skills/protocol.d.ts.map +1 -1
  171. package/dist/project-skills/protocol.js +52 -90
  172. package/dist/project-skills/protocol.js.map +1 -1
  173. package/dist/project-skills/remote-discovery.d.ts +2 -6
  174. package/dist/project-skills/remote-discovery.d.ts.map +1 -1
  175. package/dist/project-skills/remote-discovery.js +22 -69
  176. package/dist/project-skills/remote-discovery.js.map +1 -1
  177. package/dist/storage/cos.d.ts +0 -6
  178. package/dist/storage/cos.d.ts.map +1 -1
  179. package/dist/storage/cos.js +10 -38
  180. package/dist/storage/cos.js.map +1 -1
  181. package/dist/storage/upload-build-artifacts.d.ts +0 -12
  182. package/dist/storage/upload-build-artifacts.d.ts.map +1 -1
  183. package/dist/storage/upload-build-artifacts.js +15 -17
  184. package/dist/storage/upload-build-artifacts.js.map +1 -1
  185. package/package.json +1 -25
  186. package/dist/agent-memory.d.ts +0 -88
  187. package/dist/agent-memory.d.ts.map +0 -1
  188. package/dist/agent-memory.js +0 -66
  189. package/dist/agent-memory.js.map +0 -1
  190. package/dist/agent-personalization.d.ts +0 -111
  191. package/dist/agent-personalization.d.ts.map +0 -1
  192. package/dist/agent-personalization.js +0 -32
  193. package/dist/agent-personalization.js.map +0 -1
  194. package/dist/audio-package-node.d.ts +0 -20
  195. package/dist/audio-package-node.d.ts.map +0 -1
  196. package/dist/audio-package-node.js +0 -77
  197. package/dist/audio-package-node.js.map +0 -1
  198. package/dist/audio-program-package.d.ts +0 -81
  199. package/dist/audio-program-package.d.ts.map +0 -1
  200. package/dist/audio-program-package.js +0 -268
  201. package/dist/audio-program-package.js.map +0 -1
  202. package/dist/cloud-workspace/costs.d.ts +0 -192
  203. package/dist/cloud-workspace/costs.d.ts.map +0 -1
  204. package/dist/cloud-workspace/costs.js +0 -37
  205. package/dist/cloud-workspace/costs.js.map +0 -1
  206. package/dist/cloud-workspace/runtime/agent-build-delivery.d.ts +0 -445
  207. package/dist/cloud-workspace/runtime/agent-build-delivery.d.ts.map +0 -1
  208. package/dist/cloud-workspace/runtime/agent-build-delivery.js +0 -215
  209. package/dist/cloud-workspace/runtime/agent-build-delivery.js.map +0 -1
  210. package/dist/cloud-workspace/runtime/artifact-generation-source.d.ts +0 -32
  211. package/dist/cloud-workspace/runtime/artifact-generation-source.d.ts.map +0 -1
  212. package/dist/cloud-workspace/runtime/artifact-generation-source.js +0 -46
  213. package/dist/cloud-workspace/runtime/artifact-generation-source.js.map +0 -1
  214. package/dist/cloud-workspace/runtime/audio-adoption-receipt.d.ts +0 -359
  215. package/dist/cloud-workspace/runtime/audio-adoption-receipt.d.ts.map +0 -1
  216. package/dist/cloud-workspace/runtime/audio-adoption-receipt.js +0 -39
  217. package/dist/cloud-workspace/runtime/audio-adoption-receipt.js.map +0 -1
  218. package/dist/cloud-workspace/runtime/audio-artifact-package.d.ts +0 -8
  219. package/dist/cloud-workspace/runtime/audio-artifact-package.d.ts.map +0 -1
  220. package/dist/cloud-workspace/runtime/audio-artifact-package.js +0 -102
  221. package/dist/cloud-workspace/runtime/audio-artifact-package.js.map +0 -1
  222. package/dist/cloud-workspace/runtime/delivery-preparation.d.ts +0 -74
  223. package/dist/cloud-workspace/runtime/delivery-preparation.d.ts.map +0 -1
  224. package/dist/cloud-workspace/runtime/delivery-preparation.js +0 -45
  225. package/dist/cloud-workspace/runtime/delivery-preparation.js.map +0 -1
  226. package/dist/cloud-workspace/runtime/draft-claim.d.ts +0 -8
  227. package/dist/cloud-workspace/runtime/draft-claim.d.ts.map +0 -1
  228. package/dist/cloud-workspace/runtime/draft-claim.js +0 -13
  229. package/dist/cloud-workspace/runtime/draft-claim.js.map +0 -1
  230. package/dist/cloud-workspace/runtime/draft-occupancy.d.ts +0 -231
  231. package/dist/cloud-workspace/runtime/draft-occupancy.d.ts.map +0 -1
  232. package/dist/cloud-workspace/runtime/draft-occupancy.js +0 -130
  233. package/dist/cloud-workspace/runtime/draft-occupancy.js.map +0 -1
  234. package/dist/cloud-workspace/runtime/environment-observation.d.ts +0 -374
  235. package/dist/cloud-workspace/runtime/environment-observation.d.ts.map +0 -1
  236. package/dist/cloud-workspace/runtime/environment-observation.js +0 -82
  237. package/dist/cloud-workspace/runtime/environment-observation.js.map +0 -1
  238. package/dist/cloud-workspace/runtime/frame-animation-consumer.d.ts +0 -260
  239. package/dist/cloud-workspace/runtime/frame-animation-consumer.d.ts.map +0 -1
  240. package/dist/cloud-workspace/runtime/frame-animation-consumer.js +0 -255
  241. package/dist/cloud-workspace/runtime/frame-animation-consumer.js.map +0 -1
  242. package/dist/cloud-workspace/runtime/generation-selection-audio.d.ts +0 -57
  243. package/dist/cloud-workspace/runtime/generation-selection-audio.d.ts.map +0 -1
  244. package/dist/cloud-workspace/runtime/generation-selection-audio.js +0 -68
  245. package/dist/cloud-workspace/runtime/generation-selection-audio.js.map +0 -1
  246. package/dist/cloud-workspace/runtime/generation-selection.d.ts +0 -997
  247. package/dist/cloud-workspace/runtime/generation-selection.d.ts.map +0 -1
  248. package/dist/cloud-workspace/runtime/generation-selection.js +0 -212
  249. package/dist/cloud-workspace/runtime/generation-selection.js.map +0 -1
  250. package/dist/cloud-workspace/runtime/model-authority-evidence.d.ts +0 -33
  251. package/dist/cloud-workspace/runtime/model-authority-evidence.d.ts.map +0 -1
  252. package/dist/cloud-workspace/runtime/model-authority-evidence.js +0 -36
  253. package/dist/cloud-workspace/runtime/model-authority-evidence.js.map +0 -1
  254. package/dist/cloud-workspace/runtime/production-inputs.d.ts +0 -283
  255. package/dist/cloud-workspace/runtime/production-inputs.d.ts.map +0 -1
  256. package/dist/cloud-workspace/runtime/production-inputs.js +0 -174
  257. package/dist/cloud-workspace/runtime/production-inputs.js.map +0 -1
  258. package/dist/cloud-workspace/runtime/project-preparation.d.ts +0 -307
  259. package/dist/cloud-workspace/runtime/project-preparation.d.ts.map +0 -1
  260. package/dist/cloud-workspace/runtime/project-preparation.js +0 -110
  261. package/dist/cloud-workspace/runtime/project-preparation.js.map +0 -1
  262. package/dist/cloud-workspace/runtime/prompt-enhancement.d.ts +0 -1288
  263. package/dist/cloud-workspace/runtime/prompt-enhancement.d.ts.map +0 -1
  264. package/dist/cloud-workspace/runtime/prompt-enhancement.js +0 -486
  265. package/dist/cloud-workspace/runtime/prompt-enhancement.js.map +0 -1
  266. package/dist/cloud-workspace/runtime/runtime-model-observation-sidecar.d.ts +0 -200
  267. package/dist/cloud-workspace/runtime/runtime-model-observation-sidecar.d.ts.map +0 -1
  268. package/dist/cloud-workspace/runtime/runtime-model-observation-sidecar.js +0 -16
  269. package/dist/cloud-workspace/runtime/runtime-model-observation-sidecar.js.map +0 -1
  270. package/dist/cloud-workspace/runtime/runtime-observation-bootstrap.d.ts +0 -203
  271. package/dist/cloud-workspace/runtime/runtime-observation-bootstrap.d.ts.map +0 -1
  272. package/dist/cloud-workspace/runtime/runtime-observation-bootstrap.js +0 -19
  273. package/dist/cloud-workspace/runtime/runtime-observation-bootstrap.js.map +0 -1
  274. package/dist/cloud-workspace/runtime/runtime-observation-view.d.ts +0 -42
  275. package/dist/cloud-workspace/runtime/runtime-observation-view.d.ts.map +0 -1
  276. package/dist/cloud-workspace/runtime/runtime-observation-view.js +0 -113
  277. package/dist/cloud-workspace/runtime/runtime-observation-view.js.map +0 -1
  278. package/dist/cloud-workspace/runtime/runtime-observation.d.ts +0 -560
  279. package/dist/cloud-workspace/runtime/runtime-observation.d.ts.map +0 -1
  280. package/dist/cloud-workspace/runtime/runtime-observation.js +0 -344
  281. package/dist/cloud-workspace/runtime/runtime-observation.js.map +0 -1
  282. package/dist/cloud-workspace/runtime/runtime-sha256.d.ts +0 -3
  283. package/dist/cloud-workspace/runtime/runtime-sha256.d.ts.map +0 -1
  284. package/dist/cloud-workspace/runtime/runtime-sha256.js +0 -11
  285. package/dist/cloud-workspace/runtime/runtime-sha256.js.map +0 -1
  286. package/dist/cloud-workspace/runtime/session-list-batch.d.ts +0 -103
  287. package/dist/cloud-workspace/runtime/session-list-batch.d.ts.map +0 -1
  288. package/dist/cloud-workspace/runtime/session-list-batch.js +0 -73
  289. package/dist/cloud-workspace/runtime/session-list-batch.js.map +0 -1
  290. package/dist/cloud-workspace/runtime/session-personalization.d.ts +0 -35
  291. package/dist/cloud-workspace/runtime/session-personalization.d.ts.map +0 -1
  292. package/dist/cloud-workspace/runtime/session-personalization.js +0 -9
  293. package/dist/cloud-workspace/runtime/session-personalization.js.map +0 -1
  294. package/dist/cloud-workspace/runtime/workspace-confirmation.d.ts +0 -1956
  295. package/dist/cloud-workspace/runtime/workspace-confirmation.d.ts.map +0 -1
  296. package/dist/cloud-workspace/runtime/workspace-confirmation.js +0 -591
  297. package/dist/cloud-workspace/runtime/workspace-confirmation.js.map +0 -1
  298. package/dist/cloud-workspace/runtime/workspace-model-source.d.ts +0 -291
  299. package/dist/cloud-workspace/runtime/workspace-model-source.d.ts.map +0 -1
  300. package/dist/cloud-workspace/runtime/workspace-model-source.js +0 -128
  301. package/dist/cloud-workspace/runtime/workspace-model-source.js.map +0 -1
  302. package/dist/cloud-workspace/runtime/workspace-parameter-confirmation.d.ts +0 -101
  303. package/dist/cloud-workspace/runtime/workspace-parameter-confirmation.d.ts.map +0 -1
  304. package/dist/cloud-workspace/runtime/workspace-parameter-confirmation.js +0 -160
  305. package/dist/cloud-workspace/runtime/workspace-parameter-confirmation.js.map +0 -1
  306. package/dist/cloud-workspace/runtime/workspace-public-source.d.ts +0 -67
  307. package/dist/cloud-workspace/runtime/workspace-public-source.d.ts.map +0 -1
  308. package/dist/cloud-workspace/runtime/workspace-public-source.js +0 -97
  309. package/dist/cloud-workspace/runtime/workspace-public-source.js.map +0 -1
  310. package/dist/cloud-workspace/runtime/workspace-refs.d.ts +0 -73
  311. package/dist/cloud-workspace/runtime/workspace-refs.d.ts.map +0 -1
  312. package/dist/cloud-workspace/runtime/workspace-refs.js +0 -106
  313. package/dist/cloud-workspace/runtime/workspace-refs.js.map +0 -1
  314. package/dist/cloud-workspace/runtime/workspace-subscriptions.d.ts +0 -146
  315. package/dist/cloud-workspace/runtime/workspace-subscriptions.d.ts.map +0 -1
  316. package/dist/cloud-workspace/runtime/workspace-subscriptions.js +0 -75
  317. package/dist/cloud-workspace/runtime/workspace-subscriptions.js.map +0 -1
  318. package/dist/model-proxy/budget-read.d.ts +0 -59
  319. package/dist/model-proxy/budget-read.d.ts.map +0 -1
  320. package/dist/model-proxy/budget-read.js +0 -2
  321. package/dist/model-proxy/budget-read.js.map +0 -1
  322. package/dist/model-proxy/provider-stats.d.ts +0 -38
  323. package/dist/model-proxy/provider-stats.d.ts.map +0 -1
  324. package/dist/model-proxy/provider-stats.js +0 -2
  325. package/dist/model-proxy/provider-stats.js.map +0 -1
  326. package/dist/model-proxy/usage-cost-exact.d.ts +0 -9
  327. package/dist/model-proxy/usage-cost-exact.d.ts.map +0 -1
  328. package/dist/model-proxy/usage-cost-exact.js +0 -35
  329. package/dist/model-proxy/usage-cost-exact.js.map +0 -1
  330. package/dist/model-proxy/usage-projection.d.ts +0 -15
  331. package/dist/model-proxy/usage-projection.d.ts.map +0 -1
  332. package/dist/model-proxy/usage-projection.js +0 -2
  333. package/dist/model-proxy/usage-projection.js.map +0 -1
  334. package/dist/preview/preview-devices.d.ts +0 -20
  335. package/dist/preview/preview-devices.d.ts.map +0 -1
  336. package/dist/preview/preview-devices.js +0 -46
  337. package/dist/preview/preview-devices.js.map +0 -1
  338. package/dist/project-skills/source-digest-node.d.ts +0 -5
  339. package/dist/project-skills/source-digest-node.d.ts.map +0 -1
  340. package/dist/project-skills/source-digest-node.js +0 -26
  341. package/dist/project-skills/source-digest-node.js.map +0 -1
  342. package/dist/team-memory.d.ts +0 -33
  343. package/dist/team-memory.d.ts.map +0 -1
  344. package/dist/team-memory.js +0 -39
  345. package/dist/team-memory.js.map +0 -1
@@ -1,146 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const RUNTIME_OBSERVATION_SUBSCRIPTION_CAPABILITY = "runtime-observation-v1";
3
- export declare const workspaceRuntimeObservationCheckpointSchema: z.ZodObject<{
4
- cursor: z.ZodObject<{
5
- streamId: z.ZodString;
6
- streamKind: z.ZodLiteral<"runtime">;
7
- sequence: z.ZodNumber;
8
- }, z.core.$strict>;
9
- basisRevision: z.ZodNumber;
10
- }, z.core.$strict>;
11
- export type WorkspaceRuntimeObservationCheckpoint = z.infer<typeof workspaceRuntimeObservationCheckpointSchema>;
12
- declare const subscription: z.ZodObject<{
13
- after: z.ZodOptional<z.ZodNumber>;
14
- mode: z.ZodEnum<{
15
- metadata: "metadata";
16
- active: "active";
17
- }>;
18
- workspaceId: z.ZodString;
19
- directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
20
- }, z.core.$strict>;
21
- export type WorkspaceSubscriptionScope = z.infer<typeof subscription>;
22
- export declare const workspaceSubscriptionScopesSchema: z.ZodArray<z.ZodObject<{
23
- after: z.ZodOptional<z.ZodNumber>;
24
- mode: z.ZodEnum<{
25
- metadata: "metadata";
26
- active: "active";
27
- }>;
28
- workspaceId: z.ZodString;
29
- directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
30
- }, z.core.$strict>>;
31
- export declare const workspaceSubscriptionStatusSchema: z.ZodObject<{
32
- status: z.ZodEnum<{
33
- ready: "ready";
34
- unavailable: "unavailable";
35
- reset: "reset";
36
- denied: "denied";
37
- }>;
38
- reason: z.ZodOptional<z.ZodString>;
39
- cursor: z.ZodOptional<z.ZodNumber>;
40
- protocolVersion: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
41
- mode: z.ZodOptional<z.ZodEnum<{
42
- metadata: "metadata";
43
- active: "active";
44
- }>>;
45
- expiresAt: z.ZodOptional<z.ZodString>;
46
- runtimeObservation: z.ZodOptional<z.ZodObject<{
47
- cursor: z.ZodObject<{
48
- streamId: z.ZodString;
49
- streamKind: z.ZodLiteral<"runtime">;
50
- sequence: z.ZodNumber;
51
- }, z.core.$strict>;
52
- basisRevision: z.ZodNumber;
53
- }, z.core.$strict>>;
54
- topics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
55
- directories: "directories";
56
- sessions: "sessions";
57
- activity: "activity";
58
- confirmations: "confirmations";
59
- "level-requests": "level-requests";
60
- "generation-selections": "generation-selections";
61
- controls: "controls";
62
- "execution-queue": "execution-queue";
63
- "runtime-observation": "runtime-observation";
64
- }>>>;
65
- workspaceId: z.ZodString;
66
- directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
67
- }, z.core.$strict>;
68
- export type WorkspaceSubscriptionStatus = z.infer<typeof workspaceSubscriptionStatusSchema>;
69
- export declare const workspaceSubscriptionNotificationSchema: z.ZodObject<{
70
- event: z.ZodObject<{
71
- streamId: z.ZodString;
72
- sequence: z.ZodNumber;
73
- occurredAt: z.ZodString;
74
- source: z.ZodOptional<z.ZodObject<{
75
- runtimeId: z.ZodString;
76
- generation: z.ZodNumber;
77
- runtimeEpoch: z.ZodNumber;
78
- sourceSequence: z.ZodNumber;
79
- }, z.core.$strict>>;
80
- streamKind: z.ZodLiteral<"workspace">;
81
- type: z.ZodLiteral<"workspace.notifications">;
82
- payload: z.ZodObject<{
83
- scopes: z.ZodArray<z.ZodEnum<{
84
- content: "content";
85
- preview: "preview";
86
- state: "state";
87
- artifact: "artifact";
88
- }>>;
89
- resources: z.ZodOptional<z.ZodArray<z.ZodEnum<{
90
- confirmations: "confirmations";
91
- "level-requests": "level-requests";
92
- "generation-selections": "generation-selections";
93
- }>>>;
94
- chatSessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
95
- assistantSessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
96
- sessionActivities: z.ZodOptional<z.ZodArray<z.ZodObject<{
97
- sessionId: z.ZodString;
98
- updatedAt: z.ZodString;
99
- }, z.core.$strict>>>;
100
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
101
- streamKind: z.ZodEnum<{
102
- runtime: "runtime";
103
- workspace: "workspace";
104
- session: "session";
105
- }>;
106
- streamId: z.ZodString;
107
- sequence: z.ZodNumber;
108
- type: z.ZodString;
109
- payload: z.ZodUnknown;
110
- occurredAt: z.ZodString;
111
- source: z.ZodOptional<z.ZodObject<{
112
- runtimeId: z.ZodString;
113
- generation: z.ZodNumber;
114
- runtimeEpoch: z.ZodNumber;
115
- sourceSequence: z.ZodNumber;
116
- }, z.core.$strict>>;
117
- }, z.core.$strict>>>;
118
- }, z.core.$strict>;
119
- }, z.core.$strict>;
120
- workspaceId: z.ZodString;
121
- directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
122
- }, z.core.$strict>;
123
- export type WorkspaceSubscriptionNotification = z.infer<typeof workspaceSubscriptionNotificationSchema>;
124
- export declare const workspaceSubscriptionInvalidationSchema: z.ZodObject<{
125
- resource: z.ZodEnum<{
126
- directories: "directories";
127
- "execution-queue": "execution-queue";
128
- }>;
129
- workspaceId: z.ZodString;
130
- directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
131
- }, z.core.$strict>;
132
- export type WorkspaceSubscriptionInvalidation = z.infer<typeof workspaceSubscriptionInvalidationSchema>;
133
- /** Independent owner stream watermark: it never advances the workspace event cursor. */
134
- export declare const workspaceSubscriptionRuntimeInvalidationSchema: z.ZodObject<{
135
- cursor: z.ZodObject<{
136
- streamId: z.ZodString;
137
- streamKind: z.ZodLiteral<"runtime">;
138
- sequence: z.ZodNumber;
139
- }, z.core.$strict>;
140
- basisRevision: z.ZodNumber;
141
- workspaceId: z.ZodString;
142
- directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
143
- }, z.core.$strict>;
144
- export type WorkspaceSubscriptionRuntimeInvalidation = z.infer<typeof workspaceSubscriptionRuntimeInvalidationSchema>;
145
- export {};
146
- //# sourceMappingURL=workspace-subscriptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace-subscriptions.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/workspace-subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,2CAA2C,2BAA2B,CAAC;AACpF,eAAO,MAAM,2CAA2C;;;;;;;kBAK7C,CAAC;AACZ,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,2CAA2C,CACnD,CAAC;AACF,QAAA,MAAM,YAAY;;;;;;;;kBAEP,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACtE,eAAO,MAAM,iCAAiC;;;;;;;;mBAQ3C,CAAC;AAEJ,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4C3C,CAAC;AACJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUS,CAAC;AAC9D,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AAEF,eAAO,MAAM,uCAAuC;;;;;;;kBAEzC,CAAC;AACZ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,8CAA8C;;;;;;;;;kBAEhD,CAAC;AACZ,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,8CAA8C,CACtD,CAAC"}
@@ -1,75 +0,0 @@
1
- import { z } from 'zod';
2
- import { publicEventCursorSchema, publicEventSchema } from './events.js';
3
- import { workspaceSessionScopeSchema } from './workspace-directories.js';
4
- import { isWorkspaceNotificationResource, workspaceNotificationPayloadSchema, } from './workspace-notifications.js';
5
- const scope = { workspaceId: z.string().uuid(), directoryName: workspaceSessionScopeSchema };
6
- const cursor = z.number().int().nonnegative().safe();
7
- export const RUNTIME_OBSERVATION_SUBSCRIPTION_CAPABILITY = 'runtime-observation-v1';
8
- export const workspaceRuntimeObservationCheckpointSchema = z
9
- .object({
10
- cursor: publicEventCursorSchema.extend({ streamKind: z.literal('runtime'), sequence: cursor }),
11
- basisRevision: cursor,
12
- })
13
- .strict();
14
- const subscription = z
15
- .object({ ...scope, after: cursor.optional(), mode: z.enum(['active', 'metadata']) })
16
- .strict();
17
- export const workspaceSubscriptionScopesSchema = z
18
- .array(subscription)
19
- .min(1)
20
- .max(16)
21
- .refine((scopes) => new Set(scopes.map((item) => item.workspaceId + '/' + item.directoryName)).size ===
22
- scopes.length && scopes.filter((item) => item.mode === 'active').length <= 1);
23
- export const workspaceSubscriptionStatusSchema = z
24
- .object({
25
- ...scope,
26
- status: z.enum(['ready', 'denied', 'unavailable', 'reset']),
27
- reason: z.string().max(128).optional(),
28
- cursor: cursor.optional(),
29
- protocolVersion: z.union([z.literal(1), z.literal(2), z.literal(3)]).optional(),
30
- mode: z.enum(['metadata', 'active']).optional(),
31
- expiresAt: z.string().datetime().optional(),
32
- runtimeObservation: workspaceRuntimeObservationCheckpointSchema.optional(),
33
- topics: z
34
- .array(z.enum([
35
- 'sessions',
36
- 'activity',
37
- 'controls',
38
- 'execution-queue',
39
- 'directories',
40
- 'confirmations',
41
- 'level-requests',
42
- 'generation-selections',
43
- 'runtime-observation',
44
- ]))
45
- .max(9)
46
- .optional(),
47
- })
48
- .strict()
49
- .refine((frame) => frame.topics?.every((topic) => !isWorkspaceNotificationResource(topic) ||
50
- (frame.status === 'ready' &&
51
- frame.mode === 'active' &&
52
- (frame.protocolVersion ?? 1) >= (topic === 'confirmations' ? 2 : 3))) ?? true)
53
- .refine((frame) => Boolean(frame.runtimeObservation) ===
54
- Boolean(frame.topics?.includes('runtime-observation')) &&
55
- (!frame.runtimeObservation ||
56
- (frame.status === 'ready' && frame.mode === 'active' && frame.protocolVersion === 3)));
57
- export const workspaceSubscriptionNotificationSchema = z
58
- .object({
59
- ...scope,
60
- event: publicEventSchema.extend({
61
- streamKind: z.literal('workspace'),
62
- type: z.literal('workspace.notifications'),
63
- payload: workspaceNotificationPayloadSchema,
64
- }),
65
- })
66
- .strict()
67
- .refine((item) => item.event.streamId === item.workspaceId);
68
- export const workspaceSubscriptionInvalidationSchema = z
69
- .object({ ...scope, resource: z.enum(['execution-queue', 'directories']) })
70
- .strict();
71
- /** Independent owner stream watermark: it never advances the workspace event cursor. */
72
- export const workspaceSubscriptionRuntimeInvalidationSchema = z
73
- .object({ ...scope, ...workspaceRuntimeObservationCheckpointSchema.shape })
74
- .strict();
75
- //# sourceMappingURL=workspace-subscriptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace-subscriptions.js","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/workspace-subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EACL,+BAA+B,EAC/B,kCAAkC,GACnC,MAAM,8BAA8B,CAAC;AAEtC,MAAM,KAAK,GAAG,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,2BAA2B,EAAE,CAAC;AAC7F,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;AACrD,MAAM,CAAC,MAAM,2CAA2C,GAAG,wBAAwB,CAAC;AACpF,MAAM,CAAC,MAAM,2CAA2C,GAAG,CAAC;KACzD,MAAM,CAAC;IACN,MAAM,EAAE,uBAAuB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IAC9F,aAAa,EAAE,MAAM;CACtB,CAAC;KACD,MAAM,EAAE,CAAC;AAIZ,MAAM,YAAY,GAAG,CAAC;KACnB,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,EAAE,C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CAAC,OAAO,CAAC,yBAAyB,CAAC;QAC1C,OAAO,EAAE,kCAAkC;KAC5C,CAAC;CACH,CAAC;KACD,MAAM,EAAE;KACR,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC;AAK9D,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC;KACrD,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC;KAC1E,MAAM,EAAE,CAAC;AAKZ,wFAAwF;AACxF,MAAM,CAAC,MAAM,8CAA8C,GAAG,CAAC;KAC5D,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,2CAA2C,CAAC,KAAK,EAAE,CAAC;KAC1E,MAAM,EAAE,CAAC"}
@@ -1,59 +0,0 @@
1
- import type { ModelProxyBudgetSubject } from './budget-management.js';
2
- type BudgetExactAmounts = {
3
- confirmedMicros: string;
4
- heldMicros: string;
5
- usedMicros: string;
6
- availableMicros: string | null;
7
- /** Null means the read model does not provide an exact count. */
8
- pendingCount: string | null;
9
- accountingPending: boolean;
10
- reconciliationPending: boolean;
11
- projectionPending: boolean;
12
- };
13
- export type BudgetExactBalance = BudgetExactAmounts & ({
14
- source: 'legacy';
15
- inflightMicros: null;
16
- uncertainMicros: null;
17
- revision: null;
18
- health: null;
19
- } | {
20
- source: 'ledger';
21
- inflightMicros: string;
22
- uncertainMicros: string;
23
- revision: string;
24
- health: 'ready' | 'accounting_pending' | 'reconciling' | 'blocked';
25
- });
26
- export type BudgetExactRead = {
27
- schemaVersion: 2;
28
- currency: 'USD';
29
- authority: {
30
- key: string;
31
- epoch: string;
32
- };
33
- asOf: string;
34
- balance: BudgetExactBalance;
35
- };
36
- export type BudgetExactAdmission = {
37
- admissionState: 'disabled' | 'ready' | 'warning' | 'exhausted' | 'unavailable';
38
- blockedBy: 'account_budget' | 'workspace_budget' | 'accounting_pending' | 'reconciliation_pending' | 'budget_unavailable' | null;
39
- };
40
- export type ModelProxyBudgetExactOverview = BudgetExactRead & BudgetExactAdmission & {
41
- subject: ModelProxyBudgetSubject;
42
- period: string;
43
- policy: {
44
- revision: string;
45
- source: 'global' | 'account';
46
- limitMicrousd: string;
47
- reservationMicrousd: string;
48
- updatedAt: string | null;
49
- updatedBy: string | null;
50
- };
51
- globalPolicy: {
52
- mode: 'off' | 'postgres';
53
- revision: string;
54
- limitMicrousd: string;
55
- reservationMicrousd: string;
56
- };
57
- };
58
- export {};
59
- //# sourceMappingURL=budget-read.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"budget-read.d.ts","sourceRoot":"","sources":["../../src/model-proxy/budget-read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEtE,KAAK,kBAAkB,GAAG;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,iEAAiE;IACjE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,GACjD,CACI;IACE,MAAM,EAAE,QAAQ,CAAC;IACjB,cAAc,EAAE,IAAI,CAAC;IACrB,eAAe,EAAE,IAAI,CAAC;IACtB,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,EAAE,IAAI,CAAC;CACd,GACD;IACE,MAAM,EAAE,QAAQ,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAA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ourceRoot":"","sources":["../../src/model-proxy/budget-read.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /**
2
- * Per-provider availability and throughput statistics derived from recorded AI
3
- * usage logs over a bounded time window. These are read-only aggregates: no
4
- * prompt, credential, raw provider error or per-user identity is exposed.
5
- */
6
- export type ModelProxyProviderStat = {
7
- /** Provider key as recorded on the usage row (e.g. 'anthropic', 'openai'). */
8
- provider: string;
9
- /** Terminal requests (status success/error). In-progress rows are excluded. */
10
- requestCount: number;
11
- successCount: number;
12
- errorCount: number;
13
- /** successCount / requestCount, or null when there are no terminal requests. */
14
- successRate: number | null;
15
- /** Mean time-to-first-byte (provider response headers), in milliseconds. */
16
- avgTtfbMs: number | null;
17
- /** Successful requests that contributed a TTFB sample. */
18
- ttfbSampleCount: number;
19
- /** Mean overall request duration of successful requests, in milliseconds. */
20
- avgDurationMs: number | null;
21
- /** Total output tokens over successful requests with a measured duration. */
22
- outputTokens: number;
23
- /** Aggregate generation throughput: outputTokens / summed duration seconds. */
24
- tokensPerSecond: number | null;
25
- /** Successful requests that contributed a throughput sample. */
26
- throughputSampleCount: number;
27
- };
28
- export type ModelProxyProviderStats = {
29
- capturedAt: string;
30
- since: string;
31
- until: string;
32
- hours: number;
33
- /** Per-provider rows, sorted by request count descending. */
34
- providers: ModelProxyProviderStat[];
35
- /** All providers combined. */
36
- overall: ModelProxyProviderStat;
37
- };
38
- //# sourceMappingURL=provider-stats.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider-stats.d.ts","sourceRoot":"","sources":["../../src/model-proxy/provider-stats.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,CAAC;IACjB,+EAA+E;IAC/E,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,4EAA4E;IAC5E,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,0DAA0D;IAC1D,eAAe,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,6EAA6E;IAC7E,YAAY,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gEAAgE;IAChE,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,SAAS,EAAE,sBAAsB,EAAE,CAAC;IACpC,8BAA8B;IAC9B,OAAO,EAAE,sBAAsB,CAAC;CACjC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=provider-stats.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider-stats.js","sourceRoot":"","sources":["../../src/model-proxy/provider-stats.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- /** Parse only the SQL fact-verified result; arbitrary ledgerProjection metadata is not a proof. */
2
- export declare function readVerifiedUsageCostMicros(value: unknown): string | null;
3
- /** The legacy number contract is unavailable when its integer microdollars cannot be exact. */
4
- export declare function compatibleUsageCostMicros(value: unknown): number | null;
5
- /** A sum of individually verified fees can exceed a single signed-64-bit fee. */
6
- export declare function readVerifiedUsageCostTotalMicros(value: unknown): string | null;
7
- /** Keep the aggregate exact string when the old integer-number response is unavailable. */
8
- export declare function compatibleUsageCostTotalMicros(value: unknown): number | null;
9
- //# sourceMappingURL=usage-cost-exact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-cost-exact.d.ts","sourceRoot":"","sources":["../../src/model-proxy/usage-cost-exact.ts"],"names":[],"mappings":"AAGA,mGAAmG;AACnG,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAMzE;AAED,+FAA+F;AAC/F,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAIvE;AAED,iFAAiF;AACjF,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAK9E;AAED,2FAA2F;AAC3F,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAI5E"}
@@ -1,35 +0,0 @@
1
- const MAX_COST_MICROS = 9223372036854775807n;
2
- const MAX_COMPATIBLE_COST = BigInt(Number.MAX_SAFE_INTEGER);
3
- /** Parse only the SQL fact-verified result; arbitrary ledgerProjection metadata is not a proof. */
4
- export function readVerifiedUsageCostMicros(value) {
5
- if (value === null)
6
- return null;
7
- if (typeof value !== 'string' || !/^(0|[1-9][0-9]{0,18})$/.test(value))
8
- throw new RangeError('usage_cost_micros_invalid');
9
- if (BigInt(value) > MAX_COST_MICROS)
10
- throw new RangeError('usage_cost_micros_out_of_range');
11
- return value;
12
- }
13
- /** The legacy number contract is unavailable when its integer microdollars cannot be exact. */
14
- export function compatibleUsageCostMicros(value) {
15
- const exact = readVerifiedUsageCostMicros(value);
16
- if (exact === null || BigInt(exact) > MAX_COMPATIBLE_COST)
17
- return null;
18
- return Number(exact);
19
- }
20
- /** A sum of individually verified fees can exceed a single signed-64-bit fee. */
21
- export function readVerifiedUsageCostTotalMicros(value) {
22
- if (value === null)
23
- return null;
24
- if (typeof value !== 'string' || !/^(0|[1-9][0-9]*)$/.test(value))
25
- throw new RangeError('usage_cost_total_micros_invalid');
26
- return value;
27
- }
28
- /** Keep the aggregate exact string when the old integer-number response is unavailable. */
29
- export function compatibleUsageCostTotalMicros(value) {
30
- const exact = readVerifiedUsageCostTotalMicros(value);
31
- if (exact === null || BigInt(exact) > MAX_COMPATIBLE_COST)
32
- return null;
33
- return Number(exact);
34
- }
35
- //# sourceMappingURL=usage-cost-exact.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-cost-exact.js","sourceRoot":"","sources":["../../src/model-proxy/usage-cost-exact.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,oBAA0B,CAAC;AACnD,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAE5D,mGAAmG;AACnG,MAAM,UAAU,2BAA2B,CAAC,KAAc;IACxD,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAChC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC;QACpE,MAAM,IAAI,UAAU,CAAC,2BAA2B,CAAC,CAAC;IACpD,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,eAAe;QAAE,MAAM,IAAI,UAAU,CAAC,gCAAgC,CAAC,CAAC;IAC5F,OAAO,KAAK,CAAC;AACf,CAAC;AAED,+FAA+F;AAC/F,MAAM,UAAU,yBAAyB,CAAC,KAAc;IACtD,MAAM,KAAK,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACjD,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,mBAAmB;QAAE,OAAO,IAAI,CAAC;IACvE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,gCAAgC,CAAC,KAAc;IAC7D,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAChC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC;QAC/D,MAAM,IAAI,UAAU,CAAC,iCAAiC,CAAC,CAAC;IAC1D,OAAO,KAAK,CAAC;AACf,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,8BAA8B,CAAC,KAAc;IAC3D,MAAM,KAAK,GAAG,gCAAgC,CAAC,KAAK,CAAC,CAAC;IACtD,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,mBAAmB;QAAE,OAAO,IAAI,CAAC;IACvE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC"}
@@ -1,15 +0,0 @@
1
- /**
2
- * A latest completion receipt is not a contiguous completeness watermark.
3
- * Pending includes attributable monetary_pending and projection_pending deliveries;
4
- * it does not say whether the monetary transaction has already committed.
5
- */
6
- export type UsageDetailsProjection = {
7
- source: 'ledger';
8
- lastCompletedAt: string | null;
9
- pending: boolean;
10
- } | {
11
- source: 'legacy' | 'unavailable';
12
- lastCompletedAt: null;
13
- pending: null;
14
- };
15
- //# sourceMappingURL=usage-projection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-projection.d.ts","sourceRoot":"","sources":["../../src/model-proxy/usage-projection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAC9B;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACtE;IAAE,MAAM,EAAE,QAAQ,GAAG,aAAa,CAAC;IAAC,eAAe,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=usage-projection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-projection.js","sourceRoot":"","sources":["../../src/model-proxy/usage-projection.ts"],"names":[],"mappings":""}
@@ -1,20 +0,0 @@
1
- /**
2
- * Device viewport presets shared by the frontend preview and artifact QA (single source).
3
- * Display helpers that depend on the preview UI stay in `packages/frontend/src/lib/preview-devices.ts`.
4
- */
5
- export type PreviewOrientation = 'portrait' | 'landscape';
6
- export type PreviewDeviceGroup = 'mobile' | 'foldable' | 'tablet' | 'display';
7
- export type PreviewViewport = {
8
- width: number;
9
- height: number;
10
- };
11
- export type PreviewDevice = PreviewViewport & {
12
- id: string;
13
- group: PreviewDeviceGroup;
14
- unfolded?: PreviewViewport;
15
- fixedLandscape?: boolean;
16
- framed?: boolean;
17
- };
18
- export declare const PREVIEW_DEVICES: readonly PreviewDevice[];
19
- export declare const PREVIEW_DEVICE_GROUPS: readonly PreviewDeviceGroup[];
20
- //# sourceMappingURL=preview-devices.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preview-devices.d.ts","sourceRoot":"","sources":["../../src/preview/preview-devices.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,WAAW,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC9E,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAMF,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EA8BnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,SAAS,kBAAkB,EAK9D,CAAC"}
@@ -1,46 +0,0 @@
1
- /**
2
- * Device viewport presets shared by the frontend preview and artifact QA (single source).
3
- * Display helpers that depend on the preview UI stay in `packages/frontend/src/lib/preview-devices.ts`.
4
- */
5
- // Viewport dimensions in CSS pixels.
6
- // Chrome DevTools device table, checked 2026-10-15:
7
- // https://github.com/ChromeDevTools/devtools-frontend/blob/main/front_end/models/emulation/EmulatedDevices.ts
8
- // These presets change the viewport, not the browser identity or pixel density.
9
- export const PREVIEW_DEVICES = [
10
- { id: 'iphoneSE', group: 'mobile', width: 375, height: 667 },
11
- { id: 'iphone17', group: 'mobile', width: 393, height: 852, framed: true },
12
- { id: 'iphone17Pro', group: 'mobile', width: 402, height: 874, framed: true },
13
- { id: 'iphone16', group: 'mobile', width: 393, height: 852 },
14
- { id: 'iphone16ProMax', group: 'mobile', width: 440, height: 956 },
15
- { id: 'pixel9', group: 'mobile', width: 412, height: 924 },
16
- { id: 'pixel9Pro', group: 'mobile', width: 427, height: 952 },
17
- { id: 'pixel10', group: 'mobile', width: 412, height: 924 },
18
- { id: 'galaxyA55', group: 'mobile', width: 360, height: 800 },
19
- {
20
- id: 'pixel9ProFold',
21
- group: 'foldable',
22
- width: 412,
23
- height: 922,
24
- unfolded: { width: 836, height: 842 },
25
- },
26
- {
27
- id: 'galaxyZFold6',
28
- group: 'foldable',
29
- width: 412,
30
- height: 968,
31
- unfolded: { width: 744, height: 860 },
32
- },
33
- { id: 'ipadMini', group: 'tablet', width: 768, height: 1024 },
34
- { id: 'ipadAir', group: 'tablet', width: 820, height: 1180 },
35
- { id: 'ipadPro11', group: 'tablet', width: 834, height: 1194 },
36
- { id: 'ipadPro13', group: 'tablet', width: 1032, height: 1376 },
37
- { id: 'surfacePro10', group: 'tablet', width: 960, height: 1440 },
38
- { id: 'nestHubMax', group: 'display', width: 1280, height: 800, fixedLandscape: true },
39
- ];
40
- export const PREVIEW_DEVICE_GROUPS = [
41
- 'mobile',
42
- 'foldable',
43
- 'tablet',
44
- 'display',
45
- ];
46
- //# sourceMappingURL=preview-devices.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preview-devices.js","sourceRoot":"","sources":["../../src/preview/preview-devices.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAaH,qCAAqC;AACrC,oDA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AAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE;KACtC;IACD;QACE,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE;KACtC;IACD,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE;IAC7D,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE;IAC5D,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE;IAC9D,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;IAC/D,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE;IACjE,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE;CACvF,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAkC;IAClE,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,SAAS;CACV,CAAC"}
@@ -1,5 +0,0 @@
1
- import { type ProjectSkillFile } from './types.js';
2
- /** Hash raw bytes and relative filenames, not a Git commit or normalized artifact. */
3
- export declare function sourceTreeDigest(files: readonly ProjectSkillFile[]): string;
4
- export declare function sourceRevision(files: readonly ProjectSkillFile[]): string;
5
- //# sourceMappingURL=source-digest-node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source-digest-node.d.ts","sourceRoot":"","sources":["../../src/project-skills/source-digest-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGvE,sFAAsF;AACtF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,GAAG,MAAM,CAoB3E;AACD,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,GAAG,MAAM,CAEzE"}
@@ -1,26 +0,0 @@
1
- import { createHash } from 'node:crypto';
2
- import { ProjectSkillsError } from './types.js';
3
- import { isProjectRelativePath } from './protocol.js';
4
- /** Hash raw bytes and relative filenames, not a Git commit or normalized artifact. */
5
- export function sourceTreeDigest(files) {
6
- const sorted = [...files].sort((a, b) => (a.path < b.path ? -1 : a.path > b.path ? 1 : 0));
7
- const seen = new Set();
8
- const digest = createHash('sha256').update('playcraft-source-tree-v1\0');
9
- for (const file of sorted) {
10
- if (!isProjectRelativePath(file.path) || seen.has(file.path)) {
11
- throw new ProjectSkillsError('invalid_source_path', `Invalid or duplicate source path: ${file.path}`);
12
- }
13
- seen.add(file.path);
14
- const name = Buffer.from(file.path);
15
- digest
16
- .update(`${name.length}:`)
17
- .update(name)
18
- .update(`${file.content.byteLength}:`)
19
- .update(file.content);
20
- }
21
- return digest.digest('hex');
22
- }
23
- export function sourceRevision(files) {
24
- return `src-v1-sha256:${sourceTreeDigest(files)}`;
25
- }
26
- //# sourceMappingURL=source-digest-node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source-digest-node.js","sourceRoot":"","sources":["../../src/project-skills/source-digest-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAyB,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD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,KAAkC;IAC/D,OAAO,iBAAiB,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;AACpD,CAAC"}
@@ -1,33 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const TEAM_MEMORY_MAX_LENGTH = 8000;
3
- export declare const teamMemoryIdSchema: z.ZodString;
4
- export declare const teamMemorySnapshotSchema: z.ZodObject<{
5
- teamId: z.ZodString;
6
- revision: z.ZodNumber;
7
- content: z.ZodString;
8
- }, z.core.$strict>;
9
- export type TeamMemorySnapshot = z.infer<typeof teamMemorySnapshotSchema>;
10
- export declare const teamMemoryResponseSchema: z.ZodObject<{
11
- teamId: z.ZodString;
12
- revision: z.ZodNumber;
13
- content: z.ZodString;
14
- teamName: z.ZodString;
15
- updatedAt: z.ZodNullable<z.ZodString>;
16
- canManage: z.ZodBoolean;
17
- }, z.core.$strict>;
18
- export type TeamMemoryResponse = z.infer<typeof teamMemoryResponseSchema>;
19
- export declare const updateTeamMemoryRequestSchema: z.ZodObject<{
20
- revision: z.ZodNumber;
21
- content: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
22
- }, z.core.$strict>;
23
- export type UpdateTeamMemoryRequest = z.infer<typeof updateTeamMemoryRequestSchema>;
24
- /** A readable team keeps its identity even if its administrator clears the memory. */
25
- export declare const workspaceTeamMemoryResponseSchema: z.ZodObject<{
26
- teamMemory: z.ZodNullable<z.ZodObject<{
27
- teamId: z.ZodString;
28
- revision: z.ZodNumber;
29
- content: z.ZodString;
30
- }, z.core.$strict>>;
31
- }, z.core.$strict>;
32
- export type WorkspaceTeamMemoryResponse = z.infer<typeof workspaceTeamMemoryResponseSchema>;
33
- //# sourceMappingURL=team-memory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"team-memory.d.ts","sourceRoot":"","sources":["../src/team-memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,OAAQ,CAAC;AAE5C,eAAO,MAAM,kBAAkB,aAI6C,CAAC;AAQ7E,eAAO,MAAM,wBAAwB;;;;kBAM1B,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;;;kBAM1B,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,6BAA6B;;;kBAK/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,sFAAsF;AACtF,eAAO,MAAM,iCAAiC;;;;;;kBAInC,CAAC;AACZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}