@vertesia/common 1.0.0-dev.20260128.144200 → 1.0.0-dev.20260203.130115Z

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 (337) hide show
  1. package/package.json +2 -2
  2. package/src/apps.ts +87 -1
  3. package/src/project.ts +83 -1
  4. package/src/skill.ts +1 -0
  5. package/src/store/dsl-workflow.ts +6 -0
  6. package/src/store/hive-memory.ts +167 -0
  7. package/src/store/index.ts +1 -0
  8. package/src/store/store.ts +1 -0
  9. package/src/store/workflow.ts +7 -0
  10. package/lib/cjs/Progress.js +0 -61
  11. package/lib/cjs/Progress.js.map +0 -1
  12. package/lib/cjs/access-control.js +0 -56
  13. package/lib/cjs/access-control.js.map +0 -1
  14. package/lib/cjs/analytics.js +0 -3
  15. package/lib/cjs/analytics.js.map +0 -1
  16. package/lib/cjs/apikey.js +0 -16
  17. package/lib/cjs/apikey.js.map +0 -1
  18. package/lib/cjs/apps.js +0 -35
  19. package/lib/cjs/apps.js.map +0 -1
  20. package/lib/cjs/ask-user.js +0 -8
  21. package/lib/cjs/ask-user.js.map +0 -1
  22. package/lib/cjs/channels.js +0 -63
  23. package/lib/cjs/channels.js.map +0 -1
  24. package/lib/cjs/common.js +0 -3
  25. package/lib/cjs/common.js.map +0 -1
  26. package/lib/cjs/data-platform.js +0 -127
  27. package/lib/cjs/data-platform.js.map +0 -1
  28. package/lib/cjs/email.js +0 -20
  29. package/lib/cjs/email.js.map +0 -1
  30. package/lib/cjs/environment.js +0 -44
  31. package/lib/cjs/environment.js.map +0 -1
  32. package/lib/cjs/facets.js +0 -3
  33. package/lib/cjs/facets.js.map +0 -1
  34. package/lib/cjs/group.js +0 -5
  35. package/lib/cjs/group.js.map +0 -1
  36. package/lib/cjs/index.js +0 -55
  37. package/lib/cjs/index.js.map +0 -1
  38. package/lib/cjs/integrations.js +0 -14
  39. package/lib/cjs/integrations.js.map +0 -1
  40. package/lib/cjs/interaction.js +0 -97
  41. package/lib/cjs/interaction.js.map +0 -1
  42. package/lib/cjs/json-schema.js +0 -3
  43. package/lib/cjs/json-schema.js.map +0 -1
  44. package/lib/cjs/json.js +0 -3
  45. package/lib/cjs/json.js.map +0 -1
  46. package/lib/cjs/meters.js +0 -13
  47. package/lib/cjs/meters.js.map +0 -1
  48. package/lib/cjs/model_utility.js +0 -6
  49. package/lib/cjs/model_utility.js.map +0 -1
  50. package/lib/cjs/package.json +0 -3
  51. package/lib/cjs/payload.js +0 -3
  52. package/lib/cjs/payload.js.map +0 -1
  53. package/lib/cjs/pending-asks.js +0 -7
  54. package/lib/cjs/pending-asks.js.map +0 -1
  55. package/lib/cjs/project.js +0 -107
  56. package/lib/cjs/project.js.map +0 -1
  57. package/lib/cjs/prompt.js +0 -21
  58. package/lib/cjs/prompt.js.map +0 -1
  59. package/lib/cjs/query.js +0 -3
  60. package/lib/cjs/query.js.map +0 -1
  61. package/lib/cjs/rate-limiter.js +0 -6
  62. package/lib/cjs/rate-limiter.js.map +0 -1
  63. package/lib/cjs/refs.js +0 -14
  64. package/lib/cjs/refs.js.map +0 -1
  65. package/lib/cjs/runs.js +0 -3
  66. package/lib/cjs/runs.js.map +0 -1
  67. package/lib/cjs/skill.js +0 -14
  68. package/lib/cjs/skill.js.map +0 -1
  69. package/lib/cjs/store/activity-catalog.js +0 -3
  70. package/lib/cjs/store/activity-catalog.js.map +0 -1
  71. package/lib/cjs/store/collections.js +0 -9
  72. package/lib/cjs/store/collections.js.map +0 -1
  73. package/lib/cjs/store/common.js +0 -3
  74. package/lib/cjs/store/common.js.map +0 -1
  75. package/lib/cjs/store/conversation-state.js +0 -3
  76. package/lib/cjs/store/conversation-state.js.map +0 -1
  77. package/lib/cjs/store/doc-analyzer.js +0 -3
  78. package/lib/cjs/store/doc-analyzer.js.map +0 -1
  79. package/lib/cjs/store/dsl-workflow.js +0 -5
  80. package/lib/cjs/store/dsl-workflow.js.map +0 -1
  81. package/lib/cjs/store/index.js +0 -30
  82. package/lib/cjs/store/index.js.map +0 -1
  83. package/lib/cjs/store/object-types.js +0 -98
  84. package/lib/cjs/store/object-types.js.map +0 -1
  85. package/lib/cjs/store/schedule.js +0 -32
  86. package/lib/cjs/store/schedule.js.map +0 -1
  87. package/lib/cjs/store/signals.js +0 -3
  88. package/lib/cjs/store/signals.js.map +0 -1
  89. package/lib/cjs/store/store.js +0 -166
  90. package/lib/cjs/store/store.js.map +0 -1
  91. package/lib/cjs/store/temporalio.js +0 -44
  92. package/lib/cjs/store/temporalio.js.map +0 -1
  93. package/lib/cjs/store/worker.js +0 -3
  94. package/lib/cjs/store/worker.js.map +0 -1
  95. package/lib/cjs/store/workflow.js +0 -262
  96. package/lib/cjs/store/workflow.js.map +0 -1
  97. package/lib/cjs/sts-token-types.js +0 -32
  98. package/lib/cjs/sts-token-types.js.map +0 -1
  99. package/lib/cjs/tenant.js +0 -3
  100. package/lib/cjs/tenant.js.map +0 -1
  101. package/lib/cjs/tool-execution.js +0 -6
  102. package/lib/cjs/tool-execution.js.map +0 -1
  103. package/lib/cjs/training.js +0 -14
  104. package/lib/cjs/training.js.map +0 -1
  105. package/lib/cjs/transient-tokens.js +0 -9
  106. package/lib/cjs/transient-tokens.js.map +0 -1
  107. package/lib/cjs/user.js +0 -25
  108. package/lib/cjs/user.js.map +0 -1
  109. package/lib/cjs/utils/auth.js +0 -15
  110. package/lib/cjs/utils/auth.js.map +0 -1
  111. package/lib/cjs/utils/schemas.js +0 -114
  112. package/lib/cjs/utils/schemas.js.map +0 -1
  113. package/lib/cjs/utils/type-helpers.js +0 -3
  114. package/lib/cjs/utils/type-helpers.js.map +0 -1
  115. package/lib/cjs/versions.js +0 -8
  116. package/lib/cjs/versions.js.map +0 -1
  117. package/lib/cjs/workflow-analytics.js +0 -52
  118. package/lib/cjs/workflow-analytics.js.map +0 -1
  119. package/lib/esm/Progress.js +0 -57
  120. package/lib/esm/Progress.js.map +0 -1
  121. package/lib/esm/access-control.js +0 -53
  122. package/lib/esm/access-control.js.map +0 -1
  123. package/lib/esm/analytics.js +0 -2
  124. package/lib/esm/analytics.js.map +0 -1
  125. package/lib/esm/apikey.js +0 -13
  126. package/lib/esm/apikey.js.map +0 -1
  127. package/lib/esm/apps.js +0 -32
  128. package/lib/esm/apps.js.map +0 -1
  129. package/lib/esm/ask-user.js +0 -7
  130. package/lib/esm/ask-user.js.map +0 -1
  131. package/lib/esm/channels.js +0 -57
  132. package/lib/esm/channels.js.map +0 -1
  133. package/lib/esm/common.js +0 -2
  134. package/lib/esm/common.js.map +0 -1
  135. package/lib/esm/data-platform.js +0 -124
  136. package/lib/esm/data-platform.js.map +0 -1
  137. package/lib/esm/email.js +0 -16
  138. package/lib/esm/email.js.map +0 -1
  139. package/lib/esm/environment.js +0 -41
  140. package/lib/esm/environment.js.map +0 -1
  141. package/lib/esm/facets.js +0 -2
  142. package/lib/esm/facets.js.map +0 -1
  143. package/lib/esm/group.js +0 -2
  144. package/lib/esm/group.js.map +0 -1
  145. package/lib/esm/index.js +0 -39
  146. package/lib/esm/index.js.map +0 -1
  147. package/lib/esm/integrations.js +0 -11
  148. package/lib/esm/integrations.js.map +0 -1
  149. package/lib/esm/interaction.js +0 -92
  150. package/lib/esm/interaction.js.map +0 -1
  151. package/lib/esm/json-schema.js +0 -2
  152. package/lib/esm/json-schema.js.map +0 -1
  153. package/lib/esm/json.js +0 -2
  154. package/lib/esm/json.js.map +0 -1
  155. package/lib/esm/meters.js +0 -10
  156. package/lib/esm/meters.js.map +0 -1
  157. package/lib/esm/model_utility.js +0 -2
  158. package/lib/esm/model_utility.js.map +0 -1
  159. package/lib/esm/payload.js +0 -2
  160. package/lib/esm/payload.js.map +0 -1
  161. package/lib/esm/pending-asks.js +0 -6
  162. package/lib/esm/pending-asks.js.map +0 -1
  163. package/lib/esm/project.js +0 -102
  164. package/lib/esm/project.js.map +0 -1
  165. package/lib/esm/prompt.js +0 -18
  166. package/lib/esm/prompt.js.map +0 -1
  167. package/lib/esm/query.js +0 -2
  168. package/lib/esm/query.js.map +0 -1
  169. package/lib/esm/rate-limiter.js +0 -5
  170. package/lib/esm/rate-limiter.js.map +0 -1
  171. package/lib/esm/refs.js +0 -11
  172. package/lib/esm/refs.js.map +0 -1
  173. package/lib/esm/runs.js +0 -2
  174. package/lib/esm/runs.js.map +0 -1
  175. package/lib/esm/skill.js +0 -13
  176. package/lib/esm/skill.js.map +0 -1
  177. package/lib/esm/store/activity-catalog.js +0 -2
  178. package/lib/esm/store/activity-catalog.js.map +0 -1
  179. package/lib/esm/store/collections.js +0 -6
  180. package/lib/esm/store/collections.js.map +0 -1
  181. package/lib/esm/store/common.js +0 -2
  182. package/lib/esm/store/common.js.map +0 -1
  183. package/lib/esm/store/conversation-state.js +0 -2
  184. package/lib/esm/store/conversation-state.js.map +0 -1
  185. package/lib/esm/store/doc-analyzer.js +0 -2
  186. package/lib/esm/store/doc-analyzer.js.map +0 -1
  187. package/lib/esm/store/dsl-workflow.js +0 -2
  188. package/lib/esm/store/dsl-workflow.js.map +0 -1
  189. package/lib/esm/store/index.js +0 -14
  190. package/lib/esm/store/index.js.map +0 -1
  191. package/lib/esm/store/object-types.js +0 -95
  192. package/lib/esm/store/object-types.js.map +0 -1
  193. package/lib/esm/store/schedule.js +0 -29
  194. package/lib/esm/store/schedule.js.map +0 -1
  195. package/lib/esm/store/signals.js +0 -2
  196. package/lib/esm/store/signals.js.map +0 -1
  197. package/lib/esm/store/store.js +0 -160
  198. package/lib/esm/store/store.js.map +0 -1
  199. package/lib/esm/store/temporalio.js +0 -41
  200. package/lib/esm/store/temporalio.js.map +0 -1
  201. package/lib/esm/store/worker.js +0 -2
  202. package/lib/esm/store/worker.js.map +0 -1
  203. package/lib/esm/store/workflow.js +0 -249
  204. package/lib/esm/store/workflow.js.map +0 -1
  205. package/lib/esm/sts-token-types.js +0 -24
  206. package/lib/esm/sts-token-types.js.map +0 -1
  207. package/lib/esm/tenant.js +0 -2
  208. package/lib/esm/tenant.js.map +0 -1
  209. package/lib/esm/tool-execution.js +0 -5
  210. package/lib/esm/tool-execution.js.map +0 -1
  211. package/lib/esm/training.js +0 -11
  212. package/lib/esm/training.js.map +0 -1
  213. package/lib/esm/transient-tokens.js +0 -6
  214. package/lib/esm/transient-tokens.js.map +0 -1
  215. package/lib/esm/user.js +0 -22
  216. package/lib/esm/user.js.map +0 -1
  217. package/lib/esm/utils/auth.js +0 -11
  218. package/lib/esm/utils/auth.js.map +0 -1
  219. package/lib/esm/utils/schemas.js +0 -107
  220. package/lib/esm/utils/schemas.js.map +0 -1
  221. package/lib/esm/utils/type-helpers.js +0 -2
  222. package/lib/esm/utils/type-helpers.js.map +0 -1
  223. package/lib/esm/versions.js +0 -5
  224. package/lib/esm/versions.js.map +0 -1
  225. package/lib/esm/workflow-analytics.js +0 -49
  226. package/lib/esm/workflow-analytics.js.map +0 -1
  227. package/lib/tsconfig.tsbuildinfo +0 -1
  228. package/lib/types/Progress.d.ts +0 -21
  229. package/lib/types/Progress.d.ts.map +0 -1
  230. package/lib/types/access-control.d.ts +0 -73
  231. package/lib/types/access-control.d.ts.map +0 -1
  232. package/lib/types/analytics.d.ts +0 -87
  233. package/lib/types/analytics.d.ts.map +0 -1
  234. package/lib/types/apikey.d.ts +0 -98
  235. package/lib/types/apikey.d.ts.map +0 -1
  236. package/lib/types/apps.d.ts +0 -236
  237. package/lib/types/apps.d.ts.map +0 -1
  238. package/lib/types/ask-user.d.ts +0 -32
  239. package/lib/types/ask-user.d.ts.map +0 -1
  240. package/lib/types/channels.d.ts +0 -21
  241. package/lib/types/channels.d.ts.map +0 -1
  242. package/lib/types/common.d.ts +0 -31
  243. package/lib/types/common.d.ts.map +0 -1
  244. package/lib/types/data-platform.d.ts +0 -860
  245. package/lib/types/data-platform.d.ts.map +0 -1
  246. package/lib/types/email.d.ts +0 -66
  247. package/lib/types/email.d.ts.map +0 -1
  248. package/lib/types/environment.d.ts +0 -106
  249. package/lib/types/environment.d.ts.map +0 -1
  250. package/lib/types/facets.d.ts +0 -34
  251. package/lib/types/facets.d.ts.map +0 -1
  252. package/lib/types/group.d.ts +0 -21
  253. package/lib/types/group.d.ts.map +0 -1
  254. package/lib/types/index.d.ts +0 -39
  255. package/lib/types/index.d.ts.map +0 -1
  256. package/lib/types/integrations.d.ts +0 -60
  257. package/lib/types/integrations.d.ts.map +0 -1
  258. package/lib/types/interaction.d.ts +0 -965
  259. package/lib/types/interaction.d.ts.map +0 -1
  260. package/lib/types/json-schema.d.ts +0 -1
  261. package/lib/types/json-schema.d.ts.map +0 -1
  262. package/lib/types/json.d.ts +0 -1
  263. package/lib/types/json.d.ts.map +0 -1
  264. package/lib/types/meters.d.ts +0 -23
  265. package/lib/types/meters.d.ts.map +0 -1
  266. package/lib/types/model_utility.d.ts +0 -1
  267. package/lib/types/model_utility.d.ts.map +0 -1
  268. package/lib/types/payload.d.ts +0 -60
  269. package/lib/types/payload.d.ts.map +0 -1
  270. package/lib/types/pending-asks.d.ts +0 -93
  271. package/lib/types/pending-asks.d.ts.map +0 -1
  272. package/lib/types/project.d.ts +0 -179
  273. package/lib/types/project.d.ts.map +0 -1
  274. package/lib/types/prompt.d.ts +0 -78
  275. package/lib/types/prompt.d.ts.map +0 -1
  276. package/lib/types/query.d.ts +0 -118
  277. package/lib/types/query.d.ts.map +0 -1
  278. package/lib/types/rate-limiter.d.ts +0 -28
  279. package/lib/types/rate-limiter.d.ts.map +0 -1
  280. package/lib/types/refs.d.ts +0 -22
  281. package/lib/types/refs.d.ts.map +0 -1
  282. package/lib/types/runs.d.ts +0 -32
  283. package/lib/types/runs.d.ts.map +0 -1
  284. package/lib/types/skill.d.ts +0 -78
  285. package/lib/types/skill.d.ts.map +0 -1
  286. package/lib/types/store/activity-catalog.d.ts +0 -26
  287. package/lib/types/store/activity-catalog.d.ts.map +0 -1
  288. package/lib/types/store/collections.d.ts +0 -78
  289. package/lib/types/store/collections.d.ts.map +0 -1
  290. package/lib/types/store/common.d.ts +0 -22
  291. package/lib/types/store/common.d.ts.map +0 -1
  292. package/lib/types/store/conversation-state.d.ts +0 -125
  293. package/lib/types/store/conversation-state.d.ts.map +0 -1
  294. package/lib/types/store/doc-analyzer.d.ts +0 -140
  295. package/lib/types/store/doc-analyzer.d.ts.map +0 -1
  296. package/lib/types/store/dsl-workflow.d.ts +0 -244
  297. package/lib/types/store/dsl-workflow.d.ts.map +0 -1
  298. package/lib/types/store/index.d.ts +0 -13
  299. package/lib/types/store/index.d.ts.map +0 -1
  300. package/lib/types/store/object-types.d.ts +0 -23
  301. package/lib/types/store/object-types.d.ts.map +0 -1
  302. package/lib/types/store/schedule.d.ts +0 -182
  303. package/lib/types/store/schedule.d.ts.map +0 -1
  304. package/lib/types/store/signals.d.ts +0 -24
  305. package/lib/types/store/signals.d.ts.map +0 -1
  306. package/lib/types/store/store.d.ts +0 -407
  307. package/lib/types/store/store.d.ts.map +0 -1
  308. package/lib/types/store/temporalio.d.ts +0 -16
  309. package/lib/types/store/temporalio.d.ts.map +0 -1
  310. package/lib/types/store/worker.d.ts +0 -18
  311. package/lib/types/store/worker.d.ts.map +0 -1
  312. package/lib/types/store/workflow.d.ts +0 -810
  313. package/lib/types/store/workflow.d.ts.map +0 -1
  314. package/lib/types/sts-token-types.d.ts +0 -72
  315. package/lib/types/sts-token-types.d.ts.map +0 -1
  316. package/lib/types/tenant.d.ts +0 -10
  317. package/lib/types/tenant.d.ts.map +0 -1
  318. package/lib/types/tool-execution.d.ts +0 -45
  319. package/lib/types/tool-execution.d.ts.map +0 -1
  320. package/lib/types/training.d.ts +0 -38
  321. package/lib/types/training.d.ts.map +0 -1
  322. package/lib/types/transient-tokens.d.ts +0 -24
  323. package/lib/types/transient-tokens.d.ts.map +0 -1
  324. package/lib/types/user.d.ts +0 -116
  325. package/lib/types/user.d.ts.map +0 -1
  326. package/lib/types/utils/auth.d.ts +0 -3
  327. package/lib/types/utils/auth.d.ts.map +0 -1
  328. package/lib/types/utils/schemas.d.ts +0 -9
  329. package/lib/types/utils/schemas.d.ts.map +0 -1
  330. package/lib/types/utils/type-helpers.d.ts +0 -3
  331. package/lib/types/utils/type-helpers.d.ts.map +0 -1
  332. package/lib/types/versions.d.ts +0 -3
  333. package/lib/types/versions.d.ts.map +0 -1
  334. package/lib/types/workflow-analytics.d.ts +0 -777
  335. package/lib/types/workflow-analytics.d.ts.map +0 -1
  336. package/lib/vertesia-common.js +0 -2
  337. package/lib/vertesia-common.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertesia/common",
