@paperclipai/shared 2026.824.1 → 2026.825.0-beta.1

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 (276) hide show
  1. package/dist/adapter-auth-check-code.d.ts +13 -0
  2. package/dist/adapter-auth-check-code.d.ts.map +1 -0
  3. package/dist/adapter-auth-check-code.js +13 -0
  4. package/dist/adapter-auth-check-code.js.map +1 -0
  5. package/dist/adapter-auth-check-code.test.d.ts +2 -0
  6. package/dist/adapter-auth-check-code.test.d.ts.map +1 -0
  7. package/dist/adapter-auth-check-code.test.js +8 -0
  8. package/dist/adapter-auth-check-code.test.js.map +1 -0
  9. package/dist/company-import-transfer.d.ts +3 -37
  10. package/dist/company-import-transfer.d.ts.map +1 -1
  11. package/dist/config-schema.d.ts +130 -1570
  12. package/dist/config-schema.d.ts.map +1 -1
  13. package/dist/config-schema.js +3 -7
  14. package/dist/config-schema.js.map +1 -1
  15. package/dist/constants.d.ts +3 -2
  16. package/dist/constants.d.ts.map +1 -1
  17. package/dist/constants.js +3 -0
  18. package/dist/constants.js.map +1 -1
  19. package/dist/environment-support.d.ts +1 -1
  20. package/dist/environment-support.d.ts.map +1 -1
  21. package/dist/environment-support.js +3 -2
  22. package/dist/environment-support.js.map +1 -1
  23. package/dist/environment-support.test.js +19 -0
  24. package/dist/environment-support.test.js.map +1 -1
  25. package/dist/feature-catalog.d.ts +7 -17
  26. package/dist/feature-catalog.d.ts.map +1 -1
  27. package/dist/feature-catalog.js +9 -2
  28. package/dist/feature-catalog.js.map +1 -1
  29. package/dist/frontmatter.d.ts +3 -13
  30. package/dist/frontmatter.d.ts.map +1 -1
  31. package/dist/frontmatter.js +2 -2
  32. package/dist/frontmatter.js.map +1 -1
  33. package/dist/index.d.ts +7 -3
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +6 -2
  36. package/dist/index.js.map +1 -1
  37. package/dist/markdown-work-products.d.ts +26 -0
  38. package/dist/markdown-work-products.d.ts.map +1 -0
  39. package/dist/markdown-work-products.js +70 -0
  40. package/dist/markdown-work-products.js.map +1 -0
  41. package/dist/markdown-work-products.test.d.ts +2 -0
  42. package/dist/markdown-work-products.test.d.ts.map +1 -0
  43. package/dist/markdown-work-products.test.js +122 -0
  44. package/dist/markdown-work-products.test.js.map +1 -0
  45. package/dist/node-version.d.ts +6 -0
  46. package/dist/node-version.d.ts.map +1 -0
  47. package/dist/node-version.js +46 -0
  48. package/dist/node-version.js.map +1 -0
  49. package/dist/runtime-exposure/loopback-bind.d.ts +2 -2
  50. package/dist/runtime-exposure/loopback-bind.d.ts.map +1 -1
  51. package/dist/runtime-exposure/loopback-bind.js +3 -3
  52. package/dist/runtime-exposure/loopback-bind.js.map +1 -1
  53. package/dist/runtime-exposure/loopback-bind.test.js +11 -10
  54. package/dist/runtime-exposure/loopback-bind.test.js.map +1 -1
  55. package/dist/settings-visibility.d.ts +62 -0
  56. package/dist/settings-visibility.d.ts.map +1 -0
  57. package/dist/settings-visibility.js +102 -0
  58. package/dist/settings-visibility.js.map +1 -0
  59. package/dist/settings-visibility.test.d.ts +2 -0
  60. package/dist/settings-visibility.test.d.ts.map +1 -0
  61. package/dist/settings-visibility.test.js +51 -0
  62. package/dist/settings-visibility.test.js.map +1 -0
  63. package/dist/telemetry/generated/paperclip-telemetry.d.ts +4 -2
  64. package/dist/telemetry/generated/paperclip-telemetry.d.ts.map +1 -1
  65. package/dist/telemetry/generated/paperclip-telemetry.js +2 -0
  66. package/dist/telemetry/generated/paperclip-telemetry.js.map +1 -1
  67. package/dist/types/environment.d.ts +20 -0
  68. package/dist/types/environment.d.ts.map +1 -1
  69. package/dist/types/index.d.ts +5 -3
  70. package/dist/types/index.d.ts.map +1 -1
  71. package/dist/types/index.js +1 -0
  72. package/dist/types/index.js.map +1 -1
  73. package/dist/types/instance.d.ts +7 -0
  74. package/dist/types/instance.d.ts.map +1 -1
  75. package/dist/types/instance.js.map +1 -1
  76. package/dist/types/issue.d.ts +19 -0
  77. package/dist/types/issue.d.ts.map +1 -1
  78. package/dist/types/plugin.d.ts +36 -4
  79. package/dist/types/plugin.d.ts.map +1 -1
  80. package/dist/types/workspace-operation.d.ts +1 -1
  81. package/dist/types/workspace-operation.d.ts.map +1 -1
  82. package/dist/types/workspace-readiness.d.ts +62 -0
  83. package/dist/types/workspace-readiness.d.ts.map +1 -0
  84. package/dist/types/workspace-readiness.js +28 -0
  85. package/dist/types/workspace-readiness.js.map +1 -0
  86. package/dist/types/workspace-runtime.d.ts +6 -8
  87. package/dist/types/workspace-runtime.d.ts.map +1 -1
  88. package/dist/validators/access.d.ts +143 -277
  89. package/dist/validators/access.d.ts.map +1 -1
  90. package/dist/validators/access.js +5 -5
  91. package/dist/validators/adapter-auth-session.d.ts +50 -97
  92. package/dist/validators/adapter-auth-session.d.ts.map +1 -1
  93. package/dist/validators/adapter-auth-session.js +3 -3
  94. package/dist/validators/adapter-registry.d.ts +8 -40
  95. package/dist/validators/adapter-registry.d.ts.map +1 -1
  96. package/dist/validators/adapter-registry.js +1 -1
  97. package/dist/validators/adapter-registry.js.map +1 -1
  98. package/dist/validators/adapter-skills.d.ts +71 -170
  99. package/dist/validators/adapter-skills.d.ts.map +1 -1
  100. package/dist/validators/adapter-skills.js +3 -3
  101. package/dist/validators/agent.d.ts +412 -4798
  102. package/dist/validators/agent.d.ts.map +1 -1
  103. package/dist/validators/agent.js +13 -13
  104. package/dist/validators/agent.js.map +1 -1
  105. package/dist/validators/app-definition.d.ts +270 -2315
  106. package/dist/validators/app-definition.d.ts.map +1 -1
  107. package/dist/validators/approval.d.ts +15 -36
  108. package/dist/validators/approval.d.ts.map +1 -1
  109. package/dist/validators/approval.js +2 -2
  110. package/dist/validators/artifact.d.ts +162 -893
  111. package/dist/validators/artifact.d.ts.map +1 -1
  112. package/dist/validators/artifact.js +6 -6
  113. package/dist/validators/asset.d.ts +1 -5
  114. package/dist/validators/asset.d.ts.map +1 -1
  115. package/dist/validators/budget.d.ts +19 -43
  116. package/dist/validators/budget.d.ts.map +1 -1
  117. package/dist/validators/budget.js +1 -1
  118. package/dist/validators/claude-setup-token-session.d.ts +61 -181
  119. package/dist/validators/claude-setup-token-session.d.ts.map +1 -1
  120. package/dist/validators/claude-setup-token-session.js +4 -4
  121. package/dist/validators/company-portability.d.ts +318 -3616
  122. package/dist/validators/company-portability.d.ts.map +1 -1
  123. package/dist/validators/company-portability.js +2 -2
  124. package/dist/validators/company-skill.d.ts +722 -2934
  125. package/dist/validators/company-skill.d.ts.map +1 -1
  126. package/dist/validators/company-skill.js +63 -63
  127. package/dist/validators/company.d.ts +162 -289
  128. package/dist/validators/company.d.ts.map +1 -1
  129. package/dist/validators/company.js +4 -3
  130. package/dist/validators/company.js.map +1 -1
  131. package/dist/validators/cost.d.ts +29 -57
  132. package/dist/validators/cost.d.ts.map +1 -1
  133. package/dist/validators/cost.js +5 -5
  134. package/dist/validators/decision-queue.d.ts +60 -108
  135. package/dist/validators/decision-queue.d.ts.map +1 -1
  136. package/dist/validators/decision.d.ts +230 -1884
  137. package/dist/validators/decision.d.ts.map +1 -1
  138. package/dist/validators/decision.js +9 -9
  139. package/dist/validators/document-annotation.d.ts +37 -203
  140. package/dist/validators/document-annotation.d.ts.map +1 -1
  141. package/dist/validators/document-annotation.js +3 -3
  142. package/dist/validators/environment-custom-images.d.ts +79 -173
  143. package/dist/validators/environment-custom-images.d.ts.map +1 -1
  144. package/dist/validators/environment-custom-images.js +14 -11
  145. package/dist/validators/environment-custom-images.js.map +1 -1
  146. package/dist/validators/environment.d.ts +82 -259
  147. package/dist/validators/environment.d.ts.map +1 -1
  148. package/dist/validators/execution-workspace.d.ts +173 -513
  149. package/dist/validators/execution-workspace.d.ts.map +1 -1
  150. package/dist/validators/execution-workspace.js +13 -13
  151. package/dist/validators/execution-workspace.js.map +1 -1
  152. package/dist/validators/external-object.d.ts +55 -27
  153. package/dist/validators/external-object.d.ts.map +1 -1
  154. package/dist/validators/external-object.js +1 -1
  155. package/dist/validators/external-object.js.map +1 -1
  156. package/dist/validators/feedback.d.ts +28 -19
  157. package/dist/validators/feedback.d.ts.map +1 -1
  158. package/dist/validators/feedback.js +1 -1
  159. package/dist/validators/finance.d.ts +69 -74
  160. package/dist/validators/finance.d.ts.map +1 -1
  161. package/dist/validators/finance.js +6 -6
  162. package/dist/validators/folder.d.ts +44 -205
  163. package/dist/validators/folder.d.ts.map +1 -1
  164. package/dist/validators/folder.js +7 -7
  165. package/dist/validators/goal.d.ts +26 -34
  166. package/dist/validators/goal.d.ts.map +1 -1
  167. package/dist/validators/goal.js +4 -3
  168. package/dist/validators/goal.js.map +1 -1
  169. package/dist/validators/inbox-agent-policy.d.ts +12 -16
  170. package/dist/validators/inbox-agent-policy.d.ts.map +1 -1
  171. package/dist/validators/inbox-agent-policy.js +1 -1
  172. package/dist/validators/index.d.ts +2 -2
  173. package/dist/validators/index.d.ts.map +1 -1
  174. package/dist/validators/index.js +2 -2
  175. package/dist/validators/index.js.map +1 -1
  176. package/dist/validators/instance.d.ts +50 -563
  177. package/dist/validators/instance.d.ts.map +1 -1
  178. package/dist/validators/instance.js +16 -6
  179. package/dist/validators/instance.js.map +1 -1
  180. package/dist/validators/instance.test.js +13 -0
  181. package/dist/validators/instance.test.js.map +1 -1
  182. package/dist/validators/issue-tree-control.d.ts +41 -80
  183. package/dist/validators/issue-tree-control.d.ts.map +1 -1
  184. package/dist/validators/issue.d.ts +1772 -12251
  185. package/dist/validators/issue.d.ts.map +1 -1
  186. package/dist/validators/issue.js +150 -84
  187. package/dist/validators/issue.js.map +1 -1
  188. package/dist/validators/onboarding-seed.d.ts +3 -37
  189. package/dist/validators/onboarding-seed.d.ts.map +1 -1
  190. package/dist/validators/partial.d.ts +4 -0
  191. package/dist/validators/partial.d.ts.map +1 -0
  192. package/dist/validators/partial.js +35 -0
  193. package/dist/validators/partial.js.map +1 -0
  194. package/dist/validators/pipeline.d.ts +218 -3882
  195. package/dist/validators/pipeline.d.ts.map +1 -1
  196. package/dist/validators/pipeline.js +11 -11
  197. package/dist/validators/plugin.d.ts +725 -2597
  198. package/dist/validators/plugin.d.ts.map +1 -1
  199. package/dist/validators/plugin.js +38 -6
  200. package/dist/validators/plugin.js.map +1 -1
  201. package/dist/validators/plugin.test.js +54 -10
  202. package/dist/validators/plugin.test.js.map +1 -1
  203. package/dist/validators/project.d.ts +345 -2406
  204. package/dist/validators/project.d.ts.map +1 -1
  205. package/dist/validators/project.js +8 -7
  206. package/dist/validators/project.js.map +1 -1
  207. package/dist/validators/resource-memberships.d.ts +11 -27
  208. package/dist/validators/resource-memberships.d.ts.map +1 -1
  209. package/dist/validators/routine.d.ts +362 -1297
  210. package/dist/validators/routine.d.ts.map +1 -1
  211. package/dist/validators/routine.js +21 -20
  212. package/dist/validators/routine.js.map +1 -1
  213. package/dist/validators/runtime-exposure.d.ts +31 -80
  214. package/dist/validators/runtime-exposure.d.ts.map +1 -1
  215. package/dist/validators/search.d.ts +25 -93
  216. package/dist/validators/search.d.ts.map +1 -1
  217. package/dist/validators/secret.d.ts +174 -655
  218. package/dist/validators/secret.d.ts.map +1 -1
  219. package/dist/validators/secret.js +14 -14
  220. package/dist/validators/secret.js.map +1 -1
  221. package/dist/validators/sidebar-preferences.d.ts +5 -15
  222. package/dist/validators/sidebar-preferences.d.ts.map +1 -1
  223. package/dist/validators/sidebar-preferences.js +1 -1
  224. package/dist/validators/skill-policy.d.ts +184 -561
  225. package/dist/validators/skill-policy.d.ts.map +1 -1
  226. package/dist/validators/skill-policy.js +4 -4
  227. package/dist/validators/smoke-lab.d.ts +53 -37
  228. package/dist/validators/smoke-lab.d.ts.map +1 -1
  229. package/dist/validators/status-card.d.ts +139 -994
  230. package/dist/validators/status-card.d.ts.map +1 -1
  231. package/dist/validators/status-card.js +21 -21
  232. package/dist/validators/status-card.js.map +1 -1
  233. package/dist/validators/summary-slot.d.ts +28 -50
  234. package/dist/validators/summary-slot.d.ts.map +1 -1
  235. package/dist/validators/summary-slot.js +3 -3
  236. package/dist/validators/teams-catalog.d.ts +209 -472
  237. package/dist/validators/teams-catalog.d.ts.map +1 -1
  238. package/dist/validators/text.d.ts +1 -1
  239. package/dist/validators/text.d.ts.map +1 -1
  240. package/dist/validators/tool-access.d.ts +1088 -4670
  241. package/dist/validators/tool-access.d.ts.map +1 -1
  242. package/dist/validators/tool-access.js +96 -95
  243. package/dist/validators/tool-access.js.map +1 -1
  244. package/dist/validators/trust-policy.d.ts +62 -358
  245. package/dist/validators/trust-policy.d.ts.map +1 -1
  246. package/dist/validators/trust-policy.js +12 -12
  247. package/dist/validators/work-product.d.ts +110 -536
  248. package/dist/validators/work-product.d.ts.map +1 -1
  249. package/dist/validators/work-product.js +7 -6
  250. package/dist/validators/work-product.js.map +1 -1
  251. package/dist/validators/workspace-file-resource.d.ts +163 -618
  252. package/dist/validators/workspace-file-resource.d.ts.map +1 -1
  253. package/dist/validators/workspace-file-resource.js +11 -11
  254. package/dist/workspace-commands.d.ts +4 -2
  255. package/dist/workspace-commands.d.ts.map +1 -1
  256. package/dist/workspace-commands.js +9 -1
  257. package/dist/workspace-commands.js.map +1 -1
  258. package/dist/workspace-commands.test.js +45 -0
  259. package/dist/workspace-commands.test.js.map +1 -1
  260. package/dist/worktree-port-registry.d.ts +5 -0
  261. package/dist/worktree-port-registry.d.ts.map +1 -0
  262. package/dist/worktree-port-registry.js +382 -0
  263. package/dist/worktree-port-registry.js.map +1 -0
  264. package/dist/worktree-port-registry.test.d.ts +2 -0
  265. package/dist/worktree-port-registry.test.d.ts.map +1 -0
  266. package/dist/worktree-port-registry.test.js +118 -0
  267. package/dist/worktree-port-registry.test.js.map +1 -0
  268. package/dist/worktree-seed-source.d.ts +43 -0
  269. package/dist/worktree-seed-source.d.ts.map +1 -0
  270. package/dist/worktree-seed-source.js +180 -0
  271. package/dist/worktree-seed-source.js.map +1 -0
  272. package/dist/worktree-seed-source.test.d.ts +2 -0
  273. package/dist/worktree-seed-source.test.d.ts.map +1 -0
  274. package/dist/worktree-seed-source.test.js +166 -0
  275. package/dist/worktree-seed-source.test.js.map +1 -0
  276. package/package.json +6 -3
@@ -9,23 +9,13 @@ import { z } from "zod";
9
9
  *
10
10
  * @see PLUGIN_SPEC.md §10.1 — Manifest shape
11
11
  */
12
- export declare const jsonSchemaSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
12
+ export declare const jsonSchemaSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13
13
  export declare const pluginJobDeclarationSchema: z.ZodObject<{
14
14
  jobKey: z.ZodString;
15
15
  displayName: z.ZodString;
16
16
  description: z.ZodOptional<z.ZodString>;
17
- schedule: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
18
- }, "strip", z.ZodTypeAny, {
19
- displayName: string;
20
- jobKey: string;
21
- description?: string | undefined;
22
- schedule?: string | undefined;
23
- }, {
24
- displayName: string;
25
- jobKey: string;
26
- description?: string | undefined;
27
- schedule?: string | undefined;
28
- }>;
17
+ schedule: z.ZodOptional<z.ZodString>;
18
+ }, z.core.$strip>;
29
19
  export type PluginJobDeclarationInput = z.infer<typeof pluginJobDeclarationSchema>;
