veryfront 0.1.1076 → 0.1.1077
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/deno.js +1 -1
- package/esm/src/agent/schemas/agent.schema.d.ts +3 -3
- package/esm/src/channels/invoke.d.ts +2 -2
- package/esm/src/config/define-config.d.ts +4 -3
- package/esm/src/config/define-config.d.ts.map +1 -1
- package/esm/src/config/define-config.js +0 -1
- package/esm/src/config/loader.d.ts.map +1 -1
- package/esm/src/config/loader.js +8 -4
- package/esm/src/config/schemas/config.schema.d.ts +16 -7
- package/esm/src/config/schemas/config.schema.d.ts.map +1 -1
- package/esm/src/config/schemas/config.schema.js +6 -3
- package/esm/src/eval/agent-service/durable-run-canaries/runner.d.ts +1 -1
- package/esm/src/integrations/index.d.ts +1 -1
- package/esm/src/integrations/index.d.ts.map +1 -1
- package/esm/src/integrations/remote-tools.d.ts +7 -5
- package/esm/src/integrations/remote-tools.d.ts.map +1 -1
- package/esm/src/integrations/remote-tools.js +1 -1
- package/esm/src/integrations/types.d.ts +12 -4
- package/esm/src/integrations/types.d.ts.map +1 -1
- package/esm/src/internal-agents/schema.d.ts +3 -3
- package/esm/src/mcp/server.d.ts.map +1 -1
- package/esm/src/mcp/server.js +8 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +5 -5
package/esm/deno.js
CHANGED
|
@@ -102,7 +102,7 @@ export declare const getMessagePartSchema: () => import("../../internal-agents/s
|
|
|
102
102
|
}>>;
|
|
103
103
|
export declare const getMessageSchema: () => import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
104
104
|
id: import("../../internal-agents/schema.js").Schema<string>;
|
|
105
|
-
role: import("../../internal-agents/schema.js").Schema<"
|
|
105
|
+
role: import("../../internal-agents/schema.js").Schema<"user" | "tool" | "assistant" | "system">;
|
|
106
106
|
parts: import("../../internal-agents/schema.js").Schema<(import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
107
107
|
type: import("../../internal-agents/schema.js").Schema<string>;
|
|
108
108
|
toolCallId: import("../../internal-agents/schema.js").Schema<string>;
|
|
@@ -167,7 +167,7 @@ export declare const getAgentResponseSchema: () => import("../../internal-agents
|
|
|
167
167
|
text: import("../../internal-agents/schema.js").Schema<string>;
|
|
168
168
|
messages: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
169
169
|
id: import("../../internal-agents/schema.js").Schema<string>;
|
|
170
|
-
role: import("../../internal-agents/schema.js").Schema<"
|
|
170
|
+
role: import("../../internal-agents/schema.js").Schema<"user" | "tool" | "assistant" | "system">;
|
|
171
171
|
parts: import("../../internal-agents/schema.js").Schema<(import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
172
172
|
type: import("../../internal-agents/schema.js").Schema<string>;
|
|
173
173
|
toolCallId: import("../../internal-agents/schema.js").Schema<string>;
|
|
@@ -255,7 +255,7 @@ export declare const getAgentContextSchema: () => import("../../internal-agents/
|
|
|
255
255
|
model: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
256
256
|
input: import("../../internal-agents/schema.js").Schema<string | import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
257
257
|
id: import("../../internal-agents/schema.js").Schema<string>;
|
|
258
|
-
role: import("../../internal-agents/schema.js").Schema<"
|
|
258
|
+
role: import("../../internal-agents/schema.js").Schema<"user" | "tool" | "assistant" | "system">;
|
|
259
259
|
parts: import("../../internal-agents/schema.js").Schema<(import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
260
260
|
type: import("../../internal-agents/schema.js").Schema<string>;
|
|
261
261
|
toolCallId: import("../../internal-agents/schema.js").Schema<string>;
|
|
@@ -25,7 +25,7 @@ export declare const getChannelInvokeRequestSchema: () => import("../internal-ag
|
|
|
25
25
|
}>>;
|
|
26
26
|
conversationHistory: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
27
27
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
28
|
-
role: import("../internal-agents/schema.js").Schema<"
|
|
28
|
+
role: import("../internal-agents/schema.js").Schema<"user" | "tool" | "assistant" | "system">;
|
|
29
29
|
parts: import("../internal-agents/schema.js").Schema<({
|
|
30
30
|
type: string;
|
|
31
31
|
} & {} & Record<string, unknown>)[]>;
|
|
@@ -58,7 +58,7 @@ export declare const ChannelInvokeRequestSchema: import("../internal-agents/sche
|
|
|
58
58
|
}>>;
|
|
59
59
|
conversationHistory: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
60
60
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
61
|
-
role: import("../internal-agents/schema.js").Schema<"
|
|
61
|
+
role: import("../internal-agents/schema.js").Schema<"user" | "tool" | "assistant" | "system">;
|
|
62
62
|
parts: import("../internal-agents/schema.js").Schema<({
|
|
63
63
|
type: string;
|
|
64
64
|
} & {} & Record<string, unknown>)[]>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { VeryfrontConfig } from "./schemas/index.js";
|
|
1
|
+
import type { VeryfrontConfig, VeryfrontConfigInput } from "./schemas/index.js";
|
|
2
2
|
import { type EnvironmentConfig } from "./environment-config.js";
|
|
3
3
|
/** Define a Veryfront project configuration object. */
|
|
4
|
-
export declare function defineConfig(config:
|
|
4
|
+
export declare function defineConfig<const T extends VeryfrontConfigInput>(config: T): T;
|
|
5
5
|
/** Define a Veryfront project configuration from the current environment name. */
|
|
6
|
-
export declare function defineConfigWithEnv(factory: (env: string) =>
|
|
6
|
+
export declare function defineConfigWithEnv<const T extends VeryfrontConfigInput>(factory: (env: string) => T, envConfig?: EnvironmentConfig): T;
|
|
7
7
|
/** Merge multiple partial Veryfront configuration objects into one config object. */
|
|
8
8
|
export declare function mergeConfigs(...configs: Partial<VeryfrontConfig>[]): VeryfrontConfig;
|
|
9
|
+
export declare function mergeConfigs(...configs: Partial<VeryfrontConfigInput>[]): VeryfrontConfigInput;
|
|
9
10
|
export declare function validateConfig(config: unknown): Promise<void>;
|
|
10
11
|
//# sourceMappingURL=define-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-config.d.ts","sourceRoot":"","sources":["../../../src/src/config/define-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"define-config.d.ts","sourceRoot":"","sources":["../../../src/src/config/define-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,OAAO,EAAE,KAAK,iBAAiB,EAAwB,MAAM,yBAAyB,CAAC;AAEvF,uDAAuD;AACvD,wBAAgB,YAAY,CAAC,KAAK,CAAC,CAAC,SAAS,oBAAoB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAE/E;AAED,kFAAkF;AAClF,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,CAAC,SAAS,oBAAoB,EACtE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,CAAC,EAC3B,SAAS,GAAE,iBAA0C,GACpD,CAAC,CAEH;AAED,qFAAqF;AACrF,wBAAgB,YAAY,CAAC,GAAG,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,EAAE,GAAG,eAAe,CAAC;AACtF,wBAAgB,YAAY,CAAC,GAAG,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,GAAG,oBAAoB,CAAC;AAOhG,wBAAsB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAWnE"}
|
|
@@ -8,7 +8,6 @@ export function defineConfig(config) {
|
|
|
8
8
|
export function defineConfigWithEnv(factory, envConfig = getEnvironmentConfig()) {
|
|
9
9
|
return factory(envConfig.nodeEnv);
|
|
10
10
|
}
|
|
11
|
-
/** Merge multiple partial Veryfront configuration objects into one config object. */
|
|
12
11
|
export function mergeConfigs(...configs) {
|
|
13
12
|
return Object.assign({}, ...configs);
|
|
14
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/src/config/loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAiCnE,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/src/config/loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAiCnE,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AA0J1D,sGAAsG;AACtG,wBAAgB,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,CAuFlF;AAqFD;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMxE;AAED,gBAAgB;AAChB,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC,CAUjB;AA4FD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,SAAS,CACvB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,eAAe,CAAC,CAmF1B;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAGvC;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAI9E"}
|
package/esm/src/config/loader.js
CHANGED
|
@@ -157,15 +157,19 @@ function validateCorsConfig(userConfig) {
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
function validateConfigShape(userConfig) {
|
|
160
|
-
validateVeryfrontConfig(userConfig);
|
|
160
|
+
const normalizedConfig = validateVeryfrontConfig(userConfig);
|
|
161
161
|
if (!userConfig || typeof userConfig !== "object")
|
|
162
|
-
return;
|
|
162
|
+
return normalizedConfig;
|
|
163
163
|
const unknown = findUnknownTopLevelKeys(userConfig);
|
|
164
164
|
if (unknown.length > 0) {
|
|
165
165
|
throw CONFIG_VALIDATION_FAILED.create({
|
|
166
166
|
detail: `Unknown config keys: ${unknown.join(", ")}. Check for typos in veryfront.config.`,
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
+
return {
|
|
170
|
+
...userConfig,
|
|
171
|
+
integrations: normalizedConfig.integrations,
|
|
172
|
+
};
|
|
169
173
|
}
|
|
170
174
|
/** @internal Exported for tests: merges user config over fresh defaults (deep for nested objects). */
|
|
171
175
|
export function mergeConfigs(userConfig) {
|
|
@@ -259,8 +263,8 @@ function validateAndCacheConfig(userConfig, cacheKey) {
|
|
|
259
263
|
});
|
|
260
264
|
}
|
|
261
265
|
validateCorsConfig(userConfig);
|
|
262
|
-
validateConfigShape(userConfig);
|
|
263
|
-
const merged = mergeConfigs(
|
|
266
|
+
const normalizedConfig = validateConfigShape(userConfig);
|
|
267
|
+
const merged = mergeConfigs(normalizedConfig);
|
|
264
268
|
if (merged.react?.version) {
|
|
265
269
|
logger.debug("React version from config", { version: merged.react.version });
|
|
266
270
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { InferInput, InferSchema } from "../../extensions/schema/index.js";
|
|
2
|
+
import type { IntegrationRuntimeConfigInput } from "../../integrations/types.js";
|
|
2
3
|
export declare const getVeryfrontConfigSchema: () => import("../../internal-agents/schema.js").Schema<Partial<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
3
4
|
projectSlug: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
4
5
|
title: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
@@ -369,9 +370,9 @@ export declare const getVeryfrontConfigSchema: () => import("../../internal-agen
|
|
|
369
370
|
}>> | undefined>;
|
|
370
371
|
/** Third-party integration configuration (e.g., Slack, GitHub) */
|
|
371
372
|
integrations: import("../../internal-agents/schema.js").Schema<Record<string, Partial<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
372
|
-
/** Token scope
|
|
373
|
-
scope: import("../../internal-agents/schema.js").Schema<
|
|
374
|
-
/** @deprecated Use `scope: "
|
|
373
|
+
/** Token scope. Legacy "endUser" input is normalized to "user". */
|
|
374
|
+
scope: import("../../internal-agents/schema.js").Schema<"user" | "project" | undefined>;
|
|
375
|
+
/** @deprecated Use `scope: "user"` instead. */
|
|
375
376
|
perUser: import("../../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
376
377
|
/** Allowlist of tool IDs to expose. When set, only these tools are registered.
|
|
377
378
|
* This keeps the MCP context narrow by excluding unused tools.
|
|
@@ -791,9 +792,9 @@ export declare const veryfrontConfigSchema: import("../../internal-agents/schema
|
|
|
791
792
|
}>> | undefined>;
|
|
792
793
|
/** Third-party integration configuration (e.g., Slack, GitHub) */
|
|
793
794
|
integrations: import("../../internal-agents/schema.js").Schema<Record<string, Partial<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
794
|
-
/** Token scope
|
|
795
|
-
scope: import("../../internal-agents/schema.js").Schema<
|
|
796
|
-
/** @deprecated Use `scope: "
|
|
795
|
+
/** Token scope. Legacy "endUser" input is normalized to "user". */
|
|
796
|
+
scope: import("../../internal-agents/schema.js").Schema<"user" | "project" | undefined>;
|
|
797
|
+
/** @deprecated Use `scope: "user"` instead. */
|
|
797
798
|
perUser: import("../../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
798
799
|
/** Allowlist of tool IDs to expose. When set, only these tools are registered.
|
|
799
800
|
* This keeps the MCP context narrow by excluding unused tools.
|
|
@@ -844,7 +845,15 @@ export declare const veryfrontConfigSchema: import("../../internal-agents/schema
|
|
|
844
845
|
}>> | undefined>;
|
|
845
846
|
}>>>;
|
|
846
847
|
export type VeryfrontConfig = InferSchema<ReturnType<typeof getVeryfrontConfigSchema>>;
|
|
847
|
-
|
|
848
|
+
type InferredVeryfrontConfigInput = InferInput<ReturnType<typeof getVeryfrontConfigSchema>>;
|
|
849
|
+
/**
|
|
850
|
+
* User-authored configuration accepted before schema transforms run.
|
|
851
|
+
* `endUser` remains a deprecated integration scope input and normalizes to `user`.
|
|
852
|
+
*/
|
|
853
|
+
export type VeryfrontConfigInput = Omit<InferredVeryfrontConfigInput, "integrations"> & {
|
|
854
|
+
integrations?: Record<string, IntegrationRuntimeConfigInput | undefined>;
|
|
855
|
+
};
|
|
848
856
|
export declare function validateVeryfrontConfig(input: unknown): VeryfrontConfig;
|
|
849
857
|
export declare function findUnknownTopLevelKeys(input: Record<string, unknown>): string[];
|
|
858
|
+
export {};
|
|
850
859
|
//# sourceMappingURL=config.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.schema.d.ts","sourceRoot":"","sources":["../../../../src/src/config/schemas/config.schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"config.schema.d.ts","sourceRoot":"","sources":["../../../../src/src/config/schemas/config.schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEhF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAgCjF,eAAO,MAAM,wBAAwB;;;;;QAQ3B,2GAA2G;;;;;;;;;;;;;;;IAuB/G,wFAAwF;;IAExF,0FAA0F;;;;;;;;;;;;;;;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,6BAA6B,GAAG,SAAS,CAAC,CAAC;CAC1E,CAAC;AAGF,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CA0BvE;AAqCD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,EAAE,CAEhF"}
|
|
@@ -581,9 +581,12 @@ export const getVeryfrontConfigSchema = defineSchema((v) => v
|
|
|
581
581
|
integrations: v
|
|
582
582
|
.record(v.string(), v
|
|
583
583
|
.object({
|
|
584
|
-
/** Token scope
|
|
585
|
-
scope: v
|
|
586
|
-
|
|
584
|
+
/** Token scope. Legacy "endUser" input is normalized to "user". */
|
|
585
|
+
scope: v
|
|
586
|
+
.enum(["user", "project", "endUser"])
|
|
587
|
+
.transform((scope) => scope === "project" ? "project" : "user")
|
|
588
|
+
.optional(),
|
|
589
|
+
/** @deprecated Use `scope: "user"` instead. */
|
|
587
590
|
perUser: v.boolean().optional(),
|
|
588
591
|
/** Allowlist of tool IDs to expose. When set, only these tools are registered.
|
|
589
592
|
* This keeps the MCP context narrow by excluding unused tools.
|
|
@@ -28,7 +28,7 @@ export interface DurableRunCanaryStartRunInput extends DurableRunCanaryCreateRoo
|
|
|
28
28
|
/** Zod schema for get durable run canary message. */
|
|
29
29
|
export declare const getDurableRunCanaryMessageSchema: () => import("../../../internal-agents/schema.js").Schema<{
|
|
30
30
|
id: string;
|
|
31
|
-
role: "
|
|
31
|
+
role: "user" | "tool" | "assistant" | "system";
|
|
32
32
|
parts: ({
|
|
33
33
|
type: string;
|
|
34
34
|
} & {} & Record<string, unknown>)[];
|
|
@@ -30,5 +30,5 @@ export declare function getConnectorNames(): readonly string[];
|
|
|
30
30
|
/** Return icon. */
|
|
31
31
|
export declare function getIcon(name: IntegrationName | string): string | undefined;
|
|
32
32
|
export { executeRemoteIntegrationTool, getRemoteIntegrationToolDefinitions, isRemoteIntegrationTool, syncIntegrationConfig, } from "./remote-tools.js";
|
|
33
|
-
export type { IntegrationConnector, IntegrationRuntimeConfig, IntegrationScope, IntegrationTool, } from "./types.js";
|
|
33
|
+
export type { IntegrationConnector, IntegrationRuntimeConfig, IntegrationRuntimeConfigInput, IntegrationScope, IntegrationScopeInput, IntegrationTool, LegacyIntegrationScope, } from "./types.js";
|
|
34
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,yBAAyB,CAAC;AAEjC,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,oCAAoC,EACpC,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,UAAU,GACX,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,0CAA0C,EAC1C,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,aAAa,CAAC;AAIrB,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAItE,wBAAwB;AACxB,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAG1F;AAED,uBAAuB;AACvB,wBAAgB,cAAc,IAAI,SAAS,iBAAiB,EAAE,CAE7D;AAED,8BAA8B;AAC9B,wBAAgB,iBAAiB,IAAI,SAAS,MAAM,EAAE,CAErD;AAED,mBAAmB;AACnB,wBAAgB,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAG1E;AAGD,OAAO,EACL,4BAA4B,EAC5B,mCAAmC,EACnC,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,yBAAyB,CAAC;AAEjC,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,oCAAoC,EACpC,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,UAAU,GACX,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,0CAA0C,EAC1C,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,aAAa,CAAC;AAIrB,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAItE,wBAAwB;AACxB,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAG1F;AAED,uBAAuB;AACvB,wBAAgB,cAAc,IAAI,SAAS,iBAAiB,EAAE,CAE7D;AAED,8BAA8B;AAC9B,wBAAgB,iBAAiB,IAAI,SAAS,MAAM,EAAE,CAErD;AAED,mBAAmB;AACnB,wBAAgB,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAG1E;AAGD,OAAO,EACL,4BAA4B,EAC5B,mCAAmC,EACnC,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,oBAAoB,EACpB,wBAAwB,EACxB,6BAA6B,EAC7B,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { ToolDefinition } from "../tool/index.js";
|
|
2
|
+
import type { IntegrationScope } from "./types.js";
|
|
2
3
|
type RemoteIntegrationToolExecutionContext = {
|
|
3
4
|
runId?: string;
|
|
4
5
|
agentId?: string;
|
|
5
6
|
};
|
|
7
|
+
type IntegrationConfigSyncInput = {
|
|
8
|
+
scope: IntegrationScope;
|
|
9
|
+
tools?: string[];
|
|
10
|
+
};
|
|
6
11
|
/**
|
|
7
12
|
* Fetch integration tool definitions for the current request context.
|
|
8
13
|
* Returns ToolDefinition[] that the agent runtime merges into the model's
|
|
@@ -25,11 +30,8 @@ export declare function executeRemoteIntegrationTool(toolName: string, args: Rec
|
|
|
25
30
|
/**
|
|
26
31
|
* Sync integration config from veryfront.config.ts to the API.
|
|
27
32
|
* This is a full-replace operation. Called by the MCP server path
|
|
28
|
-
* which has access to the config.
|
|
33
|
+
* which has access to the validated, canonical config.
|
|
29
34
|
*/
|
|
30
|
-
export declare function syncIntegrationConfig(apiBaseUrl: string, apiToken: string, integrations: Record<string,
|
|
31
|
-
scope?: string;
|
|
32
|
-
tools?: string[];
|
|
33
|
-
}>): Promise<void>;
|
|
35
|
+
export declare function syncIntegrationConfig(apiBaseUrl: string, apiToken: string, integrations: Record<string, IntegrationConfigSyncInput>): Promise<void>;
|
|
34
36
|
export {};
|
|
35
37
|
//# sourceMappingURL=remote-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-tools.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/remote-tools.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"remote-tools.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/remote-tools.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAsBnD,KAAK,qCAAqC,GAAG;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,gBAAgB,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAmJF;;;;;;;GAOG;AACH,wBAAsB,mCAAmC,IAAI,OAAO,CAClE,cAAc,EAAE,CACjB,CAoBA;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAKjE;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,OAAO,CAAC,CAclB;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,GACvD,OAAO,CAAC,IAAI,CAAC,CAyBf"}
|
|
@@ -186,7 +186,7 @@ export async function executeRemoteIntegrationTool(toolName, args, context) {
|
|
|
186
186
|
/**
|
|
187
187
|
* Sync integration config from veryfront.config.ts to the API.
|
|
188
188
|
* This is a full-replace operation. Called by the MCP server path
|
|
189
|
-
* which has access to the config.
|
|
189
|
+
* which has access to the validated, canonical config.
|
|
190
190
|
*/
|
|
191
191
|
export async function syncIntegrationConfig(apiBaseUrl, apiToken, integrations) {
|
|
192
192
|
try {
|
|
@@ -70,16 +70,24 @@ export interface IntegrationConnector {
|
|
|
70
70
|
};
|
|
71
71
|
tools: IntegrationTool[];
|
|
72
72
|
}
|
|
73
|
-
/**
|
|
74
|
-
export type IntegrationScope = "
|
|
73
|
+
/** Canonical user- or project-scoped integration connection. */
|
|
74
|
+
export type IntegrationScope = "user" | "project";
|
|
75
|
+
/** @deprecated Use the canonical `"user"` scope. Accepted only in configuration input. */
|
|
76
|
+
export type LegacyIntegrationScope = "endUser";
|
|
77
|
+
/** Integration scope accepted before configuration validation normalizes legacy input. */
|
|
78
|
+
export type IntegrationScopeInput = IntegrationScope | LegacyIntegrationScope;
|
|
75
79
|
/** Configuration used by integration runtime. */
|
|
76
80
|
export interface IntegrationRuntimeConfig {
|
|
77
|
-
/** Token scope. "project" = shared project token, "
|
|
81
|
+
/** Token scope. "project" = shared project token, "user" = private user token. */
|
|
78
82
|
scope?: IntegrationScope;
|
|
79
|
-
/** @deprecated Use `scope: "
|
|
83
|
+
/** @deprecated Use `scope: "user"` instead. */
|
|
80
84
|
perUser?: boolean;
|
|
81
85
|
/** Allowlist of tool IDs to expose. When set, only these tools are registered. */
|
|
82
86
|
tools?: string[];
|
|
83
87
|
}
|
|
88
|
+
/** User-authored integration configuration accepted before validation. */
|
|
89
|
+
export type IntegrationRuntimeConfigInput = Omit<IntegrationRuntimeConfig, "scope"> & {
|
|
90
|
+
scope?: IntegrationScopeInput;
|
|
91
|
+
};
|
|
84
92
|
export {};
|
|
85
93
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxE,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,4BAA4B;IACpC,IAAI,EAAE,QAAQ,GAAG,QA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EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,KAAK,EAAE,eAAe,EAAE,CAAC;CAC1B;AAED,gEAAgE;AAChE,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,CAAC;AAElD,0FAA0F;AAC1F,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC;AAE/C,0FAA0F;AAC1F,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,sBAAsB,CAAC;AAE9E,iDAAiD;AACjD,MAAM,WAAW,wBAAwB;IACvC,kFAAkF;IAClF,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,0EAA0E;AAC1E,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,wBAAwB,EAAE,OAAO,CAAC,GAAG;IACpF,KAAK,CAAC,EAAE,qBAAqB,CAAC;CAC/B,CAAC"}
|
|
@@ -155,7 +155,7 @@ export declare const getRuntimeRunAgentInputSchema: () => Schema<import("../exte
|
|
|
155
155
|
}>>;
|
|
156
156
|
export declare const getInternalAgentCompatibilityMessageSchema: () => Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
157
157
|
id: Schema<string>;
|
|
158
|
-
role: Schema<"
|
|
158
|
+
role: Schema<"user" | "tool" | "assistant" | "system">;
|
|
159
159
|
parts: Schema<({
|
|
160
160
|
type: string;
|
|
161
161
|
} & {} & Record<string, unknown>)[]>;
|
|
@@ -208,7 +208,7 @@ export declare const getInternalAgentControlPlaneStreamRequestSchema: () => Sche
|
|
|
208
208
|
error: Schema<string | undefined>;
|
|
209
209
|
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
210
210
|
id: Schema<string>;
|
|
211
|
-
role: Schema<"
|
|
211
|
+
role: Schema<"user" | "tool" | "assistant" | "system">;
|
|
212
212
|
parts: Schema<({
|
|
213
213
|
type: string;
|
|
214
214
|
} & {} & Record<string, unknown>)[]>;
|
|
@@ -320,7 +320,7 @@ export declare const getInternalAgentStreamRequestSchema: () => Schema<import(".
|
|
|
320
320
|
error: Schema<string | undefined>;
|
|
321
321
|
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
322
322
|
id: Schema<string>;
|
|
323
|
-
role: Schema<"
|
|
323
|
+
role: Schema<"user" | "tool" | "assistant" | "system">;
|
|
324
324
|
parts: Schema<({
|
|
325
325
|
type: string;
|
|
326
326
|
} & {} & Record<string, unknown>)[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/src/mcp/server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,YAAY,CAAC;AAIjE,OAAO,KAAK,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/src/mcp/server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,YAAY,CAAC;AAIjE,OAAO,KAAK,EAAE,wBAAwB,EAAoB,MAAM,0BAA0B,CAAC;AAU3F,KAAK,aAAa,GAAG,MAAM,C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xB,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAElE"}
|
package/esm/src/mcp/server.js
CHANGED
|
@@ -68,6 +68,13 @@ function isLoopbackOrigin(origin) {
|
|
|
68
68
|
hostname === "::1" ||
|
|
69
69
|
hostname === "[::1]";
|
|
70
70
|
}
|
|
71
|
+
function normalizeIntegrationScope(config) {
|
|
72
|
+
if (config?.scope === "user")
|
|
73
|
+
return "user";
|
|
74
|
+
if (config?.scope === "project")
|
|
75
|
+
return "project";
|
|
76
|
+
return config?.perUser ? "user" : "project";
|
|
77
|
+
}
|
|
71
78
|
const MCP_SUPPORTED_VERSIONS = ["2025-11-25", "2024-11-05"];
|
|
72
79
|
/** Implement mcpserver. */
|
|
73
80
|
export class MCPServer {
|
|
@@ -690,7 +697,7 @@ export class MCPServer {
|
|
|
690
697
|
const integrationConfigs = {};
|
|
691
698
|
for (const [name, cfg] of Object.entries(config.integrations)) {
|
|
692
699
|
integrationConfigs[name] = {
|
|
693
|
-
scope:
|
|
700
|
+
scope: normalizeIntegrationScope(cfg),
|
|
694
701
|
tools: cfg?.tools,
|
|
695
702
|
};
|
|
696
703
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1077",
|
|
4
4
|
"description": "The simplest way to build AI-powered apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -328,10 +328,10 @@
|
|
|
328
328
|
"@types/react": "19.2.14",
|
|
329
329
|
"@types/react-dom": "19.2.3",
|
|
330
330
|
"ws": "8.21.0",
|
|
331
|
-
"@veryfront/ext-bundler-esbuild": "0.1.
|
|
332
|
-
"@veryfront/ext-content-mdx": "0.1.
|
|
333
|
-
"@veryfront/ext-css-tailwind": "0.1.
|
|
334
|
-
"@veryfront/ext-parser-babel": "0.1.
|
|
331
|
+
"@veryfront/ext-bundler-esbuild": "0.1.1077",
|
|
332
|
+
"@veryfront/ext-content-mdx": "0.1.1077",
|
|
333
|
+
"@veryfront/ext-css-tailwind": "0.1.1077",
|
|
334
|
+
"@veryfront/ext-parser-babel": "0.1.1077"
|
|
335
335
|
},
|
|
336
336
|
"devDependencies": {
|
|
337
337
|
"@types/node": "20.9.0"
|