@dipoleml/dcode-cli 1.0.0 → 1.2.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 (447) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +1081 -12
  2. package/dist/dcode.cjs +59155 -45279
  3. package/dist/packages/browser-use-plugin/README.md +12 -12
  4. package/dist/packages/browser-use-plugin/docs/api.json +1 -1
  5. package/dist/packages/browser-use-plugin/docs/overview.md +5 -4
  6. package/dist/packages/browser-use-plugin/docs/workflow.md +1 -1
  7. package/dist/packages/browser-use-plugin/scripts/build.mjs +1 -0
  8. package/dist/packages/browser-use-plugin/skills/control-browser/SKILL.md +10 -7
  9. package/dist/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
  10. package/dist/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
  11. package/dist/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
  12. package/dist/packages/node-repl-host/.dcode-plugin/plugin.json +1 -1
  13. package/dist/packages/node-repl-host/dist/mcp/server.js +9 -14
  14. package/dist/packages/node-repl-host/scripts/build.mjs +1 -0
  15. package/dist/provider/dcode-builtin.json +6544 -183
  16. package/node_modules/@dcode/contracts/dist/compact/index.d.ts +7 -7
  17. package/node_modules/@dcode/contracts/dist/config/index.d.ts +1 -1
  18. package/node_modules/@dcode/contracts/dist/events/event-reducer.js +1 -0
  19. package/node_modules/@dcode/contracts/dist/events/in-memory-session-event-store.js +3 -2
  20. package/node_modules/@dcode/contracts/dist/events/session-event-retention.d.ts +8 -0
  21. package/node_modules/@dcode/contracts/dist/events/session-event-retention.js +18 -0
  22. package/node_modules/@dcode/contracts/dist/events/session.events.d.ts +94 -16
  23. package/node_modules/@dcode/contracts/dist/events/session.events.js +10 -0
  24. package/node_modules/@dcode/contracts/dist/hooks/index.d.ts +134 -134
  25. package/node_modules/@dcode/contracts/dist/hooks/workspace-hook-trust.d.ts +14 -14
  26. package/node_modules/@dcode/contracts/dist/index.d.ts +2 -0
  27. package/node_modules/@dcode/contracts/dist/index.js +2 -0
  28. package/node_modules/@dcode/contracts/dist/interfaces/browser-control.port.d.ts +22 -0
  29. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.d.ts +92 -0
  30. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.js +9 -0
  31. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.d.ts +4 -4
  32. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.js +7 -3
  33. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-workspace.port.js +8 -3
  34. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.d.ts +119 -18
  35. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.js +13 -0
  36. package/node_modules/@dcode/contracts/dist/interfaces/index.d.ts +1 -0
  37. package/node_modules/@dcode/contracts/dist/interfaces/index.js +1 -0
  38. package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.d.ts +161 -1
  39. package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.js +17 -0
  40. package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.d.ts +15 -15
  41. package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.js +1 -1
  42. package/node_modules/@dcode/contracts/dist/interfaces/permission.port.d.ts +15 -1
  43. package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.d.ts +19 -0
  44. package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.js +1 -0
  45. package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.d.ts +4 -2
  46. package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.js +5 -0
  47. package/node_modules/@dcode/contracts/dist/interfaces/session.port.d.ts +92 -3
  48. package/node_modules/@dcode/contracts/dist/interfaces/session.port.js +4 -1
  49. package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.d.ts +25 -0
  50. package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.js +1 -0
  51. package/node_modules/@dcode/contracts/dist/model/index.d.ts +15 -1
  52. package/node_modules/@dcode/contracts/dist/model/index.js +5 -0
  53. package/node_modules/@dcode/contracts/dist/model/invocation-context.d.ts +6 -1
  54. package/node_modules/@dcode/contracts/dist/plugins/index.d.ts +23 -0
  55. package/node_modules/@dcode/contracts/dist/plugins/index.js +2 -1
  56. package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.d.ts +2 -0
  57. package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.js +2 -0
  58. package/node_modules/@dcode/contracts/dist/telemetry/index.d.ts +5 -1
  59. package/node_modules/@dcode/contracts/dist/telemetry/index.js +12 -0
  60. package/node_modules/@dcode/contracts/dist/tools/agent.d.ts +12 -12
  61. package/node_modules/@dcode/contracts/dist/tools/amend-workflow.d.ts +39 -15
  62. package/node_modules/@dcode/contracts/dist/tools/amend-workflow.js +12 -6
  63. package/node_modules/@dcode/contracts/dist/tools/automation.d.ts +32 -32
  64. package/node_modules/@dcode/contracts/dist/tools/automation.js +1 -1
  65. package/node_modules/@dcode/contracts/dist/tools/bash.d.ts +16 -16
  66. package/node_modules/@dcode/contracts/dist/tools/bash.js +1 -1
  67. package/node_modules/@dcode/contracts/dist/tools/create-workflow.d.ts +365 -66
  68. package/node_modules/@dcode/contracts/dist/tools/create-workflow.js +92 -11
  69. package/node_modules/@dcode/contracts/dist/tools/edit.d.ts +16 -16
  70. package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.d.ts +6 -6
  71. package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.js +5 -1
  72. package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.d.ts +729 -0
  73. package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.js +102 -0
  74. package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.d.ts +136 -28
  75. package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.js +36 -0
  76. package/node_modules/@dcode/contracts/dist/tools/grep.d.ts +4 -4
  77. package/node_modules/@dcode/contracts/dist/tools/grep.js +4 -0
  78. package/node_modules/@dcode/contracts/dist/tools/index.d.ts +2 -0
  79. package/node_modules/@dcode/contracts/dist/tools/index.js +4 -0
  80. package/node_modules/@dcode/contracts/dist/tools/list-saved-workflows.d.ts +8 -8
  81. package/node_modules/@dcode/contracts/dist/tools/list-workflow-runs.d.ts +8 -8
  82. package/node_modules/@dcode/contracts/dist/tools/node-repl.d.ts +2 -2
  83. package/node_modules/@dcode/contracts/dist/tools/off-peak.d.ts +3 -3
  84. package/node_modules/@dcode/contracts/dist/tools/off-peak.js +2 -2
  85. package/node_modules/@dcode/contracts/dist/tools/performance.d.ts +22 -22
  86. package/node_modules/@dcode/contracts/dist/tools/plan-mode.d.ts +12 -12
  87. package/node_modules/@dcode/contracts/dist/tools/plan-mode.js +6 -4
  88. package/node_modules/@dcode/contracts/dist/tools/read-session-context.d.ts +86 -13
  89. package/node_modules/@dcode/contracts/dist/tools/read-session-context.js +37 -6
  90. package/node_modules/@dcode/contracts/dist/tools/read.d.ts +38 -38
  91. package/node_modules/@dcode/contracts/dist/tools/save-workflow.d.ts +21 -10
  92. package/node_modules/@dcode/contracts/dist/tools/save-workflow.js +22 -2
  93. package/node_modules/@dcode/contracts/dist/tools/saved-workflow.d.ts +4 -4
  94. package/node_modules/@dcode/contracts/dist/tools/send-message.d.ts +2 -2
  95. package/node_modules/@dcode/contracts/dist/tools/skill.js +1 -0
  96. package/node_modules/@dcode/contracts/dist/tools/task-output.d.ts +6 -6
  97. package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.d.ts +1228 -259
  98. package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.js +41 -0
  99. package/node_modules/@dcode/contracts/dist/tools/webfetch.d.ts +2 -2
  100. package/node_modules/@dcode/contracts/dist/tools/workflow-observation-display.d.ts +20 -20
  101. package/node_modules/@dcode/contracts/dist/tools/workflow-settings.d.ts +55 -0
  102. package/node_modules/@dcode/contracts/dist/tools/workflow-settings.js +86 -0
  103. package/node_modules/@dcode/contracts/dist/tools/workflow.d.ts +8 -8
  104. package/node_modules/@dcode/contracts/dist/tools/write.d.ts +18 -18
  105. package/node_modules/@dcode/contracts/dist/workflow/index.d.ts +98 -98
  106. package/node_modules/@dcode/contracts/dist/workflow/script.d.ts +12 -12
  107. package/node_modules/@dcode/i18n/dist/index.js +2 -2
  108. package/node_modules/@dcode/i18n/dist/locale.d.ts +1 -1
  109. package/node_modules/@dcode/i18n/dist/locale.js +4 -4
  110. package/node_modules/@dcode/i18n/dist/locales/en-US.js +5 -5
  111. package/node_modules/@dcode/i18n/dist/locales/fr-CA.d.ts +3 -0
  112. package/node_modules/@dcode/i18n/dist/locales/fr-CA.js +354 -0
  113. package/node_modules/@dcode/model-option-map/package.json +1 -1
  114. package/node_modules/@dcode/shared/dist/api-key-usage-scene.d.ts +7 -0
  115. package/node_modules/@dcode/shared/dist/api-key-usage-scene.js +6 -0
  116. package/node_modules/@dcode/shared/dist/attachment-source.d.ts +8 -0
  117. package/node_modules/@dcode/shared/dist/attachment-source.js +4 -0
  118. package/node_modules/@dcode/shared/dist/background-bash-output.d.ts +4 -4
  119. package/node_modules/@dcode/shared/dist/bots.d.ts +759 -11
  120. package/node_modules/@dcode/shared/dist/bots.js +236 -2
  121. package/node_modules/@dcode/shared/dist/browser-use/command-metadata.d.ts +2 -2
  122. package/node_modules/@dcode/shared/dist/browser-use/commands.d.ts +4 -3
  123. package/node_modules/@dcode/shared/dist/browser-use/commands.js +3 -1
  124. package/node_modules/@dcode/shared/dist/browser-use/nodeReplBroker.d.ts +5 -4
  125. package/node_modules/@dcode/shared/dist/browser-use/result.d.ts +6 -6
  126. package/node_modules/@dcode/shared/dist/channel-mention.d.ts +173 -0
  127. package/node_modules/@dcode/shared/dist/channel-mention.js +120 -0
  128. package/node_modules/@dcode/shared/dist/channels.d.ts +128 -1
  129. package/node_modules/@dcode/shared/dist/channels.js +66 -0
  130. package/node_modules/@dcode/shared/dist/clientConfig.d.ts +1 -0
  131. package/node_modules/@dcode/shared/dist/clientConfig.js +18 -2
  132. package/node_modules/@dcode/shared/dist/cloudContent.d.ts +160 -0
  133. package/node_modules/@dcode/shared/dist/cloudContent.js +116 -0
  134. package/node_modules/@dcode/shared/dist/coding-plan-subscription.d.ts +59 -0
  135. package/node_modules/@dcode/shared/dist/conversation-message-projection-policy.js +2 -0
  136. package/node_modules/@dcode/shared/dist/conversation-share.d.ts +378 -74
  137. package/node_modules/@dcode/shared/dist/conversation-share.js +8 -6
  138. package/node_modules/@dcode/shared/dist/conversationSelection.d.ts +23 -0
  139. package/node_modules/@dcode/shared/dist/conversationSelection.js +30 -0
  140. package/node_modules/@dcode/shared/dist/database-startup.d.ts +5 -5
  141. package/node_modules/@dcode/shared/dist/dcode-agent-model-state.js +14 -6
  142. package/node_modules/@dcode/shared/dist/dcode-agent-policy.d.ts +16 -1
  143. package/node_modules/@dcode/shared/dist/dcode-agent-policy.js +17 -1
  144. package/node_modules/@dcode/shared/dist/dcode-agent-runtime.js +1 -1
  145. package/node_modules/@dcode/shared/dist/dcode-protocol/index.d.ts +3215 -1800
  146. package/node_modules/@dcode/shared/dist/dcode-protocol/index.js +555 -24
  147. package/node_modules/@dcode/shared/dist/dcode-protocol/trace.d.ts +9 -0
  148. package/node_modules/@dcode/shared/dist/dcode-protocol/trace.js +10 -0
  149. package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.d.ts +30 -20
  150. package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.js +3 -1
  151. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/apply.js +12 -3
  152. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.d.ts +5 -0
  153. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.js +3 -0
  154. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.d.ts +3 -1
  155. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.js +3 -1
  156. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.d.ts +388 -57
  157. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.js +67 -45
  158. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/controller.d.ts +208 -103
  159. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.d.ts +20 -0
  160. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.js +15 -0
  161. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.d.ts +34 -0
  162. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.js +45 -1
  163. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.d.ts +1453 -278
  164. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.js +45 -2
  165. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.d.ts +1 -0
  166. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.js +1 -0
  167. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.d.ts +173 -6
  168. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.js +29 -0
  169. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.d.ts +731 -125
  170. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.js +23 -11
  171. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.d.ts +30 -11
  172. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.js +35 -3
  173. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index.d.ts +40 -25
  174. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.d.ts +1444 -216
  175. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.js +3 -0
  176. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.d.ts +1 -0
  177. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.js +1 -1
  178. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/telemetry.d.ts +62 -58
  179. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.d.ts +185 -50
  180. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.js +31 -3
  181. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.d.ts +7728 -1585
  182. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.js +18 -5
  183. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-assembler.js +2 -1
  184. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-fault.js +4 -1
  185. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-reassembly.js +5 -3
  186. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.d.ts +29 -1
  187. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.js +64 -4
  188. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.d.ts +13 -0
  189. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.js +23 -0
  190. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-observation-display.d.ts +14 -14
  191. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.d.ts +52 -8
  192. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.js +22 -3
  193. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.d.ts +4 -4
  194. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.js +2 -2
  195. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.d.ts +21 -0
  196. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.js +44 -0
  197. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.d.ts +1 -1
  198. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.js +3 -2
  199. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-caps.js +5 -4
  200. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.d.ts +26 -19
  201. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.js +40 -32
  202. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.d.ts +4 -3
  203. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.js +4 -3
  204. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.d.ts +12 -2
  205. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.js +44 -6
  206. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.d.ts +2 -2
  207. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.js +17 -10
  208. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.d.ts +33 -0
  209. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.js +202 -0
  210. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.d.ts +1 -1
  211. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.js +1 -1
  212. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-phases.js +10 -1
  213. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.d.ts +1 -1
  214. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.js +29 -22
  215. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-started.js +5 -2
  216. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-tables.js +2 -1
  217. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-unlisted.js +6 -3
  218. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.d.ts +125 -40
  219. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.js +101 -26
  220. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-workspace.d.ts +4 -4
  221. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workspace-hook-review.d.ts +1 -1
  222. package/node_modules/@dcode/shared/dist/dcode-session-content-profile.d.ts +5 -0
  223. package/node_modules/@dcode/shared/dist/dcode-session-content-profile.js +49 -0
  224. package/node_modules/@dcode/shared/dist/dcode-slash-command-help.js +4 -4
  225. package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.d.ts +6 -1
  226. package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.js +13 -1
  227. package/node_modules/@dcode/shared/dist/dcode-task-types-core.d.ts +12 -2
  228. package/node_modules/@dcode/shared/dist/dcode-task-types.d.ts +23 -0
  229. package/node_modules/@dcode/shared/dist/dcodeEndpoint.d.ts +22 -1
  230. package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +102 -17
  231. package/node_modules/@dcode/shared/dist/desktopMenu.js +48 -48
  232. package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.d.ts +35 -6
  233. package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.js +45 -6
  234. package/node_modules/@dcode/shared/dist/env.d.ts +5 -4
  235. package/node_modules/@dcode/shared/dist/env.js +9 -9
  236. package/node_modules/@dcode/shared/dist/errors.d.ts +24 -0
  237. package/node_modules/@dcode/shared/dist/errors.js +54 -0
  238. package/node_modules/@dcode/shared/dist/execution-state.d.ts +4 -2
  239. package/node_modules/@dcode/shared/dist/execution-state.js +1 -1
  240. package/node_modules/@dcode/shared/dist/feedback.d.ts +1 -1
  241. package/node_modules/@dcode/shared/dist/gen-ui/contract.d.ts +140 -0
  242. package/node_modules/@dcode/shared/dist/gen-ui/contract.example.d.ts +5 -0
  243. package/node_modules/@dcode/shared/dist/gen-ui/contract.example.js +36 -0
  244. package/node_modules/@dcode/shared/dist/gen-ui/contract.js +196 -0
  245. package/node_modules/@dcode/shared/dist/gen-ui/contract.test.d.ts +2 -0
  246. package/node_modules/@dcode/shared/dist/gen-ui/contract.test.js +75 -0
  247. package/node_modules/@dcode/shared/dist/gen-ui/index.d.ts +2 -0
  248. package/node_modules/@dcode/shared/dist/gen-ui/index.js +2 -0
  249. package/node_modules/@dcode/shared/dist/gen-ui/module.d.ts +7 -0
  250. package/node_modules/@dcode/shared/dist/gen-ui/module.js +7 -0
  251. package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.d.ts +202 -0
  252. package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.js +126 -0
  253. package/node_modules/@dcode/shared/dist/helpAppConfig.d.ts +1 -1
  254. package/node_modules/@dcode/shared/dist/helpAppConfig.js +2 -2
  255. package/node_modules/@dcode/shared/dist/highspeed.d.ts +181 -0
  256. package/node_modules/@dcode/shared/dist/highspeed.js +112 -0
  257. package/node_modules/@dcode/shared/dist/index.d.ts +27 -5
  258. package/node_modules/@dcode/shared/dist/index.js +24 -2
  259. package/node_modules/@dcode/shared/dist/localTtft.d.ts +27 -27
  260. package/node_modules/@dcode/shared/dist/marketingTouch.d.ts +930 -0
  261. package/node_modules/@dcode/shared/dist/marketingTouch.js +170 -0
  262. package/node_modules/@dcode/shared/dist/mcp-apps/appTools.d.ts +83 -0
  263. package/node_modules/@dcode/shared/dist/mcp-apps/appTools.js +124 -0
  264. package/node_modules/@dcode/shared/dist/mcp-apps/content.d.ts +4 -0
  265. package/node_modules/@dcode/shared/dist/mcp-apps/content.js +8 -0
  266. package/node_modules/@dcode/shared/dist/mcp-apps/contract.d.ts +241 -0
  267. package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.d.ts +31 -0
  268. package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.js +42 -0
  269. package/node_modules/@dcode/shared/dist/mcp-apps/contract.js +101 -0
  270. package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.d.ts +2 -0
  271. package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.js +64 -0
  272. package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.d.ts +47 -0
  273. package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.js +8 -0
  274. package/node_modules/@dcode/shared/dist/mcp-apps/index.d.ts +9 -0
  275. package/node_modules/@dcode/shared/dist/mcp-apps/index.js +9 -0
  276. package/node_modules/@dcode/shared/dist/mcp-apps/instance.d.ts +10 -0
  277. package/node_modules/@dcode/shared/dist/mcp-apps/instance.js +11 -0
  278. package/node_modules/@dcode/shared/dist/mcp-apps/module.d.ts +12 -0
  279. package/node_modules/@dcode/shared/dist/mcp-apps/module.js +12 -0
  280. package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.d.ts +8 -0
  281. package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.js +73 -0
  282. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.d.ts +101 -0
  283. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.js +107 -0
  284. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.d.ts +2 -0
  285. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.js +55 -0
  286. package/node_modules/@dcode/shared/dist/mcp-apps/schemas.d.ts +78 -0
  287. package/node_modules/@dcode/shared/dist/mcp-apps/schemas.js +65 -0
  288. package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.d.ts +39 -0
  289. package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.js +199 -0
  290. package/node_modules/@dcode/shared/dist/mcp.d.ts +6 -2
  291. package/node_modules/@dcode/shared/dist/memory.d.ts +9 -0
  292. package/node_modules/@dcode/shared/dist/memory.js +2 -0
  293. package/node_modules/@dcode/shared/dist/model-execution.d.ts +31 -0
  294. package/node_modules/@dcode/shared/dist/model-execution.js +38 -0
  295. package/node_modules/@dcode/shared/dist/networkCapture.d.ts +49 -0
  296. package/node_modules/@dcode/shared/dist/networkCapture.js +41 -0
  297. package/node_modules/@dcode/shared/dist/node/genUiPaths.d.ts +6 -0
  298. package/node_modules/@dcode/shared/dist/node/genUiPaths.js +16 -0
  299. package/node_modules/@dcode/shared/dist/node/genUiPaths.test.d.ts +2 -0
  300. package/node_modules/@dcode/shared/dist/node/genUiPaths.test.js +30 -0
  301. package/node_modules/@dcode/shared/dist/node/networkCapture.d.ts +8 -0
  302. package/node_modules/@dcode/shared/dist/node/networkCapture.js +96 -0
  303. package/node_modules/@dcode/shared/dist/node/officialPluginCache.d.ts +1 -2
  304. package/node_modules/@dcode/shared/dist/node/subagentMarkdownMigration.d.ts +1 -2
  305. package/node_modules/@dcode/shared/dist/node.d.ts +2 -0
  306. package/node_modules/@dcode/shared/dist/node.js +2 -0
  307. package/node_modules/@dcode/shared/dist/output-style.d.ts +17 -0
  308. package/node_modules/@dcode/shared/dist/output-style.js +2 -0
  309. package/node_modules/@dcode/shared/dist/platform.d.ts +149 -1
  310. package/node_modules/@dcode/shared/dist/platform.js +2 -0
  311. package/node_modules/@dcode/shared/dist/platformUpdate.d.ts +61 -0
  312. package/node_modules/@dcode/shared/dist/platformUpdate.js +2 -0
  313. package/node_modules/@dcode/shared/dist/plugin-marketplaces.d.ts +5 -0
  314. package/node_modules/@dcode/shared/dist/plugin-marketplaces.js +20 -14
  315. package/node_modules/@dcode/shared/dist/project-access-token-client.d.ts +42 -0
  316. package/node_modules/@dcode/shared/dist/project-access-token-client.js +260 -0
  317. package/node_modules/@dcode/shared/dist/project-access-token-response.d.ts +4 -0
  318. package/node_modules/@dcode/shared/dist/project-access-token-response.js +9 -0
  319. package/node_modules/@dcode/shared/dist/project-access-token.d.ts +45 -0
  320. package/node_modules/@dcode/shared/dist/project-access-token.js +164 -0
  321. package/node_modules/@dcode/shared/dist/protocol.d.ts +46 -4
  322. package/node_modules/@dcode/shared/dist/protocol.js +1 -1
  323. package/node_modules/@dcode/shared/dist/provider-provisioning.d.ts +26 -2
  324. package/node_modules/@dcode/shared/dist/provider-provisioning.js +19 -3
  325. package/node_modules/@dcode/shared/dist/providers.d.ts +1 -2
  326. package/node_modules/@dcode/shared/dist/providers.js +1 -1
  327. package/node_modules/@dcode/shared/dist/remote-workspace-identity.d.ts +6 -1
  328. package/node_modules/@dcode/shared/dist/remote-workspace-identity.js +35 -1
  329. package/node_modules/@dcode/shared/dist/remoteAppConfig.js +1 -1
  330. package/node_modules/@dcode/shared/dist/remoteEnvironmentKey.js +19 -0
  331. package/node_modules/@dcode/shared/dist/remoteTarget.d.ts +14 -1
  332. package/node_modules/@dcode/shared/dist/remoteTarget.js +4 -0
  333. package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.d.ts +27 -0
  334. package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.js +43 -0
  335. package/node_modules/@dcode/shared/dist/rendererActionTrace.d.ts +35 -35
  336. package/node_modules/@dcode/shared/dist/request-security-edition/index.d.ts +3 -0
  337. package/node_modules/@dcode/shared/dist/request-security-edition/index.js +3 -0
  338. package/node_modules/@dcode/shared/dist/request-security-edition/policy.d.ts +3 -0
  339. package/node_modules/@dcode/shared/dist/request-security-edition/policy.js +5 -0
  340. package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.d.ts +19 -0
  341. package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.js +29 -0
  342. package/node_modules/@dcode/shared/dist/rewardsBridge.d.ts +8 -0
  343. package/node_modules/@dcode/shared/dist/rewardsBridge.js +80 -0
  344. package/node_modules/@dcode/shared/dist/rewardsEmbedded.d.ts +37 -0
  345. package/node_modules/@dcode/shared/dist/rewardsEmbedded.js +50 -0
  346. package/node_modules/@dcode/shared/dist/sessionCreateTelemetry.d.ts +3 -3
  347. package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.d.ts +10 -0
  348. package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.js +212 -0
  349. package/node_modules/@dcode/shared/dist/subagent-profile-parser.d.ts +10 -0
  350. package/node_modules/@dcode/shared/dist/subagent-profile-parser.js +200 -0
  351. package/node_modules/@dcode/shared/dist/subagent-profile.d.ts +82 -0
  352. package/node_modules/@dcode/shared/dist/subagent-profile.js +28 -0
  353. package/node_modules/@dcode/shared/dist/subagent-runtime-config.d.ts +135 -0
  354. package/node_modules/@dcode/shared/dist/subagent-runtime-config.js +39 -0
  355. package/node_modules/@dcode/shared/dist/subagents-types.d.ts +1 -1
  356. package/node_modules/@dcode/shared/dist/task-realtime-core.d.ts +57 -24
  357. package/node_modules/@dcode/shared/dist/task-realtime-core.js +8 -2
  358. package/node_modules/@dcode/shared/dist/test-ids-workflow.d.ts +4 -0
  359. package/node_modules/@dcode/shared/dist/test-ids-workflow.js +5 -0
  360. package/node_modules/@dcode/shared/dist/test-ids.d.ts +25 -0
  361. package/node_modules/@dcode/shared/dist/test-ids.js +25 -0
  362. package/node_modules/@dcode/shared/dist/tool-identity.d.ts +1 -1
  363. package/node_modules/@dcode/shared/dist/tool-identity.js +4 -0
  364. package/node_modules/@dcode/shared/dist/tool-plan-adapter.js +14 -1
  365. package/node_modules/@dcode/shared/dist/usage-stats.d.ts +13 -0
  366. package/node_modules/@dcode/shared/dist/validation.d.ts +1542 -166
  367. package/node_modules/@dcode/shared/dist/validation.js +423 -14
  368. package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +70 -14
  369. package/node_modules/@dcode/shared/dist/validationAppSettings.js +74 -12
  370. package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.d.ts +8 -0
  371. package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.js +40 -0
  372. package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.d.ts +183 -0
  373. package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.js +562 -0
  374. package/node_modules/@dcode/shared/dist/web-remote-control.d.ts +645 -0
  375. package/node_modules/@dcode/shared/dist/web-remote-control.js +174 -0
  376. package/node_modules/@dcode/shared/package.json +5 -2
  377. package/node_modules/@dcode/tui/dist/app-approval-panel.js +3 -2
  378. package/node_modules/@dcode/tui/dist/app-approval.d.ts +3 -1
  379. package/node_modules/@dcode/tui/dist/app-approval.js +9 -5
  380. package/node_modules/@dcode/tui/dist/app-compact-timeline.d.ts +3 -0
  381. package/node_modules/@dcode/tui/dist/app-compact-timeline.js +5 -2
  382. package/node_modules/@dcode/tui/dist/app-empty-transcript.d.ts +1 -0
  383. package/node_modules/@dcode/tui/dist/app-empty-transcript.js +1 -1
  384. package/node_modules/@dcode/tui/dist/app-file-mentions.d.ts +2 -0
  385. package/node_modules/@dcode/tui/dist/app-file-mentions.js +2 -2
  386. package/node_modules/@dcode/tui/dist/app-input-pane.d.ts +38 -0
  387. package/node_modules/@dcode/tui/dist/app-input-pane.js +19 -19
  388. package/node_modules/@dcode/tui/dist/app-input-status.d.ts +17 -0
  389. package/node_modules/@dcode/tui/dist/app-input-status.js +4 -4
  390. package/node_modules/@dcode/tui/dist/app-input.d.ts +1 -0
  391. package/node_modules/@dcode/tui/dist/app-input.js +1 -1
  392. package/node_modules/@dcode/tui/dist/app-markdown-theme.d.ts +2 -1
  393. package/node_modules/@dcode/tui/dist/app-markdown-theme.js +1 -1
  394. package/node_modules/@dcode/tui/dist/app-markdown.d.ts +1 -0
  395. package/node_modules/@dcode/tui/dist/app-markdown.js +1 -1
  396. package/node_modules/@dcode/tui/dist/app-mode-command.d.ts +3 -0
  397. package/node_modules/@dcode/tui/dist/app-mode-command.js +4 -4
  398. package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.d.ts +5 -0
  399. package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.js +1 -1
  400. package/node_modules/@dcode/tui/dist/app-mode.d.ts +1 -1
  401. package/node_modules/@dcode/tui/dist/app-mode.js +1 -1
  402. package/node_modules/@dcode/tui/dist/app-model-ref.d.ts +1 -0
  403. package/node_modules/@dcode/tui/dist/app-model-ref.js +1 -1
  404. package/node_modules/@dcode/tui/dist/app-motion.d.ts +13 -0
  405. package/node_modules/@dcode/tui/dist/app-motion.js +17 -7
  406. package/node_modules/@dcode/tui/dist/app-session-event-handler.d.ts +33 -0
  407. package/node_modules/@dcode/tui/dist/app-session-event-handler.js +4 -4
  408. package/node_modules/@dcode/tui/dist/app-shiki-diff-view.d.ts +18 -1
  409. package/node_modules/@dcode/tui/dist/app-shiki-diff-view.js +3 -3
  410. package/node_modules/@dcode/tui/dist/app-shiki-highlighter.d.ts +3 -0
  411. package/node_modules/@dcode/tui/dist/app-shiki-highlighter.js +7 -2
  412. package/node_modules/@dcode/tui/dist/app-sidebar-layout.d.ts +10 -0
  413. package/node_modules/@dcode/tui/dist/app-sidebar-layout.js +4 -4
  414. package/node_modules/@dcode/tui/dist/app-submit.d.ts +1 -0
  415. package/node_modules/@dcode/tui/dist/app-submit.js +1 -1
  416. package/node_modules/@dcode/tui/dist/app-thought-components.d.ts +7 -0
  417. package/node_modules/@dcode/tui/dist/app-thought-components.js +2 -2
  418. package/node_modules/@dcode/tui/dist/app-tool-transcript.d.ts +1 -0
  419. package/node_modules/@dcode/tui/dist/app-tool-transcript.js +3 -0
  420. package/node_modules/@dcode/tui/dist/app-view.d.ts +27 -0
  421. package/node_modules/@dcode/tui/dist/app-view.js +1 -1
  422. package/node_modules/@dcode/tui/dist/app-workflow-card.js +1 -1
  423. package/node_modules/@dcode/tui/dist/app-workflow-seed.d.ts +18 -1
  424. package/node_modules/@dcode/tui/dist/app-workflow-seed.js +4 -4
  425. package/node_modules/@dcode/tui/dist/index.js +5117 -2578
  426. package/node_modules/@dcode/tui/dist/tui.d.ts +3 -0
  427. package/node_modules/@dcode/tui/dist/tui.js +1 -1
  428. package/node_modules/@dcode/tui/dist/types.d.ts +1 -1
  429. package/node_modules/oniguruma-parser/LICENSE +1 -1
  430. package/node_modules/oniguruma-parser/README.md +15 -61
  431. package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +4 -4
  432. package/node_modules/oniguruma-parser/dist/parser/parse.js +1 -1
  433. package/node_modules/oniguruma-parser/dist/traverser/traverse.js +1 -1
  434. package/node_modules/oniguruma-parser/package.json +5 -5
  435. package/node_modules/oniguruma-to-es/dist/cjs/generate.d.ts +1 -1
  436. package/node_modules/oniguruma-to-es/dist/cjs/index.js +121 -120
  437. package/node_modules/oniguruma-to-es/dist/cjs/subclass.d.ts +2 -2
  438. package/node_modules/oniguruma-to-es/dist/cjs/transform.d.ts +3 -5
  439. package/node_modules/oniguruma-to-es/dist/cjs/unicode.d.ts +1 -1
  440. package/node_modules/oniguruma-to-es/dist/esm/generate.d.ts +1 -1
  441. package/node_modules/oniguruma-to-es/dist/esm/index.js +1 -3
  442. package/node_modules/oniguruma-to-es/dist/esm/subclass.d.ts +2 -2
  443. package/node_modules/oniguruma-to-es/dist/esm/transform.d.ts +3 -5
  444. package/node_modules/oniguruma-to-es/dist/esm/unicode.d.ts +1 -1
  445. package/node_modules/oniguruma-to-es/dist/index.min.js +6 -6
  446. package/node_modules/oniguruma-to-es/package.json +5 -5
  447. package/package.json +5 -5