30
20
  /**
31
21
  * Validates a {@link PluginWebhookDeclaration} — a webhook endpoint declared
@@ -37,15 +27,7 @@ export declare const pluginWebhookDeclarationSchema: z.ZodObject<{
37
27
  endpointKey: z.ZodString;
38
28
  displayName: z.ZodString;
39
29
  description: z.ZodOptional<z.ZodString>;
40
- }, "strip", z.ZodTypeAny, {
41
- displayName: string;
42
- endpointKey: string;
43
- description?: string | undefined;
44
- }, {
45
- displayName: string;
46
- endpointKey: string;
47
- description?: string | undefined;
48
- }>;
30
+ }, z.core.$strip>;
49
31
  export type PluginWebhookDeclarationInput = z.infer<typeof pluginWebhookDeclarationSchema>;
50
32
  /**
51
33
  * Validates a {@link PluginToolDeclaration} — an agent tool contributed by the
@@ -58,34 +40,12 @@ export declare const pluginToolDeclarationSchema: z.ZodObject<{
58
40
  name: z.ZodString;
59
41
  displayName: z.ZodString;
60
42
  description: z.ZodString;
61
- parametersSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
62
- }, "strip", z.ZodTypeAny, {
63
- description: string;
64
- name: string;
65
- displayName: string;
66
- parametersSchema: Record<string, unknown>;
67
- }, {
68
- description: string;
69
- name: string;
70
- displayName: string;
71
- parametersSchema: Record<string, unknown>;
72
- }>;
73
- export declare const pluginEnvironmentTemplateConfigBindingSchema: z.ZodEffects<z.ZodObject<{
74
- field: z.ZodEffects<z.ZodString, string, string>;
75
- unsetFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
76
- }, "strict", z.ZodTypeAny, {
77
- field: string;
78
- unsetFields?: string[] | undefined;
79
- }, {
80
- field: string;
81
- unsetFields?: string[] | undefined;
82
- }>, {
83
- field: string;
84
- unsetFields?: string[] | undefined;
85
- }, {
86
- field: string;
87
- unsetFields?: string[] | undefined;
88
- }>;
43
+ parametersSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
44
+ }, z.core.$strip>;
45
+ export declare const pluginEnvironmentTemplateConfigBindingSchema: z.ZodObject<{
46
+ field: z.ZodString;
47
+ unsetFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ }, z.core.$strict>;
89
49
  export declare const sandboxProviderCapabilitiesSchema: z.ZodObject<{
90
50
  reusableLeases: z.ZodOptional<z.ZodBoolean>;
91
51
  nativeSyncIn: z.ZodOptional<z.ZodBoolean>;
@@ -93,25 +53,16 @@ export declare const sandboxProviderCapabilitiesSchema: z.ZodObject<{
93
53
  persistentProcessSessions: z.ZodOptional<z.ZodBoolean>;
94
54
  independentControlCommands: z.ZodOptional<z.ZodBoolean>;
95
55
  incrementalSessionOutput: z.ZodOptional<z.ZodBoolean>;
96
- }, "strict", z.ZodTypeAny, {
97
- reusableLeases?: boolean | undefined;
98
- nativeSyncIn?: boolean | undefined;
99
- nativeSyncOut?: boolean | undefined;
100
- persistentProcessSessions?: boolean | undefined;
101
- independentControlCommands?: boolean | undefined;
102
- incrementalSessionOutput?: boolean | undefined;
103
- }, {
104
- reusableLeases?: boolean | undefined;
105
- nativeSyncIn?: boolean | undefined;
106
- nativeSyncOut?: boolean | undefined;
107
- persistentProcessSessions?: boolean | undefined;
108
- independentControlCommands?: boolean | undefined;
109
- incrementalSessionOutput?: boolean | undefined;
110
- }>;
56
+ concurrentSyncOperations: z.ZodOptional<z.ZodBoolean>;
57
+ duplexCommandStream: z.ZodOptional<z.ZodBoolean>;
58
+ }, z.core.$strict>;
111
59
  export type SandboxProviderCapabilitiesInput = z.infer<typeof sandboxProviderCapabilitiesSchema>;
112
- export declare const pluginEnvironmentDriverDeclarationSchema: z.ZodObject<{
60
+ export declare const pluginEnvironmentDriverDeclarationSchema: z.ZodPipe<z.ZodObject<{
113
61
  driverKey: z.ZodString;
114
- kind: z.ZodOptional<z.ZodEnum<["environment_driver", "sandbox_provider"]>>;
62
+ kind: z.ZodOptional<z.ZodEnum<{
63
+ environment_driver: "environment_driver";
64
+ sandbox_provider: "sandbox_provider";
65
+ }>>;
115
66
  displayName: z.ZodString;
116
67
  description: z.ZodOptional<z.ZodString>;
117
68
  supportsReusableLeases: z.ZodOptional<z.ZodBoolean>;
@@ -122,51 +73,29 @@ export declare const pluginEnvironmentDriverDeclarationSchema: z.ZodObject<{
122
73
  persistentProcessSessions: z.ZodOptional<z.ZodBoolean>;
123
74
  independentControlCommands: z.ZodOptional<z.ZodBoolean>;
124
75
  incrementalSessionOutput: z.ZodOptional<z.ZodBoolean>;
125
- }, "strict", z.ZodTypeAny, {
126
- reusableLeases?: boolean | undefined;
127
- nativeSyncIn?: boolean | undefined;
128
- nativeSyncOut?: boolean | undefined;
129
- persistentProcessSessions?: boolean | undefined;
130
- independentControlCommands?: boolean | undefined;
131
- incrementalSessionOutput?: boolean | undefined;
132
- }, {
133
- reusableLeases?: boolean | undefined;
134
- nativeSyncIn?: boolean | undefined;
135
- nativeSyncOut?: boolean | undefined;
136
- persistentProcessSessions?: boolean | undefined;
137
- independentControlCommands?: boolean | undefined;
138
- incrementalSessionOutput?: boolean | undefined;
139
- }>>;
76
+ concurrentSyncOperations: z.ZodOptional<z.ZodBoolean>;
77
+ duplexCommandStream: z.ZodOptional<z.ZodBoolean>;
78
+ }, z.core.$strict>>;
140
79
  supportsInteractiveSetup: z.ZodOptional<z.ZodBoolean>;
141
- interactiveSetupConnectionTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
80
+ interactiveSetupConnectionTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
81
  supportsTemplateCapture: z.ZodOptional<z.ZodBoolean>;
143
82
  templateRefKind: z.ZodOptional<z.ZodString>;
144
- templateConfigBinding: z.ZodOptional<z.ZodEffects<z.ZodObject<{
145
- field: z.ZodEffects<z.ZodString, string, string>;
146
- unsetFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
147
- }, "strict", z.ZodTypeAny, {
148
- field: string;
149
- unsetFields?: string[] | undefined;
150
- }, {
151
- field: string;
152
- unsetFields?: string[] | undefined;
153
- }>, {
154
- field: string;
155
- unsetFields?: string[] | undefined;
156
- }, {
157
- field: string;
158
- unsetFields?: string[] | undefined;
159
- }>>;
160
- templateIdentityPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
+ templateConfigBinding: z.ZodOptional<z.ZodObject<{
84
+ field: z.ZodString;
85
+ unsetFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
+ }, z.core.$strict>>;
87
+ templateIdentityPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
88
  supportsTemplateDelete: z.ZodOptional<z.ZodBoolean>;
89
+ supportsLoginPty: z.ZodOptional<z.ZodBoolean>;
162
90
  supportsSetupTokenLogin: z.ZodOptional<z.ZodBoolean>;
163
- configSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
164
- }, "strip", z.ZodTypeAny, {
165
- displayName: string;
91
+ configSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
92
+ }, z.core.$strict>, z.ZodTransform<{
93
+ supportsLoginPty: boolean | undefined;
166
94
  driverKey: string;
95
+ displayName: string;
167
96
  configSchema: Record<string, unknown>;
168
- description?: string | undefined;
169
97
  kind?: "environment_driver" | "sandbox_provider" | undefined;
98
+ description?: string | undefined;
170
99
  supportsReusableLeases?: boolean | undefined;
171
100
  sandboxCapabilities?: {
172
101
  reusableLeases?: boolean | undefined;
@@ -175,6 +104,8 @@ export declare const pluginEnvironmentDriverDeclarationSchema: z.ZodObject<{
175
104
  persistentProcessSessions?: boolean | undefined;
176
105
  independentControlCommands?: boolean | undefined;
177
106
  incrementalSessionOutput?: boolean | undefined;
107
+ concurrentSyncOperations?: boolean | undefined;
108
+ duplexCommandStream?: boolean | undefined;
178
109
  } | undefined;
179
110
  supportsInteractiveSetup?: boolean | undefined;
180
111
  interactiveSetupConnectionTypes?: string[] | undefined;
@@ -186,13 +117,12 @@ export declare const pluginEnvironmentDriverDeclarationSchema: z.ZodObject<{
186
117
  } | undefined;
187
118
  templateIdentityPaths?: string[] | undefined;
188
119
  supportsTemplateDelete?: boolean | undefined;
189
- supportsSetupTokenLogin?: boolean | undefined;
190
120
  }, {
191
- displayName: string;
192
121
  driverKey: string;
122
+ displayName: string;
193
123
  configSchema: Record<string, unknown>;
194
- description?: string | undefined;
195
124
  kind?: "environment_driver" | "sandbox_provider" | undefined;
125
+ description?: string | undefined;
196
126
  supportsReusableLeases?: boolean | undefined;
197
127
  sandboxCapabilities?: {
198
128
  reusableLeases?: boolean | undefined;
@@ -201,6 +131,8 @@ export declare const pluginEnvironmentDriverDeclarationSchema: z.ZodObject<{
201
131
  persistentProcessSessions?: boolean | undefined;
202
132
  independentControlCommands?: boolean | undefined;
203
133
  incrementalSessionOutput?: boolean | undefined;
134
+ concurrentSyncOperations?: boolean | undefined;
135
+ duplexCommandStream?: boolean | undefined;
204
136
  } | undefined;
205
137
  supportsInteractiveSetup?: boolean | undefined;
206
138
  interactiveSetupConnectionTypes?: string[] | undefined;
@@ -212,8 +144,9 @@ export declare const pluginEnvironmentDriverDeclarationSchema: z.ZodObject<{
212
144
  } | undefined;
213
145
  templateIdentityPaths?: string[] | undefined;
214
146
  supportsTemplateDelete?: boolean | undefined;
147
+ supportsLoginPty?: boolean | undefined;
215
148
  supportsSetupTokenLogin?: boolean | undefined;
216
- }>;
149
+ }>>;
217
150
  export type PluginEnvironmentDriverDeclarationInput = z.infer<typeof pluginEnvironmentDriverDeclarationSchema>;
218
151
  export type PluginToolDeclarationInput = z.infer<typeof pluginToolDeclarationSchema>;
219
152
  export declare const pluginManagedAgentDeclarationSchema: z.ZodObject<{
@@ -224,92 +157,37 @@ export declare const pluginManagedAgentDeclarationSchema: z.ZodObject<{
224
157
  icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
158
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
159
  adapterType: z.ZodOptional<z.ZodString>;
227
- adapterPreference: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
160
+ adapterPreference: z.ZodOptional<z.ZodArray<z.ZodString>>;
228
161
  adapterConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
229
162
  runtimeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
230
163
  permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
231
- status: z.ZodOptional<z.ZodEnum<["idle", "paused"]>>;
164
+ status: z.ZodOptional<z.ZodEnum<{
165
+ paused: "paused";
166
+ idle: "idle";
167
+ }>>;
232
168
  budgetMonthlyCents: z.ZodOptional<z.ZodNumber>;
233
169
  instructions: z.ZodOptional<z.ZodObject<{
234
170
  entryFile: z.ZodOptional<z.ZodString>;
235
171
  content: z.ZodOptional<z.ZodString>;
236
172
  files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
237
173
  assetPath: z.ZodOptional<z.ZodString>;
238
- }, "strip", z.ZodTypeAny, {
239
- entryFile?: string | undefined;
240
- content?: string | undefined;
241
- files?: Record<string, string> | undefined;
242
- assetPath?: string | undefined;
243
- }, {
244
- entryFile?: string | undefined;
245
- content?: string | undefined;
246
- files?: Record<string, string> | undefined;
247
- assetPath?: string | undefined;
248
- }>>;
249
- }, "strip", z.ZodTypeAny, {
250
- displayName: string;
251
- agentKey: string;
252
- title?: string | null | undefined;
253
- status?: "paused" | "idle" | undefined;
254
- adapterType?: string | undefined;
255
- adapterConfig?: Record<string, unknown> | undefined;
256
- role?: string | undefined;
257
- icon?: string | null | undefined;
258
- capabilities?: string | null | undefined;
259
- runtimeConfig?: Record<string, unknown> | undefined;
260
- budgetMonthlyCents?: number | undefined;
261
- permissions?: Record<string, unknown> | undefined;
262
- instructions?: {
263
- entryFile?: string | undefined;
264
- content?: string | undefined;
265
- files?: Record<string, string> | undefined;
266
- assetPath?: string | undefined;
267
- } | undefined;
268
- adapterPreference?: string[] | undefined;
269
- }, {
270
- displayName: string;
271
- agentKey: string;
272
- title?: string | null | undefined;
273
- status?: "paused" | "idle" | undefined;
274
- adapterType?: string | undefined;
275
- adapterConfig?: Record<string, unknown> | undefined;
276
- role?: string | undefined;
277
- icon?: string | null | undefined;
278
- capabilities?: string | null | undefined;
279
- runtimeConfig?: Record<string, unknown> | undefined;
280
- budgetMonthlyCents?: number | undefined;
281
- permissions?: Record<string, unknown> | undefined;
282
- instructions?: {
283
- entryFile?: string | undefined;
284
- content?: string | undefined;
285
- files?: Record<string, string> | undefined;
286
- assetPath?: string | undefined;
287
- } | undefined;
288
- adapterPreference?: string[] | undefined;
289
- }>;
174
+ }, z.core.$strip>>;
175
+ }, z.core.$strip>;
290
176
  export type PluginManagedAgentDeclarationInput = z.infer<typeof pluginManagedAgentDeclarationSchema>;
291
177
  export declare const pluginManagedProjectDeclarationSchema: z.ZodObject<{
292
178
  projectKey: z.ZodString;
293
179
  displayName: z.ZodString;
294
180
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
- status: z.ZodOptional<z.ZodEnum<["backlog", "planned", "in_progress", "completed", "cancelled"]>>;
181
+ status: z.ZodOptional<z.ZodEnum<{
182
+ backlog: "backlog";
183
+ in_progress: "in_progress";
184
+ cancelled: "cancelled";
185
+ completed: "completed";
186
+ planned: "planned";
187
+ }>>;
296
188
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
189
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
298
- }, "strip", z.ZodTypeAny, {
299
- displayName: string;
300
- projectKey: string;
301
- description?: string | null | undefined;
302
- settings?: Record<string, unknown> | undefined;
303
- status?: "backlog" | "in_progress" | "cancelled" | "completed" | "planned" | undefined;
304
- color?: string | null | undefined;
305
- }, {
306
- displayName: string;
307
- projectKey: string;
308
- description?: string | null | undefined;
309
- settings?: Record<string, unknown> | undefined;
310
- status?: "backlog" | "in_progress" | "cancelled" | "completed" | "planned" | undefined;
311
- color?: string | null | undefined;
312
- }>;
190
+ }, z.core.$strip>;
313
191
  export type PluginManagedProjectDeclarationInput = z.infer<typeof pluginManagedProjectDeclarationSchema>;
314
192
  export declare const pluginManagedRoutineDeclarationSchema: z.ZodObject<{
315
193
  routineKey: z.ZodString;
@@ -318,291 +196,113 @@ export declare const pluginManagedRoutineDeclarationSchema: z.ZodObject<{
318
196
  assigneeRef: z.ZodOptional<z.ZodNullable<z.ZodObject<{
319
197
  pluginKey: z.ZodOptional<z.ZodString>;
320
198
  resourceKey: z.ZodString;
321
- } & {
322
199
  resourceKind: z.ZodLiteral<"agent">;
323
- }, "strip", z.ZodTypeAny, {
324
- resourceKind: "agent";
325
- resourceKey: string;
326
- pluginKey?: string | undefined;
327
- }, {
328
- resourceKind: "agent";
329
- resourceKey: string;
330
- pluginKey?: string | undefined;
331
- }>>>;
200
+ }, z.core.$strip>>>;
332
201
  projectRef: z.ZodOptional<z.ZodNullable<z.ZodObject<{
333
202
  pluginKey: z.ZodOptional<z.ZodString>;
334
203
  resourceKey: z.ZodString;
335
- } & {
336
204
  resourceKind: z.ZodLiteral<"project">;
337
- }, "strip", z.ZodTypeAny, {
338
- resourceKind: "project";
339
- resourceKey: string;
340
- pluginKey?: string | undefined;
341
- }, {
342
- resourceKind: "project";
343
- resourceKey: string;
344
- pluginKey?: string | undefined;
345
- }>>>;
205
+ }, z.core.$strip>>>;
346
206
  goalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
347
- status: z.ZodOptional<z.ZodEnum<["active", "paused", "archived"]>>;
348
- priority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
349
- concurrencyPolicy: z.ZodOptional<z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>>;
350
- catchUpPolicy: z.ZodOptional<z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>>;
351
- activityGatePolicy: z.ZodOptional<z.ZodEnum<["always", "require_external_activity"]>>;
352
- activityGateScope: z.ZodOptional<z.ZodEnum<["company", "project"]>>;
353
- variables: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
207
+ status: z.ZodOptional<z.ZodEnum<{
208
+ active: "active";
209
+ paused: "paused";
210
+ archived: "archived";
211
+ }>>;
212
+ priority: z.ZodOptional<z.ZodEnum<{
213
+ critical: "critical";
214
+ high: "high";
215
+ medium: "medium";
216
+ low: "low";
217
+ }>>;
218
+ concurrencyPolicy: z.ZodOptional<z.ZodEnum<{
219
+ coalesce_if_active: "coalesce_if_active";
220
+ always_enqueue: "always_enqueue";
221
+ skip_if_active: "skip_if_active";
222
+ }>>;
223
+ catchUpPolicy: z.ZodOptional<z.ZodEnum<{
224
+ skip_missed: "skip_missed";
225
+ enqueue_missed_with_cap: "enqueue_missed_with_cap";
226
+ }>>;
227
+ activityGatePolicy: z.ZodOptional<z.ZodEnum<{
228
+ always: "always";
229
+ require_external_activity: "require_external_activity";
230
+ }>>;
231
+ activityGateScope: z.ZodOptional<z.ZodEnum<{
232
+ project: "project";
233
+ company: "company";
234
+ }>>;
235
+ variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
354
236
  name: z.ZodString;
355
237
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
356
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select", "date"]>>>;
357
- defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
238
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
239
+ number: "number";
240
+ boolean: "boolean";
241
+ text: "text";
242
+ textarea: "textarea";
243
+ select: "select";
244
+ date: "date";
245
+ }>>>;
246
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
358
247
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
359
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
360
- }, "strip", z.ZodTypeAny, {
361
- required: boolean;
362
- options: string[];
363
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
364
- name: string;
365
- label?: string | null | undefined;
366
- defaultValue?: string | number | boolean | null | undefined;
367
- }, {
368
- name: string;
369
- required?: boolean | undefined;
370
- options?: string[] | undefined;
371
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
372
- label?: string | null | undefined;
373
- defaultValue?: string | number | boolean | null | undefined;
374
- }>, {
375
- required: boolean;
376
- options: string[];
377
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
378
- name: string;
379
- label?: string | null | undefined;
380
- defaultValue?: string | number | boolean | null | undefined;
381
- }, {
382
- name: string;
383
- required?: boolean | undefined;
384
- options?: string[] | undefined;
385
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
386
- label?: string | null | undefined;
387
- defaultValue?: string | number | boolean | null | undefined;
388
- }>, "many">>;
248
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
249
+ }, z.core.$strip>>>;
389
250
  triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
390
- kind: z.ZodEnum<["schedule", "webhook", "api"]>;
251
+ kind: z.ZodEnum<{
252
+ schedule: "schedule";
253
+ webhook: "webhook";
254
+ api: "api";
255
+ }>;
391
256
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
257
  enabled: z.ZodOptional<z.ZodBoolean>;
393
258
  cronExpression: z.ZodNullable<z.ZodOptional<z.ZodString>>;
394
259
  timezone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
395
- signingMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>>;
260
+ signingMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
261
+ none: "none";
262
+ bearer: "bearer";
263
+ hmac_sha256: "hmac_sha256";
264
+ github_hmac: "github_hmac";
265
+ }>>>;
396
266
  replayWindowSec: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
397
- }, "strip", z.ZodTypeAny, {
398
- kind: "schedule" | "webhook" | "api";
399
- label?: string | null | undefined;
400
- enabled?: boolean | undefined;
401
- cronExpression?: string | null | undefined;
402
- timezone?: string | null | undefined;
403
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
404
- replayWindowSec?: number | null | undefined;
405
- }, {
406
- kind: "schedule" | "webhook" | "api";
407
- label?: string | null | undefined;
408
- enabled?: boolean | undefined;
409
- cronExpression?: string | null | undefined;
410
- timezone?: string | null | undefined;
411
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
412
- replayWindowSec?: number | null | undefined;
413
- }>, "many">>;
267
+ }, z.core.$strip>>>;
414
268
  issueTemplate: z.ZodOptional<z.ZodObject<{
415
- surfaceVisibility: z.ZodOptional<z.ZodEnum<["default", "plugin_operation"]>>;
269
+ surfaceVisibility: z.ZodOptional<z.ZodEnum<{
270
+ default: "default";
271
+ plugin_operation: "plugin_operation";
272
+ }>>;
416
273
  originId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
274
  billingCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
418
- }, "strip", z.ZodTypeAny, {
419
- originId?: string | null | undefined;
420
- billingCode?: string | null | undefined;
421
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
422
- }, {
423
- originId?: string | null | undefined;
424
- billingCode?: string | null | undefined;
425
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
426
- }>>;
427
- }, "strip", z.ZodTypeAny, {
428
- title: string;
429
- routineKey: string;
430
- description?: string | null | undefined;
431
- status?: "active" | "paused" | "archived" | undefined;
432
- goalId?: string | null | undefined;
433
- variables?: {
434
- required: boolean;
435
- options: string[];
436
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
437
- name: string;
438
- label?: string | null | undefined;
439
- defaultValue?: string | number | boolean | null | undefined;
440
- }[] | undefined;
441
- priority?: "critical" | "high" | "medium" | "low" | undefined;
442
- triggers?: {
443
- kind: "schedule" | "webhook" | "api";
444
- label?: string | null | undefined;
445
- enabled?: boolean | undefined;
446
- cronExpression?: string | null | undefined;
447
- timezone?: string | null | undefined;
448
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
449
- replayWindowSec?: number | null | undefined;
450
- }[] | undefined;
451
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
452
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
453
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
454
- activityGateScope?: "project" | "company" | undefined;
455
- assigneeRef?: {
456
- resourceKind: "agent";
457
- resourceKey: string;
458
- pluginKey?: string | undefined;
459
- } | null | undefined;
460
- projectRef?: {
461
- resourceKind: "project";
462
- resourceKey: string;
463
- pluginKey?: string | undefined;
464
- } | null | undefined;
465
- issueTemplate?: {
466
- originId?: string | null | undefined;
467
- billingCode?: string | null | undefined;
468
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
469
- } | undefined;
470
- }, {
471
- title: string;
472
- routineKey: string;
473
- description?: string | null | undefined;
474
- status?: "active" | "paused" | "archived" | undefined;
475
- goalId?: string | null | undefined;
476
- variables?: {
477
- name: string;
478
- required?: boolean | undefined;
479
- options?: string[] | undefined;
480
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
481
- label?: string | null | undefined;
482
- defaultValue?: string | number | boolean | null | undefined;
483
- }[] | undefined;
484
- priority?: "critical" | "high" | "medium" | "low" | undefined;
485
- triggers?: {
486
- kind: "schedule" | "webhook" | "api";
487
- label?: string | null | undefined;
488
- enabled?: boolean | undefined;
489
- cronExpression?: string | null | undefined;
490
- timezone?: string | null | undefined;
491
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
492
- replayWindowSec?: number | null | undefined;
493
- }[] | undefined;
494
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
495
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
496
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
497
- activityGateScope?: "project" | "company" | undefined;
498
- assigneeRef?: {
499
- resourceKind: "agent";
500
- resourceKey: string;
501
- pluginKey?: string | undefined;
502
- } | null | undefined;
503
- projectRef?: {
504
- resourceKind: "project";
505
- resourceKey: string;
506
- pluginKey?: string | undefined;
507
- } | null | undefined;
508
- issueTemplate?: {
509
- originId?: string | null | undefined;
510
- billingCode?: string | null | undefined;
511
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
512
- } | undefined;
513
- }>;
275
+ }, z.core.$strip>>;
276
+ }, z.core.$strip>;
514
277
  export type PluginManagedRoutineDeclarationInput = z.infer<typeof pluginManagedRoutineDeclarationSchema>;
515
278
  export declare const pluginLocalFolderDeclarationSchema: z.ZodObject<{
516
279
  folderKey: z.ZodString;
517
280
  displayName: z.ZodString;
518
281
  description: z.ZodOptional<z.ZodString>;
519
- access: z.ZodOptional<z.ZodEnum<["read", "readWrite"]>>;
520
- requiredDirectories: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
521
- requiredFiles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
522
- }, "strip", z.ZodTypeAny, {
523
- displayName: string;
524
- folderKey: string;
525
- description?: string | undefined;
526
- access?: "read" | "readWrite" | undefined;
527
- requiredDirectories?: string[] | undefined;
528
- requiredFiles?: string[] | undefined;
529
- }, {
530
- displayName: string;
531
- folderKey: string;
532
- description?: string | undefined;
533
- access?: "read" | "readWrite" | undefined;
534
- requiredDirectories?: string[] | undefined;
535
- requiredFiles?: string[] | undefined;
536
- }>;
282
+ access: z.ZodOptional<z.ZodEnum<{
283
+ read: "read";
284
+ readWrite: "readWrite";
285
+ }>>;
286
+ requiredDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
287
+ requiredFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
288
+ }, z.core.$strip>;
537
289
  export type PluginLocalFolderDeclarationInput = z.infer<typeof pluginLocalFolderDeclarationSchema>;
538
290
  export declare const pluginManagedSkillFileDeclarationSchema: z.ZodObject<{
539
- path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
291
+ path: z.ZodString;
540
292
  content: z.ZodString;
541
- }, "strip", z.ZodTypeAny, {
542
- path: string;
543
- content: string;
544
- }, {
545
- path: string;
546
- content: string;
547
- }>;
293
+ }, z.core.$strip>;
548
294
  export type PluginManagedSkillFileDeclarationInput = z.infer<typeof pluginManagedSkillFileDeclarationSchema>;
549
- export declare const pluginManagedSkillDeclarationSchema: z.ZodEffects<z.ZodObject<{
295
+ export declare const pluginManagedSkillDeclarationSchema: z.ZodObject<{
550
296
  skillKey: z.ZodString;
551
297
  displayName: z.ZodString;
552
298
  slug: z.ZodOptional<z.ZodString>;
553
299
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
300
  markdown: z.ZodOptional<z.ZodString>;
555
301
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
556
- path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
302
+ path: z.ZodString;
557
303
  content: z.ZodString;
558
- }, "strip", z.ZodTypeAny, {
559
- path: string;
560
- content: string;
561
- }, {
562
- path: string;
563
- content: string;
564
- }>, "many">>;
565
- }, "strip", z.ZodTypeAny, {
566
- displayName: string;
567
- skillKey: string;
568
- description?: string | null | undefined;
569
- files?: {
570
- path: string;
571
- content: string;
572
- }[] | undefined;
573
- slug?: string | undefined;
574
- markdown?: string | undefined;
575
- }, {
576
- displayName: string;
577
- skillKey: string;
578
- description?: string | null | undefined;
579
- files?: {
580
- path: string;
581
- content: string;
582
- }[] | undefined;
583
- slug?: string | undefined;
584
- markdown?: string | undefined;
585
- }>, {
586
- displayName: string;
587
- skillKey: string;
588
- description?: string | null | undefined;
589
- files?: {
590
- path: string;
591
- content: string;
592
- }[] | undefined;
593
- slug?: string | undefined;
594
- markdown?: string | undefined;
595
- }, {
596
- displayName: string;
597
- skillKey: string;
598
- description?: string | null | undefined;
599
- files?: {
600
- path: string;
601
- content: string;
602
- }[] | undefined;
603
- slug?: string | undefined;
604
- markdown?: string | undefined;
605
- }>;
304
+ }, z.core.$strip>>>;
305
+ }, z.core.$strip>;
606
306
  export type PluginManagedSkillDeclarationInput = z.infer<typeof pluginManagedSkillDeclarationSchema>;
607
307
  /**
608
308
  * Validates a {@link PluginUiSlotDeclaration} — a UI extension slot the plugin
@@ -611,375 +311,209 @@ export type PluginManagedSkillDeclarationInput = z.infer<typeof pluginManagedSki
611
311
  *
612
312
  * @see PLUGIN_SPEC.md §19 — UI Extension Model
613
313
  */
