veryfront 0.1.610 → 0.1.612
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.
- package/esm/cli/templates/manifest.d.ts +5 -0
- package/esm/cli/templates/manifest.js +6 -1
- package/esm/deno.d.ts +1 -0
- package/esm/deno.js +2 -1
- package/esm/extensions/ext-sandbox-shell-tools/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-sandbox-shell-tools/src/index.js +1 -1
- package/esm/src/chat/message-prep.d.ts.map +1 -1
- package/esm/src/chat/message-prep.js +128 -20
- package/esm/src/html/styles-builder/plugin-loader.d.ts.map +1 -1
- package/esm/src/html/styles-builder/plugin-loader.js +8 -1
- package/esm/src/html/utils.d.ts.map +1 -1
- package/esm/src/html/utils.js +2 -0
- package/esm/src/integrations/_data.js +2 -2
- package/esm/src/integrations/_tool_summaries.d.ts +3 -0
- package/esm/src/integrations/_tool_summaries.d.ts.map +1 -0
- package/esm/src/integrations/_tool_summaries.js +6 -0
- package/esm/src/integrations/index.d.ts +2 -2
- package/esm/src/integrations/index.d.ts.map +1 -1
- package/esm/src/integrations/index.js +1 -1
- package/esm/src/integrations/schema.d.ts +136 -4
- package/esm/src/integrations/schema.d.ts.map +1 -1
- package/esm/src/integrations/schema.js +15 -0
- package/esm/src/integrations/types.d.ts +14 -0
- package/esm/src/integrations/types.d.ts.map +1 -1
- package/esm/src/transforms/import-rewriter/strategies/veryfront-strategy.d.ts.map +1 -1
- package/esm/src/transforms/import-rewriter/strategies/veryfront-strategy.js +13 -8
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/esm/src/workflow/react/use-approval.js +1 -1
- package/esm/src/workflow/react/use-workflow-list.js +1 -1
- package/esm/src/workflow/react/use-workflow-start.js +1 -1
- package/esm/src/workflow/react/use-workflow.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { InferSchema } from "../extensions/schema/index.js";
|
|
2
|
-
export declare const getIntegrationNameSchema: () => import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "zoom" | "linear" | "
|
|
2
|
+
export declare const getIntegrationNameSchema: () => import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "zoom" | "linear" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "monday" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
|
|
3
3
|
/** Zod schema for integration name. */
|
|
4
|
-
export declare const IntegrationNameSchema: import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "zoom" | "linear" | "
|
|
4
|
+
export declare const IntegrationNameSchema: import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "zoom" | "linear" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "monday" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
|
|
5
5
|
export declare const getEnvVarSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
6
6
|
name: import("../internal-agents/schema.js").Schema<string>;
|
|
7
7
|
description: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -149,6 +149,46 @@ export declare const IntegrationEndpointResponseEnrichmentSchema: import("../int
|
|
|
149
149
|
metadataHeaders: import("../internal-agents/schema.js").Schema<string[] | undefined>;
|
|
150
150
|
maxItems: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
151
151
|
}>>;
|
|
152
|
+
export declare const getIntegrationEndpointHistoricalSummaryFieldSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
153
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
154
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
155
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
156
|
+
}>>;
|
|
157
|
+
export declare const IntegrationEndpointHistoricalSummaryFieldSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
158
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
159
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
160
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
161
|
+
}>>;
|
|
162
|
+
export declare const getIntegrationEndpointHistoricalSummarySchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
163
|
+
collectionKeys: import("../internal-agents/schema.js").Schema<string[]>;
|
|
164
|
+
collectionName: import("../internal-agents/schema.js").Schema<string>;
|
|
165
|
+
itemFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
166
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
167
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
168
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
169
|
+
}>[]>;
|
|
170
|
+
outputFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
171
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
172
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
173
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
174
|
+
}>[] | undefined>;
|
|
175
|
+
omitted: import("../internal-agents/schema.js").Schema<string>;
|
|
176
|
+
}>>;
|
|
177
|
+
export declare const IntegrationEndpointHistoricalSummarySchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
178
|
+
collectionKeys: import("../internal-agents/schema.js").Schema<string[]>;
|
|
179
|
+
collectionName: import("../internal-agents/schema.js").Schema<string>;
|
|
180
|
+
itemFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
181
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
182
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
183
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
184
|
+
}>[]>;
|
|
185
|
+
outputFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
186
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
187
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
188
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
189
|
+
}>[] | undefined>;
|
|
190
|
+
omitted: import("../internal-agents/schema.js").Schema<string>;
|
|
191
|
+
}>>;
|
|
152
192
|
export declare const getIntegrationEndpointSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
153
193
|
type: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
154
194
|
method: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -177,6 +217,21 @@ export declare const getIntegrationEndpointSchema: () => import("../internal-age
|
|
|
177
217
|
metadataHeaders: import("../internal-agents/schema.js").Schema<string[] | undefined>;
|
|
178
218
|
maxItems: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
179
219
|
}> | undefined>;
|
|
220
|
+
historicalSummary: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
221
|
+
collectionKeys: import("../internal-agents/schema.js").Schema<string[]>;
|
|
222
|
+
collectionName: import("../internal-agents/schema.js").Schema<string>;
|
|
223
|
+
itemFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
224
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
225
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
226
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
227
|
+
}>[]>;
|
|
228
|
+
outputFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
229
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
230
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
231
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
232
|
+
}>[] | undefined>;
|
|
233
|
+
omitted: import("../internal-agents/schema.js").Schema<string>;
|
|
234
|
+
}> | undefined>;
|
|
180
235
|
}> | undefined>;
|
|
181
236
|
}>>;
|
|
182
237
|
export declare const IntegrationEndpointSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
@@ -207,6 +262,21 @@ export declare const IntegrationEndpointSchema: import("../internal-agents/schem
|
|
|
207
262
|
metadataHeaders: import("../internal-agents/schema.js").Schema<string[] | undefined>;
|
|
208
263
|
maxItems: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
209
264
|
}> | undefined>;
|
|
265
|
+
historicalSummary: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
266
|
+
collectionKeys: import("../internal-agents/schema.js").Schema<string[]>;
|
|
267
|
+
collectionName: import("../internal-agents/schema.js").Schema<string>;
|
|
268
|
+
itemFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
269
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
270
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
271
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
272
|
+
}>[]>;
|
|
273
|
+
outputFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
274
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
275
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
276
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
277
|
+
}>[] | undefined>;
|
|
278
|
+
omitted: import("../internal-agents/schema.js").Schema<string>;
|
|
279
|
+
}> | undefined>;
|
|
210
280
|
}> | undefined>;
|
|
211
281
|
}>>;
|
|
212
282
|
export declare const getIntegrationToolSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
@@ -243,6 +313,21 @@ export declare const getIntegrationToolSchema: () => import("../internal-agents/
|
|
|
243
313
|
metadataHeaders: import("../internal-agents/schema.js").Schema<string[] | undefined>;
|
|
244
314
|
maxItems: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
245
315
|
}> | undefined>;
|
|
316
|
+
historicalSummary: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
317
|
+
collectionKeys: import("../internal-agents/schema.js").Schema<string[]>;
|
|
318
|
+
collectionName: import("../internal-agents/schema.js").Schema<string>;
|
|
319
|
+
itemFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
320
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
321
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
322
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
323
|
+
}>[]>;
|
|
324
|
+
outputFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
325
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
326
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
327
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
328
|
+
}>[] | undefined>;
|
|
329
|
+
omitted: import("../internal-agents/schema.js").Schema<string>;
|
|
330
|
+
}> | undefined>;
|
|
246
331
|
}> | undefined>;
|
|
247
332
|
}> | undefined>;
|
|
248
333
|
}>>;
|
|
@@ -281,6 +366,21 @@ export declare const IntegrationToolSchema: import("../internal-agents/schema.js
|
|
|
281
366
|
metadataHeaders: import("../internal-agents/schema.js").Schema<string[] | undefined>;
|
|
282
367
|
maxItems: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
283
368
|
}> | undefined>;
|
|
369
|
+
historicalSummary: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
370
|
+
collectionKeys: import("../internal-agents/schema.js").Schema<string[]>;
|
|
371
|
+
collectionName: import("../internal-agents/schema.js").Schema<string>;
|
|
372
|
+
itemFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
373
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
374
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
375
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
376
|
+
}>[]>;
|
|
377
|
+
outputFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
378
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
379
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
380
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
381
|
+
}>[] | undefined>;
|
|
382
|
+
omitted: import("../internal-agents/schema.js").Schema<string>;
|
|
383
|
+
}> | undefined>;
|
|
284
384
|
}> | undefined>;
|
|
285
385
|
}> | undefined>;
|
|
286
386
|
}>>;
|
|
@@ -300,7 +400,7 @@ export declare const IntegrationPromptSchema: import("../internal-agents/schema.
|
|
|
300
400
|
icon: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
301
401
|
}>>;
|
|
302
402
|
export declare const getIntegrationConfigSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
303
|
-
name: import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "zoom" | "linear" | "
|
|
403
|
+
name: import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "zoom" | "linear" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "monday" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
|
|
304
404
|
displayName: import("../internal-agents/schema.js").Schema<string>;
|
|
305
405
|
icon: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
306
406
|
description: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -390,6 +490,21 @@ export declare const getIntegrationConfigSchema: () => import("../internal-agent
|
|
|
390
490
|
metadataHeaders: import("../internal-agents/schema.js").Schema<string[] | undefined>;
|
|
391
491
|
maxItems: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
392
492
|
}> | undefined>;
|
|
493
|
+
historicalSummary: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
494
|
+
collectionKeys: import("../internal-agents/schema.js").Schema<string[]>;
|
|
495
|
+
collectionName: import("../internal-agents/schema.js").Schema<string>;
|
|
496
|
+
itemFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
497
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
498
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
499
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
500
|
+
}>[]>;
|
|
501
|
+
outputFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
502
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
503
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
504
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
505
|
+
}>[] | undefined>;
|
|
506
|
+
omitted: import("../internal-agents/schema.js").Schema<string>;
|
|
507
|
+
}> | undefined>;
|
|
393
508
|
}> | undefined>;
|
|
394
509
|
}> | undefined>;
|
|
395
510
|
}>[]>;
|
|
@@ -406,7 +521,7 @@ export declare const getIntegrationConfigSchema: () => import("../internal-agent
|
|
|
406
521
|
}>>;
|
|
407
522
|
/** Zod schema for integration config. */
|
|
408
523
|
export declare const IntegrationConfigSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
409
|
-
name: import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "zoom" | "linear" | "
|
|
524
|
+
name: import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "zoom" | "linear" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "monday" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
|
|
410
525
|
displayName: import("../internal-agents/schema.js").Schema<string>;
|
|
411
526
|
icon: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
412
527
|
description: import("../internal-agents/schema.js").Schema<string>;
|
|
@@ -496,6 +611,21 @@ export declare const IntegrationConfigSchema: import("../internal-agents/schema.
|
|
|
496
611
|
metadataHeaders: import("../internal-agents/schema.js").Schema<string[] | undefined>;
|
|
497
612
|
maxItems: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
498
613
|
}> | undefined>;
|
|
614
|
+
historicalSummary: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
615
|
+
collectionKeys: import("../internal-agents/schema.js").Schema<string[]>;
|
|
616
|
+
collectionName: import("../internal-agents/schema.js").Schema<string>;
|
|
617
|
+
itemFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
618
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
619
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
620
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
621
|
+
}>[]>;
|
|
622
|
+
outputFields: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
623
|
+
name: import("../internal-agents/schema.js").Schema<string>;
|
|
624
|
+
kind: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
625
|
+
maxLength: import("../internal-agents/schema.js").Schema<number | undefined>;
|
|
626
|
+
}>[] | undefined>;
|
|
627
|
+
omitted: import("../internal-agents/schema.js").Schema<string>;
|
|
628
|
+
}> | undefined>;
|
|
499
629
|
}> | undefined>;
|
|
500
630
|
}> | undefined>;
|
|
501
631
|
}>[]>;
|
|
@@ -520,6 +650,8 @@ export type OAuthField = InferSchema<ReturnType<typeof getOAuthFieldSchema>>;
|
|
|
520
650
|
export type OAuthConfig = InferSchema<ReturnType<typeof getOAuthConfigSchema>>;
|
|
521
651
|
/** Public API contract for integration tool meta. */
|
|
522
652
|
export type IntegrationToolMeta = InferSchema<ReturnType<typeof getIntegrationToolSchema>>;
|
|
653
|
+
/** Provider-declared summary contract for old tool outputs kept actionable across turns. */
|
|
654
|
+
export type IntegrationEndpointHistoricalSummary = InferSchema<ReturnType<typeof getIntegrationEndpointHistoricalSummarySchema>>;
|
|
523
655
|
/** Public API contract for integration prompt. */
|
|
524
656
|
export type IntegrationPrompt = InferSchema<ReturnType<typeof getIntegrationPromptSchema>>;
|
|
525
657
|
/** Configuration used by integration. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAoDjE,eAAO,MAAM,wBAAwB,imBAAgD,CAAC;AACtF,uCAAuC;AACvC,eAAO,MAAM,qBAAqB,2lBAAuC,CAAC;AAE1E,eAAO,MAAM,eAAe;;;;;;;;GAU3B,CAAC;AACF,8BAA8B;AAC9B,eAAO,MAAM,YAAY;;;;;;;;GAA8B,CAAC;AAExD,eAAO,MAAM,mBAAmB;;;;;;;GAS/B,CAAC;AACF,kCAAkC;AAClC,eAAO,MAAM,gBAAgB;;;;;;;GAAkC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BhC,CAAC;AACF,mCAAmC;AACnC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmC,CAAC;AAElE,eAAO,MAAM,iCAAiC;;;;;;GAQ7C,CAAC;AACF,eAAO,MAAM,8BAA8B;;;;;;GAAgD,CAAC;AAE5F,eAAO,MAAM,qCAAqC;;;;;GAOjD,CAAC;AACF,eAAO,MAAM,kCAAkC;;;;;GAAoD,CAAC;AAEpG,eAAO,MAAM,8CAA8C;;;;;;GAQ1D,CAAC;AACF,eAAO,MAAM,2CAA2C;;;;;;GAEvD,CAAC;AAEF,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/src/integr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5F,MAAM,MAAM,oCAAoC,GAAG,WAAW,CAC5D,UAAU,CAAC,OAAO,6CAA6C,CAAC,CACjE,CAAC;AACF,kDAAkD;AAClD,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC;AAC3F,yCAAyC;AACzC,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC"}
|
|
@@ -123,6 +123,20 @@ export const getIntegrationEndpointResponseEnrichmentSchema = defineSchema((v) =
|
|
|
123
123
|
maxItems: v.number().optional(),
|
|
124
124
|
}));
|
|
125
125
|
export const IntegrationEndpointResponseEnrichmentSchema = lazySchema(getIntegrationEndpointResponseEnrichmentSchema);
|
|
126
|
+
export const getIntegrationEndpointHistoricalSummaryFieldSchema = defineSchema((v) => v.object({
|
|
127
|
+
name: v.string(),
|
|
128
|
+
kind: v.enum(["scalar", "string-array", "contact", "contact-array"]).optional(),
|
|
129
|
+
maxLength: v.number().optional(),
|
|
130
|
+
}));
|
|
131
|
+
export const IntegrationEndpointHistoricalSummaryFieldSchema = lazySchema(getIntegrationEndpointHistoricalSummaryFieldSchema);
|
|
132
|
+
export const getIntegrationEndpointHistoricalSummarySchema = defineSchema((v) => v.object({
|
|
133
|
+
collectionKeys: v.array(v.string()),
|
|
134
|
+
collectionName: v.string(),
|
|
135
|
+
itemFields: v.array(getIntegrationEndpointHistoricalSummaryFieldSchema()),
|
|
136
|
+
outputFields: v.array(getIntegrationEndpointHistoricalSummaryFieldSchema()).optional(),
|
|
137
|
+
omitted: v.string(),
|
|
138
|
+
}));
|
|
139
|
+
export const IntegrationEndpointHistoricalSummarySchema = lazySchema(getIntegrationEndpointHistoricalSummarySchema);
|
|
126
140
|
export const getIntegrationEndpointSchema = defineSchema((v) => v.object({
|
|
127
141
|
type: v.enum(["rest", "graphql"]).optional(),
|
|
128
142
|
method: v.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]),
|
|
@@ -134,6 +148,7 @@ export const getIntegrationEndpointSchema = defineSchema((v) => v.object({
|
|
|
134
148
|
response: v.object({
|
|
135
149
|
transform: v.string().optional(),
|
|
136
150
|
enrich: getIntegrationEndpointResponseEnrichmentSchema().optional(),
|
|
151
|
+
historicalSummary: getIntegrationEndpointHistoricalSummarySchema().optional(),
|
|
137
152
|
}).optional(),
|
|
138
153
|
}));
|
|
139
154
|
export const IntegrationEndpointSchema = lazySchema(getIntegrationEndpointSchema);
|
|
@@ -15,6 +15,19 @@ interface IntegrationEndpointBodyField {
|
|
|
15
15
|
description: string;
|
|
16
16
|
required?: boolean;
|
|
17
17
|
}
|
|
18
|
+
export type IntegrationHistoricalSummaryFieldKind = "scalar" | "string-array" | "contact" | "contact-array";
|
|
19
|
+
export interface IntegrationHistoricalSummaryField {
|
|
20
|
+
name: string;
|
|
21
|
+
kind?: IntegrationHistoricalSummaryFieldKind;
|
|
22
|
+
maxLength?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface IntegrationHistoricalSummary {
|
|
25
|
+
collection_keys: string[];
|
|
26
|
+
collection_name: string;
|
|
27
|
+
item_fields: IntegrationHistoricalSummaryField[];
|
|
28
|
+
output_fields?: IntegrationHistoricalSummaryField[];
|
|
29
|
+
omitted: string;
|
|
30
|
+
}
|
|
18
31
|
export interface IntegrationEndpoint {
|
|
19
32
|
type?: "rest" | "graphql";
|
|
20
33
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -32,6 +45,7 @@ export interface IntegrationEndpoint {
|
|
|
32
45
|
metadataHeaders?: string[];
|
|
33
46
|
maxItems?: number;
|
|
34
47
|
};
|
|
48
|
+
historical_summary?: IntegrationHistoricalSummary;
|
|
35
49
|
};
|
|
36
50
|
}
|
|
37
51
|
/** Public API contract for integration tool. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/types.ts"],"names":[],"mappings":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3,"file":"veryfront-strategy.d.ts","sourceRoot":"","sources":["../../../../../src/src/transforms/import-rewriter/strategies/veryfront-strategy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACd,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"veryfront-strategy.d.ts","sourceRoot":"","sources":["../../../../../src/src/transforms/import-rewriter/strategies/veryfront-strategy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACd,MAAM,aAAa,CAAC;AAmBrB,qBAAa,iBAAkB,YAAW,qBAAqB;IAC7D,QAAQ,CAAC,IAAI,eAAe;IAC5B,QAAQ,CAAC,QAAQ,OAAO;IAExB,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO;IASzD,OAAO,CAAC,IAAI,EAAE,mBAAmB,EAAE,GAAG,EAAE,cAAc,GAAG,aAAa;CAqDvE;AAED,eAAO,MAAM,iBAAiB,mBAA0B,CAAC"}
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
import { buildVeryfrontModuleUrl } from "../url-builder.js";
|
|
8
8
|
import { resolveInternalModuleUrl, resolveVeryfrontModuleUrl, } from "../../veryfront-module-urls.js";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Module overrides for framework barrels that are too broad for a target.
|
|
11
11
|
*
|
|
12
12
|
* Some modules re-export React hooks alongside heavy server-side code
|
|
13
|
-
* (executors, backends, DAGs) that fails to transform in the SSR
|
|
14
|
-
*
|
|
13
|
+
* (executors, backends, DAGs) that fails to transform or run in the SSR and
|
|
14
|
+
* browser pipelines. Redirect exact imports to the lightweight React-only
|
|
15
|
+
* submodule for those targets.
|
|
15
16
|
*/
|
|
16
|
-
const
|
|
17
|
+
const REACT_ONLY_MODULE_OVERRIDES = {
|
|
17
18
|
"veryfront/workflow": "/_vf_modules/_veryfront/workflow/react/index.js",
|
|
18
19
|
};
|
|
19
20
|
export class VeryfrontStrategy {
|
|
@@ -60,10 +61,14 @@ export class VeryfrontStrategy {
|
|
|
60
61
|
}
|
|
61
62
|
// Handle veryfront/* imports
|
|
62
63
|
if (specifier === "veryfront" || specifier.startsWith("veryfront/")) {
|
|
63
|
-
//
|
|
64
|
-
//
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
// Redirect broad client-facing barrels to lightweight submodules that
|
|
65
|
+
// exclude server-side dependencies from SSR and browser hydration.
|
|
66
|
+
const override = REACT_ONLY_MODULE_OVERRIDES[specifier];
|
|
67
|
+
if (override !== undefined) {
|
|
68
|
+
if (ctx.target === "ssr")
|
|
69
|
+
return { specifier: `${override}?ssr=true` };
|
|
70
|
+
if (ctx.target === "browser")
|
|
71
|
+
return { specifier: override };
|
|
67
72
|
}
|
|
68
73
|
const mapped = resolveVeryfrontModuleUrl(specifier);
|
|
69
74
|
if (mapped) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from "../../../react/react.js";
|
|
2
|
-
import { REQUEST_ERROR } from "../../errors/
|
|
2
|
+
import { REQUEST_ERROR } from "../../errors/error-registry.js";
|
|
3
3
|
/** Manage workflow approval interactions. */
|
|
4
4
|
export function useApproval(options) {
|
|
5
5
|
const { runId, approvalId, apiBase = "/api/workflows", approver = "unknown", onDecision, onError, } = options;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
2
|
import { useCallback, useEffect, useState } from "../../../react/react.js";
|
|
3
|
-
import { REQUEST_ERROR } from "../../errors/
|
|
3
|
+
import { REQUEST_ERROR } from "../../errors/error-registry.js";
|
|
4
4
|
/** Default interval for auto-refreshing the workflow list */
|
|
5
5
|
const DEFAULT_REFRESH_INTERVAL_MS = 5_000;
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useState } from "../../../react/react.js";
|
|
2
|
-
import { REQUEST_ERROR } from "../../errors/
|
|
2
|
+
import { REQUEST_ERROR } from "../../errors/error-registry.js";
|
|
3
3
|
/** React hook for workflow start. */
|
|
4
4
|
export function useWorkflowStart(options) {
|
|
5
5
|
const { workflowId, apiBase = "/api/workflows", onStart, onError } = options;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "../../../react/react.js";
|
|
3
|
-
import { ORCHESTRATION_ERROR, REQUEST_ERROR } from "../../errors/
|
|
3
|
+
import { ORCHESTRATION_ERROR, REQUEST_ERROR } from "../../errors/error-registry.js";
|
|
4
4
|
/** Default polling interval for workflow status updates */
|
|
5
5
|
const DEFAULT_POLL_INTERVAL_MS = 2_000;
|
|
6
6
|
/** React hook for workflow. */
|