3
- "version": "1.0.0-dev.20260128.144200",
3
+ "version": "1.0.0-dev.20260203.130115Z",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "types": "./lib/types/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "ajv": "^8.17.1",
30
30
  "json-schema": "^0.4.0",
31
- "@llumiverse/common": "1.0.0-dev.20260128.144200"
31
+ "@llumiverse/common": "1.0.0-dev.20260202.145450Z"
32
32
  },
33
33
  "repository": {
34
34
  "type": "git",
package/src/apps.ts CHANGED
@@ -1,4 +1,6 @@
1
- import { JSONSchema } from "@llumiverse/common";
1
+ import { JSONSchema, ToolDefinition } from "@llumiverse/common";
2
+ import { CatalogInteractionRef } from "./interaction.js";
3
+ import { InCodeTypeDefinition } from "./store/index.js";
2
4
 
3
5
  export interface AppUIConfig {
4
6
  /**
@@ -134,6 +136,29 @@ export function normalizeToolCollection(collection: ToolCollection): ToolCollect
134
136
  return collection;
135
137
  }
136
138
 
139
+
140
+ /**
141
+ * Tool definition with optional activation control for agent exposure.
142
+ */
143
+ export interface AgentToolDefinition extends ToolDefinition {
144
+ /**
145
+ * The tool category if any - for UI purposes.
146
+ */
147
+ category?: string;
148
+ /**
149
+ * Whether this tool is available by default.
150
+ * - true/undefined: Tool is always available to agents
151
+ * - false: Tool is only available when activated by a skill's related_tools
152
+ */
153
+ default?: boolean;
154
+ /**
155
+ * For skill tools (learn_*): list of related tool names that become available
156
+ * when this skill is called. Used for dynamic tool discovery.
157
+ */
158
+ related_tools?: string[];
159
+ }
160
+
161
+ export type AppCapabilities = 'ui' | 'tools' | 'interactions' | 'types';
137
162
  export interface AppManifestData {
138
163
  /**
139
164
  * The name of the app, used as the id in the system.
@@ -166,12 +191,17 @@ export interface AppManifestData {
166
191
 
167
192
  status: "beta" | "stable" | "deprecated"
168
193
 
194
+ /**
195
+ * The UI configuration of the app. If not specified and the app "ui" is in the app capabilities
196
+ * then the ui configuration will be fetched from the endpoint property.
197
+ */
169
198
  ui?: AppUIConfig
170
199
 
171
200
  /**
172
201
  * A list of tool collections endpoints to be used by this app.
173
202
  * A tools collection endpoint is an URL which may end with a `?import` query string.
174
203
  * If the `?import` query string is used the tool will be imported as a javascript module and not executed through a POST on the collections endpoint.
204
+ * This feature is for advanced composition of tools. Prefer using endpoint.
175
205
  */
176
206
  tool_collections?: ToolCollection[]
177
207
 
@@ -180,14 +210,70 @@ export interface AppManifestData {
180
210
  * The URL must provide 2 endpoints:
181
211
  * 1. GET URL - must return a JSON array with the list of interactions (as AppInteractionRef[])
182
212
  * 2. GET URL/{interaction_name} - must return the full interaction definition for the specified interaction.
213
+ * This feature is for advanced composition of interactions. Prefer using endpoint.
183
214
  */
184
215
  interactions?: string;
185
216
 
186
217
  /**
187
218
  * A JSON chema for the app installation settings.
219
+ * @deprecated Use endpoint to provide settings_schema instead
188
220
  */
189
221
  settings_schema?: JSONSchema;
222
+
223
+ /** The following API is part of the second version of the manifest and deprectaes similar properties included directly in the manifest */
224
+
225
+ /**
226
+ * Describe the capabiltities of this app - which kind of contributions it provides.
227
+ */
228
+ capabilities?: AppCapabilities[];
229
+
230
+ /**
231
+ * The app endpoint URL
232
+ * This URL should return a JSON object describing the contributions provided by the app.
233
+ * The object shape must satisfies AppPackage interface.
234
+ * The endpoint must support GET method and a `scope` parameter to filter which resources are included in the returned AppPackage:
235
+ * The supported scope values are:
236
+ * - ui
237
+ * - tools
238
+ * - interactions
239
+ * - types
240
+ * - settings
241
+ * - all (the default if no scope is provided)
242
+ * You can also use comma-separated values to combine scopes (e.g. "ui,tools").
243
+ *
244
+ * Example:
245
+ * - ?scope=ui,tools - returns only the UI configuration
246
+ */
247
+ endpoint?: string;
190
248
  }
249
+ export type AppPackageScope = 'ui' | 'tools' | 'interactions' | 'types' | 'settings' | 'all';
250
+ export interface AppPackage {
251
+ /**
252
+ * The UI configuration of the app
253
+ */
254
+ ui?: AppUIConfig
255
+
256
+ /**
257
+ * A list of tools exposed by the app.
258
+ */
259
+ tools?: AgentToolDefinition[]
260
+
261
+ /**
262
+ * A list of interactions exposed by the app
263
+ */
264
+ interactions?: CatalogInteractionRef[];
265
+
266
+ /**
267
+ * A list of types.
268
+ */
269
+ types?: InCodeTypeDefinition[];
270
+
271
+ /**
272
+ * A JSON chema for the app installation settings.
273
+ */
274
+ settings_schema?: JSONSchema;
275
+ }
276
+
191
277
  export interface AppManifest extends AppManifestData {
192
278
  id: string;
193
279
  account: string;
package/src/project.ts CHANGED
@@ -183,6 +183,29 @@ export interface ProjectConfiguration {
183
183
  */
184
184
  agent_streaming_enabled?: boolean;
185
185
 
186
+ /**
187
+ * Indexing configuration for this project.
188
+ * Controls whether indexing and querying are enabled at the project level.
189
+ */
190
+ indexing?: {
191
+ /**
192
+ * Enable indexing for content objects in this project.
193
+ * When enabled, content changes trigger indexing workflows.
194
+ * Defaults to true - indexing is always on when ES infrastructure is available.
195
+ */
196
+ enabled?: boolean;
197
+ };
198
+
199
+ /**
200
+ * Primary language for full-text search analysis.
201
+ * ISO 639-1 code (e.g., 'en', 'fr', 'ja', 'de').
202
+ * Determines which Elasticsearch analyzer is used for the text field.
203
+ * Defaults to 'en' (English/standard analyzer).
204
+ *
205
+ * Changing this value requires a full reindex to take effect.
206
+ */
207
+ main_language?: string;
208
+
186
209
  }
187
210
 
188
211
  // export interface ProjectConfigurationEmbeddings {
@@ -246,7 +269,6 @@ export const ProjectRefPopulate = "id name account";
246
269
  export interface EmbeddingsStatusResponse {
247
270
  status: string;
248
271
  embeddingRunsInProgress?: number;
249
- totalRunsInProgress?: number;
250
272
  totalIndexableObjects?: number;
251
273
  embeddingsModels?: string[];
252
274
  objectsWithEmbeddings?: number;
@@ -257,6 +279,66 @@ export interface EmbeddingsStatusResponse {
257
279
  }
258
280
  }
259
281
 
282
+ /**
283
+ * Response from indexing status endpoint
284
+ */
285
+ export interface IndexingStatusResponse {
286
+ /** Whether indexing infrastructure is available globally */
287
+ infrastructureEnabled: boolean;
288
+ /** Whether indexing is enabled for this project */
289
+ indexingEnabled: boolean;
290
+ /** @deprecated Now derived from indexingEnabled - queries automatically route to index when indexing is enabled */
291
+ query_enabled: boolean;
292
+ /** Index status */
293
+ index: {
294
+ /** Whether the index exists */
295
+ exists: boolean;
296
+ /** Alias name (used for queries) */
297
+ aliasName: string;
298
+ /** Actual index name (versioned) */
299
+ indexName: string;
300
+ /** Index version (timestamp when created) */
301
+ version: number;
302
+ /** When the current index was created */
303
+ createdAt: string | null;
304
+ /** Number of documents in the index */
305
+ documentCount: number;
306
+ /** Index size in bytes */
307
+ sizeBytes: number;
308
+ };
309
+ /** MongoDB document count for comparison */
310
+ mongoDocumentCount: number;
311
+ /** Whether a reindex is currently in progress */
312
+ reindexInProgress: boolean;
313
+ /** Reindex progress (if reindex is in progress) */
314
+ reindexProgress?: {
315
+ /** Total documents to reindex */
316
+ total: number;
317
+ /** Documents processed so far */
318
+ processed: number;
319
+ /** Successfully indexed documents */
320
+ successful: number;
321
+ /** Failed documents */
322
+ failed: number;
323
+ /** Current status (e.g., "indexing", "complete") */
324
+ status: string;
325
+ /** Current batch number */
326
+ currentBatch: number;
327
+ /** Total number of batches */
328
+ totalBatches: number;
329
+ /** Percentage complete (0-100) */
330
+ percentComplete: number;
331
+ /** Batches processed per second */
332
+ batchesPerSecond: number;
333
+ /** Documents processed per second */
334
+ docsPerSecond: number;
335
+ /** Elapsed time in seconds */
336
+ elapsedSeconds: number;
337
+ /** Estimated seconds remaining (null if unknown) */
338
+ estimatedSecondsRemaining: number | null;
339
+ };
340
+ }
341
+
260
342
  export interface ProjectIntegrationListEntry {
261
343
  id: SupportedIntegrations;
262
344
  enabled: boolean;
package/src/skill.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  * These are automatically synced to the sandbox when the skill is used.
11
11
  */
12
12
 
13
+
13
14
  /**
14
15
  * Context provided when searching for relevant skills
15
16
  */
@@ -190,6 +190,12 @@ export interface DSLChildWorkflowStep extends DSLWorkflowStepBase {
190
190
  * since it may contain references to workflow execution vars.
191
191
  */
192
192
  output?: string;
193
+ /**
194
+ * A JSON expression which evaluates to true or false similar to mongo matches.
195
+ * The child workflow will only execute if the condition is satisfied.
196
+ * Example: {$eq: {wfVarName: value}}
197
+ */
198
+ condition?: Record<string, any>;
193
199
  /**
194
200
  * In case the dslWorkflow is used as a child workflow the spec is used to define the child workflow.
195
201
  * If spec is defined then the name must be "dslWorkflow"
@@ -0,0 +1,167 @@
1
+ import { BaseObject } from "./common.js";
2
+
3
+ /**
4
+ * Tool recommendation within a hive memory unit
5
+ */
6
+ export interface HiveMemoryToolRecommendation {
7
+ tool_name: string;
8
+ guidance: string;
9
+ }
10
+
11
+ /**
12
+ * Memory unit scope - project-scoped by default, can be elevated to account
13
+ */
14
+ export type HiveMemoryScope = 'project' | 'account';
15
+
16
+ /**
17
+ * Base interface for hive memory items (list/summary view)
18
+ */
19
+ export interface HiveMemoryItem extends BaseObject {
20
+ // Classification
21
+ task_category: string; // "document-analysis", "data-extraction", etc.
22
+ domain?: string; // "financial", "legal", etc.
23
+
24
+ // Summary
25
+ summary: string;
26
+
27
+ // Tools involved in the learnings
28
+ tools_involved: string[];
29
+
30
+ // Quality metrics
31
+ confidence_score: number; // 0-1
32
+ usage_count: number;
33
+ success_correlation: number; // correlation with successful runs
34
+ contribution_count: number; // number of runs that contributed
35
+
36
+ // Scoping
37
+ scope: HiveMemoryScope;
38
+ }
39
+
40
+ /**
41
+ * Full hive memory unit with all learnings and patterns
42
+ */
43
+ export interface HiveMemory extends HiveMemoryItem {
44
+ // Objective patterns this memory applies to
45
+ objective_patterns: string[];
46
+
47
+ // Learnings
48
+ general_learnings: string[];
49
+ best_practices: string[];
50
+ pitfalls_to_avoid: string[];
51
+ tool_recommendations: HiveMemoryToolRecommendation[];
52
+
53
+ // Vector search
54
+ embedding?: number[];
55
+
56
+ // Security field for granular permissions
57
+ security?: Record<string, string[]>;
58
+ }
59
+
60
+ /**
61
+ * Payload for creating a new hive memory unit
62
+ */
63
+ export interface CreateHiveMemoryPayload {
64
+ // Classification
65
+ task_category: string;
66
+ domain?: string;
67
+
68
+ // Content
69
+ summary: string;
70
+ objective_patterns: string[];
71
+
72
+ // Learnings
73
+ general_learnings: string[];
74
+ best_practices?: string[];
75
+ pitfalls_to_avoid?: string[];
76
+ tool_recommendations?: HiveMemoryToolRecommendation[];
77
+
78
+ // Metadata
79
+ tools_involved?: string[];
80
+
81
+ // Quality (optional, defaults applied)
82
+ confidence_score?: number;
83
+
84
+ // Scoping
85
+ scope?: HiveMemoryScope;
86
+
87
+ // Standard fields
88
+ name?: string;
89
+ description?: string;
90
+ tags?: string[];
91
+ }
92
+
93
+ /**
94
+ * Payload for updating an existing hive memory unit
95
+ */
96
+ export interface UpdateHiveMemoryPayload {
97
+ // Classification updates
98
+ task_category?: string;
99
+ domain?: string;
100
+
101
+ // Content updates
102
+ summary?: string;
103
+
104
+ // Array additions (merged with existing)
105
+ add_objective_patterns?: string[];
106
+ add_general_learnings?: string[];
107
+ add_best_practices?: string[];
108
+ add_pitfalls_to_avoid?: string[];
109
+ add_tool_recommendations?: HiveMemoryToolRecommendation[];
110
+ add_tools_involved?: string[];
111
+
112
+ // Quality updates
113
+ confidence_score?: number;
114
+ increment_usage_count?: boolean;
115
+ increment_contribution_count?: boolean;
116
+ success_correlation?: number;
117
+
118
+ // Scoping
119
+ scope?: HiveMemoryScope;
120
+
121
+ // Standard fields
122
+ name?: string;
123
+ description?: string;
124
+ tags?: string[];
125
+ }
126
+
127
+ /**
128
+ * Search parameters for finding relevant memories
129
+ */
130
+ export interface HiveMemorySearchParams {
131
+ // Semantic search
132
+ query?: string; // Natural language query
133
+ embedding?: number[]; // Pre-computed embedding for vector search
134
+
135
+ // Filters
136
+ task_category?: string;
137
+ domain?: string;
138
+ tools_involved?: string[];
139
+ scope?: HiveMemoryScope;
140
+ min_confidence?: number; // Minimum confidence score (0-1)
141
+
142
+ // Pagination
143
+ limit?: number; // Default: 5
144
+ offset?: number;
145
+ }
146
+
147
+ /**
148
+ * Response from memory search
149
+ */
150
+ export interface HiveMemorySearchResult {
151
+ memories: HiveMemory[];
152
+ total: number;
153
+ }
154
+
155
+ /**
156
+ * Formatted memory for agent consumption
157
+ */
158
+ export interface FormattedMemoryForAgent {
159
+ category: string;
160
+ domain?: string;
161
+ summary: string;
162
+ learnings: string[];
163
+ best_practices: string[];
164
+ pitfalls_to_avoid: string[];
165
+ tool_guidance: { tool: string; guidance: string }[];
166
+ confidence: number;
167
+ }
@@ -4,6 +4,7 @@ export * from "./common.js";
4
4
  export * from "./conversation-state.js";
5
5
  export * from "./doc-analyzer.js";
6
6
  export * from "./dsl-workflow.js";
7
+ export * from "./hive-memory.js";
7
8
  export * from "./object-types.js";
8
9
  export * from "./schedule.js";
9
10
  export * from "./signals.js";
@@ -353,6 +353,7 @@ export interface ContentObjectTypeItem extends BaseObject {
353
353
  */
354
354
  strict_mode?: boolean;
355
355
  }
356
+ export type InCodeTypeDefinition = Pick<ContentObjectTypeItem, 'name' | 'description' | 'tags' | 'object_schema' | 'table_layout' | 'is_chunkable' | 'strict_mode'>;
356
357
 
357
358
  export interface CreateContentObjectTypePayload
358
359
  extends Omit<
@@ -200,6 +200,13 @@ export interface ExecuteWorkflowPayload {
200
200
  * Timeout for the workflow execution to complete, in seconds.
201
201
  */
202
202
  timeout?: number; //timeout in seconds
203
+
204
+ /**
205
+ * Schedule the workflow to run at a specific time (ISO 8601 datetime).
206
+ * Example: "2024-02-15T16:00:00Z"
207
+ * If in the past or not provided, workflow runs immediately.
208
+ */
209
+ run_at?: string;
203
210
  }
204
211
 
205
212
  export interface ListWorkflowRunsPayload {
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Progress = void 0;
4
- class ProgressSpan {
5
- parent;
6
- parentUnits;
7
- spanUnits;
8
- unitsDone;
9
- constructor(parent, parentUnits, spanUnits) {
10
- this.parent = parent;
11
- this.parentUnits = parentUnits;
12
- this.spanUnits = spanUnits;
13
- this.unitsDone = 0;
14
- }
15
- done(units) {
16
- const remaining = this.spanUnits - this.unitsDone;
17
- if (!remaining)
18
- return; // ignore if already done
19
- if (!units || units > remaining) {
20
- units = remaining;
21
- }
22
- this.unitsDone += units;
23
- this.parent.done(units * this.parentUnits / this.spanUnits);
24
- }
25
- get parentUnitsDone() {
26
- return Math.round(this.unitsDone * this.parentUnits / this.spanUnits);
27
- }
28
- get isDone() {
29
- return this.unitsDone >= this.spanUnits;
30
- }
31
- }
32
- class Progress {
33
- total;
34
- unitsDone = 0;
35
- constructor(total) {
36
- this.total = total;
37
- }
38
- get fraction() {
39
- return this.unitsDone / this.total;
40
- }
41
- get percent() {
42
- return Math.round(this.fraction * 100);
43
- }
44
- get isDone() {
45
- return this.unitsDone >= this.total;
46
- }
47
- done(units) {
48
- const remaining = this.total - this.unitsDone;
49
- if (!remaining)
50
- return; // ignore if already done
51
- if (!units || units > remaining) {
52
- units = remaining;
53
- }
54
- this.unitsDone += units;
55
- }
56
- span(units, spanUnits) {
57
- return new ProgressSpan(this, units, spanUnits || units);
58
- }
59
- }
60
- exports.Progress = Progress;
61
- //# sourceMappingURL=Progress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Progress.js","sourceRoot":"","sources":["../../src/Progress.ts"],"names":[],"mappings":";;;AACA,MAAM,YAAY;IAEK;IAAyB;IAA4B;IADxE,SAAS,CAAS;IAClB,YAAmB,MAAgB,EAAS,WAAmB,EAAS,SAAiB;QAAtE,WAAM,GAAN,MAAM,CAAU;QAAS,gBAAW,GAAX,WAAW,CAAQ;QAAS,cAAS,GAAT,SAAS,CAAQ;QACrF,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACvB,CAAC;IAED,IAAI,CAAC,KAAc;QACf,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAClD,IAAI,CAAC,SAAS;YAAE,OAAO,CAAC,yBAAyB;QACjD,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,SAAS,EAAE,CAAC;YAC9B,KAAK,GAAG,SAAS,CAAC;QACtB,CAAC;QACD,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC;IAED,IAAI,eAAe;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1E,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC;IAC5C,CAAC;CACJ;AAED,MAAa,QAAQ;IAGE;IAFnB,SAAS,GAAW,CAAC,CAAC;IAEtB,YAAmB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAChC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;IACvC,CAAC;IAED,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC;IACxC,CAAC;IAED,IAAI,CAAC,KAAc;QACf,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;QAC9C,IAAI,CAAC,SAAS;YAAE,OAAO,CAAC,yBAAyB;QACjD,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,SAAS,EAAE,CAAC;YAC9B,KAAK,GAAG,SAAS,CAAC;QACtB,CAAC;QACD,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;IAC5B,CAAC;IAED,IAAI,CAAC,KAAa,EAAE,SAAkB;QAClC,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,IAAI,KAAK,CAAC,CAAC;IAC7D,CAAC;CACJ;AA9BD,4BA8BC"}
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /**
3
- * @module access-control
4
- * @description
5
- * Access control interfaces
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.AccessControlPrincipalType = exports.AccessControlResourceType = exports.Permission = void 0;
9
- var Permission;
10
- (function (Permission) {
11
- Permission["int_read"] = "interaction:read";
12
- Permission["int_write"] = "interaction:write";
13
- Permission["int_delete"] = "interaction:delete";
14
- Permission["int_execute"] = "interaction:execute";
15
- Permission["run_read"] = "run:read";
16
- Permission["run_write"] = "run:write";
17
- Permission["env_admin"] = "environment:admin";
18
- Permission["project_admin"] = "project:admin";
19
- Permission["project_integration_read"] = "project:integration_read";
20
- Permission["project_settings_write"] = "project:settings_write";
21
- Permission["api_key_create"] = "api_key:create";
22
- Permission["api_key_read"] = "api_key:read";
23
- Permission["api_key_update"] = "api_key:update";
24
- Permission["api_key_delete"] = "api_key:delete";
25
- Permission["account_read"] = "account:read";
26
- Permission["account_write"] = "account:write";
27
- Permission["account_admin"] = "account:admin";
28
- Permission["manage_billing"] = "account:billing";
29
- Permission["account_member"] = "account:member";
30
- Permission["content_read"] = "content:read";
31
- Permission["content_write"] = "content:write";
32
- Permission["content_delete"] = "content:delete";
33
- Permission["content_admin"] = "content:admin";
34
- Permission["content_superadmin"] = "content:superadmin";
35
- Permission["workflow_run"] = "workflow:run";
36
- Permission["workflow_admin"] = "workflow:admin";
37
- Permission["workflow_superadmin"] = "workflow:superadmin";
38
- Permission["iam_impersonate"] = "iam:impersonate";
39
- /** whether the user has access to Sutdio App. */
40
- Permission["studio_access"] = "studio:access";
41
- })(Permission || (exports.Permission = Permission = {}));
42
- var AccessControlResourceType;
43
- (function (AccessControlResourceType) {
44
- AccessControlResourceType["project"] = "project";
45
- AccessControlResourceType["environment"] = "environment";
46
- AccessControlResourceType["account"] = "account";
47
- AccessControlResourceType["interaction"] = "interaction";
48
- AccessControlResourceType["app"] = "application";
49
- })(AccessControlResourceType || (exports.AccessControlResourceType = AccessControlResourceType = {}));
50
- var AccessControlPrincipalType;
51
- (function (AccessControlPrincipalType) {
52
- AccessControlPrincipalType["user"] = "user";
53
- AccessControlPrincipalType["group"] = "group";
54
- AccessControlPrincipalType["apikey"] = "apikey";
55
- })(AccessControlPrincipalType || (exports.AccessControlPrincipalType = AccessControlPrincipalType = {}));
56
- //# sourceMappingURL=access-control.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"access-control.js","sourceRoot":"","sources":["../../src/access-control.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,IAAY,UA0CX;AA1CD,WAAY,UAAU;IAClB,2CAA6B,CAAA;IAC7B,6CAA+B,CAAA;IAC/B,+CAAiC,CAAA;IAEjC,iDAAmC,CAAA;IACnC,mCAAqB,CAAA;IACrB,qCAAuB,CAAA;IAEvB,6CAA+B,CAAA;IAE/B,6CAA+B,CAAA;IAC/B,mEAAqD,CAAA;IACrD,+DAAiD,CAAA;IAEjD,+CAAiC,CAAA;IACjC,2CAA6B,CAAA;IAC7B,+CAAiC,CAAA;IACjC,+CAAiC,CAAA;IAEjC,2CAA6B,CAAA;IAC7B,6CAA+B,CAAA;IAC/B,6CAA+B,CAAA;IAC/B,gDAAkC,CAAA;IAClC,+CAAiC,CAAA;IAGjC,2CAA6B,CAAA;IAC7B,6CAA+B,CAAA;IAC/B,+CAAiC,CAAA;IACjC,6CAA+B,CAAA;IAC/B,uDAAyC,CAAA;IAGzC,2CAA6B,CAAA;IAC7B,+CAAiC,CAAA;IACjC,yDAA2C,CAAA;IAE3C,iDAAmC,CAAA;IAEnC,iDAAiD;IACjD,6CAA+B,CAAA;AACnC,CAAC,EA1CW,UAAU,0BAAV,UAAU,QA0CrB;AAED,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACjC,gDAAmB,CAAA;IACnB,wDAA2B,CAAA;IAC3B,gDAAmB,CAAA;IACnB,wDAA2B,CAAA;IAC3B,gDAAmB,CAAA;AACvB,CAAC,EANW,yBAAyB,yCAAzB,yBAAyB,QAMpC;AAED,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IAClC,2CAAa,CAAA;IACb,6CAAe,CAAA;IACf,+CAAiB,CAAA;AACrB,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=analytics.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../src/analytics.ts"],"names":[],"mappings":""}
package/lib/cjs/apikey.js DELETED
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrincipalType = exports.ApiKeyTypes = void 0;
4
- var ApiKeyTypes;
5
- (function (ApiKeyTypes) {
6
- ApiKeyTypes["secret"] = "sk";
7
- })(ApiKeyTypes || (exports.ApiKeyTypes = ApiKeyTypes = {}));
8
- var PrincipalType;
9
- (function (PrincipalType) {
10
- PrincipalType["User"] = "user";
11
- PrincipalType["Group"] = "group";
12
- PrincipalType["ApiKey"] = "apikey";
13
- PrincipalType["ServiceAccount"] = "service_account";
14
- PrincipalType["Agent"] = "agent";
15
- })(PrincipalType || (exports.PrincipalType = PrincipalType = {}));
16
- //# sourceMappingURL=apikey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apikey.js","sourceRoot":"","sources":["../../src/apikey.ts"],"names":[],"mappings":";;;AAIA,IAAY,WAEX;AAFD,WAAY,WAAW;IACnB,4BAAa,CAAA;AACjB,CAAC,EAFW,WAAW,2BAAX,WAAW,QAEtB;AAuGD,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,mDAAkC,CAAA;IAClC,gCAAe,CAAA;AACnB,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB"}
package/lib/cjs/apps.js DELETED
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeToolCollection = normalizeToolCollection;
4
- /**
5
- * Normalizes a tool collection to the object format.
6
- * Handles backward compatibility with string URLs.
7
- *
8
- * @param collection - String URL or ToolCollectionObject
9
- * @returns Normalized ToolCollectionObject
10
- */
11
- function normalizeToolCollection(collection) {
12
- if (typeof collection === 'string') {
13
- // Legacy string format
14
- if (collection.startsWith('mcp:')) {
15
- const url = collection.substring('mcp:'.length);
16
- // For legacy MCP strings, derive name and prefix from URL
17
- const urlObj = new URL(url);
18
- const name = urlObj.hostname.replace(/\./g, '-');
19
- return {
20
- url,
21
- type: 'mcp',
22
- name,
23
- description: `MCP server at ${url}`,
24
- namespace: name
25
- };
26
- }
27
- return {
28
- url: collection,
29
- type: 'vertesia_sdk'
30
- };
31
- }
32
- // Already in object format
33
- return collection;
34
- }
35
- //# sourceMappingURL=apps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apps.js","sourceRoot":"","sources":["../../src/apps.ts"],"names":[],"mappings":";;AA+GA,0DAuBC;AA9BD;;;;;;GAMG;AACH,SAAgB,uBAAuB,CAAC,UAA0B;IAC9D,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACjC,uBAAuB;QACvB,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YAChC,MAAM,GAAG,GAAG,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAChD,0DAA0D;YAC1D,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;YAC5B,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;YACjD,OAAO;gBACH,GAAG;gBACH,IAAI,EAAE,KAAK;gBACX,IAAI;gBACJ,WAAW,EAAE,iBAAiB,GAAG,EAAE;gBACnC,SAAS,EAAE,IAAI;aAClB,CAAC;QACN,CAAC;QACD,OAAO;YACH,GAAG,EAAE,UAAU;YACf,IAAI,EAAE,cAAc;SACvB,CAAC;IACN,CAAC;IACD,2BAA2B;IAC3B,OAAO,UAAU,CAAC;AACtB,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /**
3
- * Types for ask_user tool UX configuration.
4
- * These types enable the model to transmit structured UX parameters
5
- * that render as interactive widgets instead of plain text.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- //# sourceMappingURL=ask-user.js.map