614
- export declare const pluginUiSlotDeclarationSchema: z.ZodEffects<z.ZodObject<{
615
- type: z.ZodEnum<["page", "detailTab", "taskDetailView", "dashboardWidget", "sidebar", "routeSidebar", "sidebarPanel", "projectSidebarItem", "globalToolbarButton", "toolbarButton", "contextMenuItem", "commentAnnotation", "commentContextMenuItem", "settingsPage", "companySettingsPage"]>;
314
+ export declare const pluginUiSlotDeclarationSchema: z.ZodObject<{
315
+ type: z.ZodEnum<{
316
+ page: "page";
317
+ detailTab: "detailTab";
318
+ taskDetailView: "taskDetailView";
319
+ dashboardWidget: "dashboardWidget";
320
+ sidebar: "sidebar";
321
+ routeSidebar: "routeSidebar";
322
+ sidebarPanel: "sidebarPanel";
323
+ projectSidebarItem: "projectSidebarItem";
324
+ globalToolbarButton: "globalToolbarButton";
325
+ toolbarButton: "toolbarButton";
326
+ contextMenuItem: "contextMenuItem";
327
+ commentAnnotation: "commentAnnotation";
328
+ commentContextMenuItem: "commentContextMenuItem";
329
+ settingsPage: "settingsPage";
330
+ companySettingsPage: "companySettingsPage";
331
+ }>;
616
332
  id: z.ZodString;
617
333
  displayName: z.ZodString;
618
334
  exportName: z.ZodString;
619
- entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["project", "issue", "agent", "goal", "run", "comment", "execution_workspace", "project_workspace"]>, "many">>;
335
+ entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
336
+ project: "project";
337
+ project_workspace: "project_workspace";
338
+ execution_workspace: "execution_workspace";
339
+ agent: "agent";
340
+ comment: "comment";
341
+ issue: "issue";
342
+ run: "run";
343
+ goal: "goal";
344
+ }>>>;
620
345
  routePath: z.ZodOptional<z.ZodString>;
621
346
  order: z.ZodOptional<z.ZodNumber>;
622
- }, "strip", z.ZodTypeAny, {
623
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
624
- displayName: string;
625
- id: string;
626
- exportName: string;
627
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
628
- routePath?: string | undefined;
629
- order?: number | undefined;
630
- }, {
631
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
632
- displayName: string;
633
- id: string;
634
- exportName: string;
635
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
636
- routePath?: string | undefined;
637
- order?: number | undefined;
638
- }>, {
639
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
640
- displayName: string;
641
- id: string;
642
- exportName: string;
643
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
644
- routePath?: string | undefined;
645
- order?: number | undefined;
646
- }, {
647
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
648
- displayName: string;
649
- id: string;
650
- exportName: string;
651
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
652
- routePath?: string | undefined;
653
- order?: number | undefined;
654
- }>;
347
+ }, z.core.$strip>;
655
348
  export type PluginUiSlotDeclarationInput = z.infer<typeof pluginUiSlotDeclarationSchema>;
656
349
  /**
657
350
  * Validates the action payload for a declarative plugin launcher.
658
351
  */
659
- export declare const pluginLauncherActionDeclarationSchema: z.ZodEffects<z.ZodObject<{
660
- type: z.ZodEnum<["navigate", "openModal", "openDrawer", "openPopover", "performAction", "deepLink"]>;
352
+ export declare const pluginLauncherActionDeclarationSchema: z.ZodObject<{
353
+ type: z.ZodEnum<{
354
+ navigate: "navigate";
355
+ openModal: "openModal";
356
+ openDrawer: "openDrawer";
357
+ openPopover: "openPopover";
358
+ performAction: "performAction";
359
+ deepLink: "deepLink";
360
+ }>;
661
361
  target: z.ZodString;
662
362
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
663
- }, "strip", z.ZodTypeAny, {
664
- target: string;
665
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
666
- params?: Record<string, unknown> | undefined;
667
- }, {
668
- target: string;
669
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
670
- params?: Record<string, unknown> | undefined;
671
- }>, {
672
- target: string;
673
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
674
- params?: Record<string, unknown> | undefined;
675
- }, {
676
- target: string;
677
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
678
- params?: Record<string, unknown> | undefined;
679
- }>;
363
+ }, z.core.$strip>;
680
364
  export type PluginLauncherActionDeclarationInput = z.infer<typeof pluginLauncherActionDeclarationSchema>;
681
365
  /**
682
366
  * Validates optional render hints for a plugin launcher destination.
683
367
  */
684
- export declare const pluginLauncherRenderDeclarationSchema: z.ZodEffects<z.ZodObject<{
685
- environment: z.ZodEnum<["hostInline", "hostOverlay", "hostRoute", "external", "iframe"]>;
686
- bounds: z.ZodOptional<z.ZodEnum<["inline", "compact", "default", "wide", "full"]>>;
687
- }, "strip", z.ZodTypeAny, {
688
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
689
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
690
- }, {
691
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
692
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
693
- }>, {
694
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
695
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
696
- }, {
697
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
698
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
699
- }>;
368
+ export declare const pluginLauncherRenderDeclarationSchema: z.ZodObject<{
369
+ environment: z.ZodEnum<{
370
+ hostInline: "hostInline";
371
+ hostOverlay: "hostOverlay";
372
+ hostRoute: "hostRoute";
373
+ external: "external";
374
+ iframe: "iframe";
375
+ }>;
376
+ bounds: z.ZodOptional<z.ZodEnum<{
377
+ compact: "compact";
378
+ default: "default";
379
+ inline: "inline";
380
+ wide: "wide";
381
+ full: "full";
382
+ }>>;
383
+ }, z.core.$strip>;
700
384
  export type PluginLauncherRenderDeclarationInput = z.infer<typeof pluginLauncherRenderDeclarationSchema>;
701
385
  /**
702
386
  * Validates declarative launcher metadata in a plugin manifest.
703
387
  */
704
- export declare const pluginLauncherDeclarationSchema: z.ZodEffects<z.ZodObject<{
388
+ export declare const pluginLauncherDeclarationSchema: z.ZodObject<{
705
389
  id: z.ZodString;
706
390
  displayName: z.ZodString;
707
391
  description: z.ZodOptional<z.ZodString>;
708
- placementZone: z.ZodEnum<["page", "detailTab", "taskDetailView", "dashboardWidget", "sidebar", "sidebarPanel", "projectSidebarItem", "globalToolbarButton", "toolbarButton", "contextMenuItem", "commentAnnotation", "commentContextMenuItem", "settingsPage"]>;
392
+ placementZone: z.ZodEnum<{
393
+ page: "page";
394
+ detailTab: "detailTab";
395
+ taskDetailView: "taskDetailView";
396
+ dashboardWidget: "dashboardWidget";
397
+ sidebar: "sidebar";
398
+ sidebarPanel: "sidebarPanel";
399
+ projectSidebarItem: "projectSidebarItem";
400
+ globalToolbarButton: "globalToolbarButton";
401
+ toolbarButton: "toolbarButton";
402
+ contextMenuItem: "contextMenuItem";
403
+ commentAnnotation: "commentAnnotation";
404
+ commentContextMenuItem: "commentContextMenuItem";
405
+ settingsPage: "settingsPage";
406
+ }>;
709
407
  exportName: z.ZodOptional<z.ZodString>;
710
- entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["project", "issue", "agent", "goal", "run", "comment", "execution_workspace", "project_workspace"]>, "many">>;
408
+ entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
409
+ project: "project";
410
+ project_workspace: "project_workspace";
411
+ execution_workspace: "execution_workspace";
412
+ agent: "agent";
413
+ comment: "comment";
414
+ issue: "issue";
415
+ run: "run";
416
+ goal: "goal";
417
+ }>>>;
711
418
  order: z.ZodOptional<z.ZodNumber>;
712
- action: z.ZodEffects<z.ZodObject<{
713
- type: z.ZodEnum<["navigate", "openModal", "openDrawer", "openPopover", "performAction", "deepLink"]>;
419
+ action: z.ZodObject<{
420
+ type: z.ZodEnum<{
421
+ navigate: "navigate";
422
+ openModal: "openModal";
423
+ openDrawer: "openDrawer";
424
+ openPopover: "openPopover";
425
+ performAction: "performAction";
426
+ deepLink: "deepLink";
427
+ }>;
714
428
  target: z.ZodString;
715
429
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
716
- }, "strip", z.ZodTypeAny, {
717
- target: string;
718
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
719
- params?: Record<string, unknown> | undefined;
720
- }, {
721
- target: string;
722
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
723
- params?: Record<string, unknown> | undefined;
724
- }>, {
725
- target: string;
726
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
727
- params?: Record<string, unknown> | undefined;
728
- }, {
729
- target: string;
730
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
731
- params?: Record<string, unknown> | undefined;
732
- }>;
733
- render: z.ZodOptional<z.ZodEffects<z.ZodObject<{
734
- environment: z.ZodEnum<["hostInline", "hostOverlay", "hostRoute", "external", "iframe"]>;
735
- bounds: z.ZodOptional<z.ZodEnum<["inline", "compact", "default", "wide", "full"]>>;
736
- }, "strip", z.ZodTypeAny, {
737
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
738
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
739
- }, {
740
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
741
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
742
- }>, {
743
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
744
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
745
- }, {
746
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
747
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
748
- }>>;
749
- }, "strip", z.ZodTypeAny, {
750
- displayName: string;
751
- id: string;
752
- action: {
753
- target: string;
754
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
755
- params?: Record<string, unknown> | undefined;
756
- };
757
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
758
- description?: string | undefined;
759
- exportName?: string | undefined;
760
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
761
- order?: number | undefined;
762
- render?: {
763
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
764
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
765
- } | undefined;
766
- }, {
767
- displayName: string;
768
- id: string;
769
- action: {
770
- target: string;
771
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
772
- params?: Record<string, unknown> | undefined;
773
- };
774
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
775
- description?: string | undefined;
776
- exportName?: string | undefined;
777
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
778
- order?: number | undefined;
779
- render?: {
780
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
781
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
782
- } | undefined;
783
- }>, {
784
- displayName: string;
785
- id: string;
786
- action: {
787
- target: string;
788
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
789
- params?: Record<string, unknown> | undefined;
790
- };
791
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
792
- description?: string | undefined;
793
- exportName?: string | undefined;
794
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
795
- order?: number | undefined;
796
- render?: {
797
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
798
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
799
- } | undefined;
800
- }, {
801
- displayName: string;
802
- id: string;
803
- action: {
804
- target: string;
805
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
806
- params?: Record<string, unknown> | undefined;
807
- };
808
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
809
- description?: string | undefined;
810
- exportName?: string | undefined;
811
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
812
- order?: number | undefined;
813
- render?: {
814
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
815
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
816
- } | undefined;
817
- }>;
430
+ }, z.core.$strip>;
431
+ render: z.ZodOptional<z.ZodObject<{
432
+ environment: z.ZodEnum<{
433
+ hostInline: "hostInline";
434
+ hostOverlay: "hostOverlay";
435
+ hostRoute: "hostRoute";
436
+ external: "external";
437
+ iframe: "iframe";
438
+ }>;
439
+ bounds: z.ZodOptional<z.ZodEnum<{
440
+ compact: "compact";
441
+ default: "default";
442
+ inline: "inline";
443
+ wide: "wide";
444
+ full: "full";
445
+ }>>;
446
+ }, z.core.$strip>>;
447
+ }, z.core.$strip>;
818
448
  export type PluginLauncherDeclarationInput = z.infer<typeof pluginLauncherDeclarationSchema>;
819
449
  export declare const pluginDatabaseDeclarationSchema: z.ZodObject<{
820
450
  namespaceSlug: z.ZodOptional<z.ZodString>;
821
- migrationsDir: z.ZodEffects<z.ZodString, string, string>;
822
- coreReadTables: z.ZodOptional<z.ZodArray<z.ZodEnum<["companies", "projects", "goals", "agents", "issues", "issue_documents", "issue_relations", "issue_comments", "heartbeat_runs", "cost_events", "approvals", "issue_approvals", "budget_incidents"]>, "many">>;
823
- }, "strip", z.ZodTypeAny, {
824
- migrationsDir: string;
825
- namespaceSlug?: string | undefined;
826
- coreReadTables?: ("companies" | "projects" | "goals" | "agents" | "issues" | "issue_documents" | "issue_relations" | "issue_comments" | "heartbeat_runs" | "cost_events" | "approvals" | "issue_approvals" | "budget_incidents")[] | undefined;
827
- }, {
828
- migrationsDir: string;
829
- namespaceSlug?: string | undefined;
830
- coreReadTables?: ("companies" | "projects" | "goals" | "agents" | "issues" | "issue_documents" | "issue_relations" | "issue_comments" | "heartbeat_runs" | "cost_events" | "approvals" | "issue_approvals" | "budget_incidents")[] | undefined;
831
- }>;
451
+ migrationsDir: z.ZodString;
452
+ coreReadTables: z.ZodOptional<z.ZodArray<z.ZodEnum<{
453
+ companies: "companies";
454
+ projects: "projects";
455
+ goals: "goals";
456
+ agents: "agents";
457
+ issues: "issues";
458
+ issue_documents: "issue_documents";
459
+ issue_relations: "issue_relations";
460
+ issue_comments: "issue_comments";
461
+ heartbeat_runs: "heartbeat_runs";
462
+ cost_events: "cost_events";
463
+ approvals: "approvals";
464
+ issue_approvals: "issue_approvals";
465
+ budget_incidents: "budget_incidents";
466
+ }>>>;
467
+ }, z.core.$strip>;
832
468
  export type PluginDatabaseDeclarationInput = z.infer<typeof pluginDatabaseDeclarationSchema>;
833
469
  export declare const pluginApiRouteDeclarationSchema: z.ZodObject<{
834
470
  routeKey: z.ZodString;
835
- method: z.ZodEnum<["GET", "POST", "PATCH", "DELETE"]>;
836
- path: z.ZodEffects<z.ZodString, string, string>;
837
- auth: z.ZodEnum<["board", "agent", "board-or-agent", "webhook"]>;
471
+ method: z.ZodEnum<{
472
+ GET: "GET";
473
+ POST: "POST";
474
+ PATCH: "PATCH";
475
+ DELETE: "DELETE";
476
+ }>;
477
+ path: z.ZodString;
478
+ auth: z.ZodEnum<{
479
+ agent: "agent";
480
+ board: "board";
481
+ webhook: "webhook";
482
+ "board-or-agent": "board-or-agent";
483
+ }>;
838
484
  capability: z.ZodLiteral<"api.routes.register">;
839
- checkoutPolicy: z.ZodOptional<z.ZodEnum<["none", "required-for-agent-in-progress", "always-for-agent"]>>;
840
- companyResolution: z.ZodOptional<z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
485
+ checkoutPolicy: z.ZodOptional<z.ZodEnum<{
486
+ none: "none";
487
+ "required-for-agent-in-progress": "required-for-agent-in-progress";
488
+ "always-for-agent": "always-for-agent";
489
+ }>>;
490
+ companyResolution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
841
491
  from: z.ZodLiteral<"body">;
842
492
  key: z.ZodString;
843
- }, "strip", z.ZodTypeAny, {
844
- key: string;
845
- from: "body";
846
- }, {
847
- key: string;
848
- from: "body";
849
- }>, z.ZodObject<{
493
+ }, z.core.$strip>, z.ZodObject<{
850
494
  from: z.ZodLiteral<"query">;
851
495
  key: z.ZodString;
852
- }, "strip", z.ZodTypeAny, {
853
- key: string;
854
- from: "query";
855
- }, {
856
- key: string;
857
- from: "query";
858
- }>, z.ZodObject<{
496
+ }, z.core.$strip>, z.ZodObject<{
859
497
  from: z.ZodLiteral<"issue">;
860
498
  param: z.ZodString;
861
- }, "strip", z.ZodTypeAny, {
862
- from: "issue";
863
- param: string;
864
- }, {
865
- from: "issue";
866
- param: string;
867
- }>]>>;
868
- }, "strip", z.ZodTypeAny, {
869
- path: string;
870
- routeKey: string;
871
- method: "GET" | "POST" | "PATCH" | "DELETE";
872
- auth: "agent" | "board" | "webhook" | "board-or-agent";
873
- capability: "api.routes.register";
874
- checkoutPolicy?: "none" | "required-for-agent-in-progress" | "always-for-agent" | undefined;
875
- companyResolution?: {
876
- key: string;
877
- from: "body";
878
- } | {
879
- key: string;
880
- from: "query";
881
- } | {
882
- from: "issue";
883
- param: string;
884
- } | undefined;
885
- }, {
886
- path: string;
887
- routeKey: string;
888
- method: "GET" | "POST" | "PATCH" | "DELETE";
889
- auth: "agent" | "board" | "webhook" | "board-or-agent";
890
- capability: "api.routes.register";
891
- checkoutPolicy?: "none" | "required-for-agent-in-progress" | "always-for-agent" | undefined;
892
- companyResolution?: {
893
- key: string;
894
- from: "body";
895
- } | {
896
- key: string;
897
- from: "query";
898
- } | {
899
- from: "issue";
900
- param: string;
901
- } | undefined;
902
- }>;
499
+ }, z.core.$strip>], "from">>;
500
+ }, z.core.$strip>;
903
501
  export type PluginApiRouteDeclarationInput = z.infer<typeof pluginApiRouteDeclarationSchema>;
