veryfront 0.1.514 → 0.1.516
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/README.md +0 -1
- package/esm/cli/commands/build/command.js +2 -2
- package/esm/cli/shared/{ensure-content-transformer.d.ts → ensure-content-processor.d.ts} +3 -3
- package/esm/cli/shared/ensure-content-processor.d.ts.map +1 -0
- package/esm/cli/shared/{ensure-content-transformer.js → ensure-content-processor.js} +5 -5
- package/esm/cli/shared/server-startup.js +4 -4
- package/esm/deno.d.ts +0 -5
- package/esm/deno.js +4 -9
- package/esm/extensions/ext-transform-mdx/src/compiler/markdown-compile.d.ts +2 -2
- package/esm/extensions/ext-transform-mdx/src/compiler/markdown-compile.d.ts.map +1 -1
- package/esm/extensions/ext-transform-mdx/src/compiler/mdx-compile.d.ts +2 -2
- package/esm/extensions/ext-transform-mdx/src/compiler/mdx-compile.d.ts.map +1 -1
- package/esm/extensions/ext-transform-mdx/src/index.d.ts +10 -10
- package/esm/extensions/ext-transform-mdx/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-transform-mdx/src/index.js +11 -11
- package/esm/src/agent/index.d.ts +2 -1
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +1 -0
- package/esm/src/agent/runtime/constants.d.ts.map +1 -1
- package/esm/src/agent/runtime/constants.js +5 -1
- package/esm/src/agent/runtime/model-resolution.d.ts.map +1 -1
- package/esm/src/agent/runtime/model-resolution.js +17 -3
- package/esm/src/agent/runtime-agent-markdown-adapter.d.ts +6 -0
- package/esm/src/agent/runtime-agent-markdown-adapter.d.ts.map +1 -0
- package/esm/src/agent/runtime-agent-markdown-adapter.js +20 -0
- package/esm/src/agent/types.d.ts +22 -10
- package/esm/src/agent/types.d.ts.map +1 -1
- package/esm/src/agent/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/veryfront-cloud-agent-service.js +19 -8
- package/esm/src/channels/control-plane.d.ts +30 -54
- package/esm/src/channels/control-plane.d.ts.map +1 -1
- package/esm/src/channels/control-plane.js +13 -15
- package/esm/src/discovery/discovery-engine.d.ts.map +1 -1
- package/esm/src/discovery/discovery-engine.js +2 -0
- package/esm/src/discovery/file-discovery.d.ts +6 -1
- package/esm/src/discovery/file-discovery.d.ts.map +1 -1
- package/esm/src/discovery/file-discovery.js +25 -5
- package/esm/src/discovery/handlers/runtime-agent-markdown-handler.d.ts +3 -0
- package/esm/src/discovery/handlers/runtime-agent-markdown-handler.d.ts.map +1 -0
- package/esm/src/discovery/handlers/runtime-agent-markdown-handler.js +51 -0
- package/esm/src/extensions/builtin-extensions.js +1 -1
- package/esm/src/extensions/recommendations.js +1 -1
- package/esm/src/extensions/transform/{content-transformer.d.ts → content-processor.d.ts} +21 -21
- package/esm/src/extensions/transform/content-processor.d.ts.map +1 -0
- package/esm/src/extensions/transform/{content-transformer.js → content-processor.js} +5 -5
- package/esm/src/extensions/transform/index.d.ts +3 -3
- package/esm/src/extensions/transform/index.d.ts.map +1 -1
- package/esm/src/extensions/transform/index.js +1 -1
- package/esm/src/oauth/handlers/init-handler.d.ts.map +1 -1
- package/esm/src/oauth/handlers/init-handler.js +9 -4
- package/esm/src/transforms/md/compiler/md-compiler.d.ts +2 -2
- package/esm/src/transforms/md/compiler/md-compiler.d.ts.map +1 -1
- package/esm/src/transforms/md/compiler/md-compiler.js +2 -2
- package/esm/src/transforms/mdx/compiler/index.d.ts +3 -3
- package/esm/src/transforms/mdx/compiler/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/compiler/mdx-compiler.d.ts +2 -2
- package/esm/src/transforms/mdx/compiler/mdx-compiler.d.ts.map +1 -1
- package/esm/src/transforms/mdx/compiler/mdx-compiler.js +2 -2
- package/esm/src/transforms/plugins/plugin-loader.d.ts +2 -2
- package/esm/src/transforms/plugins/plugin-loader.js +6 -6
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +4 -4
- package/src/cli/commands/build/command.ts +2 -2
- package/src/cli/shared/{ensure-content-transformer.ts → ensure-content-processor.ts} +6 -6
- package/src/cli/shared/server-startup.ts +4 -4
- package/src/deno.js +4 -9
- package/src/deps/esm.sh/@types/react-dom@19.2.3/client.d.ts +1 -1
- package/src/deps/esm.sh/@types/{react@19.2.14 → react@19.2.3}/global.d.ts +0 -1
- package/src/deps/esm.sh/@types/{react@19.2.14 → react@19.2.3}/index.d.ts +24 -93
- package/src/deps/esm.sh/react-dom@19.2.4/client.d.ts +1 -1
- package/src/extensions/ext-transform-mdx/src/compiler/markdown-compile.ts +5 -2
- package/src/extensions/ext-transform-mdx/src/compiler/mdx-compile.ts +5 -2
- package/src/extensions/ext-transform-mdx/src/index.ts +15 -15
- package/src/src/agent/index.ts +8 -2
- package/src/src/agent/runtime/constants.ts +6 -1
- package/src/src/agent/runtime/model-resolution.ts +17 -3
- package/src/src/agent/runtime-agent-markdown-adapter.ts +31 -0
- package/src/src/agent/types.ts +23 -10
- package/src/src/agent/veryfront-cloud-agent-service.ts +23 -10
- package/src/src/channels/control-plane.ts +18 -20
- package/src/src/discovery/discovery-engine.ts +2 -0
- package/src/src/discovery/file-discovery.ts +40 -5
- package/src/src/discovery/handlers/runtime-agent-markdown-handler.ts +78 -0
- package/src/src/extensions/builtin-extensions.ts +1 -1
- package/src/src/extensions/recommendations.ts +1 -1
- package/src/src/extensions/transform/{content-transformer.ts → content-processor.ts} +20 -20
- package/src/src/extensions/transform/index.ts +5 -5
- package/src/src/oauth/handlers/init-handler.ts +10 -5
- package/src/src/transforms/md/compiler/md-compiler.ts +6 -6
- package/src/src/transforms/mdx/compiler/index.ts +3 -3
- package/src/src/transforms/mdx/compiler/mdx-compiler.ts +5 -5
- package/src/src/transforms/plugins/plugin-loader.ts +7 -7
- package/src/src/utils/version-constant.ts +1 -1
- package/esm/cli/shared/ensure-content-transformer.d.ts.map +0 -1
- package/esm/src/extensions/transform/content-transformer.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/agent/types.ts"],"names":[],"mappings":"AAAA;;4BAE4B;AAE5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAErF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAG3D,YAAY,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,YAAY,EACZ,OAAO,EACP,WAAW,EACX,aAAa,EACb,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,GACf,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAGjC,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/agent/types.ts"],"names":[],"mappings":"AAAA;;4BAE4B;AAE5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAErF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAG3D,YAAY,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,YAAY,EACZ,OAAO,EACP,WAAW,EACX,aAAa,EACb,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,GACf,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CAAC,UAAU,CAAC,CAAC;IAClD,cAAc,EAAE,gCAAgC,CAAC;CAClD,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG,+CAA+C,CAAC;AAC5F,MAAM,MAAM,yBAAyB,GAAG,2CAA2C,CAAC;AA6yBpF,wBAAsB,2CAA2C,CAC/D,OAAO,GAAE,qCAA0C,GAClD,OAAO,CAAC,yBAAyB,CAAC,+CAA+C,CAAC,CAAC,CAKrF;AAED,wBAAsB,mCAAmC,CACvD,OAAO,GAAE,qCAA0C,GAClD,OAAO,CAAC,2BAA2B,CAAC,+CAA+C,CAAC,CAAC,CAgBvF;AAED,wBAAsB,iBAAiB,CACrC,OAAO,GAAE,qCAA0C,GAClD,OAAO,CAAC,IAAI,CAAC,CAiDf"}
|
|
@@ -20,7 +20,7 @@ import { createLiveStudioMcpTools } from "./live-studio-mcp-tools.js";
|
|
|
20
20
|
import { createDefaultHostedChatRuntime, } from "./default-hosted-chat-runtime.js";
|
|
21
21
|
import { createDefaultHostedInvokeAgentTool } from "./default-hosted-invoke-agent-tool.js";
|
|
22
22
|
import { createDefaultHostedProjectSteeringRefresh, fetchDefaultHostedProjectSteering, } from "./default-hosted-project-steering-refresh.js";
|
|
23
|
-
import {
|
|
23
|
+
import { getRuntimeAgentMarkdownDefinition, isRuntimeAgentMarkdownAgent, } from "./runtime-agent-markdown-adapter.js";
|
|
24
24
|
import { buildVeryfrontCloudRuntimeInstructions, } from "./veryfront-cloud-runtime-system-messages.js";
|
|
25
25
|
import { createNodeAgentServiceRuntimeInfrastructure, } from "./node-agent-service-runtime-infrastructure.js";
|
|
26
26
|
import { createAgentServiceRuntime, startAgentServiceRuntime, startNodeAgentService, } from "./agent-service-runtime.js";
|
|
@@ -183,8 +183,8 @@ function resolveAgentSystem(system) {
|
|
|
183
183
|
async function createRuntimeAgentDefinitionFromCodeAgent(codeAgent) {
|
|
184
184
|
return {
|
|
185
185
|
id: codeAgent.id,
|
|
186
|
-
name: codeAgent.id,
|
|
187
|
-
description: "",
|
|
186
|
+
name: codeAgent.config.name ?? codeAgent.id,
|
|
187
|
+
description: codeAgent.config.description ?? "",
|
|
188
188
|
instructions: await resolveAgentSystem(codeAgent.config.system),
|
|
189
189
|
model: codeAgent.config.model,
|
|
190
190
|
maxSteps: codeAgent.config.maxSteps,
|
|
@@ -203,7 +203,7 @@ async function resolveAgentConfig(context, agentId) {
|
|
|
203
203
|
}
|
|
204
204
|
const source = context.options.agentSource ?? "auto";
|
|
205
205
|
const codeAgent = getAgent(agentId);
|
|
206
|
-
if (source !== "markdown" && codeAgent) {
|
|
206
|
+
if (source !== "markdown" && codeAgent && !isRuntimeAgentMarkdownAgent(codeAgent)) {
|
|
207
207
|
const agentConfig = await createRuntimeAgentDefinitionFromCodeAgent(codeAgent);
|
|
208
208
|
context.agentConfigs.set(agentConfig.id, agentConfig);
|
|
209
209
|
return agentConfig;
|
|
@@ -211,6 +211,13 @@ async function resolveAgentConfig(context, agentId) {
|
|
|
211
211
|
if (source === "code") {
|
|
212
212
|
throw new Error(`Code agent "${agentId}" was not discovered.`);
|
|
213
213
|
}
|
|
214
|
+
const discoveredMarkdownDefinition = codeAgent
|
|
215
|
+
? getRuntimeAgentMarkdownDefinition(codeAgent)
|
|
216
|
+
: null;
|
|
217
|
+
if (discoveredMarkdownDefinition) {
|
|
218
|
+
context.agentConfigs.set(discoveredMarkdownDefinition.id, discoveredMarkdownDefinition);
|
|
219
|
+
return discoveredMarkdownDefinition;
|
|
220
|
+
}
|
|
214
221
|
const agentConfig = loadMarkdownAgentConfig(context, agentId);
|
|
215
222
|
context.agentConfigs.set(agentConfig.id, agentConfig);
|
|
216
223
|
return agentConfig;
|
|
@@ -234,12 +241,16 @@ async function discoverProjectPrimitives(context) {
|
|
|
234
241
|
context.discoveryResult = await discoverAll(discoveryOptions);
|
|
235
242
|
}
|
|
236
243
|
function getDiscoveredCodeAgentIds(context) {
|
|
237
|
-
return [...(context.discoveryResult?.agents.
|
|
244
|
+
return [...(context.discoveryResult?.agents.entries() ?? [])]
|
|
245
|
+
.filter(([, discoveredAgent]) => !isRuntimeAgentMarkdownAgent(discoveredAgent))
|
|
246
|
+
.map(([id]) => id)
|
|
247
|
+
.sort((left, right) => left.localeCompare(right));
|
|
238
248
|
}
|
|
239
249
|
function getDiscoveredMarkdownAgentIds(context) {
|
|
240
|
-
return
|
|
241
|
-
|
|
242
|
-
|
|
250
|
+
return [...(context.discoveryResult?.agents.entries() ?? [])]
|
|
251
|
+
.filter(([, discoveredAgent]) => isRuntimeAgentMarkdownAgent(discoveredAgent))
|
|
252
|
+
.map(([id]) => id)
|
|
253
|
+
.sort((left, right) => left.localeCompare(right));
|
|
243
254
|
}
|
|
244
255
|
function describeAgentIdCandidates(input) {
|
|
245
256
|
const ids = [...new Set([...input.codeAgentIds, ...input.markdownAgentIds])]
|
|
@@ -31,66 +31,54 @@ export declare const RuntimeAgentSkillSchema: Schema<import("../extensions/schem
|
|
|
31
31
|
tags: Schema<string[] | undefined>;
|
|
32
32
|
examples: Schema<string[] | undefined>;
|
|
33
33
|
}>>;
|
|
34
|
-
export declare const
|
|
35
|
-
id: Schema<string>;
|
|
34
|
+
export declare const getRuntimeSuggestionSchema: () => Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
36
35
|
type: Schema<"prompt">;
|
|
37
36
|
title: Schema<string>;
|
|
38
|
-
description: Schema<string | undefined>;
|
|
39
37
|
prompt: Schema<string>;
|
|
40
38
|
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
41
39
|
id: Schema<string>;
|
|
40
|
+
type: Schema<"prompt">;
|
|
41
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
42
42
|
type: Schema<"task">;
|
|
43
|
-
title: Schema<string>;
|
|
44
|
-
description: Schema<string | undefined>;
|
|
45
|
-
task: Schema<string>;
|
|
46
|
-
prompt: Schema<string | undefined>;
|
|
47
|
-
}>>;
|
|
48
|
-
export declare const RuntimeAgentSuggestionSchema: Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
49
43
|
id: Schema<string>;
|
|
44
|
+
}>>;
|
|
45
|
+
export declare const RuntimeSuggestionSchema: Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
50
46
|
type: Schema<"prompt">;
|
|
51
47
|
title: Schema<string>;
|
|
52
|
-
description: Schema<string | undefined>;
|
|
53
48
|
prompt: Schema<string>;
|
|
54
49
|
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
55
50
|
id: Schema<string>;
|
|
51
|
+
type: Schema<"prompt">;
|
|
52
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
56
53
|
type: Schema<"task">;
|
|
57
|
-
|
|
58
|
-
description: Schema<string | undefined>;
|
|
59
|
-
task: Schema<string>;
|
|
60
|
-
prompt: Schema<string | undefined>;
|
|
54
|
+
id: Schema<string>;
|
|
61
55
|
}>>;
|
|
62
|
-
export declare const
|
|
56
|
+
export declare const getRuntimeSuggestionsSchema: () => Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
63
57
|
welcomeMessage: Schema<string | undefined>;
|
|
64
58
|
suggestions: Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
65
|
-
id: Schema<string>;
|
|
66
59
|
type: Schema<"prompt">;
|
|
67
60
|
title: Schema<string>;
|
|
68
|
-
description: Schema<string | undefined>;
|
|
69
61
|
prompt: Schema<string>;
|
|
70
62
|
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
71
63
|
id: Schema<string>;
|
|
64
|
+
type: Schema<"prompt">;
|
|
65
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
72
66
|
type: Schema<"task">;
|
|
73
|
-
|
|
74
|
-
description: Schema<string | undefined>;
|
|
75
|
-
task: Schema<string>;
|
|
76
|
-
prompt: Schema<string | undefined>;
|
|
67
|
+
id: Schema<string>;
|
|
77
68
|
}>)[]>;
|
|
78
69
|
}>>;
|
|
79
|
-
export declare const
|
|
70
|
+
export declare const RuntimeSuggestionsSchema: Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
80
71
|
welcomeMessage: Schema<string | undefined>;
|
|
81
72
|
suggestions: Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
82
|
-
id: Schema<string>;
|
|
83
73
|
type: Schema<"prompt">;
|
|
84
74
|
title: Schema<string>;
|
|
85
|
-
description: Schema<string | undefined>;
|
|
86
75
|
prompt: Schema<string>;
|
|
87
76
|
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
88
77
|
id: Schema<string>;
|
|
78
|
+
type: Schema<"prompt">;
|
|
79
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
89
80
|
type: Schema<"task">;
|
|
90
|
-
|
|
91
|
-
description: Schema<string | undefined>;
|
|
92
|
-
task: Schema<string>;
|
|
93
|
-
prompt: Schema<string | undefined>;
|
|
81
|
+
id: Schema<string>;
|
|
94
82
|
}>)[]>;
|
|
95
83
|
}>>;
|
|
96
84
|
export declare const getRuntimeAgentSchema: () => Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
@@ -109,18 +97,15 @@ export declare const getRuntimeAgentSchema: () => Schema<import("../extensions/s
|
|
|
109
97
|
suggestions: Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
110
98
|
welcomeMessage: Schema<string | undefined>;
|
|
111
99
|
suggestions: Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
112
|
-
id: Schema<string>;
|
|
113
100
|
type: Schema<"prompt">;
|
|
114
101
|
title: Schema<string>;
|
|
115
|
-
description: Schema<string | undefined>;
|
|
116
102
|
prompt: Schema<string>;
|
|
117
103
|
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
118
104
|
id: Schema<string>;
|
|
105
|
+
type: Schema<"prompt">;
|
|
106
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
119
107
|
type: Schema<"task">;
|
|
120
|
-
|
|
121
|
-
description: Schema<string | undefined>;
|
|
122
|
-
task: Schema<string>;
|
|
123
|
-
prompt: Schema<string | undefined>;
|
|
108
|
+
id: Schema<string>;
|
|
124
109
|
}>)[]>;
|
|
125
110
|
}> | undefined>;
|
|
126
111
|
}>>;
|
|
@@ -140,18 +125,15 @@ export declare const RuntimeAgentSchema: Schema<import("../extensions/schema/sch
|
|
|
140
125
|
suggestions: Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
141
126
|
welcomeMessage: Schema<string | undefined>;
|
|
142
127
|
suggestions: Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
143
|
-
id: Schema<string>;
|
|
144
128
|
type: Schema<"prompt">;
|
|
145
129
|
title: Schema<string>;
|
|
146
|
-
description: Schema<string | undefined>;
|
|
147
130
|
prompt: Schema<string>;
|
|
148
131
|
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
149
132
|
id: Schema<string>;
|
|
133
|
+
type: Schema<"prompt">;
|
|
134
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
150
135
|
type: Schema<"task">;
|
|
151
|
-
|
|
152
|
-
description: Schema<string | undefined>;
|
|
153
|
-
task: Schema<string>;
|
|
154
|
-
prompt: Schema<string | undefined>;
|
|
136
|
+
id: Schema<string>;
|
|
155
137
|
}>)[]>;
|
|
156
138
|
}> | undefined>;
|
|
157
139
|
}>>;
|
|
@@ -172,18 +154,15 @@ export declare const getRuntimeAgentListResponseSchema: () => Schema<import("../
|
|
|
172
154
|
suggestions: Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
173
155
|
welcomeMessage: Schema<string | undefined>;
|
|
174
156
|
suggestions: Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
175
|
-
id: Schema<string>;
|
|
176
157
|
type: Schema<"prompt">;
|
|
177
158
|
title: Schema<string>;
|
|
178
|
-
description: Schema<string | undefined>;
|
|
179
159
|
prompt: Schema<string>;
|
|
180
160
|
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
181
161
|
id: Schema<string>;
|
|
162
|
+
type: Schema<"prompt">;
|
|
163
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
182
164
|
type: Schema<"task">;
|
|
183
|
-
|
|
184
|
-
description: Schema<string | undefined>;
|
|
185
|
-
task: Schema<string>;
|
|
186
|
-
prompt: Schema<string | undefined>;
|
|
165
|
+
id: Schema<string>;
|
|
187
166
|
}>)[]>;
|
|
188
167
|
}> | undefined>;
|
|
189
168
|
}>[]>;
|
|
@@ -205,18 +184,15 @@ export declare const RuntimeAgentListResponseSchema: Schema<import("../extension
|
|
|
205
184
|
suggestions: Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
206
185
|
welcomeMessage: Schema<string | undefined>;
|
|
207
186
|
suggestions: Schema<(import("../extensions/schema/schema-validator.js").InferShape<{
|
|
208
|
-
id: Schema<string>;
|
|
209
187
|
type: Schema<"prompt">;
|
|
210
188
|
title: Schema<string>;
|
|
211
|
-
description: Schema<string | undefined>;
|
|
212
189
|
prompt: Schema<string>;
|
|
213
190
|
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
214
191
|
id: Schema<string>;
|
|
192
|
+
type: Schema<"prompt">;
|
|
193
|
+
}> | import("../extensions/schema/schema-validator.js").InferShape<{
|
|
215
194
|
type: Schema<"task">;
|
|
216
|
-
|
|
217
|
-
description: Schema<string | undefined>;
|
|
218
|
-
task: Schema<string>;
|
|
219
|
-
prompt: Schema<string | undefined>;
|
|
195
|
+
id: Schema<string>;
|
|
220
196
|
}>)[]>;
|
|
221
197
|
}> | undefined>;
|
|
222
198
|
}>[]>;
|
|
@@ -244,8 +220,8 @@ declare const getControlPlaneClaimsSchema: () => Schema<import("../extensions/sc
|
|
|
244
220
|
export type ControlPlaneSurface = InferSchema<ReturnType<typeof getControlPlaneSurfaceSchema>>;
|
|
245
221
|
export type ControlPlaneAgentsListRequest = InferSchema<ReturnType<typeof getControlPlaneAgentsListRequestSchema>>;
|
|
246
222
|
export type RuntimeAgentSkill = InferSchema<ReturnType<typeof getRuntimeAgentSkillSchema>>;
|
|
247
|
-
export type
|
|
248
|
-
export type
|
|
223
|
+
export type RuntimeSuggestion = InferSchema<ReturnType<typeof getRuntimeSuggestionSchema>>;
|
|
224
|
+
export type RuntimeSuggestions = InferSchema<ReturnType<typeof getRuntimeSuggestionsSchema>>;
|
|
249
225
|
export type RuntimeAgent = InferSchema<ReturnType<typeof getRuntimeAgentSchema>>;
|
|
250
226
|
export type RuntimeAgentListResponse = InferSchema<ReturnType<typeof getRuntimeAgentListResponseSchema>>;
|
|
251
227
|
export type DispatchClaims = InferSchema<ReturnType<typeof getDispatchClaimsSchema>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-plane.d.ts","sourceRoot":"","sources":["../../../src/src/channels/control-plane.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAIzE,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAC/E,eAAO,MAAM,+BAA+B,qCAAqC,CAAC;AAClF,eAAO,MAAM,oCAAoC,oCAAoC,CAAC;AAWtF,eAAO,MAAM,4BAA4B,sBAExC,CAAC;AACF,eAAO,MAAM,yBAAyB,gBAAiC,CAAC;AAExE,eAAO,MAAM,sCAAsC;;;;GAMlD,CAAC;AACF,eAAO,MAAM,mCAAmC;;;;GAA2C,CAAC;AAE5F,eAAO,MAAM,0BAA0B;;;;;;GAQtC,CAAC;AACF,eAAO,MAAM,uBAAuB;;;;;;GAA+B,CAAC;AAEpE,eAAO,MAAM
|
|
1
|
+
{"version":3,"file":"control-plane.d.ts","sourceRoot":"","sources":["../../../src/src/channels/control-plane.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,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AAO,CAAC,CA2BlB;AAED,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE;IACP,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB,GACA,OAAO,CAAC,cAAc,CAAC,CAmBzB;AAED,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE;IACP,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB,GACA,OAAO,CAAC,kBAAkB,CAAC,CAmB7B"}
|
|
@@ -29,29 +29,27 @@ export const getRuntimeAgentSkillSchema = defineSchema((v) => v.object({
|
|
|
29
29
|
examples: v.array(v.string()).optional(),
|
|
30
30
|
}));
|
|
31
31
|
export const RuntimeAgentSkillSchema = getRuntimeAgentSkillSchema();
|
|
32
|
-
export const
|
|
32
|
+
export const getRuntimeSuggestionSchema = defineSchema((v) => v.union([
|
|
33
33
|
v.object({
|
|
34
|
-
id: v.string().min(1),
|
|
35
34
|
type: v.literal("prompt"),
|
|
36
35
|
title: v.string().min(1),
|
|
37
|
-
description: v.string().optional(),
|
|
38
36
|
prompt: v.string().min(1),
|
|
39
|
-
}),
|
|
37
|
+
}).strict(),
|
|
40
38
|
v.object({
|
|
41
39
|
id: v.string().min(1),
|
|
40
|
+
type: v.literal("prompt"),
|
|
41
|
+
}).strict(),
|
|
42
|
+
v.object({
|
|
42
43
|
type: v.literal("task"),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
task: v.string().min(1),
|
|
46
|
-
prompt: v.string().min(1).optional(),
|
|
47
|
-
}),
|
|
44
|
+
id: v.string().min(1),
|
|
45
|
+
}).strict(),
|
|
48
46
|
]));
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
47
|
+
export const RuntimeSuggestionSchema = getRuntimeSuggestionSchema();
|
|
48
|
+
export const getRuntimeSuggestionsSchema = defineSchema((v) => v.object({
|
|
51
49
|
welcomeMessage: v.string().min(1).optional(),
|
|
52
|
-
suggestions: v.array(
|
|
50
|
+
suggestions: v.array(getRuntimeSuggestionSchema()),
|
|
53
51
|
}));
|
|
54
|
-
export const
|
|
52
|
+
export const RuntimeSuggestionsSchema = getRuntimeSuggestionsSchema();
|
|
55
53
|
export const getRuntimeAgentSchema = defineSchema((v) => v.object({
|
|
56
54
|
id: v.string().min(1),
|
|
57
55
|
name: v.string().min(1),
|
|
@@ -59,7 +57,7 @@ export const getRuntimeAgentSchema = defineSchema((v) => v.object({
|
|
|
59
57
|
model: v.string().nullable().optional(),
|
|
60
58
|
version: v.string().nullable().optional(),
|
|
61
59
|
skills: v.array(getRuntimeAgentSkillSchema()).optional(),
|
|
62
|
-
suggestions:
|
|
60
|
+
suggestions: getRuntimeSuggestionsSchema().optional(),
|
|
63
61
|
}));
|
|
64
62
|
export const RuntimeAgentSchema = getRuntimeAgentSchema();
|
|
65
63
|
export const getRuntimeAgentListResponseSchema = defineSchema((v) => v.object({
|
|
@@ -188,7 +186,7 @@ function getRuntimeAgentMetadata(id, agent) {
|
|
|
188
186
|
const rawConfig = agent.config;
|
|
189
187
|
const suggestionsParseResult = rawConfig.suggestions === undefined
|
|
190
188
|
? null
|
|
191
|
-
:
|
|
189
|
+
: RuntimeSuggestionsSchema.safeParse(rawConfig.suggestions);
|
|
192
190
|
const suggestions = suggestionsParseResult?.success ? suggestionsParseResult.data : undefined;
|
|
193
191
|
return RuntimeAgentSchema.parse({
|
|
194
192
|
id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery-engine.d.ts","sourceRoot":"","sources":["../../../src/src/discovery/discovery-engine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EACV,eAAe,EAEf,eAAe,EAEhB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"discovery-engine.d.ts","sourceRoot":"","sources":["../../../src/src/discovery/discovery-engine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EACV,eAAe,EAEf,eAAe,EAEhB,MAAM,YAAY,CAAC;AAsIpB;;GAEG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CA2EnF"}
|
|
@@ -11,6 +11,7 @@ import { registerSkill, skillRegistry } from "../skill/registry.js";
|
|
|
11
11
|
import { importModule } from "./transpiler.js";
|
|
12
12
|
import { findTypeScriptFiles } from "./file-discovery.js";
|
|
13
13
|
import { agentHandler, discoverSkills, promptHandler, resourceHandler, taskHandler, toolHandler, workflowHandler, } from "./handlers/index.js";
|
|
14
|
+
import { discoverRuntimeAgentMarkdownDefinitions } from "./handlers/runtime-agent-markdown-handler.js";
|
|
14
15
|
import { filenameToId } from "./discovery-utils.js";
|
|
15
16
|
import { join } from "../platform/compat/path/index.js";
|
|
16
17
|
const logger = agentLogger.component("discovery");
|
|
@@ -122,6 +123,7 @@ export async function discoverAll(config) {
|
|
|
122
123
|
// Discover agents
|
|
123
124
|
for (const dir of config.agentDirs ?? ["agents"]) {
|
|
124
125
|
await discoverItems(`${baseDir}/${dir}`, result, context, agentHandler, config.verbose);
|
|
126
|
+
await discoverRuntimeAgentMarkdownDefinitions(`${baseDir}/${dir}`, result, context);
|
|
125
127
|
}
|
|
126
128
|
// Discover resources
|
|
127
129
|
for (const dir of config.resourceDirs ?? ["resources"]) {
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { FileDiscoveryContext } from "./types.js";
|
|
7
7
|
/**
|
|
8
|
-
* Find all TypeScript files in a directory recursively
|
|
8
|
+
* Find all TypeScript files in a directory recursively.
|
|
9
9
|
*/
|
|
10
10
|
export declare function findTypeScriptFiles(dir: string, context: FileDiscoveryContext): Promise<string[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Find all Markdown files in a directory recursively.
|
|
13
|
+
*/
|
|
14
|
+
export declare function findMarkdownFiles(dir: string, context: FileDiscoveryContext): Promise<string[]>;
|
|
15
|
+
export declare function readDiscoveryTextFile(fileUrl: string, context: FileDiscoveryContext): Promise<string>;
|
|
11
16
|
//# sourceMappingURL=file-discovery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-discovery.d.ts","sourceRoot":"","sources":["../../../src/src/discovery/file-discovery.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"file-discovery.d.ts","sourceRoot":"","sources":["../../../src/src/discovery/file-discovery.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAsEvD;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,EAAE,CAAC,CAEnB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,EAAE,CAAC,CAEnB;AAED,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC,CASjB"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Find all TypeScript files in a directory recursively
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
async function findFilesByExtension(dir, context, extensions) {
|
|
10
10
|
const files = [];
|
|
11
11
|
try {
|
|
12
12
|
if (context.fsAdapter) {
|
|
@@ -14,12 +14,12 @@ export async function findTypeScriptFiles(dir, context) {
|
|
|
14
14
|
return files;
|
|
15
15
|
for await (const entry of context.fsAdapter.readDir(dir)) {
|
|
16
16
|
const filePath = `${dir}/${entry.name}`;
|
|
17
|
-
if (entry.isFile &&
|
|
17
|
+
if (entry.isFile && extensions.some((extension) => entry.name.endsWith(extension))) {
|
|
18
18
|
files.push(`file://${filePath}`);
|
|
19
19
|
continue;
|
|
20
20
|
}
|
|
21
21
|
if (entry.isDirectory) {
|
|
22
|
-
files.push(...(await
|
|
22
|
+
files.push(...(await findFilesByExtension(filePath, context, extensions)));
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
return files;
|
|
@@ -29,12 +29,12 @@ export async function findTypeScriptFiles(dir, context) {
|
|
|
29
29
|
return files;
|
|
30
30
|
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
31
31
|
const filePath = path.join(dir, entry.name);
|
|
32
|
-
if (entry.isFile() &&
|
|
32
|
+
if (entry.isFile() && extensions.some((extension) => entry.name.endsWith(extension))) {
|
|
33
33
|
files.push(`file://${path.resolve(filePath)}`);
|
|
34
34
|
continue;
|
|
35
35
|
}
|
|
36
36
|
if (entry.isDirectory()) {
|
|
37
|
-
files.push(...(await
|
|
37
|
+
files.push(...(await findFilesByExtension(filePath, context, extensions)));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -56,3 +56,23 @@ async function getNodeDeps(context) {
|
|
|
56
56
|
context.nodeDeps = { fs: fsModule, path: pathModule };
|
|
57
57
|
return context.nodeDeps;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Find all TypeScript files in a directory recursively.
|
|
61
|
+
*/
|
|
62
|
+
export function findTypeScriptFiles(dir, context) {
|
|
63
|
+
return findFilesByExtension(dir, context, [".ts", ".tsx"]);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Find all Markdown files in a directory recursively.
|
|
67
|
+
*/
|
|
68
|
+
export function findMarkdownFiles(dir, context) {
|
|
69
|
+
return findFilesByExtension(dir, context, [".md"]);
|
|
70
|
+
}
|
|
71
|
+
export async function readDiscoveryTextFile(fileUrl, context) {
|
|
72
|
+
const path = fileUrl.replace(/^file:\/\//, "");
|
|
73
|
+
if (context.fsAdapter) {
|
|
74
|
+
return await context.fsAdapter.readFile(path);
|
|
75
|
+
}
|
|
76
|
+
const { fs } = await getNodeDeps(context);
|
|
77
|
+
return fs.readFileSync(path, "utf-8");
|
|
78
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DiscoveryResult, FileDiscoveryContext } from "../types.js";
|
|
2
|
+
export declare function discoverRuntimeAgentMarkdownDefinitions(dir: string, result: DiscoveryResult, context: FileDiscoveryContext): Promise<void>;
|
|
3
|
+
//# sourceMappingURL=runtime-agent-markdown-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-agent-markdown-handler.d.ts","sourceRoot":"","sources":["../../../../src/src/discovery/handlers/runtime-agent-markdown-handler.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AA6CzE,wBAAsB,uCAAuC,CAC3D,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAqBf"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { createRuntimeAgentFromMarkdownDefinition } from "../../agent/runtime-agent-markdown-adapter.js";
|
|
2
|
+
import { parseRuntimeAgentMarkdownDefinition, } from "../../agent/runtime-agent-definition.js";
|
|
3
|
+
import { agentRegistry, registerAgent } from "../../agent/composition/index.js";
|
|
4
|
+
import { ensureError } from "../../errors/veryfront-error.js";
|
|
5
|
+
import { trackAgentPath } from "../discovery-utils.js";
|
|
6
|
+
import { findMarkdownFiles, readDiscoveryTextFile } from "../file-discovery.js";
|
|
7
|
+
const MARKDOWN_AGENT_FILE_PATTERN = /^[A-Za-z0-9._-]+\.md$/;
|
|
8
|
+
function getFileName(file) {
|
|
9
|
+
return file.split("/").pop() ?? "";
|
|
10
|
+
}
|
|
11
|
+
function getMarkdownAgentCandidate(file) {
|
|
12
|
+
const fileName = getFileName(file);
|
|
13
|
+
if (!MARKDOWN_AGENT_FILE_PATTERN.test(fileName)) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
id: fileName.slice(0, -".md".length),
|
|
18
|
+
file,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function registerMarkdownAgent(definition, file, result) {
|
|
22
|
+
if (result.agents.has(definition.id)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const runtimeAgent = createRuntimeAgentFromMarkdownDefinition(definition);
|
|
26
|
+
if (runtimeAgent.id !== definition.id) {
|
|
27
|
+
agentRegistry.delete(runtimeAgent.id);
|
|
28
|
+
}
|
|
29
|
+
registerAgent(definition.id, runtimeAgent);
|
|
30
|
+
trackAgentPath(definition.id, file);
|
|
31
|
+
result.agents.set(definition.id, runtimeAgent);
|
|
32
|
+
}
|
|
33
|
+
export async function discoverRuntimeAgentMarkdownDefinitions(dir, result, context) {
|
|
34
|
+
const files = (await findMarkdownFiles(dir, context)).sort((left, right) => left.localeCompare(right));
|
|
35
|
+
for (const file of files) {
|
|
36
|
+
const candidate = getMarkdownAgentCandidate(file);
|
|
37
|
+
if (!candidate) {
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
const definition = parseRuntimeAgentMarkdownDefinition({
|
|
42
|
+
id: candidate.id,
|
|
43
|
+
content: await readDiscoveryTextFile(candidate.file, context),
|
|
44
|
+
});
|
|
45
|
+
registerMarkdownAgent(definition, candidate.file, result);
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
result.errors.push({ file: candidate.file, error: ensureError(error) });
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -11,7 +11,7 @@ const recommendations = new Map([
|
|
|
11
11
|
["CacheStore", "@veryfront/ext-cache-redis"],
|
|
12
12
|
["TokenCacheStore", "@veryfront/ext-cache-redis"],
|
|
13
13
|
["CSSProcessor", "@veryfront/ext-css-tailwind"],
|
|
14
|
-
["
|
|
14
|
+
["ContentProcessor", "@veryfront/ext-transform-mdx"],
|
|
15
15
|
["DatabaseClient", "@veryfront/ext-postgres"],
|
|
16
16
|
["AuthProvider", "@veryfront/ext-auth-jwt"],
|
|
17
17
|
["TracingExporter", "@veryfront/ext-tracing-opentelemetry"],
|