@@ -0,0 +1,930 @@
1
+ import { z } from "zod";
2
+ export declare const marketingAssetSchema: z.ZodObject<{
3
+ src: z.ZodString;
4
+ sha256: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export declare const marketingNavigationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ page: z.ZodLiteral<"upgrade">;
8
+ }, z.core.$strict>, z.ZodObject<{
9
+ page: z.ZodLiteral<"rewards">;
10
+ }, z.core.$strict>, z.ZodObject<{
11
+ page: z.ZodLiteral<"settings">;
12
+ section: z.ZodOptional<z.ZodEnum<{
13
+ subagents: "subagents";
14
+ usage: "usage";
15
+ models: "models";
16
+ skills: "skills";
17
+ hooks: "hooks";
18
+ browser: "browser";
19
+ mcp: "mcp";
20
+ memory: "memory";
21
+ plugins: "plugins";
22
+ commands: "commands";
23
+ general: "general";
24
+ appearance: "appearance";
25
+ computer_use: "computer_use";
26
+ }>>;
27
+ provider_id: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strict>, z.ZodObject<{
29
+ page: z.ZodLiteral<"plugin_marketplace">;
30
+ plugin_id: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strict>], "page">;
32
+ export declare const marketingActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
33
+ type: z.ZodLiteral<"close">;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ type: z.ZodLiteral<"open_url">;
36
+ args: z.ZodObject<{
37
+ url: z.ZodString;
38
+ }, z.core.$strip>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ type: z.ZodLiteral<"claim_dcode_plan">;
41
+ args: z.ZodObject<{
42
+ plan_id: z.ZodString;
43
+ }, z.core.$strip>;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ type: z.ZodLiteral<"navigate">;
46
+ args: z.ZodDiscriminatedUnion<[z.ZodObject<{
47
+ page: z.ZodLiteral<"upgrade">;
48
+ }, z.core.$strict>, z.ZodObject<{
49
+ page: z.ZodLiteral<"rewards">;
50
+ }, z.core.$strict>, z.ZodObject<{
51
+ page: z.ZodLiteral<"settings">;
52
+ section: z.ZodOptional<z.ZodEnum<{
53
+ subagents: "subagents";
54
+ usage: "usage";
55
+ models: "models";
56
+ skills: "skills";
57
+ hooks: "hooks";
58
+ browser: "browser";
59
+ mcp: "mcp";
60
+ memory: "memory";
61
+ plugins: "plugins";
62
+ commands: "commands";
63
+ general: "general";
64
+ appearance: "appearance";
65
+ computer_use: "computer_use";
66
+ }>>;
67
+ provider_id: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strict>, z.ZodObject<{
69
+ page: z.ZodLiteral<"plugin_marketplace">;
70
+ plugin_id: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strict>], "page">;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ type: z.ZodLiteral<"copy_text">;
74
+ args: z.ZodObject<{
75
+ text: z.ZodString;
76
+ }, z.core.$strict>;
77
+ }, z.core.$strip>], "type">;
78
+ export declare const marketingVisualSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
79
+ type: z.ZodLiteral<"image">;
80
+ image: z.ZodObject<{
81
+ default: z.ZodObject<{
82
+ src: z.ZodString;
83
+ sha256: z.ZodString;
84
+ }, z.core.$strip>;
85
+ dark: z.ZodOptional<z.ZodNullable<z.ZodObject<{
86
+ src: z.ZodString;
87
+ sha256: z.ZodString;
88
+ }, z.core.$strip>>>;
89
+ }, z.core.$strip>;
90
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ type: z.ZodLiteral<"video">;
93
+ video: z.ZodObject<{
94
+ src: z.ZodObject<{
95
+ src: z.ZodString;
96
+ sha256: z.ZodString;
97
+ }, z.core.$strip>;
98
+ fallback: z.ZodObject<{
99
+ src: z.ZodString;
100
+ sha256: z.ZodString;
101
+ }, z.core.$strip>;
102
+ }, z.core.$strip>;
103
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ type: z.ZodLiteral<"bundle">;
106
+ bundle: z.ZodObject<{
107
+ bundle: z.ZodObject<{
108
+ src: z.ZodString;
109
+ sha256: z.ZodString;
110
+ }, z.core.$strip>;
111
+ entry: z.ZodString;
112
+ fallback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
113
+ src: z.ZodString;
114
+ sha256: z.ZodString;
115
+ }, z.core.$strip>>>;
116
+ }, z.core.$strip>;
117
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
118
+ }, z.core.$strip>], "type">;
119
+ export declare const marketingPopupSchema: z.ZodObject<{
120
+ layout: z.ZodOptional<z.ZodEnum<{
121
+ "": "";
122
+ v1: "v1";
123
+ }>>;
124
+ title: z.ZodObject<{
125
+ format: z.ZodEnum<{
126
+ markdown: "markdown";
127
+ html: "html";
128
+ plaintext: "plaintext";
129
+ }>;
130
+ content: z.ZodString;
131
+ }, z.core.$strip>;
132
+ description: z.ZodObject<{
133
+ format: z.ZodEnum<{
134
+ markdown: "markdown";
135
+ html: "html";
136
+ plaintext: "plaintext";
137
+ }>;
138
+ content: z.ZodString;
139
+ }, z.core.$strip>;
140
+ hero: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
141
+ type: z.ZodLiteral<"image">;
142
+ image: z.ZodObject<{
143
+ default: z.ZodObject<{
144
+ src: z.ZodString;
145
+ sha256: z.ZodString;
146
+ }, z.core.$strip>;
147
+ dark: z.ZodOptional<z.ZodNullable<z.ZodObject<{
148
+ src: z.ZodString;
149
+ sha256: z.ZodString;
150
+ }, z.core.$strip>>>;
151
+ }, z.core.$strip>;
152
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ type: z.ZodLiteral<"video">;
155
+ video: z.ZodObject<{
156
+ src: z.ZodObject<{
157
+ src: z.ZodString;
158
+ sha256: z.ZodString;
159
+ }, z.core.$strip>;
160
+ fallback: z.ZodObject<{
161
+ src: z.ZodString;
162
+ sha256: z.ZodString;
163
+ }, z.core.$strip>;
164
+ }, z.core.$strip>;
165
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
166
+ }, z.core.$strip>, z.ZodObject<{
167
+ type: z.ZodLiteral<"bundle">;
168
+ bundle: z.ZodObject<{
169
+ bundle: z.ZodObject<{
170
+ src: z.ZodString;
171
+ sha256: z.ZodString;
172
+ }, z.core.$strip>;
173
+ entry: z.ZodString;
174
+ fallback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
175
+ src: z.ZodString;
176
+ sha256: z.ZodString;
177
+ }, z.core.$strip>>>;
178
+ }, z.core.$strip>;
179
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
180
+ }, z.core.$strip>], "type">>>;
181
+ buttons: z.ZodArray<z.ZodObject<{
182
+ text: z.ZodObject<{
183
+ format: z.ZodEnum<{
184
+ markdown: "markdown";
185
+ html: "html";
186
+ plaintext: "plaintext";
187
+ }>;
188
+ content: z.ZodString;
189
+ }, z.core.$strip>;
190
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
191
+ type: z.ZodLiteral<"close">;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ type: z.ZodLiteral<"open_url">;
194
+ args: z.ZodObject<{
195
+ url: z.ZodString;
196
+ }, z.core.$strip>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ type: z.ZodLiteral<"claim_dcode_plan">;
199
+ args: z.ZodObject<{
200
+ plan_id: z.ZodString;
201
+ }, z.core.$strip>;
202
+ }, z.core.$strip>, z.ZodObject<{
203
+ type: z.ZodLiteral<"navigate">;
204
+ args: z.ZodDiscriminatedUnion<[z.ZodObject<{
205
+ page: z.ZodLiteral<"upgrade">;
206
+ }, z.core.$strict>, z.ZodObject<{
207
+ page: z.ZodLiteral<"rewards">;
208
+ }, z.core.$strict>, z.ZodObject<{
209
+ page: z.ZodLiteral<"settings">;
210
+ section: z.ZodOptional<z.ZodEnum<{
211
+ subagents: "subagents";
212
+ usage: "usage";
213
+ models: "models";
214
+ skills: "skills";
215
+ hooks: "hooks";
216
+ browser: "browser";
217
+ mcp: "mcp";
218
+ memory: "memory";
219
+ plugins: "plugins";
220
+ commands: "commands";
221
+ general: "general";
222
+ appearance: "appearance";
223
+ computer_use: "computer_use";
224
+ }>>;
225
+ provider_id: z.ZodOptional<z.ZodString>;
226
+ }, z.core.$strict>, z.ZodObject<{
227
+ page: z.ZodLiteral<"plugin_marketplace">;
228
+ plugin_id: z.ZodOptional<z.ZodString>;
229
+ }, z.core.$strict>], "page">;
230
+ }, z.core.$strip>, z.ZodObject<{
231
+ type: z.ZodLiteral<"copy_text">;
232
+ args: z.ZodObject<{
233
+ text: z.ZodString;
234
+ }, z.core.$strict>;
235
+ }, z.core.$strip>], "type">;
236
+ theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
237
+ variant: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
238
+ "": "";
239
+ default: "default";
240
+ link: "link";
241
+ outline: "outline";
242
+ secondary: "secondary";
243
+ ghost: "ghost";
244
+ destructive: "destructive";
245
+ warning: "warning";
246
+ }>>, z.ZodTransform<"default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning", "" | "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning" | undefined>>;
247
+ class: z.ZodOptional<z.ZodString>;
248
+ style: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strip>>>;
250
+ }, z.core.$strip>>;
251
+ }, z.core.$strip>;
252
+ export declare const marketingDeliverySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
253
+ resource_position: z.ZodLiteral<"banner">;
254
+ banner: z.ZodObject<{
255
+ layout: z.ZodOptional<z.ZodEnum<{
256
+ "": "";
257
+ v1: "v1";
258
+ }>>;
259
+ background: z.ZodDiscriminatedUnion<[z.ZodObject<{
260
+ type: z.ZodLiteral<"image">;
261
+ image: z.ZodObject<{
262
+ default: z.ZodObject<{
263
+ src: z.ZodString;
264
+ sha256: z.ZodString;
265
+ }, z.core.$strip>;
266
+ dark: z.ZodOptional<z.ZodNullable<z.ZodObject<{
267
+ src: z.ZodString;
268
+ sha256: z.ZodString;
269
+ }, z.core.$strip>>>;
270
+ }, z.core.$strip>;
271
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
272
+ }, z.core.$strip>, z.ZodObject<{
273
+ type: z.ZodLiteral<"video">;
274
+ video: z.ZodObject<{
275
+ src: z.ZodObject<{
276
+ src: z.ZodString;
277
+ sha256: z.ZodString;
278
+ }, z.core.$strip>;
279
+ fallback: z.ZodObject<{
280
+ src: z.ZodString;
281
+ sha256: z.ZodString;
282
+ }, z.core.$strip>;
283
+ }, z.core.$strip>;
284
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
285
+ }, z.core.$strip>, z.ZodObject<{
286
+ type: z.ZodLiteral<"bundle">;
287
+ bundle: z.ZodObject<{
288
+ bundle: z.ZodObject<{
289
+ src: z.ZodString;
290
+ sha256: z.ZodString;
291
+ }, z.core.$strip>;
292
+ entry: z.ZodString;
293
+ fallback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
294
+ src: z.ZodString;
295
+ sha256: z.ZodString;
296
+ }, z.core.$strip>>>;
297
+ }, z.core.$strip>;
298
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
299
+ }, z.core.$strip>], "type">;
300
+ buttons: z.ZodArray<z.ZodObject<{
301
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
302
+ type: z.ZodLiteral<"close">;
303
+ }, z.core.$strip>, z.ZodObject<{
304
+ type: z.ZodLiteral<"open_url">;
305
+ args: z.ZodObject<{
306
+ url: z.ZodString;
307
+ }, z.core.$strip>;
308
+ }, z.core.$strip>, z.ZodObject<{
309
+ type: z.ZodLiteral<"claim_dcode_plan">;
310
+ args: z.ZodObject<{
311
+ plan_id: z.ZodString;
312
+ }, z.core.$strip>;
313
+ }, z.core.$strip>, z.ZodObject<{
314
+ type: z.ZodLiteral<"navigate">;
315
+ args: z.ZodDiscriminatedUnion<[z.ZodObject<{
316
+ page: z.ZodLiteral<"upgrade">;
317
+ }, z.core.$strict>, z.ZodObject<{
318
+ page: z.ZodLiteral<"rewards">;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ page: z.ZodLiteral<"settings">;
321
+ section: z.ZodOptional<z.ZodEnum<{
322
+ subagents: "subagents";
323
+ usage: "usage";
324
+ models: "models";
325
+ skills: "skills";
326
+ hooks: "hooks";
327
+ browser: "browser";
328
+ mcp: "mcp";
329
+ memory: "memory";
330
+ plugins: "plugins";
331
+ commands: "commands";
332
+ general: "general";
333
+ appearance: "appearance";
334
+ computer_use: "computer_use";
335
+ }>>;
336
+ provider_id: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strict>, z.ZodObject<{
338
+ page: z.ZodLiteral<"plugin_marketplace">;
339
+ plugin_id: z.ZodOptional<z.ZodString>;
340
+ }, z.core.$strict>], "page">;
341
+ }, z.core.$strip>, z.ZodObject<{
342
+ type: z.ZodLiteral<"copy_text">;
343
+ args: z.ZodObject<{
344
+ text: z.ZodString;
345
+ }, z.core.$strict>;
346
+ }, z.core.$strip>], "type">;
347
+ text: z.ZodObject<{
348
+ content: z.ZodString;
349
+ format: z.ZodPipe<z.ZodEnum<{
350
+ "": "";
351
+ markdown: "markdown";
352
+ html: "html";
353
+ plaintext: "plaintext";
354
+ }>, z.ZodTransform<"markdown" | "html" | "plaintext", "" | "markdown" | "html" | "plaintext">>;
355
+ }, z.core.$strip>;
356
+ }, z.core.$strip>>;
357
+ success_popup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
358
+ layout: z.ZodOptional<z.ZodEnum<{
359
+ "": "";
360
+ v1: "v1";
361
+ }>>;
362
+ title: z.ZodObject<{
363
+ format: z.ZodEnum<{
364
+ markdown: "markdown";
365
+ html: "html";
366
+ plaintext: "plaintext";
367
+ }>;
368
+ content: z.ZodString;
369
+ }, z.core.$strip>;
370
+ description: z.ZodObject<{
371
+ format: z.ZodEnum<{
372
+ markdown: "markdown";
373
+ html: "html";
374
+ plaintext: "plaintext";
375
+ }>;
376
+ content: z.ZodString;
377
+ }, z.core.$strip>;
378
+ hero: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
379
+ type: z.ZodLiteral<"image">;
380
+ image: z.ZodObject<{
381
+ default: z.ZodObject<{
382
+ src: z.ZodString;
383
+ sha256: z.ZodString;
384
+ }, z.core.$strip>;
385
+ dark: z.ZodOptional<z.ZodNullable<z.ZodObject<{
386
+ src: z.ZodString;
387
+ sha256: z.ZodString;
388
+ }, z.core.$strip>>>;
389
+ }, z.core.$strip>;
390
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
391
+ }, z.core.$strip>, z.ZodObject<{
392
+ type: z.ZodLiteral<"video">;
393
+ video: z.ZodObject<{
394
+ src: z.ZodObject<{
395
+ src: z.ZodString;
396
+ sha256: z.ZodString;
397
+ }, z.core.$strip>;
398
+ fallback: z.ZodObject<{
399
+ src: z.ZodString;
400
+ sha256: z.ZodString;
401
+ }, z.core.$strip>;
402
+ }, z.core.$strip>;
403
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
404
+ }, z.core.$strip>, z.ZodObject<{
405
+ type: z.ZodLiteral<"bundle">;
406
+ bundle: z.ZodObject<{
407
+ bundle: z.ZodObject<{
408
+ src: z.ZodString;
409
+ sha256: z.ZodString;
410
+ }, z.core.$strip>;
411
+ entry: z.ZodString;
412
+ fallback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
413
+ src: z.ZodString;
414
+ sha256: z.ZodString;
415
+ }, z.core.$strip>>>;
416
+ }, z.core.$strip>;
417
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
418
+ }, z.core.$strip>], "type">>>;
419
+ buttons: z.ZodArray<z.ZodObject<{
420
+ text: z.ZodObject<{
421
+ format: z.ZodEnum<{
422
+ markdown: "markdown";
423
+ html: "html";
424
+ plaintext: "plaintext";
425
+ }>;
426
+ content: z.ZodString;
427
+ }, z.core.$strip>;
428
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
429
+ type: z.ZodLiteral<"close">;
430
+ }, z.core.$strip>, z.ZodObject<{
431
+ type: z.ZodLiteral<"open_url">;
432
+ args: z.ZodObject<{
433
+ url: z.ZodString;
434
+ }, z.core.$strip>;
435
+ }, z.core.$strip>, z.ZodObject<{
436
+ type: z.ZodLiteral<"claim_dcode_plan">;
437
+ args: z.ZodObject<{
438
+ plan_id: z.ZodString;
439
+ }, z.core.$strip>;
440
+ }, z.core.$strip>, z.ZodObject<{
441
+ type: z.ZodLiteral<"navigate">;
442
+ args: z.ZodDiscriminatedUnion<[z.ZodObject<{
443
+ page: z.ZodLiteral<"upgrade">;
444
+ }, z.core.$strict>, z.ZodObject<{
445
+ page: z.ZodLiteral<"rewards">;
446
+ }, z.core.$strict>, z.ZodObject<{
447
+ page: z.ZodLiteral<"settings">;
448
+ section: z.ZodOptional<z.ZodEnum<{
449
+ subagents: "subagents";
450
+ usage: "usage";
451
+ models: "models";
452
+ skills: "skills";
453
+ hooks: "hooks";
454
+ browser: "browser";
455
+ mcp: "mcp";
456
+ memory: "memory";
457
+ plugins: "plugins";
458
+ commands: "commands";
459
+ general: "general";
460
+ appearance: "appearance";
461
+ computer_use: "computer_use";
462
+ }>>;
463
+ provider_id: z.ZodOptional<z.ZodString>;
464
+ }, z.core.$strict>, z.ZodObject<{
465
+ page: z.ZodLiteral<"plugin_marketplace">;
466
+ plugin_id: z.ZodOptional<z.ZodString>;
467
+ }, z.core.$strict>], "page">;
468
+ }, z.core.$strip>, z.ZodObject<{
469
+ type: z.ZodLiteral<"copy_text">;
470
+ args: z.ZodObject<{
471
+ text: z.ZodString;
472
+ }, z.core.$strict>;
473
+ }, z.core.$strip>], "type">;
474
+ theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
475
+ variant: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
476
+ "": "";
477
+ default: "default";
478
+ link: "link";
479
+ outline: "outline";
480
+ secondary: "secondary";
481
+ ghost: "ghost";
482
+ destructive: "destructive";
483
+ warning: "warning";
484
+ }>>, z.ZodTransform<"default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning", "" | "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning" | undefined>>;
485
+ class: z.ZodOptional<z.ZodString>;
486
+ style: z.ZodOptional<z.ZodString>;
487
+ }, z.core.$strip>>>;
488
+ }, z.core.$strip>>;
489
+ }, z.core.$strip>>>;
490
+ }, z.core.$strip>;
491
+ campaign_id: z.ZodString;
492
+ priority: z.ZodNumber;
493
+ }, z.core.$strip>, z.ZodObject<{
494
+ resource_position: z.ZodLiteral<"popup">;
495
+ popup: z.ZodObject<{
496
+ layout: z.ZodOptional<z.ZodEnum<{
497
+ "": "";
498
+ v1: "v1";
499
+ }>>;
500
+ title: z.ZodObject<{
501
+ format: z.ZodEnum<{
502
+ markdown: "markdown";
503
+ html: "html";
504
+ plaintext: "plaintext";
505
+ }>;
506
+ content: z.ZodString;
507
+ }, z.core.$strip>;
508
+ description: z.ZodObject<{
509
+ format: z.ZodEnum<{
510
+ markdown: "markdown";
511
+ html: "html";
512
+ plaintext: "plaintext";
513
+ }>;
514
+ content: z.ZodString;
515
+ }, z.core.$strip>;
516
+ hero: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
517
+ type: z.ZodLiteral<"image">;
518
+ image: z.ZodObject<{
519
+ default: z.ZodObject<{
520
+ src: z.ZodString;
521
+ sha256: z.ZodString;
522
+ }, z.core.$strip>;
523
+ dark: z.ZodOptional<z.ZodNullable<z.ZodObject<{
524
+ src: z.ZodString;
525
+ sha256: z.ZodString;
526
+ }, z.core.$strip>>>;
527
+ }, z.core.$strip>;
528
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
529
+ }, z.core.$strip>, z.ZodObject<{
530
+ type: z.ZodLiteral<"video">;
531
+ video: z.ZodObject<{
532
+ src: z.ZodObject<{
533
+ src: z.ZodString;
534
+ sha256: z.ZodString;
535
+ }, z.core.$strip>;
536
+ fallback: z.ZodObject<{
537
+ src: z.ZodString;
538
+ sha256: z.ZodString;
539
+ }, z.core.$strip>;
540
+ }, z.core.$strip>;
541
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
542
+ }, z.core.$strip>, z.ZodObject<{
543
+ type: z.ZodLiteral<"bundle">;
544
+ bundle: z.ZodObject<{
545
+ bundle: z.ZodObject<{
546
+ src: z.ZodString;
547
+ sha256: z.ZodString;
548
+ }, z.core.$strip>;
549
+ entry: z.ZodString;
550
+ fallback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
551
+ src: z.ZodString;
552
+ sha256: z.ZodString;
553
+ }, z.core.$strip>>>;
554
+ }, z.core.$strip>;
555
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
556
+ }, z.core.$strip>], "type">>>;
557
+ buttons: z.ZodArray<z.ZodObject<{
558
+ text: z.ZodObject<{
559
+ format: z.ZodEnum<{
560
+ markdown: "markdown";
561
+ html: "html";
562
+ plaintext: "plaintext";
563
+ }>;
564
+ content: z.ZodString;
565
+ }, z.core.$strip>;
566
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
567
+ type: z.ZodLiteral<"close">;
568
+ }, z.core.$strip>, z.ZodObject<{
569
+ type: z.ZodLiteral<"open_url">;
570
+ args: z.ZodObject<{
571
+ url: z.ZodString;
572
+ }, z.core.$strip>;
573
+ }, z.core.$strip>, z.ZodObject<{
574
+ type: z.ZodLiteral<"claim_dcode_plan">;
575
+ args: z.ZodObject<{
576
+ plan_id: z.ZodString;
577
+ }, z.core.$strip>;
578
+ }, z.core.$strip>, z.ZodObject<{
579
+ type: z.ZodLiteral<"navigate">;
580
+ args: z.ZodDiscriminatedUnion<[z.ZodObject<{
581
+ page: z.ZodLiteral<"upgrade">;
582
+ }, z.core.$strict>, z.ZodObject<{
583
+ page: z.ZodLiteral<"rewards">;
584
+ }, z.core.$strict>, z.ZodObject<{
585
+ page: z.ZodLiteral<"settings">;
586
+ section: z.ZodOptional<z.ZodEnum<{
587
+ subagents: "subagents";
588
+ usage: "usage";
589
+ models: "models";
590
+ skills: "skills";
591
+ hooks: "hooks";
592
+ browser: "browser";
593
+ mcp: "mcp";
594
+ memory: "memory";
595
+ plugins: "plugins";
596
+ commands: "commands";
597
+ general: "general";
598
+ appearance: "appearance";
599
+ computer_use: "computer_use";
600
+ }>>;
601
+ provider_id: z.ZodOptional<z.ZodString>;
602
+ }, z.core.$strict>, z.ZodObject<{
603
+ page: z.ZodLiteral<"plugin_marketplace">;
604
+ plugin_id: z.ZodOptional<z.ZodString>;
605
+ }, z.core.$strict>], "page">;
606
+ }, z.core.$strip>, z.ZodObject<{
607
+ type: z.ZodLiteral<"copy_text">;
608
+ args: z.ZodObject<{
609
+ text: z.ZodString;
610
+ }, z.core.$strict>;
611
+ }, z.core.$strip>], "type">;
612
+ theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
613
+ variant: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
614
+ "": "";
615
+ default: "default";
616
+ link: "link";
617
+ outline: "outline";
618
+ secondary: "secondary";
619
+ ghost: "ghost";
620
+ destructive: "destructive";
621
+ warning: "warning";
622
+ }>>, z.ZodTransform<"default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning", "" | "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning" | undefined>>;
623
+ class: z.ZodOptional<z.ZodString>;
624
+ style: z.ZodOptional<z.ZodString>;
625
+ }, z.core.$strip>>>;
626
+ }, z.core.$strip>>;
627
+ }, z.core.$strip>;
628
+ campaign_id: z.ZodString;
629
+ priority: z.ZodNumber;
630
+ }, z.core.$strip>], "resource_position">;
631
+ export type MarketingAsset = z.infer<typeof marketingAssetSchema>;
632
+ export type MarketingAction = z.infer<typeof marketingActionSchema>;
633
+ export type MarketingPopup = z.infer<typeof marketingPopupSchema>;
634
+ export type MarketingVisual = z.infer<typeof marketingVisualSchema>;
635
+ export type MarketingDelivery = z.infer<typeof marketingDeliverySchema>;
636
+ export type MarketingBannerDelivery = Extract<MarketingDelivery, {
637
+ resource_position: "banner";
638
+ }>;
639
+ export type MarketingPopupDelivery = Extract<MarketingDelivery, {
640
+ resource_position: "popup";
641
+ }>;
642
+ export type MarketingTouchSnapshot = ReturnType<typeof parseMarketingTouchResponse>;
643
+ /** 单条坏投放不影响其他资源位;外层失败不能伪装成成功空结果。 */
644
+ export declare function parseMarketingTouchResponse(input: unknown): {
645
+ serverTime: number;
646
+ language: "en-US" | "zh-CN";
647
+ deliveries: ({
648
+ resource_position: "banner";
649
+ banner: {
650
+ background: {
651
+ type: "image";
652
+ image: {
653
+ default: {
654
+ src: string;
655
+ sha256: string;
656
+ };
657
+ dark?: {
658
+ src: string;
659
+ sha256: string;
660
+ } | null | undefined;
661
+ };
662
+ args?: Record<string, unknown> | undefined;
663
+ } | {
664
+ type: "video";
665
+ video: {
666
+ src: {
667
+ src: string;
668
+ sha256: string;
669
+ };
670
+ fallback: {
671
+ src: string;
672
+ sha256: string;
673
+ };
674
+ };
675
+ args?: Record<string, unknown> | undefined;
676
+ } | {
677
+ type: "bundle";
678
+ bundle: {
679
+ bundle: {
680
+ src: string;
681
+ sha256: string;
682
+ };
683
+ entry: string;
684
+ fallback?: {
685
+ src: string;
686
+ sha256: string;
687
+ } | null | undefined;
688
+ };
689
+ args?: Record<string, unknown> | undefined;
690
+ };
691
+ buttons: {
692
+ action: {
693
+ type: "close";
694
+ } | {
695
+ type: "open_url";
696
+ args: {
697
+ url: string;
698
+ };
699
+ } | {
700
+ type: "claim_dcode_plan";
701
+ args: {
702
+ plan_id: string;
703
+ };
704
+ } | {
705
+ type: "navigate";
706
+ args: {
707
+ page: "settings";
708
+ section?: "subagents" | "usage" | "models" | "skills" | "hooks" | "browser" | "mcp" | "memory" | "plugins" | "commands" | "general" | "appearance" | "computer_use" | undefined;
709
+ provider_id?: string | undefined;
710
+ } | {
711
+ page: "upgrade";
712
+ } | {
713
+ page: "rewards";
714
+ } | {
715
+ page: "plugin_marketplace";
716
+ plugin_id?: string | undefined;
717
+ };
718
+ } | {
719
+ type: "copy_text";
720
+ args: {
721
+ text: string;
722
+ };
723
+ };
724
+ text: {
725
+ content: string;
726
+ format: "markdown" | "html" | "plaintext";
727
+ };
728
+ }[];
729
+ layout?: "" | "v1" | undefined;
730
+ success_popup?: {
731
+ title: {
732
+ format: "markdown" | "html" | "plaintext";
733
+ content: string;
734
+ };
735
+ description: {
736
+ format: "markdown" | "html" | "plaintext";
737
+ content: string;
738
+ };
739
+ buttons: {
740
+ text: {
741
+ format: "markdown" | "html" | "plaintext";
742
+ content: string;
743
+ };
744
+ action: {
745
+ type: "close";
746
+ } | {
747
+ type: "open_url";
748
+ args: {
749
+ url: string;
750
+ };
751
+ } | {
752
+ type: "claim_dcode_plan";
753
+ args: {
754
+ plan_id: string;
755
+ };
756
+ } | {
757
+ type: "navigate";
758
+ args: {
759
+ page: "settings";
760
+ section?: "subagents" | "usage" | "models" | "skills" | "hooks" | "browser" | "mcp" | "memory" | "plugins" | "commands" | "general" | "appearance" | "computer_use" | undefined;
761
+ provider_id?: string | undefined;
762
+ } | {
763
+ page: "upgrade";
764
+ } | {
765
+ page: "rewards";
766
+ } | {
767
+ page: "plugin_marketplace";
768
+ plugin_id?: string | undefined;
769
+ };
770
+ } | {
771
+ type: "copy_text";
772
+ args: {
773
+ text: string;
774
+ };
775
+ };
776
+ theme?: {
777
+ variant: "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning";
778
+ class?: string | undefined;
779
+ style?: string | undefined;
780
+ } | null | undefined;
781
+ }[];
782
+ layout?: "" | "v1" | undefined;
783
+ hero?: {
784
+ type: "image";
785
+ image: {
786
+ default: {
787
+ src: string;
788
+ sha256: string;
789
+ };
790
+ dark?: {
791
+ src: string;
792
+ sha256: string;
793
+ } | null | undefined;
794
+ };
795
+ args?: Record<string, unknown> | undefined;
796
+ } | {
797
+ type: "video";
798
+ video: {
799
+ src: {
800
+ src: string;
801
+ sha256: string;
802
+ };
803
+ fallback: {
804
+ src: string;
805
+ sha256: string;
806
+ };
807
+ };
808
+ args?: Record<string, unknown> | undefined;
809
+ } | {
810
+ type: "bundle";
811
+ bundle: {
812
+ bundle: {
813
+ src: string;
814
+ sha256: string;
815
+ };
816
+ entry: string;
817
+ fallback?: {
818
+ src: string;
819
+ sha256: string;
820
+ } | null | undefined;
821
+ };
822
+ args?: Record<string, unknown> | undefined;
823
+ } | null | undefined;
824
+ } | null | undefined;
825
+ };
826
+ campaign_id: string;
827
+ priority: number;
828
+ } | {
829
+ resource_position: "popup";
830
+ popup: {
831
+ title: {
832
+ format: "markdown" | "html" | "plaintext";
833
+ content: string;
834
+ };
835
+ description: {
836
+ format: "markdown" | "html" | "plaintext";
837
+ content: string;
838
+ };
839
+ buttons: {
840
+ text: {
841
+ format: "markdown" | "html" | "plaintext";
842
+ content: string;
843
+ };
844
+ action: {
845
+ type: "close";
846
+ } | {
847
+ type: "open_url";
848
+ args: {
849
+ url: string;
850
+ };
851
+ } | {
852
+ type: "claim_dcode_plan";
853
+ args: {
854
+ plan_id: string;
855
+ };
856
+ } | {
857
+ type: "navigate";
858
+ args: {
859
+ page: "settings";
860
+ section?: "subagents" | "usage" | "models" | "skills" | "hooks" | "browser" | "mcp" | "memory" | "plugins" | "commands" | "general" | "appearance" | "computer_use" | undefined;
861
+ provider_id?: string | undefined;
862
+ } | {
863
+ page: "upgrade";
864
+ } | {
865
+ page: "rewards";
866
+ } | {
867
+ page: "plugin_marketplace";
868
+ plugin_id?: string | undefined;
869
+ };
870
+ } | {
871
+ type: "copy_text";
872
+ args: {
873
+ text: string;
874
+ };
875
+ };
876
+ theme?: {
877
+ variant: "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning";
878
+ class?: string | undefined;
879
+ style?: string | undefined;
880
+ } | null | undefined;
881
+ }[];
882
+ layout?: "" | "v1" | undefined;
883
+ hero?: {
884
+ type: "image";
885
+ image: {
886
+ default: {
887
+ src: string;
888
+ sha256: string;
889
+ };
890
+ dark?: {
891
+ src: string;
892
+ sha256: string;
893
+ } | null | undefined;
894
+ };
895
+ args?: Record<string, unknown> | undefined;
896
+ } | {
897
+ type: "video";
898
+ video: {
899
+ src: {
900
+ src: string;
901
+ sha256: string;
902
+ };
903
+ fallback: {
904
+ src: string;
905
+ sha256: string;
906
+ };
907
+ };
908
+ args?: Record<string, unknown> | undefined;
909
+ } | {
910
+ type: "bundle";
911
+ bundle: {
912
+ bundle: {
913
+ src: string;
914
+ sha256: string;
915
+ };
916
+ entry: string;
917
+ fallback?: {
918
+ src: string;
919
+ sha256: string;
920
+ } | null | undefined;
921
+ };
922
+ args?: Record<string, unknown> | undefined;
923
+ } | null | undefined;
924
+ };
925
+ campaign_id: string;
926
+ priority: number;
927
+ })[];
928
+ rejectedCount: number;
929
+ };
930
+ //# sourceMappingURL=marketingTouch.d.ts.map