904
- export declare const pluginObjectReferenceRefreshPolicySchema: z.ZodEffects<z.ZodObject<{
502
+ export declare const pluginObjectReferenceRefreshPolicySchema: z.ZodObject<{
905
503
  defaultTtlSeconds: z.ZodOptional<z.ZodNumber>;
906
504
  staleAfterSeconds: z.ZodOptional<z.ZodNumber>;
907
- }, "strip", z.ZodTypeAny, {
908
- defaultTtlSeconds?: number | undefined;
909
- staleAfterSeconds?: number | undefined;
910
- }, {
911
- defaultTtlSeconds?: number | undefined;
912
- staleAfterSeconds?: number | undefined;
913
- }>, {
914
- defaultTtlSeconds?: number | undefined;
915
- staleAfterSeconds?: number | undefined;
916
- }, {
917
- defaultTtlSeconds?: number | undefined;
918
- staleAfterSeconds?: number | undefined;
919
- }>;
920
- export declare const pluginObjectReferenceProviderDeclarationSchema: z.ZodEffects<z.ZodObject<{
505
+ }, z.core.$strip>;
506
+ export declare const pluginObjectReferenceProviderDeclarationSchema: z.ZodObject<{
921
507
  providerKey: z.ZodString;
922
508
  displayName: z.ZodString;
923
- objectTypes: z.ZodArray<z.ZodString, "many">;
924
- urlPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
925
- refreshPolicy: z.ZodOptional<z.ZodEffects<z.ZodObject<{
509
+ objectTypes: z.ZodArray<z.ZodString>;
510
+ urlPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
511
+ refreshPolicy: z.ZodOptional<z.ZodObject<{
926
512
  defaultTtlSeconds: z.ZodOptional<z.ZodNumber>;
927
513
  staleAfterSeconds: z.ZodOptional<z.ZodNumber>;
928
- }, "strip", z.ZodTypeAny, {
929
- defaultTtlSeconds?: number | undefined;
930
- staleAfterSeconds?: number | undefined;
931
- }, {
932
- defaultTtlSeconds?: number | undefined;
933
- staleAfterSeconds?: number | undefined;
934
- }>, {
935
- defaultTtlSeconds?: number | undefined;
936
- staleAfterSeconds?: number | undefined;
937
- }, {
938
- defaultTtlSeconds?: number | undefined;
939
- staleAfterSeconds?: number | undefined;
940
- }>>;
941
- webhookEndpointKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
942
- }, "strip", z.ZodTypeAny, {
943
- displayName: string;
944
- providerKey: string;
945
- objectTypes: string[];
946
- refreshPolicy?: {
947
- defaultTtlSeconds?: number | undefined;
948
- staleAfterSeconds?: number | undefined;
949
- } | undefined;
950
- urlPatterns?: string[] | undefined;
951
- webhookEndpointKeys?: string[] | undefined;
952
- }, {
953
- displayName: string;
954
- providerKey: string;
955
- objectTypes: string[];
956
- refreshPolicy?: {
957
- defaultTtlSeconds?: number | undefined;
958
- staleAfterSeconds?: number | undefined;
959
- } | undefined;
960
- urlPatterns?: string[] | undefined;
961
- webhookEndpointKeys?: string[] | undefined;
962
- }>, {
963
- displayName: string;
964
- providerKey: string;
965
- objectTypes: string[];
966
- refreshPolicy?: {
967
- defaultTtlSeconds?: number | undefined;
968
- staleAfterSeconds?: number | undefined;
969
- } | undefined;
970
- urlPatterns?: string[] | undefined;
971
- webhookEndpointKeys?: string[] | undefined;
972
- }, {
973
- displayName: string;
974
- providerKey: string;
975
- objectTypes: string[];
976
- refreshPolicy?: {
977
- defaultTtlSeconds?: number | undefined;
978
- staleAfterSeconds?: number | undefined;
979
- } | undefined;
980
- urlPatterns?: string[] | undefined;
981
- webhookEndpointKeys?: string[] | undefined;
982
- }>;
514
+ }, z.core.$strip>>;
515
+ webhookEndpointKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
516
+ }, z.core.$strip>;
983
517
  export type PluginObjectReferenceProviderDeclarationInput = z.infer<typeof pluginObjectReferenceProviderDeclarationSchema>;
984
518
  /**
985
519
  * Zod schema for {@link PaperclipPluginManifestV1} — the complete runtime
@@ -1017,159 +551,181 @@ export type PluginObjectReferenceProviderDeclarationInput = z.infer<typeof plugi
1017
551
  * @see PLUGIN_SPEC.md §10.1 — Manifest shape
1018
552
  * @see {@link PaperclipPluginManifestV1} — the inferred TypeScript type
1019
553
  */
1020
- export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
554
+ export declare const pluginManifestV1Schema: z.ZodObject<{
1021
555
  id: z.ZodString;
1022
556
  apiVersion: z.ZodLiteral<1>;
1023
557
  version: z.ZodString;
1024
558
  displayName: z.ZodString;
1025
559
  description: z.ZodString;
1026
560
  author: z.ZodString;
1027
- categories: z.ZodArray<z.ZodEnum<["connector", "workspace", "automation", "ui"]>, "many">;
561
+ categories: z.ZodArray<z.ZodEnum<{
562
+ automation: "automation";
563
+ connector: "connector";
564
+ workspace: "workspace";
565
+ ui: "ui";
566
+ }>>;
1028
567
  minimumHostVersion: z.ZodOptional<z.ZodString>;
1029
568
  minimumPaperclipVersion: z.ZodOptional<z.ZodString>;
1030
- capabilities: z.ZodArray<z.ZodEnum<["companies.read", "projects.read", "project.workspaces.read", "execution.workspaces.read", "issues.read", "issue.relations.read", "issue.subtree.read", "issue.comments.read", "issue.interactions.read", "issue.attachments.read", "approvals.read", "issue.documents.read", "agents.read", "goals.read", "goals.create", "goals.update", "activity.read", "costs.read", "issues.orchestration.read", "access.members.read", "access.invites.read", "authorization.grants.read", "authorization.policies.read", "authorization.audit.read", "database.namespace.read", "issues.create", "issues.update", "issue.relations.write", "issues.checkout", "issues.wakeup", "issue.comments.create", "issue.comments.create_human_attributed", "issue.interactions.create", "issue.interactions.respond", "approvals.respond", "issue.documents.write", "projects.managed", "routines.managed", "skills.managed", "agents.pause", "agents.resume", "agents.invoke", "agents.managed", "access.members.write", "access.invites.write", "authorization.grants.write", "authorization.policies.write", "agent.sessions.create", "agent.sessions.list", "agent.sessions.send", "agent.sessions.close", "activity.log.write", "metrics.write", "telemetry.track", "database.namespace.migrate", "database.namespace.write", "external.objects.detect", "external.objects.read", "external.objects.write", "external.objects.refresh", "plugin.state.read", "plugin.state.write", "events.subscribe", "events.emit", "jobs.schedule", "webhooks.receive", "api.routes.register", "http.outbound", "secrets.read-ref", "environment.drivers.register", "local.folders", "agent.tools.register", "instance.settings.register", "ui.sidebar.register", "ui.page.register", "ui.detailTab.register", "ui.dashboardWidget.register", "ui.commentAnnotation.register", "ui.action.register"]>, "many">;
569
+ capabilities: z.ZodArray<z.ZodEnum<{
570
+ "companies.read": "companies.read";
571
+ "projects.read": "projects.read";
572
+ "project.workspaces.read": "project.workspaces.read";
573
+ "execution.workspaces.read": "execution.workspaces.read";
574
+ "issues.read": "issues.read";
575
+ "issue.relations.read": "issue.relations.read";
576
+ "issue.subtree.read": "issue.subtree.read";
577
+ "issue.comments.read": "issue.comments.read";
578
+ "issue.interactions.read": "issue.interactions.read";
579
+ "issue.attachments.read": "issue.attachments.read";
580
+ "approvals.read": "approvals.read";
581
+ "issue.documents.read": "issue.documents.read";
582
+ "agents.read": "agents.read";
583
+ "goals.read": "goals.read";
584
+ "goals.create": "goals.create";
585
+ "goals.update": "goals.update";
586
+ "activity.read": "activity.read";
587
+ "costs.read": "costs.read";
588
+ "issues.orchestration.read": "issues.orchestration.read";
589
+ "access.members.read": "access.members.read";
590
+ "access.invites.read": "access.invites.read";
591
+ "authorization.grants.read": "authorization.grants.read";
592
+ "authorization.policies.read": "authorization.policies.read";
593
+ "authorization.audit.read": "authorization.audit.read";
594
+ "database.namespace.read": "database.namespace.read";
595
+ "issues.create": "issues.create";
596
+ "issues.update": "issues.update";
597
+ "issue.relations.write": "issue.relations.write";
598
+ "issues.checkout": "issues.checkout";
599
+ "issues.wakeup": "issues.wakeup";
600
+ "issue.comments.create": "issue.comments.create";
601
+ "issue.comments.create_human_attributed": "issue.comments.create_human_attributed";
602
+ "issue.interactions.create": "issue.interactions.create";
603
+ "issue.interactions.respond": "issue.interactions.respond";
604
+ "approvals.respond": "approvals.respond";
605
+ "issue.documents.write": "issue.documents.write";
606
+ "projects.managed": "projects.managed";
607
+ "routines.managed": "routines.managed";
608
+ "skills.managed": "skills.managed";
609
+ "agents.pause": "agents.pause";
610
+ "agents.resume": "agents.resume";
611
+ "agents.invoke": "agents.invoke";
612
+ "agents.managed": "agents.managed";
613
+ "access.members.write": "access.members.write";
614
+ "access.invites.write": "access.invites.write";
615
+ "authorization.grants.write": "authorization.grants.write";
616
+ "authorization.policies.write": "authorization.policies.write";
617
+ "agent.sessions.create": "agent.sessions.create";
618
+ "agent.sessions.list": "agent.sessions.list";
619
+ "agent.sessions.send": "agent.sessions.send";
620
+ "agent.sessions.close": "agent.sessions.close";
621
+ "activity.log.write": "activity.log.write";
622
+ "metrics.write": "metrics.write";
623
+ "telemetry.track": "telemetry.track";
624
+ "database.namespace.migrate": "database.namespace.migrate";
625
+ "database.namespace.write": "database.namespace.write";
626
+ "external.objects.detect": "external.objects.detect";
627
+ "external.objects.read": "external.objects.read";
628
+ "external.objects.write": "external.objects.write";
629
+ "external.objects.refresh": "external.objects.refresh";
630
+ "plugin.state.read": "plugin.state.read";
631
+ "plugin.state.write": "plugin.state.write";
632
+ "events.subscribe": "events.subscribe";
633
+ "events.emit": "events.emit";
634
+ "jobs.schedule": "jobs.schedule";
635
+ "webhooks.receive": "webhooks.receive";
636
+ "api.routes.register": "api.routes.register";
637
+ "http.outbound": "http.outbound";
638
+ "secrets.read-ref": "secrets.read-ref";
639
+ "environment.drivers.register": "environment.drivers.register";
640
+ "local.folders": "local.folders";
641
+ "agent.tools.register": "agent.tools.register";
642
+ "instance.settings.register": "instance.settings.register";
643
+ "ui.sidebar.register": "ui.sidebar.register";
644
+ "ui.page.register": "ui.page.register";
645
+ "ui.detailTab.register": "ui.detailTab.register";
646
+ "ui.dashboardWidget.register": "ui.dashboardWidget.register";
647
+ "ui.commentAnnotation.register": "ui.commentAnnotation.register";
648
+ "ui.action.register": "ui.action.register";
649
+ }>>;
1031
650
  entrypoints: z.ZodObject<{
1032
651
  worker: z.ZodString;
1033
652
  ui: z.ZodOptional<z.ZodString>;
1034
- }, "strip", z.ZodTypeAny, {
1035
- worker: string;
1036
- ui?: string | undefined;
1037
- }, {
1038
- worker: string;
1039
- ui?: string | undefined;
1040
- }>;
1041
- instanceConfigSchema: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
653
+ }, z.core.$strip>;
654
+ instanceConfigSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1042
655
  jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1043
656
  jobKey: z.ZodString;
1044
657
  displayName: z.ZodString;
1045
658
  description: z.ZodOptional<z.ZodString>;
1046
- schedule: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1047
- }, "strip", z.ZodTypeAny, {
1048
- displayName: string;
1049
- jobKey: string;
1050
- description?: string | undefined;
1051
- schedule?: string | undefined;
1052
- }, {
1053
- displayName: string;
1054
- jobKey: string;
1055
- description?: string | undefined;
1056
- schedule?: string | undefined;
1057
- }>, "many">>;
659
+ schedule: z.ZodOptional<z.ZodString>;
660
+ }, z.core.$strip>>>;
1058
661
  webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1059
662
  endpointKey: z.ZodString;
1060
663
  displayName: z.ZodString;
1061
664
  description: z.ZodOptional<z.ZodString>;
1062
- }, "strip", z.ZodTypeAny, {
1063
- displayName: string;
1064
- endpointKey: string;
1065
- description?: string | undefined;
1066
- }, {
1067
- displayName: string;
1068
- endpointKey: string;
1069
- description?: string | undefined;
1070
- }>, "many">>;
665
+ }, z.core.$strip>>>;
1071
666
  tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1072
667
  name: z.ZodString;
1073
668
  displayName: z.ZodString;
1074
669
  description: z.ZodString;
1075
- parametersSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
1076
- }, "strip", z.ZodTypeAny, {
1077
- description: string;
1078
- name: string;
1079
- displayName: string;
1080
- parametersSchema: Record<string, unknown>;
1081
- }, {
1082
- description: string;
1083
- name: string;
1084
- displayName: string;
1085
- parametersSchema: Record<string, unknown>;
1086
- }>, "many">>;
670
+ parametersSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
671
+ }, z.core.$strip>>>;
1087
672
  database: z.ZodOptional<z.ZodObject<{
1088
673
  namespaceSlug: z.ZodOptional<z.ZodString>;
1089
- migrationsDir: z.ZodEffects<z.ZodString, string, string>;
1090
- coreReadTables: z.ZodOptional<z.ZodArray<z.ZodEnum<["companies", "projects", "goals", "agents", "issues", "issue_documents", "issue_relations", "issue_comments", "heartbeat_runs", "cost_events", "approvals", "issue_approvals", "budget_incidents"]>, "many">>;
1091
- }, "strip", z.ZodTypeAny, {
1092
- migrationsDir: string;
1093
- namespaceSlug?: string | undefined;
1094
- coreReadTables?: ("companies" | "projects" | "goals" | "agents" | "issues" | "issue_documents" | "issue_relations" | "issue_comments" | "heartbeat_runs" | "cost_events" | "approvals" | "issue_approvals" | "budget_incidents")[] | undefined;
1095
- }, {
1096
- migrationsDir: string;
1097
- namespaceSlug?: string | undefined;
1098
- coreReadTables?: ("companies" | "projects" | "goals" | "agents" | "issues" | "issue_documents" | "issue_relations" | "issue_comments" | "heartbeat_runs" | "cost_events" | "approvals" | "issue_approvals" | "budget_incidents")[] | undefined;
1099
- }>>;
674
+ migrationsDir: z.ZodString;
675
+ coreReadTables: z.ZodOptional<z.ZodArray<z.ZodEnum<{
676
+ companies: "companies";
677
+ projects: "projects";
678
+ goals: "goals";
679
+ agents: "agents";
680
+ issues: "issues";
681
+ issue_documents: "issue_documents";
682
+ issue_relations: "issue_relations";
683
+ issue_comments: "issue_comments";
684
+ heartbeat_runs: "heartbeat_runs";
685
+ cost_events: "cost_events";
686
+ approvals: "approvals";
687
+ issue_approvals: "issue_approvals";
688
+ budget_incidents: "budget_incidents";
689
+ }>>>;
690
+ }, z.core.$strip>>;
1100
691
  apiRoutes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1101
692
  routeKey: z.ZodString;
1102
- method: z.ZodEnum<["GET", "POST", "PATCH", "DELETE"]>;
1103
- path: z.ZodEffects<z.ZodString, string, string>;
1104
- auth: z.ZodEnum<["board", "agent", "board-or-agent", "webhook"]>;
693
+ method: z.ZodEnum<{
694
+ GET: "GET";
695
+ POST: "POST";
696
+ PATCH: "PATCH";
697
+ DELETE: "DELETE";
698
+ }>;
699
+ path: z.ZodString;
700
+ auth: z.ZodEnum<{
701
+ agent: "agent";
702
+ board: "board";
703
+ webhook: "webhook";
704
+ "board-or-agent": "board-or-agent";
705
+ }>;
1105
706
  capability: z.ZodLiteral<"api.routes.register">;
1106
- checkoutPolicy: z.ZodOptional<z.ZodEnum<["none", "required-for-agent-in-progress", "always-for-agent"]>>;
1107
- companyResolution: z.ZodOptional<z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
707
+ checkoutPolicy: z.ZodOptional<z.ZodEnum<{
708
+ none: "none";
709
+ "required-for-agent-in-progress": "required-for-agent-in-progress";
710
+ "always-for-agent": "always-for-agent";
711
+ }>>;
712
+ companyResolution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1108
713
  from: z.ZodLiteral<"body">;
1109
714
  key: z.ZodString;
1110
- }, "strip", z.ZodTypeAny, {
1111
- key: string;
1112
- from: "body";
1113
- }, {
1114
- key: string;
1115
- from: "body";
1116
- }>, z.ZodObject<{
715
+ }, z.core.$strip>, z.ZodObject<{
1117
716
  from: z.ZodLiteral<"query">;
1118
717
  key: z.ZodString;
1119
- }, "strip", z.ZodTypeAny, {
1120
- key: string;
1121
- from: "query";
1122
- }, {
1123
- key: string;
1124
- from: "query";
1125
- }>, z.ZodObject<{
718
+ }, z.core.$strip>, z.ZodObject<{
1126
719
  from: z.ZodLiteral<"issue">;
1127
720
  param: z.ZodString;
1128
- }, "strip", z.ZodTypeAny, {
1129
- from: "issue";
1130
- param: string;
1131
- }, {
1132
- from: "issue";
1133
- param: string;
1134
- }>]>>;
1135
- }, "strip", z.ZodTypeAny, {
1136
- path: string;
1137
- routeKey: string;
1138
- method: "GET" | "POST" | "PATCH" | "DELETE";
1139
- auth: "agent" | "board" | "webhook" | "board-or-agent";
1140
- capability: "api.routes.register";
1141
- checkoutPolicy?: "none" | "required-for-agent-in-progress" | "always-for-agent" | undefined;
1142
- companyResolution?: {
1143
- key: string;
1144
- from: "body";
1145
- } | {
1146
- key: string;
1147
- from: "query";
1148
- } | {
1149
- from: "issue";
1150
- param: string;
1151
- } | undefined;
1152
- }, {
1153
- path: string;
1154
- routeKey: string;
1155
- method: "GET" | "POST" | "PATCH" | "DELETE";
1156
- auth: "agent" | "board" | "webhook" | "board-or-agent";
1157
- capability: "api.routes.register";
1158
- checkoutPolicy?: "none" | "required-for-agent-in-progress" | "always-for-agent" | undefined;
1159
- companyResolution?: {
1160
- key: string;
1161
- from: "body";
1162
- } | {
1163
- key: string;
1164
- from: "query";
1165
- } | {
1166
- from: "issue";
1167
- param: string;
1168
- } | undefined;
1169
- }>, "many">>;
1170
- environmentDrivers: z.ZodOptional<z.ZodArray<z.ZodObject<{
721
+ }, z.core.$strip>], "from">>;
722
+ }, z.core.$strip>>>;
723
+ environmentDrivers: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
1171
724
  driverKey: z.ZodString;
1172
- kind: z.ZodOptional<z.ZodEnum<["environment_driver", "sandbox_provider"]>>;
725
+ kind: z.ZodOptional<z.ZodEnum<{
726
+ environment_driver: "environment_driver";
727
+ sandbox_provider: "sandbox_provider";
728
+ }>>;
1173
729
  displayName: z.ZodString;
1174
730
  description: z.ZodOptional<z.ZodString>;
1175
731
  supportsReusableLeases: z.ZodOptional<z.ZodBoolean>;
@@ -1180,51 +736,29 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
1180
736
  persistentProcessSessions: z.ZodOptional<z.ZodBoolean>;
1181
737
  independentControlCommands: z.ZodOptional<z.ZodBoolean>;
1182
738
  incrementalSessionOutput: z.ZodOptional<z.ZodBoolean>;
1183
- }, "strict", z.ZodTypeAny, {
1184
- reusableLeases?: boolean | undefined;
1185
- nativeSyncIn?: boolean | undefined;
1186
- nativeSyncOut?: boolean | undefined;
1187
- persistentProcessSessions?: boolean | undefined;
1188
- independentControlCommands?: boolean | undefined;
1189
- incrementalSessionOutput?: boolean | undefined;
1190
- }, {
1191
- reusableLeases?: boolean | undefined;
1192
- nativeSyncIn?: boolean | undefined;
1193
- nativeSyncOut?: boolean | undefined;
1194
- persistentProcessSessions?: boolean | undefined;
1195
- independentControlCommands?: boolean | undefined;
1196
- incrementalSessionOutput?: boolean | undefined;
1197
- }>>;
739
+ concurrentSyncOperations: z.ZodOptional<z.ZodBoolean>;
740
+ duplexCommandStream: z.ZodOptional<z.ZodBoolean>;
741
+ }, z.core.$strict>>;
1198
742
  supportsInteractiveSetup: z.ZodOptional<z.ZodBoolean>;
1199
- interactiveSetupConnectionTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
743
+ interactiveSetupConnectionTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1200
744
  supportsTemplateCapture: z.ZodOptional<z.ZodBoolean>;
1201
745
  templateRefKind: z.ZodOptional<z.ZodString>;
1202
- templateConfigBinding: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1203
- field: z.ZodEffects<z.ZodString, string, string>;
1204
- unsetFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1205
- }, "strict", z.ZodTypeAny, {
1206
- field: string;
1207
- unsetFields?: string[] | undefined;
1208
- }, {
1209
- field: string;
1210
- unsetFields?: string[] | undefined;
1211
- }>, {
1212
- field: string;
1213
- unsetFields?: string[] | undefined;
1214
- }, {
1215
- field: string;
1216
- unsetFields?: string[] | undefined;
1217
- }>>;
1218
- templateIdentityPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
746
+ templateConfigBinding: z.ZodOptional<z.ZodObject<{
747
+ field: z.ZodString;
748
+ unsetFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
749
+ }, z.core.$strict>>;
750
+ templateIdentityPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
1219
751
  supportsTemplateDelete: z.ZodOptional<z.ZodBoolean>;
752
+ supportsLoginPty: z.ZodOptional<z.ZodBoolean>;
1220
753
  supportsSetupTokenLogin: z.ZodOptional<z.ZodBoolean>;
1221
- configSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
1222
- }, "strip", z.ZodTypeAny, {
1223
- displayName: string;
754
+ configSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
755
+ }, z.core.$strict>, z.ZodTransform<{
756
+ supportsLoginPty: boolean | undefined;
1224
757
  driverKey: string;
758
+ displayName: string;
1225
759
  configSchema: Record<string, unknown>;
1226
- description?: string | undefined;
1227
760
  kind?: "environment_driver" | "sandbox_provider" | undefined;
761
+ description?: string | undefined;
1228
762
  supportsReusableLeases?: boolean | undefined;
1229
763
  sandboxCapabilities?: {
1230
764
  reusableLeases?: boolean | undefined;
@@ -1233,6 +767,8 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
1233
767
  persistentProcessSessions?: boolean | undefined;
1234
768
  independentControlCommands?: boolean | undefined;
1235
769
  incrementalSessionOutput?: boolean | undefined;
770
+ concurrentSyncOperations?: boolean | undefined;
771
+ duplexCommandStream?: boolean | undefined;
1236
772
  } | undefined;
1237
773
  supportsInteractiveSetup?: boolean | undefined;
1238
774
  interactiveSetupConnectionTypes?: string[] | undefined;
@@ -1244,13 +780,12 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
1244
780
  } | undefined;
1245
781
  templateIdentityPaths?: string[] | undefined;
1246
782
  supportsTemplateDelete?: boolean | undefined;
1247
- supportsSetupTokenLogin?: boolean | undefined;
1248
783
  }, {
1249
- displayName: string;
1250
784
  driverKey: string;
785
+ displayName: string;
1251
786
  configSchema: Record<string, unknown>;
1252
- description?: string | undefined;
1253
787
  kind?: "environment_driver" | "sandbox_provider" | undefined;
788
+ description?: string | undefined;
1254
789
  supportsReusableLeases?: boolean | undefined;
1255
790
  sandboxCapabilities?: {
1256
791
  reusableLeases?: boolean | undefined;
@@ -1259,6 +794,8 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
1259
794
  persistentProcessSessions?: boolean | undefined;
1260
795
  independentControlCommands?: boolean | undefined;
1261
796
  incrementalSessionOutput?: boolean | undefined;
797
+ concurrentSyncOperations?: boolean | undefined;
798
+ duplexCommandStream?: boolean | undefined;
1262
799
  } | undefined;
1263
800
  supportsInteractiveSetup?: boolean | undefined;
1264
801
  interactiveSetupConnectionTypes?: string[] | undefined;
@@ -1270,8 +807,9 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
1270
807
  } | undefined;
1271
808
  templateIdentityPaths?: string[] | undefined;
1272
809
  supportsTemplateDelete?: boolean | undefined;
810
+ supportsLoginPty?: boolean | undefined;
1273
811
  supportsSetupTokenLogin?: boolean | undefined;
1274
- }>, "many">>;
812
+ }>>>>;
1275
813
  agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
1276
814
  agentKey: z.ZodString;
1277
815
  displayName: z.ZodString;
@@ -1280,91 +818,36 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
1280
818
  icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1281
819
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1282
820
  adapterType: z.ZodOptional<z.ZodString>;
1283
- adapterPreference: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
821
+ adapterPreference: z.ZodOptional<z.ZodArray<z.ZodString>>;
1284
822
  adapterConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1285
823
  runtimeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1286
824
  permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1287
- status: z.ZodOptional<z.ZodEnum<["idle", "paused"]>>;
825
+ status: z.ZodOptional<z.ZodEnum<{
826
+ paused: "paused";
827
+ idle: "idle";
828
+ }>>;
1288
829
  budgetMonthlyCents: z.ZodOptional<z.ZodNumber>;
1289
830
  instructions: z.ZodOptional<z.ZodObject<{
1290
831
  entryFile: z.ZodOptional<z.ZodString>;
1291
832
  content: z.ZodOptional<z.ZodString>;
1292
833
  files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1293
834
  assetPath: z.ZodOptional<z.ZodString>;
1294
- }, "strip", z.ZodTypeAny, {
1295
- entryFile?: string | undefined;
1296
- content?: string | undefined;
1297
- files?: Record<string, string> | undefined;
1298
- assetPath?: string | undefined;
1299
- }, {
1300
- entryFile?: string | undefined;
1301
- content?: string | undefined;
1302
- files?: Record<string, string> | undefined;
1303
- assetPath?: string | undefined;
1304
- }>>;
1305
- }, "strip", z.ZodTypeAny, {
1306
- displayName: string;
1307
- agentKey: string;
1308
- title?: string | null | undefined;
1309
- status?: "paused" | "idle" | undefined;
1310
- adapterType?: string | undefined;
1311
- adapterConfig?: Record<string, unknown> | undefined;
1312
- role?: string | undefined;
1313
- icon?: string | null | undefined;
1314
- capabilities?: string | null | undefined;
1315
- runtimeConfig?: Record<string, unknown> | undefined;
1316
- budgetMonthlyCents?: number | undefined;
1317
- permissions?: Record<string, unknown> | undefined;
1318
- instructions?: {
1319
- entryFile?: string | undefined;
1320
- content?: string | undefined;
1321
- files?: Record<string, string> | undefined;
1322
- assetPath?: string | undefined;
1323
- } | undefined;
1324
- adapterPreference?: string[] | undefined;
1325
- }, {
1326
- displayName: string;
1327
- agentKey: string;
1328
- title?: string | null | undefined;
1329
- status?: "paused" | "idle" | undefined;
1330
- adapterType?: string | undefined;
1331
- adapterConfig?: Record<string, unknown> | undefined;
1332
- role?: string | undefined;
1333
- icon?: string | null | undefined;
1334
- capabilities?: string | null | undefined;
1335
- runtimeConfig?: Record<string, unknown> | undefined;
1336
- budgetMonthlyCents?: number | undefined;
1337
- permissions?: Record<string, unknown> | undefined;
1338
- instructions?: {
1339
- entryFile?: string | undefined;
1340
- content?: string | undefined;
1341
- files?: Record<string, string> | undefined;
1342
- assetPath?: string | undefined;
1343
- } | undefined;
1344
- adapterPreference?: string[] | undefined;
1345
- }>, "many">>;
835
+ }, z.core.$strip>>;
836
+ }, z.core.$strip>>>;
1346
837
  projects: z.ZodOptional<z.ZodArray<z.ZodObject<{
1347
838
  projectKey: z.ZodString;
1348
839
  displayName: z.ZodString;
1349
840
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1350
- status: z.ZodOptional<z.ZodEnum<["backlog", "planned", "in_progress", "completed", "cancelled"]>>;
841
+ status: z.ZodOptional<z.ZodEnum<{
842
+ backlog: "backlog";
843
+ in_progress: "in_progress";
844
+ cancelled: "cancelled";
845
+ completed: "completed";
846
+ planned: "planned";
847
+ }>>;
1351
848
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1352
849
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1353
- }, "strip", z.ZodTypeAny, {
1354
- displayName: string;
1355
- projectKey: string;
1356
- description?: string | null | undefined;
1357
- settings?: Record<string, unknown> | undefined;
1358
- status?: "backlog" | "in_progress" | "cancelled" | "completed" | "planned" | undefined;
1359
- color?: string | null | undefined;
1360
- }, {
1361
- displayName: string;
1362
- projectKey: string;
1363
- description?: string | null | undefined;
1364
- settings?: Record<string, unknown> | undefined;
1365
- status?: "backlog" | "in_progress" | "cancelled" | "completed" | "planned" | undefined;
1366
- color?: string | null | undefined;
1367
- }>, "many">>;
850
+ }, z.core.$strip>>>;
1368
851
  routines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1369
852
  routineKey: z.ZodString;
1370
853
  title: z.ZodString;
@@ -1372,1601 +855,274 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
1372
855
  assigneeRef: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1373
856
  pluginKey: z.ZodOptional<z.ZodString>;
1374
857
  resourceKey: z.ZodString;
1375
- } & {
1376
858
  resourceKind: z.ZodLiteral<"agent">;
1377
- }, "strip", z.ZodTypeAny, {
1378
- resourceKind: "agent";
1379
- resourceKey: string;
1380
- pluginKey?: string | undefined;
1381
- }, {
1382
- resourceKind: "agent";
1383
- resourceKey: string;
1384
- pluginKey?: string | undefined;
1385
- }>>>;
859
+ }, z.core.$strip>>>;
1386
860
  projectRef: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1387
861
  pluginKey: z.ZodOptional<z.ZodString>;
1388
862
  resourceKey: z.ZodString;
1389
- } & {
1390
863
  resourceKind: z.ZodLiteral<"project">;
1391
- }, "strip", z.ZodTypeAny, {
1392
- resourceKind: "project";
1393
- resourceKey: string;
1394
- pluginKey?: string | undefined;
1395
- }, {
1396
- resourceKind: "project";
1397
- resourceKey: string;
1398
- pluginKey?: string | undefined;
1399
- }>>>;
864
+ }, z.core.$strip>>>;
1400
865
  goalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1401
- status: z.ZodOptional<z.ZodEnum<["active", "paused", "archived"]>>;
1402
- priority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
1403
- concurrencyPolicy: z.ZodOptional<z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>>;
1404
- catchUpPolicy: z.ZodOptional<z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>>;
1405
- activityGatePolicy: z.ZodOptional<z.ZodEnum<["always", "require_external_activity"]>>;
1406
- activityGateScope: z.ZodOptional<z.ZodEnum<["company", "project"]>>;
1407
- variables: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
866
+ status: z.ZodOptional<z.ZodEnum<{
867
+ active: "active";
868
+ paused: "paused";
869
+ archived: "archived";
870
+ }>>;
871
+ priority: z.ZodOptional<z.ZodEnum<{
872
+ critical: "critical";
873
+ high: "high";
874
+ medium: "medium";
875
+ low: "low";
876
+ }>>;
877
+ concurrencyPolicy: z.ZodOptional<z.ZodEnum<{
878
+ coalesce_if_active: "coalesce_if_active";
879
+ always_enqueue: "always_enqueue";
880
+ skip_if_active: "skip_if_active";
881
+ }>>;
882
+ catchUpPolicy: z.ZodOptional<z.ZodEnum<{
883
+ skip_missed: "skip_missed";
884
+ enqueue_missed_with_cap: "enqueue_missed_with_cap";
885
+ }>>;
886
+ activityGatePolicy: z.ZodOptional<z.ZodEnum<{
887
+ always: "always";
888
+ require_external_activity: "require_external_activity";
889
+ }>>;
890
+ activityGateScope: z.ZodOptional<z.ZodEnum<{
891
+ project: "project";
892
+ company: "company";
893
+ }>>;
894
+ variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1408
895
  name: z.ZodString;
1409
896
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1410
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select", "date"]>>>;
1411
- defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
897
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
898
+ number: "number";
899
+ boolean: "boolean";
900
+ text: "text";
901
+ textarea: "textarea";
902
+ select: "select";
903
+ date: "date";
904
+ }>>>;
905
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1412
906
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1413
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1414
- }, "strip", z.ZodTypeAny, {
1415
- required: boolean;
1416
- options: string[];
1417
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
1418
- name: string;
1419
- label?: string | null | undefined;
1420
- defaultValue?: string | number | boolean | null | undefined;
1421
- }, {
1422
- name: string;
1423
- required?: boolean | undefined;
1424
- options?: string[] | undefined;
1425
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
1426
- label?: string | null | undefined;
1427
- defaultValue?: string | number | boolean | null | undefined;
1428
- }>, {
1429
- required: boolean;
1430
- options: string[];
1431
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
1432
- name: string;
1433
- label?: string | null | undefined;
1434
- defaultValue?: string | number | boolean | null | undefined;
1435
- }, {
1436
- name: string;
1437
- required?: boolean | undefined;
1438
- options?: string[] | undefined;
1439
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
1440
- label?: string | null | undefined;
1441
- defaultValue?: string | number | boolean | null | undefined;
1442
- }>, "many">>;
907
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
908
+ }, z.core.$strip>>>;
1443
909
  triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1444
- kind: z.ZodEnum<["schedule", "webhook", "api"]>;
910
+ kind: z.ZodEnum<{
911
+ schedule: "schedule";
912
+ webhook: "webhook";
913
+ api: "api";
914
+ }>;
1445
915
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1446
916
  enabled: z.ZodOptional<z.ZodBoolean>;
1447
917
  cronExpression: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1448
918
  timezone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1449
- signingMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>>;
919
+ signingMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
920
+ none: "none";
921
+ bearer: "bearer";
922
+ hmac_sha256: "hmac_sha256";
923
+ github_hmac: "github_hmac";
924
+ }>>>;
1450
925
  replayWindowSec: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1451
- }, "strip", z.ZodTypeAny, {
1452
- kind: "schedule" | "webhook" | "api";
1453
- label?: string | null | undefined;
1454
- enabled?: boolean | undefined;
1455
- cronExpression?: string | null | undefined;
1456
- timezone?: string | null | undefined;
1457
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
1458
- replayWindowSec?: number | null | undefined;
1459
- }, {
1460
- kind: "schedule" | "webhook" | "api";
1461
- label?: string | null | undefined;
1462
- enabled?: boolean | undefined;
1463
- cronExpression?: string | null | undefined;
1464
- timezone?: string | null | undefined;
1465
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
1466
- replayWindowSec?: number | null | undefined;
1467
- }>, "many">>;
926
+ }, z.core.$strip>>>;
1468
927
  issueTemplate: z.ZodOptional<z.ZodObject<{
1469
- surfaceVisibility: z.ZodOptional<z.ZodEnum<["default", "plugin_operation"]>>;
928
+ surfaceVisibility: z.ZodOptional<z.ZodEnum<{
929
+ default: "default";
930
+ plugin_operation: "plugin_operation";
931
+ }>>;
1470
932
  originId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1471
933
  billingCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1472
- }, "strip", z.ZodTypeAny, {
1473
- originId?: string | null | undefined;
1474
- billingCode?: string | null | undefined;
1475
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
1476
- }, {
1477
- originId?: string | null | undefined;
1478
- billingCode?: string | null | undefined;
1479
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
1480
- }>>;
1481
- }, "strip", z.ZodTypeAny, {
1482
- title: string;
1483
- routineKey: string;
1484
- description?: string | null | undefined;
1485
- status?: "active" | "paused" | "archived" | undefined;
1486
- goalId?: string | null | undefined;
1487
- variables?: {
1488
- required: boolean;
1489
- options: string[];
1490
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
1491
- name: string;
1492
- label?: string | null | undefined;
1493
- defaultValue?: string | number | boolean | null | undefined;
1494
- }[] | undefined;
1495
- priority?: "critical" | "high" | "medium" | "low" | undefined;
1496
- triggers?: {
1497
- kind: "schedule" | "webhook" | "api";
1498
- label?: string | null | undefined;
1499
- enabled?: boolean | undefined;
1500
- cronExpression?: string | null | undefined;
1501
- timezone?: string | null | undefined;
1502
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
1503
- replayWindowSec?: number | null | undefined;
1504
- }[] | undefined;
1505
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
1506
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
1507
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
1508
- activityGateScope?: "project" | "company" | undefined;
1509
- assigneeRef?: {
1510
- resourceKind: "agent";
1511
- resourceKey: string;
1512
- pluginKey?: string | undefined;
1513
- } | null | undefined;
1514
- projectRef?: {
1515
- resourceKind: "project";
1516
- resourceKey: string;
1517
- pluginKey?: string | undefined;
1518
- } | null | undefined;
1519
- issueTemplate?: {
1520
- originId?: string | null | undefined;
1521
- billingCode?: string | null | undefined;
1522
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
1523
- } | undefined;
1524
- }, {
1525
- title: string;
1526
- routineKey: string;
1527
- description?: string | null | undefined;
1528
- status?: "active" | "paused" | "archived" | undefined;
1529
- goalId?: string | null | undefined;
1530
- variables?: {
1531
- name: string;
1532
- required?: boolean | undefined;
1533
- options?: string[] | undefined;
1534
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
1535
- label?: string | null | undefined;
1536
- defaultValue?: string | number | boolean | null | undefined;
1537
- }[] | undefined;
1538
- priority?: "critical" | "high" | "medium" | "low" | undefined;
1539
- triggers?: {
1540
- kind: "schedule" | "webhook" | "api";
1541
- label?: string | null | undefined;
1542
- enabled?: boolean | undefined;
1543
- cronExpression?: string | null | undefined;
1544
- timezone?: string | null | undefined;
1545
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
1546
- replayWindowSec?: number | null | undefined;
1547
- }[] | undefined;
1548
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
1549
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
1550
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
1551
- activityGateScope?: "project" | "company" | undefined;
1552
- assigneeRef?: {
1553
- resourceKind: "agent";
1554
- resourceKey: string;
1555
- pluginKey?: string | undefined;
1556
- } | null | undefined;
1557
- projectRef?: {
1558
- resourceKind: "project";
1559
- resourceKey: string;
1560
- pluginKey?: string | undefined;
1561
- } | null | undefined;
1562
- issueTemplate?: {
1563
- originId?: string | null | undefined;
1564
- billingCode?: string | null | undefined;
1565
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
1566
- } | undefined;
1567
- }>, "many">>;
1568
- skills: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
934
+ }, z.core.$strip>>;
935
+ }, z.core.$strip>>>;
936
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
1569
937
  skillKey: z.ZodString;
1570
938
  displayName: z.ZodString;
1571
939
  slug: z.ZodOptional<z.ZodString>;
1572
940
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1573
941
  markdown: z.ZodOptional<z.ZodString>;
1574
942
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1575
- path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
943
+ path: z.ZodString;
1576
944
  content: z.ZodString;
1577
- }, "strip", z.ZodTypeAny, {
1578
- path: string;
1579
- content: string;
1580
- }, {
1581
- path: string;
1582
- content: string;
1583
- }>, "many">>;
1584
- }, "strip", z.ZodTypeAny, {
1585
- displayName: string;
1586
- skillKey: string;
1587
- description?: string | null | undefined;
1588
- files?: {
1589
- path: string;
1590
- content: string;
1591
- }[] | undefined;
1592
- slug?: string | undefined;
1593
- markdown?: string | undefined;
1594
- }, {
1595
- displayName: string;
1596
- skillKey: string;
1597
- description?: string | null | undefined;
1598
- files?: {
1599
- path: string;
1600
- content: string;
1601
- }[] | undefined;
1602
- slug?: string | undefined;
1603
- markdown?: string | undefined;
1604
- }>, {
1605
- displayName: string;
1606
- skillKey: string;
1607
- description?: string | null | undefined;
1608
- files?: {
1609
- path: string;
1610
- content: string;
1611
- }[] | undefined;
1612
- slug?: string | undefined;
1613
- markdown?: string | undefined;
1614
- }, {
1615
- displayName: string;
1616
- skillKey: string;
1617
- description?: string | null | undefined;
1618
- files?: {
1619
- path: string;
1620
- content: string;
1621
- }[] | undefined;
1622
- slug?: string | undefined;
1623
- markdown?: string | undefined;
1624
- }>, "many">>;
945
+ }, z.core.$strip>>>;
946
+ }, z.core.$strip>>>;
1625
947
  localFolders: z.ZodOptional<z.ZodArray<z.ZodObject<{
1626
948
  folderKey: z.ZodString;
1627
949
  displayName: z.ZodString;
1628
950
  description: z.ZodOptional<z.ZodString>;
1629
- access: z.ZodOptional<z.ZodEnum<["read", "readWrite"]>>;
1630
- requiredDirectories: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1631
- requiredFiles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1632
- }, "strip", z.ZodTypeAny, {
1633
- displayName: string;
1634
- folderKey: string;
1635
- description?: string | undefined;
1636
- access?: "read" | "readWrite" | undefined;
1637
- requiredDirectories?: string[] | undefined;
1638
- requiredFiles?: string[] | undefined;
1639
- }, {
1640
- displayName: string;
1641
- folderKey: string;
1642
- description?: string | undefined;
1643
- access?: "read" | "readWrite" | undefined;
1644
- requiredDirectories?: string[] | undefined;
1645
- requiredFiles?: string[] | undefined;
1646
- }>, "many">>;
1647
- objectReferences: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
951
+ access: z.ZodOptional<z.ZodEnum<{
952
+ read: "read";
953
+ readWrite: "readWrite";
954
+ }>>;
955
+ requiredDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
956
+ requiredFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
957
+ }, z.core.$strip>>>;
958
+ objectReferences: z.ZodOptional<z.ZodArray<z.ZodObject<{
1648
959
  providerKey: z.ZodString;
1649
960
  displayName: z.ZodString;
1650
- objectTypes: z.ZodArray<z.ZodString, "many">;
1651
- urlPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1652
- refreshPolicy: z.ZodOptional<z.ZodEffects<z.ZodObject<{
961
+ objectTypes: z.ZodArray<z.ZodString>;
962
+ urlPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
963
+ refreshPolicy: z.ZodOptional<z.ZodObject<{
1653
964
  defaultTtlSeconds: z.ZodOptional<z.ZodNumber>;
1654
965
  staleAfterSeconds: z.ZodOptional<z.ZodNumber>;
1655
- }, "strip", z.ZodTypeAny, {
1656
- defaultTtlSeconds?: number | undefined;
1657
- staleAfterSeconds?: number | undefined;
1658
- }, {
1659
- defaultTtlSeconds?: number | undefined;
1660
- staleAfterSeconds?: number | undefined;
1661
- }>, {
1662
- defaultTtlSeconds?: number | undefined;
1663
- staleAfterSeconds?: number | undefined;
1664
- }, {
1665
- defaultTtlSeconds?: number | undefined;
1666
- staleAfterSeconds?: number | undefined;
1667
- }>>;
1668
- webhookEndpointKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1669
- }, "strip", z.ZodTypeAny, {
1670
- displayName: string;
1671
- providerKey: string;
1672
- objectTypes: string[];
1673
- refreshPolicy?: {
1674
- defaultTtlSeconds?: number | undefined;
1675
- staleAfterSeconds?: number | undefined;
1676
- } | undefined;
1677
- urlPatterns?: string[] | undefined;
1678
- webhookEndpointKeys?: string[] | undefined;
1679
- }, {
1680
- displayName: string;
1681
- providerKey: string;
1682
- objectTypes: string[];
1683
- refreshPolicy?: {
1684
- defaultTtlSeconds?: number | undefined;
1685
- staleAfterSeconds?: number | undefined;
1686
- } | undefined;
1687
- urlPatterns?: string[] | undefined;
1688
- webhookEndpointKeys?: string[] | undefined;
1689
- }>, {
1690
- displayName: string;
1691
- providerKey: string;
1692
- objectTypes: string[];
1693
- refreshPolicy?: {
1694
- defaultTtlSeconds?: number | undefined;
1695
- staleAfterSeconds?: number | undefined;
1696
- } | undefined;
1697
- urlPatterns?: string[] | undefined;
1698
- webhookEndpointKeys?: string[] | undefined;
1699
- }, {
1700
- displayName: string;
1701
- providerKey: string;
1702
- objectTypes: string[];
1703
- refreshPolicy?: {
1704
- defaultTtlSeconds?: number | undefined;
1705
- staleAfterSeconds?: number | undefined;
1706
- } | undefined;
1707
- urlPatterns?: string[] | undefined;
1708
- webhookEndpointKeys?: string[] | undefined;
1709
- }>, "many">>;
1710
- launchers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
966
+ }, z.core.$strip>>;
967
+ webhookEndpointKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
968
+ }, z.core.$strip>>>;
969
+ launchers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1711
970
  id: z.ZodString;
1712
971
  displayName: z.ZodString;
1713
972
  description: z.ZodOptional<z.ZodString>;
1714
- placementZone: z.ZodEnum<["page", "detailTab", "taskDetailView", "dashboardWidget", "sidebar", "sidebarPanel", "projectSidebarItem", "globalToolbarButton", "toolbarButton", "contextMenuItem", "commentAnnotation", "commentContextMenuItem", "settingsPage"]>;
973
+ placementZone: z.ZodEnum<{
974
+ page: "page";
975
+ detailTab: "detailTab";
976
+ taskDetailView: "taskDetailView";
977
+ dashboardWidget: "dashboardWidget";
978
+ sidebar: "sidebar";
979
+ sidebarPanel: "sidebarPanel";
980
+ projectSidebarItem: "projectSidebarItem";
981
+ globalToolbarButton: "globalToolbarButton";
982
+ toolbarButton: "toolbarButton";
983
+ contextMenuItem: "contextMenuItem";
984
+ commentAnnotation: "commentAnnotation";
985
+ commentContextMenuItem: "commentContextMenuItem";
986
+ settingsPage: "settingsPage";
987
+ }>;
1715
988
  exportName: z.ZodOptional<z.ZodString>;
1716
- entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["project", "issue", "agent", "goal", "run", "comment", "execution_workspace", "project_workspace"]>, "many">>;
989
+ entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
990
+ project: "project";
991
+ project_workspace: "project_workspace";
992
+ execution_workspace: "execution_workspace";
993
+ agent: "agent";
994
+ comment: "comment";
995
+ issue: "issue";
996
+ run: "run";
997
+ goal: "goal";
998
+ }>>>;
1717
999
  order: z.ZodOptional<z.ZodNumber>;
1718
- action: z.ZodEffects<z.ZodObject<{
1719
- type: z.ZodEnum<["navigate", "openModal", "openDrawer", "openPopover", "performAction", "deepLink"]>;
1000
+ action: z.ZodObject<{
1001
+ type: z.ZodEnum<{
1002
+ navigate: "navigate";
1003
+ openModal: "openModal";
1004
+ openDrawer: "openDrawer";
1005
+ openPopover: "openPopover";
1006
+ performAction: "performAction";
1007
+ deepLink: "deepLink";
1008
+ }>;
1720
1009
  target: z.ZodString;
1721
1010
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1722
- }, "strip", z.ZodTypeAny, {
1723
- target: string;
1724
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1725
- params?: Record<string, unknown> | undefined;
1726
- }, {
1727
- target: string;
1728
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1729
- params?: Record<string, unknown> | undefined;
1730
- }>, {
1731
- target: string;
1732
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1733
- params?: Record<string, unknown> | undefined;
1734
- }, {
1735
- target: string;
1736
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1737
- params?: Record<string, unknown> | undefined;
1738
- }>;
1739
- render: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1740
- environment: z.ZodEnum<["hostInline", "hostOverlay", "hostRoute", "external", "iframe"]>;
1741
- bounds: z.ZodOptional<z.ZodEnum<["inline", "compact", "default", "wide", "full"]>>;
1742
- }, "strip", z.ZodTypeAny, {
1743
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1744
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1745
- }, {
1746
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1747
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1748
- }>, {
1749
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1750
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1751
- }, {
1752
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1753
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1754
- }>>;
1755
- }, "strip", z.ZodTypeAny, {
1756
- displayName: string;
1757
- id: string;
1758
- action: {
1759
- target: string;
1760
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1761
- params?: Record<string, unknown> | undefined;
1762
- };
1763
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
1764
- description?: string | undefined;
1765
- exportName?: string | undefined;
1766
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1767
- order?: number | undefined;
1768
- render?: {
1769
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1770
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1771
- } | undefined;
1772
- }, {
1773
- displayName: string;
1774
- id: string;
1775
- action: {
1776
- target: string;
1777
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1778
- params?: Record<string, unknown> | undefined;
1779
- };
1780
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
1781
- description?: string | undefined;
1782
- exportName?: string | undefined;
1783
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1784
- order?: number | undefined;
1785
- render?: {
1786
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1787
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1788
- } | undefined;
1789
- }>, {
1790
- displayName: string;
1791
- id: string;
1792
- action: {
1793
- target: string;
1794
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1795
- params?: Record<string, unknown> | undefined;
1796
- };
1797
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
1798
- description?: string | undefined;
1799
- exportName?: string | undefined;
1800
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1801
- order?: number | undefined;
1802
- render?: {
1803
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1804
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1805
- } | undefined;
1806
- }, {
1807
- displayName: string;
1808
- id: string;
1809
- action: {
1810
- target: string;
1811
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1812
- params?: Record<string, unknown> | undefined;
1813
- };
1814
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
1815
- description?: string | undefined;
1816
- exportName?: string | undefined;
1817
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1818
- order?: number | undefined;
1819
- render?: {
1820
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1821
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1822
- } | undefined;
1823
- }>, "many">>;
1011
+ }, z.core.$strip>;
1012
+ render: z.ZodOptional<z.ZodObject<{
1013
+ environment: z.ZodEnum<{
1014
+ hostInline: "hostInline";
1015
+ hostOverlay: "hostOverlay";
1016
+ hostRoute: "hostRoute";
1017
+ external: "external";
1018
+ iframe: "iframe";
1019
+ }>;
1020
+ bounds: z.ZodOptional<z.ZodEnum<{
1021
+ compact: "compact";
1022
+ default: "default";
1023
+ inline: "inline";
1024
+ wide: "wide";
1025
+ full: "full";
1026
+ }>>;
1027
+ }, z.core.$strip>>;
1028
+ }, z.core.$strip>>>;
1824
1029
  ui: z.ZodOptional<z.ZodObject<{
1825
- slots: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1826
- type: z.ZodEnum<["page", "detailTab", "taskDetailView", "dashboardWidget", "sidebar", "routeSidebar", "sidebarPanel", "projectSidebarItem", "globalToolbarButton", "toolbarButton", "contextMenuItem", "commentAnnotation", "commentContextMenuItem", "settingsPage", "companySettingsPage"]>;
1030
+ slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
1031
+ type: z.ZodEnum<{
1032
+ page: "page";
1033
+ detailTab: "detailTab";
1034
+ taskDetailView: "taskDetailView";
1035
+ dashboardWidget: "dashboardWidget";
1036
+ sidebar: "sidebar";
1037
+ routeSidebar: "routeSidebar";
1038
+ sidebarPanel: "sidebarPanel";
1039
+ projectSidebarItem: "projectSidebarItem";
1040
+ globalToolbarButton: "globalToolbarButton";
1041
+ toolbarButton: "toolbarButton";
1042
+ contextMenuItem: "contextMenuItem";
1043
+ commentAnnotation: "commentAnnotation";
1044
+ commentContextMenuItem: "commentContextMenuItem";
1045
+ settingsPage: "settingsPage";
1046
+ companySettingsPage: "companySettingsPage";
1047
+ }>;
1827
1048
  id: z.ZodString;
1828
1049
  displayName: z.ZodString;
1829
1050
  exportName: z.ZodString;
1830
- entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["project", "issue", "agent", "goal", "run", "comment", "execution_workspace", "project_workspace"]>, "many">>;
1051
+ entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1052
+ project: "project";
1053
+ project_workspace: "project_workspace";
1054
+ execution_workspace: "execution_workspace";
1055
+ agent: "agent";
1056
+ comment: "comment";
1057
+ issue: "issue";
1058
+ run: "run";
1059
+ goal: "goal";
1060
+ }>>>;
1831
1061
  routePath: z.ZodOptional<z.ZodString>;
1832
1062
  order: z.ZodOptional<z.ZodNumber>;
1833
- }, "strip", z.ZodTypeAny, {
1834
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
1835
- displayName: string;
1836
- id: string;
1837
- exportName: string;
1838
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1839
- routePath?: string | undefined;
1840
- order?: number | undefined;
1841
- }, {
1842
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
1843
- displayName: string;
1844
- id: string;
1845
- exportName: string;
1846
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1847
- routePath?: string | undefined;
1848
- order?: number | undefined;
1849
- }>, {
1850
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
1851
- displayName: string;
1852
- id: string;
1853
- exportName: string;
1854
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1855
- routePath?: string | undefined;
1856
- order?: number | undefined;
1857
- }, {
1858
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
1859
- displayName: string;
1860
- id: string;
1861
- exportName: string;
1862
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1863
- routePath?: string | undefined;
1864
- order?: number | undefined;
1865
- }>, "many">>;
1866
- launchers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1063
+ }, z.core.$strip>>>;
1064
+ launchers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1867
1065
  id: z.ZodString;
1868
1066
  displayName: z.ZodString;
1869
1067
  description: z.ZodOptional<z.ZodString>;
1870
- placementZone: z.ZodEnum<["page", "detailTab", "taskDetailView", "dashboardWidget", "sidebar", "sidebarPanel", "projectSidebarItem", "globalToolbarButton", "toolbarButton", "contextMenuItem", "commentAnnotation", "commentContextMenuItem", "settingsPage"]>;
1068
+ placementZone: z.ZodEnum<{
1069
+ page: "page";
1070
+ detailTab: "detailTab";
1071
+ taskDetailView: "taskDetailView";
1072
+ dashboardWidget: "dashboardWidget";
1073
+ sidebar: "sidebar";
1074
+ sidebarPanel: "sidebarPanel";
1075
+ projectSidebarItem: "projectSidebarItem";
1076
+ globalToolbarButton: "globalToolbarButton";
1077
+ toolbarButton: "toolbarButton";
1078
+ contextMenuItem: "contextMenuItem";
1079
+ commentAnnotation: "commentAnnotation";
1080
+ commentContextMenuItem: "commentContextMenuItem";
1081
+ settingsPage: "settingsPage";
1082
+ }>;
1871
1083
  exportName: z.ZodOptional<z.ZodString>;
1872
- entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["project", "issue", "agent", "goal", "run", "comment", "execution_workspace", "project_workspace"]>, "many">>;
1084
+ entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1085
+ project: "project";
1086
+ project_workspace: "project_workspace";
1087
+ execution_workspace: "execution_workspace";
1088
+ agent: "agent";
1089
+ comment: "comment";
1090
+ issue: "issue";
1091
+ run: "run";
1092
+ goal: "goal";
1093
+ }>>>;
1873
1094
  order: z.ZodOptional<z.ZodNumber>;
1874
- action: z.ZodEffects<z.ZodObject<{
1875
- type: z.ZodEnum<["navigate", "openModal", "openDrawer", "openPopover", "performAction", "deepLink"]>;
1095
+ action: z.ZodObject<{
1096
+ type: z.ZodEnum<{
1097
+ navigate: "navigate";
1098
+ openModal: "openModal";
1099
+ openDrawer: "openDrawer";
1100
+ openPopover: "openPopover";
1101
+ performAction: "performAction";
1102
+ deepLink: "deepLink";
1103
+ }>;
1876
1104
  target: z.ZodString;
1877
1105
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1878
- }, "strip", z.ZodTypeAny, {
1879
- target: string;
1880
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1881
- params?: Record<string, unknown> | undefined;
1882
- }, {
1883
- target: string;
1884
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1885
- params?: Record<string, unknown> | undefined;
1886
- }>, {
1887
- target: string;
1888
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1889
- params?: Record<string, unknown> | undefined;
1890
- }, {
1891
- target: string;
1892
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1893
- params?: Record<string, unknown> | undefined;
1894
- }>;
1895
- render: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1896
- environment: z.ZodEnum<["hostInline", "hostOverlay", "hostRoute", "external", "iframe"]>;
1897
- bounds: z.ZodOptional<z.ZodEnum<["inline", "compact", "default", "wide", "full"]>>;
1898
- }, "strip", z.ZodTypeAny, {
1899
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1900
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1901
- }, {
1902
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1903
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1904
- }>, {
1905
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1906
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1907
- }, {
1908
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1909
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1910
- }>>;
1911
- }, "strip", z.ZodTypeAny, {
1912
- displayName: string;
1913
- id: string;
1914
- action: {
1915
- target: string;
1916
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1917
- params?: Record<string, unknown> | undefined;
1918
- };
1919
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
1920
- description?: string | undefined;
1921
- exportName?: string | undefined;
1922
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1923
- order?: number | undefined;
1924
- render?: {
1925
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1926
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1927
- } | undefined;
1928
- }, {
1929
- displayName: string;
1930
- id: string;
1931
- action: {
1932
- target: string;
1933
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1934
- params?: Record<string, unknown> | undefined;
1935
- };
1936
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
1937
- description?: string | undefined;
1938
- exportName?: string | undefined;
1939
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1940
- order?: number | undefined;
1941
- render?: {
1942
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1943
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1944
- } | undefined;
1945
- }>, {
1946
- displayName: string;
1947
- id: string;
1948
- action: {
1949
- target: string;
1950
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1951
- params?: Record<string, unknown> | undefined;
1952
- };
1953
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
1954
- description?: string | undefined;
1955
- exportName?: string | undefined;
1956
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1957
- order?: number | undefined;
1958
- render?: {
1959
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1960
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1961
- } | undefined;
1962
- }, {
1963
- displayName: string;
1964
- id: string;
1965
- action: {
1966
- target: string;
1967
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1968
- params?: Record<string, unknown> | undefined;
1969
- };
1970
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
1971
- description?: string | undefined;
1972
- exportName?: string | undefined;
1973
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1974
- order?: number | undefined;
1975
- render?: {
1976
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1977
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1978
- } | undefined;
1979
- }>, "many">>;
1980
- }, "strip", z.ZodTypeAny, {
1981
- launchers?: {
1982
- displayName: string;
1983
- id: string;
1984
- action: {
1985
- target: string;
1986
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
1987
- params?: Record<string, unknown> | undefined;
1988
- };
1989
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
1990
- description?: string | undefined;
1991
- exportName?: string | undefined;
1992
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
1993
- order?: number | undefined;
1994
- render?: {
1995
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
1996
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
1997
- } | undefined;
1998
- }[] | undefined;
1999
- slots?: {
2000
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
2001
- displayName: string;
2002
- id: string;
2003
- exportName: string;
2004
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2005
- routePath?: string | undefined;
2006
- order?: number | undefined;
2007
- }[] | undefined;
2008
- }, {
2009
- launchers?: {
2010
- displayName: string;
2011
- id: string;
2012
- action: {
2013
- target: string;
2014
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
2015
- params?: Record<string, unknown> | undefined;
2016
- };
2017
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
2018
- description?: string | undefined;
2019
- exportName?: string | undefined;
2020
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2021
- order?: number | undefined;
2022
- render?: {
2023
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
2024
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
2025
- } | undefined;
2026
- }[] | undefined;
2027
- slots?: {
2028
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
2029
- displayName: string;
2030
- id: string;
2031
- exportName: string;
2032
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2033
- routePath?: string | undefined;
2034
- order?: number | undefined;
2035
- }[] | undefined;
2036
- }>>;
2037
- }, "strip", z.ZodTypeAny, {
2038
- description: string;
2039
- version: string;
2040
- displayName: string;
2041
- id: string;
2042
- capabilities: ("companies.read" | "projects.read" | "project.workspaces.read" | "execution.workspaces.read" | "issues.read" | "issue.relations.read" | "issue.subtree.read" | "issue.comments.read" | "issue.interactions.read" | "issue.attachments.read" | "approvals.read" | "issue.documents.read" | "agents.read" | "goals.read" | "goals.create" | "goals.update" | "activity.read" | "costs.read" | "issues.orchestration.read" | "access.members.read" | "access.invites.read" | "authorization.grants.read" | "authorization.policies.read" | "authorization.audit.read" | "database.namespace.read" | "issues.create" | "issues.update" | "issue.relations.write" | "issues.checkout" | "issues.wakeup" | "issue.comments.create" | "issue.comments.create_human_attributed" | "issue.interactions.create" | "issue.interactions.respond" | "approvals.respond" | "issue.documents.write" | "projects.managed" | "routines.managed" | "skills.managed" | "agents.pause" | "agents.resume" | "agents.invoke" | "agents.managed" | "access.members.write" | "access.invites.write" | "authorization.grants.write" | "authorization.policies.write" | "agent.sessions.create" | "agent.sessions.list" | "agent.sessions.send" | "agent.sessions.close" | "activity.log.write" | "metrics.write" | "telemetry.track" | "database.namespace.migrate" | "database.namespace.write" | "external.objects.detect" | "external.objects.read" | "external.objects.write" | "external.objects.refresh" | "plugin.state.read" | "plugin.state.write" | "events.subscribe" | "events.emit" | "jobs.schedule" | "webhooks.receive" | "api.routes.register" | "http.outbound" | "secrets.read-ref" | "environment.drivers.register" | "local.folders" | "agent.tools.register" | "instance.settings.register" | "ui.sidebar.register" | "ui.page.register" | "ui.detailTab.register" | "ui.dashboardWidget.register" | "ui.commentAnnotation.register" | "ui.action.register")[];
2043
- apiVersion: 1;
2044
- author: string;
2045
- categories: ("automation" | "connector" | "workspace" | "ui")[];
2046
- entrypoints: {
2047
- worker: string;
2048
- ui?: string | undefined;
2049
- };
2050
- database?: {
2051
- migrationsDir: string;
2052
- namespaceSlug?: string | undefined;
2053
- coreReadTables?: ("companies" | "projects" | "goals" | "agents" | "issues" | "issue_documents" | "issue_relations" | "issue_comments" | "heartbeat_runs" | "cost_events" | "approvals" | "issue_approvals" | "budget_incidents")[] | undefined;
2054
- } | undefined;
2055
- ui?: {
2056
- launchers?: {
2057
- displayName: string;
2058
- id: string;
2059
- action: {
2060
- target: string;
2061
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
2062
- params?: Record<string, unknown> | undefined;
2063
- };
2064
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
2065
- description?: string | undefined;
2066
- exportName?: string | undefined;
2067
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2068
- order?: number | undefined;
2069
- render?: {
2070
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
2071
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
2072
- } | undefined;
2073
- }[] | undefined;
2074
- slots?: {
2075
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
2076
- displayName: string;
2077
- id: string;
2078
- exportName: string;
2079
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2080
- routePath?: string | undefined;
2081
- order?: number | undefined;
2082
- }[] | undefined;
2083
- } | undefined;
2084
- projects?: {
2085
- displayName: string;
2086
- projectKey: string;
2087
- description?: string | null | undefined;
2088
- settings?: Record<string, unknown> | undefined;
2089
- status?: "backlog" | "in_progress" | "cancelled" | "completed" | "planned" | undefined;
2090
- color?: string | null | undefined;
2091
- }[] | undefined;
2092
- agents?: {
2093
- displayName: string;
2094
- agentKey: string;
2095
- title?: string | null | undefined;
2096
- status?: "paused" | "idle" | undefined;
2097
- adapterType?: string | undefined;
2098
- adapterConfig?: Record<string, unknown> | undefined;
2099
- role?: string | undefined;
2100
- icon?: string | null | undefined;
2101
- capabilities?: string | null | undefined;
2102
- runtimeConfig?: Record<string, unknown> | undefined;
2103
- budgetMonthlyCents?: number | undefined;
2104
- permissions?: Record<string, unknown> | undefined;
2105
- instructions?: {
2106
- entryFile?: string | undefined;
2107
- content?: string | undefined;
2108
- files?: Record<string, string> | undefined;
2109
- assetPath?: string | undefined;
2110
- } | undefined;
2111
- adapterPreference?: string[] | undefined;
2112
- }[] | undefined;
2113
- jobs?: {
2114
- displayName: string;
2115
- jobKey: string;
2116
- description?: string | undefined;
2117
- schedule?: string | undefined;
2118
- }[] | undefined;
2119
- minimumHostVersion?: string | undefined;
2120
- minimumPaperclipVersion?: string | undefined;
2121
- instanceConfigSchema?: Record<string, unknown> | undefined;
2122
- webhooks?: {
2123
- displayName: string;
2124
- endpointKey: string;
2125
- description?: string | undefined;
2126
- }[] | undefined;
2127
- tools?: {
2128
- description: string;
2129
- name: string;
2130
- displayName: string;
2131
- parametersSchema: Record<string, unknown>;
2132
- }[] | undefined;
2133
- apiRoutes?: {
2134
- path: string;
2135
- routeKey: string;
2136
- method: "GET" | "POST" | "PATCH" | "DELETE";
2137
- auth: "agent" | "board" | "webhook" | "board-or-agent";
2138
- capability: "api.routes.register";
2139
- checkoutPolicy?: "none" | "required-for-agent-in-progress" | "always-for-agent" | undefined;
2140
- companyResolution?: {
2141
- key: string;
2142
- from: "body";
2143
- } | {
2144
- key: string;
2145
- from: "query";
2146
- } | {
2147
- from: "issue";
2148
- param: string;
2149
- } | undefined;
2150
- }[] | undefined;
2151
- environmentDrivers?: {
2152
- displayName: string;
2153
- driverKey: string;
2154
- configSchema: Record<string, unknown>;
2155
- description?: string | undefined;
2156
- kind?: "environment_driver" | "sandbox_provider" | undefined;
2157
- supportsReusableLeases?: boolean | undefined;
2158
- sandboxCapabilities?: {
2159
- reusableLeases?: boolean | undefined;
2160
- nativeSyncIn?: boolean | undefined;
2161
- nativeSyncOut?: boolean | undefined;
2162
- persistentProcessSessions?: boolean | undefined;
2163
- independentControlCommands?: boolean | undefined;
2164
- incrementalSessionOutput?: boolean | undefined;
2165
- } | undefined;
2166
- supportsInteractiveSetup?: boolean | undefined;
2167
- interactiveSetupConnectionTypes?: string[] | undefined;
2168
- supportsTemplateCapture?: boolean | undefined;
2169
- templateRefKind?: string | undefined;
2170
- templateConfigBinding?: {
2171
- field: string;
2172
- unsetFields?: string[] | undefined;
2173
- } | undefined;
2174
- templateIdentityPaths?: string[] | undefined;
2175
- supportsTemplateDelete?: boolean | undefined;
2176
- supportsSetupTokenLogin?: boolean | undefined;
2177
- }[] | undefined;
2178
- routines?: {
2179
- title: string;
2180
- routineKey: string;
2181
- description?: string | null | undefined;
2182
- status?: "active" | "paused" | "archived" | undefined;
2183
- goalId?: string | null | undefined;
2184
- variables?: {
2185
- required: boolean;
2186
- options: string[];
2187
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
2188
- name: string;
2189
- label?: string | null | undefined;
2190
- defaultValue?: string | number | boolean | null | undefined;
2191
- }[] | undefined;
2192
- priority?: "critical" | "high" | "medium" | "low" | undefined;
2193
- triggers?: {
2194
- kind: "schedule" | "webhook" | "api";
2195
- label?: string | null | undefined;
2196
- enabled?: boolean | undefined;
2197
- cronExpression?: string | null | undefined;
2198
- timezone?: string | null | undefined;
2199
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
2200
- replayWindowSec?: number | null | undefined;
2201
- }[] | undefined;
2202
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
2203
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
2204
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
2205
- activityGateScope?: "project" | "company" | undefined;
2206
- assigneeRef?: {
2207
- resourceKind: "agent";
2208
- resourceKey: string;
2209
- pluginKey?: string | undefined;
2210
- } | null | undefined;
2211
- projectRef?: {
2212
- resourceKind: "project";
2213
- resourceKey: string;
2214
- pluginKey?: string | undefined;
2215
- } | null | undefined;
2216
- issueTemplate?: {
2217
- originId?: string | null | undefined;
2218
- billingCode?: string | null | undefined;
2219
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
2220
- } | undefined;
2221
- }[] | undefined;
2222
- skills?: {
2223
- displayName: string;
2224
- skillKey: string;
2225
- description?: string | null | undefined;
2226
- files?: {
2227
- path: string;
2228
- content: string;
2229
- }[] | undefined;
2230
- slug?: string | undefined;
2231
- markdown?: string | undefined;
2232
- }[] | undefined;
2233
- localFolders?: {
2234
- displayName: string;
2235
- folderKey: string;
2236
- description?: string | undefined;
2237
- access?: "read" | "readWrite" | undefined;
2238
- requiredDirectories?: string[] | undefined;
2239
- requiredFiles?: string[] | undefined;
2240
- }[] | undefined;
2241
- objectReferences?: {
2242
- displayName: string;
2243
- providerKey: string;
2244
- objectTypes: string[];
2245
- refreshPolicy?: {
2246
- defaultTtlSeconds?: number | undefined;
2247
- staleAfterSeconds?: number | undefined;
2248
- } | undefined;
2249
- urlPatterns?: string[] | undefined;
2250
- webhookEndpointKeys?: string[] | undefined;
2251
- }[] | undefined;
2252
- launchers?: {
2253
- displayName: string;
2254
- id: string;
2255
- action: {
2256
- target: string;
2257
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
2258
- params?: Record<string, unknown> | undefined;
2259
- };
2260
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
2261
- description?: string | undefined;
2262
- exportName?: string | undefined;
2263
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2264
- order?: number | undefined;
2265
- render?: {
2266
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
2267
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
2268
- } | undefined;
2269
- }[] | undefined;
2270
- }, {
2271
- description: string;
2272
- version: string;
2273
- displayName: string;
2274
- id: string;
2275
- capabilities: ("companies.read" | "projects.read" | "project.workspaces.read" | "execution.workspaces.read" | "issues.read" | "issue.relations.read" | "issue.subtree.read" | "issue.comments.read" | "issue.interactions.read" | "issue.attachments.read" | "approvals.read" | "issue.documents.read" | "agents.read" | "goals.read" | "goals.create" | "goals.update" | "activity.read" | "costs.read" | "issues.orchestration.read" | "access.members.read" | "access.invites.read" | "authorization.grants.read" | "authorization.policies.read" | "authorization.audit.read" | "database.namespace.read" | "issues.create" | "issues.update" | "issue.relations.write" | "issues.checkout" | "issues.wakeup" | "issue.comments.create" | "issue.comments.create_human_attributed" | "issue.interactions.create" | "issue.interactions.respond" | "approvals.respond" | "issue.documents.write" | "projects.managed" | "routines.managed" | "skills.managed" | "agents.pause" | "agents.resume" | "agents.invoke" | "agents.managed" | "access.members.write" | "access.invites.write" | "authorization.grants.write" | "authorization.policies.write" | "agent.sessions.create" | "agent.sessions.list" | "agent.sessions.send" | "agent.sessions.close" | "activity.log.write" | "metrics.write" | "telemetry.track" | "database.namespace.migrate" | "database.namespace.write" | "external.objects.detect" | "external.objects.read" | "external.objects.write" | "external.objects.refresh" | "plugin.state.read" | "plugin.state.write" | "events.subscribe" | "events.emit" | "jobs.schedule" | "webhooks.receive" | "api.routes.register" | "http.outbound" | "secrets.read-ref" | "environment.drivers.register" | "local.folders" | "agent.tools.register" | "instance.settings.register" | "ui.sidebar.register" | "ui.page.register" | "ui.detailTab.register" | "ui.dashboardWidget.register" | "ui.commentAnnotation.register" | "ui.action.register")[];
2276
- apiVersion: 1;
2277
- author: string;
2278
- categories: ("automation" | "connector" | "workspace" | "ui")[];
2279
- entrypoints: {
2280
- worker: string;
2281
- ui?: string | undefined;
2282
- };
2283
- database?: {
2284
- migrationsDir: string;
2285
- namespaceSlug?: string | undefined;
2286
- coreReadTables?: ("companies" | "projects" | "goals" | "agents" | "issues" | "issue_documents" | "issue_relations" | "issue_comments" | "heartbeat_runs" | "cost_events" | "approvals" | "issue_approvals" | "budget_incidents")[] | undefined;
2287
- } | undefined;
2288
- ui?: {
2289
- launchers?: {
2290
- displayName: string;
2291
- id: string;
2292
- action: {
2293
- target: string;
2294
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
2295
- params?: Record<string, unknown> | undefined;
2296
- };
2297
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
2298
- description?: string | undefined;
2299
- exportName?: string | undefined;
2300
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2301
- order?: number | undefined;
2302
- render?: {
2303
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
2304
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
2305
- } | undefined;
2306
- }[] | undefined;
2307
- slots?: {
2308
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
2309
- displayName: string;
2310
- id: string;
2311
- exportName: string;
2312
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2313
- routePath?: string | undefined;
2314
- order?: number | undefined;
2315
- }[] | undefined;
2316
- } | undefined;
2317
- projects?: {
2318
- displayName: string;
2319
- projectKey: string;
2320
- description?: string | null | undefined;
2321
- settings?: Record<string, unknown> | undefined;
2322
- status?: "backlog" | "in_progress" | "cancelled" | "completed" | "planned" | undefined;
2323
- color?: string | null | undefined;
2324
- }[] | undefined;
2325
- agents?: {
2326
- displayName: string;
2327
- agentKey: string;
2328
- title?: string | null | undefined;
2329
- status?: "paused" | "idle" | undefined;
2330
- adapterType?: string | undefined;
2331
- adapterConfig?: Record<string, unknown> | undefined;
2332
- role?: string | undefined;
2333
- icon?: string | null | undefined;
2334
- capabilities?: string | null | undefined;
2335
- runtimeConfig?: Record<string, unknown> | undefined;
2336
- budgetMonthlyCents?: number | undefined;
2337
- permissions?: Record<string, unknown> | undefined;
2338
- instructions?: {
2339
- entryFile?: string | undefined;
2340
- content?: string | undefined;
2341
- files?: Record<string, string> | undefined;
2342
- assetPath?: string | undefined;
2343
- } | undefined;
2344
- adapterPreference?: string[] | undefined;
2345
- }[] | undefined;
2346
- jobs?: {
2347
- displayName: string;
2348
- jobKey: string;
2349
- description?: string | undefined;
2350
- schedule?: string | undefined;
2351
- }[] | undefined;
2352
- minimumHostVersion?: string | undefined;
2353
- minimumPaperclipVersion?: string | undefined;
2354
- instanceConfigSchema?: Record<string, unknown> | undefined;
2355
- webhooks?: {
2356
- displayName: string;
2357
- endpointKey: string;
2358
- description?: string | undefined;
2359
- }[] | undefined;
2360
- tools?: {
2361
- description: string;
2362
- name: string;
2363
- displayName: string;
2364
- parametersSchema: Record<string, unknown>;
2365
- }[] | undefined;
2366
- apiRoutes?: {
2367
- path: string;
2368
- routeKey: string;
2369
- method: "GET" | "POST" | "PATCH" | "DELETE";
2370
- auth: "agent" | "board" | "webhook" | "board-or-agent";
2371
- capability: "api.routes.register";
2372
- checkoutPolicy?: "none" | "required-for-agent-in-progress" | "always-for-agent" | undefined;
2373
- companyResolution?: {
2374
- key: string;
2375
- from: "body";
2376
- } | {
2377
- key: string;
2378
- from: "query";
2379
- } | {
2380
- from: "issue";
2381
- param: string;
2382
- } | undefined;
2383
- }[] | undefined;
2384
- environmentDrivers?: {
2385
- displayName: string;
2386
- driverKey: string;
2387
- configSchema: Record<string, unknown>;
2388
- description?: string | undefined;
2389
- kind?: "environment_driver" | "sandbox_provider" | undefined;
2390
- supportsReusableLeases?: boolean | undefined;
2391
- sandboxCapabilities?: {
2392
- reusableLeases?: boolean | undefined;
2393
- nativeSyncIn?: boolean | undefined;
2394
- nativeSyncOut?: boolean | undefined;
2395
- persistentProcessSessions?: boolean | undefined;
2396
- independentControlCommands?: boolean | undefined;
2397
- incrementalSessionOutput?: boolean | undefined;
2398
- } | undefined;
2399
- supportsInteractiveSetup?: boolean | undefined;
2400
- interactiveSetupConnectionTypes?: string[] | undefined;
2401
- supportsTemplateCapture?: boolean | undefined;
2402
- templateRefKind?: string | undefined;
2403
- templateConfigBinding?: {
2404
- field: string;
2405
- unsetFields?: string[] | undefined;
2406
- } | undefined;
2407
- templateIdentityPaths?: string[] | undefined;
2408
- supportsTemplateDelete?: boolean | undefined;
2409
- supportsSetupTokenLogin?: boolean | undefined;
2410
- }[] | undefined;
2411
- routines?: {
2412
- title: string;
2413
- routineKey: string;
2414
- description?: string | null | undefined;
2415
- status?: "active" | "paused" | "archived" | undefined;
2416
- goalId?: string | null | undefined;
2417
- variables?: {
2418
- name: string;
2419
- required?: boolean | undefined;
2420
- options?: string[] | undefined;
2421
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
2422
- label?: string | null | undefined;
2423
- defaultValue?: string | number | boolean | null | undefined;
2424
- }[] | undefined;
2425
- priority?: "critical" | "high" | "medium" | "low" | undefined;
2426
- triggers?: {
2427
- kind: "schedule" | "webhook" | "api";
2428
- label?: string | null | undefined;
2429
- enabled?: boolean | undefined;
2430
- cronExpression?: string | null | undefined;
2431
- timezone?: string | null | undefined;
2432
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
2433
- replayWindowSec?: number | null | undefined;
2434
- }[] | undefined;
2435
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
2436
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
2437
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
2438
- activityGateScope?: "project" | "company" | undefined;
2439
- assigneeRef?: {
2440
- resourceKind: "agent";
2441
- resourceKey: string;
2442
- pluginKey?: string | undefined;
2443
- } | null | undefined;
2444
- projectRef?: {
2445
- resourceKind: "project";
2446
- resourceKey: string;
2447
- pluginKey?: string | undefined;
2448
- } | null | undefined;
2449
- issueTemplate?: {
2450
- originId?: string | null | undefined;
2451
- billingCode?: string | null | undefined;
2452
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
2453
- } | undefined;
2454
- }[] | undefined;
2455
- skills?: {
2456
- displayName: string;
2457
- skillKey: string;
2458
- description?: string | null | undefined;
2459
- files?: {
2460
- path: string;
2461
- content: string;
2462
- }[] | undefined;
2463
- slug?: string | undefined;
2464
- markdown?: string | undefined;
2465
- }[] | undefined;
2466
- localFolders?: {
2467
- displayName: string;
2468
- folderKey: string;
2469
- description?: string | undefined;
2470
- access?: "read" | "readWrite" | undefined;
2471
- requiredDirectories?: string[] | undefined;
2472
- requiredFiles?: string[] | undefined;
2473
- }[] | undefined;
2474
- objectReferences?: {
2475
- displayName: string;
2476
- providerKey: string;
2477
- objectTypes: string[];
2478
- refreshPolicy?: {
2479
- defaultTtlSeconds?: number | undefined;
2480
- staleAfterSeconds?: number | undefined;
2481
- } | undefined;
2482
- urlPatterns?: string[] | undefined;
2483
- webhookEndpointKeys?: string[] | undefined;
2484
- }[] | undefined;
2485
- launchers?: {
2486
- displayName: string;
2487
- id: string;
2488
- action: {
2489
- target: string;
2490
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
2491
- params?: Record<string, unknown> | undefined;
2492
- };
2493
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
2494
- description?: string | undefined;
2495
- exportName?: string | undefined;
2496
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2497
- order?: number | undefined;
2498
- render?: {
2499
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
2500
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
2501
- } | undefined;
2502
- }[] | undefined;
2503
- }>, {
2504
- description: string;
2505
- version: string;
2506
- displayName: string;
2507
- id: string;
2508
- capabilities: ("companies.read" | "projects.read" | "project.workspaces.read" | "execution.workspaces.read" | "issues.read" | "issue.relations.read" | "issue.subtree.read" | "issue.comments.read" | "issue.interactions.read" | "issue.attachments.read" | "approvals.read" | "issue.documents.read" | "agents.read" | "goals.read" | "goals.create" | "goals.update" | "activity.read" | "costs.read" | "issues.orchestration.read" | "access.members.read" | "access.invites.read" | "authorization.grants.read" | "authorization.policies.read" | "authorization.audit.read" | "database.namespace.read" | "issues.create" | "issues.update" | "issue.relations.write" | "issues.checkout" | "issues.wakeup" | "issue.comments.create" | "issue.comments.create_human_attributed" | "issue.interactions.create" | "issue.interactions.respond" | "approvals.respond" | "issue.documents.write" | "projects.managed" | "routines.managed" | "skills.managed" | "agents.pause" | "agents.resume" | "agents.invoke" | "agents.managed" | "access.members.write" | "access.invites.write" | "authorization.grants.write" | "authorization.policies.write" | "agent.sessions.create" | "agent.sessions.list" | "agent.sessions.send" | "agent.sessions.close" | "activity.log.write" | "metrics.write" | "telemetry.track" | "database.namespace.migrate" | "database.namespace.write" | "external.objects.detect" | "external.objects.read" | "external.objects.write" | "external.objects.refresh" | "plugin.state.read" | "plugin.state.write" | "events.subscribe" | "events.emit" | "jobs.schedule" | "webhooks.receive" | "api.routes.register" | "http.outbound" | "secrets.read-ref" | "environment.drivers.register" | "local.folders" | "agent.tools.register" | "instance.settings.register" | "ui.sidebar.register" | "ui.page.register" | "ui.detailTab.register" | "ui.dashboardWidget.register" | "ui.commentAnnotation.register" | "ui.action.register")[];
2509
- apiVersion: 1;
2510
- author: string;
2511
- categories: ("automation" | "connector" | "workspace" | "ui")[];
2512
- entrypoints: {
2513
- worker: string;
2514
- ui?: string | undefined;
2515
- };
2516
- database?: {
2517
- migrationsDir: string;
2518
- namespaceSlug?: string | undefined;
2519
- coreReadTables?: ("companies" | "projects" | "goals" | "agents" | "issues" | "issue_documents" | "issue_relations" | "issue_comments" | "heartbeat_runs" | "cost_events" | "approvals" | "issue_approvals" | "budget_incidents")[] | undefined;
2520
- } | undefined;
2521
- ui?: {
2522
- launchers?: {
2523
- displayName: string;
2524
- id: string;
2525
- action: {
2526
- target: string;
2527
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
2528
- params?: Record<string, unknown> | undefined;
2529
- };
2530
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
2531
- description?: string | undefined;
2532
- exportName?: string | undefined;
2533
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2534
- order?: number | undefined;
2535
- render?: {
2536
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
2537
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
2538
- } | undefined;
2539
- }[] | undefined;
2540
- slots?: {
2541
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
2542
- displayName: string;
2543
- id: string;
2544
- exportName: string;
2545
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2546
- routePath?: string | undefined;
2547
- order?: number | undefined;
2548
- }[] | undefined;
2549
- } | undefined;
2550
- projects?: {
2551
- displayName: string;
2552
- projectKey: string;
2553
- description?: string | null | undefined;
2554
- settings?: Record<string, unknown> | undefined;
2555
- status?: "backlog" | "in_progress" | "cancelled" | "completed" | "planned" | undefined;
2556
- color?: string | null | undefined;
2557
- }[] | undefined;
2558
- agents?: {
2559
- displayName: string;
2560
- agentKey: string;
2561
- title?: string | null | undefined;
2562
- status?: "paused" | "idle" | undefined;
2563
- adapterType?: string | undefined;
2564
- adapterConfig?: Record<string, unknown> | undefined;
2565
- role?: string | undefined;
2566
- icon?: string | null | undefined;
2567
- capabilities?: string | null | undefined;
2568
- runtimeConfig?: Record<string, unknown> | undefined;
2569
- budgetMonthlyCents?: number | undefined;
2570
- permissions?: Record<string, unknown> | undefined;
2571
- instructions?: {
2572
- entryFile?: string | undefined;
2573
- content?: string | undefined;
2574
- files?: Record<string, string> | undefined;
2575
- assetPath?: string | undefined;
2576
- } | undefined;
2577
- adapterPreference?: string[] | undefined;
2578
- }[] | undefined;
2579
- jobs?: {
2580
- displayName: string;
2581
- jobKey: string;
2582
- description?: string | undefined;
2583
- schedule?: string | undefined;
2584
- }[] | undefined;
2585
- minimumHostVersion?: string | undefined;
2586
- minimumPaperclipVersion?: string | undefined;
2587
- instanceConfigSchema?: Record<string, unknown> | undefined;
2588
- webhooks?: {
2589
- displayName: string;
2590
- endpointKey: string;
2591
- description?: string | undefined;
2592
- }[] | undefined;
2593
- tools?: {
2594
- description: string;
2595
- name: string;
2596
- displayName: string;
2597
- parametersSchema: Record<string, unknown>;
2598
- }[] | undefined;
2599
- apiRoutes?: {
2600
- path: string;
2601
- routeKey: string;
2602
- method: "GET" | "POST" | "PATCH" | "DELETE";
2603
- auth: "agent" | "board" | "webhook" | "board-or-agent";
2604
- capability: "api.routes.register";
2605
- checkoutPolicy?: "none" | "required-for-agent-in-progress" | "always-for-agent" | undefined;
2606
- companyResolution?: {
2607
- key: string;
2608
- from: "body";
2609
- } | {
2610
- key: string;
2611
- from: "query";
2612
- } | {
2613
- from: "issue";
2614
- param: string;
2615
- } | undefined;
2616
- }[] | undefined;
2617
- environmentDrivers?: {
2618
- displayName: string;
2619
- driverKey: string;
2620
- configSchema: Record<string, unknown>;
2621
- description?: string | undefined;
2622
- kind?: "environment_driver" | "sandbox_provider" | undefined;
2623
- supportsReusableLeases?: boolean | undefined;
2624
- sandboxCapabilities?: {
2625
- reusableLeases?: boolean | undefined;
2626
- nativeSyncIn?: boolean | undefined;
2627
- nativeSyncOut?: boolean | undefined;
2628
- persistentProcessSessions?: boolean | undefined;
2629
- independentControlCommands?: boolean | undefined;
2630
- incrementalSessionOutput?: boolean | undefined;
2631
- } | undefined;
2632
- supportsInteractiveSetup?: boolean | undefined;
2633
- interactiveSetupConnectionTypes?: string[] | undefined;
2634
- supportsTemplateCapture?: boolean | undefined;
2635
- templateRefKind?: string | undefined;
2636
- templateConfigBinding?: {
2637
- field: string;
2638
- unsetFields?: string[] | undefined;
2639
- } | undefined;
2640
- templateIdentityPaths?: string[] | undefined;
2641
- supportsTemplateDelete?: boolean | undefined;
2642
- supportsSetupTokenLogin?: boolean | undefined;
2643
- }[] | undefined;
2644
- routines?: {
2645
- title: string;
2646
- routineKey: string;
2647
- description?: string | null | undefined;
2648
- status?: "active" | "paused" | "archived" | undefined;
2649
- goalId?: string | null | undefined;
2650
- variables?: {
2651
- required: boolean;
2652
- options: string[];
2653
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
2654
- name: string;
2655
- label?: string | null | undefined;
2656
- defaultValue?: string | number | boolean | null | undefined;
2657
- }[] | undefined;
2658
- priority?: "critical" | "high" | "medium" | "low" | undefined;
2659
- triggers?: {
2660
- kind: "schedule" | "webhook" | "api";
2661
- label?: string | null | undefined;
2662
- enabled?: boolean | undefined;
2663
- cronExpression?: string | null | undefined;
2664
- timezone?: string | null | undefined;
2665
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
2666
- replayWindowSec?: number | null | undefined;
2667
- }[] | undefined;
2668
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
2669
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
2670
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
2671
- activityGateScope?: "project" | "company" | undefined;
2672
- assigneeRef?: {
2673
- resourceKind: "agent";
2674
- resourceKey: string;
2675
- pluginKey?: string | undefined;
2676
- } | null | undefined;
2677
- projectRef?: {
2678
- resourceKind: "project";
2679
- resourceKey: string;
2680
- pluginKey?: string | undefined;
2681
- } | null | undefined;
2682
- issueTemplate?: {
2683
- originId?: string | null | undefined;
2684
- billingCode?: string | null | undefined;
2685
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
2686
- } | undefined;
2687
- }[] | undefined;
2688
- skills?: {
2689
- displayName: string;
2690
- skillKey: string;
2691
- description?: string | null | undefined;
2692
- files?: {
2693
- path: string;
2694
- content: string;
2695
- }[] | undefined;
2696
- slug?: string | undefined;
2697
- markdown?: string | undefined;
2698
- }[] | undefined;
2699
- localFolders?: {
2700
- displayName: string;
2701
- folderKey: string;
2702
- description?: string | undefined;
2703
- access?: "read" | "readWrite" | undefined;
2704
- requiredDirectories?: string[] | undefined;
2705
- requiredFiles?: string[] | undefined;
2706
- }[] | undefined;
2707
- objectReferences?: {
2708
- displayName: string;
2709
- providerKey: string;
2710
- objectTypes: string[];
2711
- refreshPolicy?: {
2712
- defaultTtlSeconds?: number | undefined;
2713
- staleAfterSeconds?: number | undefined;
2714
- } | undefined;
2715
- urlPatterns?: string[] | undefined;
2716
- webhookEndpointKeys?: string[] | undefined;
2717
- }[] | undefined;
2718
- launchers?: {
2719
- displayName: string;
2720
- id: string;
2721
- action: {
2722
- target: string;
2723
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
2724
- params?: Record<string, unknown> | undefined;
2725
- };
2726
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
2727
- description?: string | undefined;
2728
- exportName?: string | undefined;
2729
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2730
- order?: number | undefined;
2731
- render?: {
2732
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
2733
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
2734
- } | undefined;
2735
- }[] | undefined;
2736
- }, {
2737
- description: string;
2738
- version: string;
2739
- displayName: string;
2740
- id: string;
2741
- capabilities: ("companies.read" | "projects.read" | "project.workspaces.read" | "execution.workspaces.read" | "issues.read" | "issue.relations.read" | "issue.subtree.read" | "issue.comments.read" | "issue.interactions.read" | "issue.attachments.read" | "approvals.read" | "issue.documents.read" | "agents.read" | "goals.read" | "goals.create" | "goals.update" | "activity.read" | "costs.read" | "issues.orchestration.read" | "access.members.read" | "access.invites.read" | "authorization.grants.read" | "authorization.policies.read" | "authorization.audit.read" | "database.namespace.read" | "issues.create" | "issues.update" | "issue.relations.write" | "issues.checkout" | "issues.wakeup" | "issue.comments.create" | "issue.comments.create_human_attributed" | "issue.interactions.create" | "issue.interactions.respond" | "approvals.respond" | "issue.documents.write" | "projects.managed" | "routines.managed" | "skills.managed" | "agents.pause" | "agents.resume" | "agents.invoke" | "agents.managed" | "access.members.write" | "access.invites.write" | "authorization.grants.write" | "authorization.policies.write" | "agent.sessions.create" | "agent.sessions.list" | "agent.sessions.send" | "agent.sessions.close" | "activity.log.write" | "metrics.write" | "telemetry.track" | "database.namespace.migrate" | "database.namespace.write" | "external.objects.detect" | "external.objects.read" | "external.objects.write" | "external.objects.refresh" | "plugin.state.read" | "plugin.state.write" | "events.subscribe" | "events.emit" | "jobs.schedule" | "webhooks.receive" | "api.routes.register" | "http.outbound" | "secrets.read-ref" | "environment.drivers.register" | "local.folders" | "agent.tools.register" | "instance.settings.register" | "ui.sidebar.register" | "ui.page.register" | "ui.detailTab.register" | "ui.dashboardWidget.register" | "ui.commentAnnotation.register" | "ui.action.register")[];
2742
- apiVersion: 1;
2743
- author: string;
2744
- categories: ("automation" | "connector" | "workspace" | "ui")[];
2745
- entrypoints: {
2746
- worker: string;
2747
- ui?: string | undefined;
2748
- };
2749
- database?: {
2750
- migrationsDir: string;
2751
- namespaceSlug?: string | undefined;
2752
- coreReadTables?: ("companies" | "projects" | "goals" | "agents" | "issues" | "issue_documents" | "issue_relations" | "issue_comments" | "heartbeat_runs" | "cost_events" | "approvals" | "issue_approvals" | "budget_incidents")[] | undefined;
2753
- } | undefined;
2754
- ui?: {
2755
- launchers?: {
2756
- displayName: string;
2757
- id: string;
2758
- action: {
2759
- target: string;
2760
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
2761
- params?: Record<string, unknown> | undefined;
2762
- };
2763
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
2764
- description?: string | undefined;
2765
- exportName?: string | undefined;
2766
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2767
- order?: number | undefined;
2768
- render?: {
2769
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
2770
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
2771
- } | undefined;
2772
- }[] | undefined;
2773
- slots?: {
2774
- type: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "routeSidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage" | "companySettingsPage";
2775
- displayName: string;
2776
- id: string;
2777
- exportName: string;
2778
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2779
- routePath?: string | undefined;
2780
- order?: number | undefined;
2781
- }[] | undefined;
2782
- } | undefined;
2783
- projects?: {
2784
- displayName: string;
2785
- projectKey: string;
2786
- description?: string | null | undefined;
2787
- settings?: Record<string, unknown> | undefined;
2788
- status?: "backlog" | "in_progress" | "cancelled" | "completed" | "planned" | undefined;
2789
- color?: string | null | undefined;
2790
- }[] | undefined;
2791
- agents?: {
2792
- displayName: string;
2793
- agentKey: string;
2794
- title?: string | null | undefined;
2795
- status?: "paused" | "idle" | undefined;
2796
- adapterType?: string | undefined;
2797
- adapterConfig?: Record<string, unknown> | undefined;
2798
- role?: string | undefined;
2799
- icon?: string | null | undefined;
2800
- capabilities?: string | null | undefined;
2801
- runtimeConfig?: Record<string, unknown> | undefined;
2802
- budgetMonthlyCents?: number | undefined;
2803
- permissions?: Record<string, unknown> | undefined;
2804
- instructions?: {
2805
- entryFile?: string | undefined;
2806
- content?: string | undefined;
2807
- files?: Record<string, string> | undefined;
2808
- assetPath?: string | undefined;
2809
- } | undefined;
2810
- adapterPreference?: string[] | undefined;
2811
- }[] | undefined;
2812
- jobs?: {
2813
- displayName: string;
2814
- jobKey: string;
2815
- description?: string | undefined;
2816
- schedule?: string | undefined;
2817
- }[] | undefined;
2818
- minimumHostVersion?: string | undefined;
2819
- minimumPaperclipVersion?: string | undefined;
2820
- instanceConfigSchema?: Record<string, unknown> | undefined;
2821
- webhooks?: {
2822
- displayName: string;
2823
- endpointKey: string;
2824
- description?: string | undefined;
2825
- }[] | undefined;
2826
- tools?: {
2827
- description: string;
2828
- name: string;
2829
- displayName: string;
2830
- parametersSchema: Record<string, unknown>;
2831
- }[] | undefined;
2832
- apiRoutes?: {
2833
- path: string;
2834
- routeKey: string;
2835
- method: "GET" | "POST" | "PATCH" | "DELETE";
2836
- auth: "agent" | "board" | "webhook" | "board-or-agent";
2837
- capability: "api.routes.register";
2838
- checkoutPolicy?: "none" | "required-for-agent-in-progress" | "always-for-agent" | undefined;
2839
- companyResolution?: {
2840
- key: string;
2841
- from: "body";
2842
- } | {
2843
- key: string;
2844
- from: "query";
2845
- } | {
2846
- from: "issue";
2847
- param: string;
2848
- } | undefined;
2849
- }[] | undefined;
2850
- environmentDrivers?: {
2851
- displayName: string;
2852
- driverKey: string;
2853
- configSchema: Record<string, unknown>;
2854
- description?: string | undefined;
2855
- kind?: "environment_driver" | "sandbox_provider" | undefined;
2856
- supportsReusableLeases?: boolean | undefined;
2857
- sandboxCapabilities?: {
2858
- reusableLeases?: boolean | undefined;
2859
- nativeSyncIn?: boolean | undefined;
2860
- nativeSyncOut?: boolean | undefined;
2861
- persistentProcessSessions?: boolean | undefined;
2862
- independentControlCommands?: boolean | undefined;
2863
- incrementalSessionOutput?: boolean | undefined;
2864
- } | undefined;
2865
- supportsInteractiveSetup?: boolean | undefined;
2866
- interactiveSetupConnectionTypes?: string[] | undefined;
2867
- supportsTemplateCapture?: boolean | undefined;
2868
- templateRefKind?: string | undefined;
2869
- templateConfigBinding?: {
2870
- field: string;
2871
- unsetFields?: string[] | undefined;
2872
- } | undefined;
2873
- templateIdentityPaths?: string[] | undefined;
2874
- supportsTemplateDelete?: boolean | undefined;
2875
- supportsSetupTokenLogin?: boolean | undefined;
2876
- }[] | undefined;
2877
- routines?: {
2878
- title: string;
2879
- routineKey: string;
2880
- description?: string | null | undefined;
2881
- status?: "active" | "paused" | "archived" | undefined;
2882
- goalId?: string | null | undefined;
2883
- variables?: {
2884
- name: string;
2885
- required?: boolean | undefined;
2886
- options?: string[] | undefined;
2887
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
2888
- label?: string | null | undefined;
2889
- defaultValue?: string | number | boolean | null | undefined;
2890
- }[] | undefined;
2891
- priority?: "critical" | "high" | "medium" | "low" | undefined;
2892
- triggers?: {
2893
- kind: "schedule" | "webhook" | "api";
2894
- label?: string | null | undefined;
2895
- enabled?: boolean | undefined;
2896
- cronExpression?: string | null | undefined;
2897
- timezone?: string | null | undefined;
2898
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
2899
- replayWindowSec?: number | null | undefined;
2900
- }[] | undefined;
2901
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
2902
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
2903
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
2904
- activityGateScope?: "project" | "company" | undefined;
2905
- assigneeRef?: {
2906
- resourceKind: "agent";
2907
- resourceKey: string;
2908
- pluginKey?: string | undefined;
2909
- } | null | undefined;
2910
- projectRef?: {
2911
- resourceKind: "project";
2912
- resourceKey: string;
2913
- pluginKey?: string | undefined;
2914
- } | null | undefined;
2915
- issueTemplate?: {
2916
- originId?: string | null | undefined;
2917
- billingCode?: string | null | undefined;
2918
- surfaceVisibility?: "default" | "plugin_operation" | undefined;
2919
- } | undefined;
2920
- }[] | undefined;
2921
- skills?: {
2922
- displayName: string;
2923
- skillKey: string;
2924
- description?: string | null | undefined;
2925
- files?: {
2926
- path: string;
2927
- content: string;
2928
- }[] | undefined;
2929
- slug?: string | undefined;
2930
- markdown?: string | undefined;
2931
- }[] | undefined;
2932
- localFolders?: {
2933
- displayName: string;
2934
- folderKey: string;
2935
- description?: string | undefined;
2936
- access?: "read" | "readWrite" | undefined;
2937
- requiredDirectories?: string[] | undefined;
2938
- requiredFiles?: string[] | undefined;
2939
- }[] | undefined;
2940
- objectReferences?: {
2941
- displayName: string;
2942
- providerKey: string;
2943
- objectTypes: string[];
2944
- refreshPolicy?: {
2945
- defaultTtlSeconds?: number | undefined;
2946
- staleAfterSeconds?: number | undefined;
2947
- } | undefined;
2948
- urlPatterns?: string[] | undefined;
2949
- webhookEndpointKeys?: string[] | undefined;
2950
- }[] | undefined;
2951
- launchers?: {
2952
- displayName: string;
2953
- id: string;
2954
- action: {
2955
- target: string;
2956
- type: "navigate" | "openModal" | "openDrawer" | "openPopover" | "performAction" | "deepLink";
2957
- params?: Record<string, unknown> | undefined;
2958
- };
2959
- placementZone: "page" | "detailTab" | "taskDetailView" | "dashboardWidget" | "sidebar" | "sidebarPanel" | "projectSidebarItem" | "globalToolbarButton" | "toolbarButton" | "contextMenuItem" | "commentAnnotation" | "commentContextMenuItem" | "settingsPage";
2960
- description?: string | undefined;
2961
- exportName?: string | undefined;
2962
- entityTypes?: ("project" | "project_workspace" | "execution_workspace" | "agent" | "comment" | "issue" | "run" | "goal")[] | undefined;
2963
- order?: number | undefined;
2964
- render?: {
2965
- environment: "hostInline" | "hostOverlay" | "hostRoute" | "external" | "iframe";
2966
- bounds?: "compact" | "default" | "inline" | "wide" | "full" | undefined;
2967
- } | undefined;
2968
- }[] | undefined;
2969
- }>;
1106
+ }, z.core.$strip>;
1107
+ render: z.ZodOptional<z.ZodObject<{
1108
+ environment: z.ZodEnum<{
1109
+ hostInline: "hostInline";
1110
+ hostOverlay: "hostOverlay";
1111
+ hostRoute: "hostRoute";
1112
+ external: "external";
1113
+ iframe: "iframe";
1114
+ }>;
1115
+ bounds: z.ZodOptional<z.ZodEnum<{
1116
+ compact: "compact";
1117
+ default: "default";
1118
+ inline: "inline";
1119
+ wide: "wide";
1120
+ full: "full";
1121
+ }>>;
1122
+ }, z.core.$strip>>;
1123
+ }, z.core.$strip>>>;
1124
+ }, z.core.$strip>>;
1125
+ }, z.core.$strip>;
2970
1126
  export type PluginManifestV1Input = z.infer<typeof pluginManifestV1Schema>;
2971
1127
  /**
2972
1128
  * Schema for installing (registering) a plugin.
@@ -2976,17 +1132,8 @@ export type PluginManifestV1Input = z.infer<typeof pluginManifestV1Schema>;
2976
1132
  export declare const installPluginSchema: z.ZodObject<{
2977
1133
  packageName: z.ZodString;
2978
1134
  version: z.ZodOptional<z.ZodString>;
2979
- /** Set by loader for local-path installs so the worker can be resolved. */
2980
1135
  packagePath: z.ZodOptional<z.ZodString>;
2981
- }, "strip", z.ZodTypeAny, {
2982
- packageName: string;
2983
- version?: string | undefined;
2984
- packagePath?: string | undefined;
2985
- }, {
2986
- packageName: string;
2987
- version?: string | undefined;
2988
- packagePath?: string | undefined;
2989
- }>;
1136
+ }, z.core.$strip>;
2990
1137
  export type InstallPlugin = z.infer<typeof installPluginSchema>;
2991
1138
  /**
2992
1139
  * Schema for creating or updating a plugin's company-scoped configuration.
@@ -2996,13 +1143,7 @@ export type InstallPlugin = z.infer<typeof installPluginSchema>;
2996
1143
  export declare const upsertPluginConfigSchema: z.ZodObject<{
2997
1144
  companyId: z.ZodString;
2998
1145
  configJson: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2999
- }, "strip", z.ZodTypeAny, {
3000
- companyId: string;
3001
- configJson: Record<string, unknown>;
3002
- }, {
3003
- companyId: string;
3004
- configJson: Record<string, unknown>;
3005
- }>;
1146
+ }, z.core.$strip>;
3006
1147
  export type UpsertPluginConfig = z.infer<typeof upsertPluginConfigSchema>;
3007
1148
  /**
3008
1149
  * Schema for partially updating a plugin's company-scoped configuration.
@@ -3011,13 +1152,7 @@ export type UpsertPluginConfig = z.infer<typeof upsertPluginConfigSchema>;
3011
1152
  export declare const patchPluginConfigSchema: z.ZodObject<{
3012
1153
  companyId: z.ZodString;
3013
1154
  configJson: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3014
- }, "strip", z.ZodTypeAny, {
3015
- companyId: string;
3016
- configJson: Record<string, unknown>;
3017
- }, {
3018
- companyId: string;
3019
- configJson: Record<string, unknown>;
3020
- }>;
1155
+ }, z.core.$strip>;
3021
1156
  export type PatchPluginConfig = z.infer<typeof patchPluginConfigSchema>;
3022
1157
  /**
3023
1158
  * Schema for updating a plugin's lifecycle status. Used by the lifecycle
@@ -3026,24 +1161,21 @@ export type PatchPluginConfig = z.infer<typeof patchPluginConfigSchema>;
3026
1161
  * @see {@link PLUGIN_STATUSES} for the valid status values
3027
1162
  */
3028
1163
  export declare const updatePluginStatusSchema: z.ZodObject<{
3029
- status: z.ZodEnum<["installed", "ready", "disabled", "error", "upgrade_pending", "uninstalled"]>;
1164
+ status: z.ZodEnum<{
1165
+ error: "error";
1166
+ ready: "ready";
1167
+ disabled: "disabled";
1168
+ installed: "installed";
1169
+ upgrade_pending: "upgrade_pending";
1170
+ uninstalled: "uninstalled";
1171
+ }>;
3030
1172
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3031
- }, "strip", z.ZodTypeAny, {
3032
- status: "error" | "ready" | "disabled" | "installed" | "upgrade_pending" | "uninstalled";
3033
- lastError?: string | null | undefined;
3034
- }, {
3035
- status: "error" | "ready" | "disabled" | "installed" | "upgrade_pending" | "uninstalled";
3036
- lastError?: string | null | undefined;
3037
- }>;
1173
+ }, z.core.$strip>;
3038
1174
  export type UpdatePluginStatus = z.infer<typeof updatePluginStatusSchema>;
3039
1175
  /** Schema for the uninstall request. `removeData` controls hard vs soft delete. */
3040
1176
  export declare const uninstallPluginSchema: z.ZodObject<{
3041
1177
  removeData: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3042
- }, "strip", z.ZodTypeAny, {
3043
- removeData: boolean;
3044
- }, {
3045
- removeData?: boolean | undefined;
3046
- }>;
1178
+ }, z.core.$strip>;
3047
1179
  export type UninstallPlugin = z.infer<typeof uninstallPluginSchema>;
3048
1180
  /**
3049
1181
  * Schema for a plugin state scope key — identifies the exact location where
@@ -3053,62 +1185,58 @@ export type UninstallPlugin = z.infer<typeof uninstallPluginSchema>;
3053
1185
  * @see PLUGIN_SPEC.md §21.3 `plugin_state`
3054
1186
  */
3055
1187
  export declare const pluginStateScopeKeySchema: z.ZodObject<{
3056
- scopeKind: z.ZodEnum<["instance", "company", "project", "project_workspace", "agent", "issue", "goal", "run"]>;
1188
+ scopeKind: z.ZodEnum<{
1189
+ project: "project";
1190
+ project_workspace: "project_workspace";
1191
+ agent: "agent";
1192
+ company: "company";
1193
+ issue: "issue";
1194
+ run: "run";
1195
+ instance: "instance";
1196
+ goal: "goal";
1197
+ }>;
3057
1198
  scopeId: z.ZodOptional<z.ZodString>;
3058
1199
  namespace: z.ZodOptional<z.ZodString>;
3059
1200
  stateKey: z.ZodString;
3060
- }, "strip", z.ZodTypeAny, {
3061
- scopeKind: "project" | "project_workspace" | "agent" | "company" | "issue" | "run" | "instance" | "goal";
3062
- stateKey: string;
3063
- namespace?: string | undefined;
3064
- scopeId?: string | undefined;
3065
- }, {
3066
- scopeKind: "project" | "project_workspace" | "agent" | "company" | "issue" | "run" | "instance" | "goal";
3067
- stateKey: string;
3068
- namespace?: string | undefined;
3069
- scopeId?: string | undefined;
3070
- }>;
1201
+ }, z.core.$strip>;
3071
1202
  export type PluginStateScopeKey = z.infer<typeof pluginStateScopeKeySchema>;
3072
1203
  /**
3073
1204
  * Schema for setting a plugin state value.
3074
1205
  */
3075
1206
  export declare const setPluginStateSchema: z.ZodObject<{
3076
- scopeKind: z.ZodEnum<["instance", "company", "project", "project_workspace", "agent", "issue", "goal", "run"]>;
1207
+ scopeKind: z.ZodEnum<{
1208
+ project: "project";
1209
+ project_workspace: "project_workspace";
1210
+ agent: "agent";
1211
+ company: "company";
1212
+ issue: "issue";
1213
+ run: "run";
1214
+ instance: "instance";
1215
+ goal: "goal";
1216
+ }>;
3077
1217
  scopeId: z.ZodOptional<z.ZodString>;
3078
1218
  namespace: z.ZodOptional<z.ZodString>;
3079
1219
  stateKey: z.ZodString;
3080
- /** JSON-serializable value to store. */
3081
1220
  value: z.ZodUnknown;
3082
- }, "strip", z.ZodTypeAny, {
3083
- scopeKind: "project" | "project_workspace" | "agent" | "company" | "issue" | "run" | "instance" | "goal";
3084
- stateKey: string;
3085
- value?: unknown;
3086
- namespace?: string | undefined;
3087
- scopeId?: string | undefined;
3088
- }, {
3089
- scopeKind: "project" | "project_workspace" | "agent" | "company" | "issue" | "run" | "instance" | "goal";
3090
- stateKey: string;
3091
- value?: unknown;
3092
- namespace?: string | undefined;
3093
- scopeId?: string | undefined;
3094
- }>;
1221
+ }, z.core.$strip>;
3095
1222
  export type SetPluginState = z.infer<typeof setPluginStateSchema>;
3096
1223
  /**
3097
1224
  * Schema for querying plugin state entries. All fields are optional to allow
3098
1225
  * flexible list queries (e.g. all state for a plugin within a scope).
3099
1226
  */
3100
1227
  export declare const listPluginStateSchema: z.ZodObject<{
3101
- scopeKind: z.ZodOptional<z.ZodEnum<["instance", "company", "project", "project_workspace", "agent", "issue", "goal", "run"]>>;
1228
+ scopeKind: z.ZodOptional<z.ZodEnum<{
1229
+ project: "project";
1230
+ project_workspace: "project_workspace";
1231
+ agent: "agent";
1232
+ company: "company";
1233
+ issue: "issue";
1234
+ run: "run";
1235
+ instance: "instance";
1236
+ goal: "goal";
1237
+ }>>;
3102
1238
  scopeId: z.ZodOptional<z.ZodString>;
3103
1239
  namespace: z.ZodOptional<z.ZodString>;
3104
- }, "strip", z.ZodTypeAny, {
3105
- namespace?: string | undefined;
3106
- scopeKind?: "project" | "project_workspace" | "agent" | "company" | "issue" | "run" | "instance" | "goal" | undefined;
3107
- scopeId?: string | undefined;
3108
- }, {
3109
- namespace?: string | undefined;
3110
- scopeKind?: "project" | "project_workspace" | "agent" | "company" | "issue" | "run" | "instance" | "goal" | undefined;
3111
- scopeId?: string | undefined;
3112
- }>;
1240
+ }, z.core.$strip>;
3113
1241
  export type ListPluginState = z.infer<typeof listPluginStateSchema>;
3114
1242
  //# sourceMappingURL=plugin.d.ts.map