veryfront 0.0.40 → 0.0.42
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/dist/ai/index.js +11 -11
- package/dist/ai/index.js.map +3 -3
- package/dist/cli.js +50 -13
- package/dist/components.js +23 -23
- package/dist/components.js.map +2 -2
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/data.js +1 -1
- package/dist/data.js.map +1 -1
- package/dist/index.js +28 -23
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/ai/index.js
CHANGED
|
@@ -1675,7 +1675,7 @@ var LRU_DEFAULT_MAX_SIZE_BYTES = 50 * 1024 * 1024;
|
|
|
1675
1675
|
// deno.json
|
|
1676
1676
|
var deno_default = {
|
|
1677
1677
|
name: "veryfront",
|
|
1678
|
-
version: "0.0.
|
|
1678
|
+
version: "0.0.42",
|
|
1679
1679
|
exclude: [
|
|
1680
1680
|
"npm/",
|
|
1681
1681
|
"dist/",
|
|
@@ -3193,7 +3193,7 @@ var _globalResource = globalThis;
|
|
|
3193
3193
|
var resourceRegistry = _globalResource[RESOURCE_REGISTRY_KEY] ||= new ResourceRegistryClass();
|
|
3194
3194
|
|
|
3195
3195
|
// src/ai/mcp/prompt.ts
|
|
3196
|
-
function
|
|
3196
|
+
function prompt2(config) {
|
|
3197
3197
|
const id = config.id || generatePromptId();
|
|
3198
3198
|
return {
|
|
3199
3199
|
id,
|
|
@@ -4775,9 +4775,9 @@ async function setupAI(options = {}) {
|
|
|
4775
4775
|
}
|
|
4776
4776
|
}
|
|
4777
4777
|
if (manifest.prompts) {
|
|
4778
|
-
for (const [id,
|
|
4779
|
-
prompts.set(id,
|
|
4780
|
-
registerPrompt(id,
|
|
4778
|
+
for (const [id, prompt3] of Object.entries(manifest.prompts)) {
|
|
4779
|
+
prompts.set(id, prompt3);
|
|
4780
|
+
registerPrompt(id, prompt3);
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
4783
|
if (verbose) {
|
|
@@ -4807,8 +4807,8 @@ async function setupAI(options = {}) {
|
|
|
4807
4807
|
for (const [id, resource2] of discovered.resources) {
|
|
4808
4808
|
resources.set(id, resource2);
|
|
4809
4809
|
}
|
|
4810
|
-
for (const [id,
|
|
4811
|
-
prompts.set(id,
|
|
4810
|
+
for (const [id, prompt3] of discovered.prompts) {
|
|
4811
|
+
prompts.set(id, prompt3);
|
|
4812
4812
|
}
|
|
4813
4813
|
errors.push(...discovered.errors);
|
|
4814
4814
|
if (verbose) {
|
|
@@ -4832,9 +4832,9 @@ async function setupAI(options = {}) {
|
|
|
4832
4832
|
resources.set(id, resource2);
|
|
4833
4833
|
registerResource(id, resource2);
|
|
4834
4834
|
}
|
|
4835
|
-
for (const [id,
|
|
4836
|
-
prompts.set(id,
|
|
4837
|
-
registerPrompt(id,
|
|
4835
|
+
for (const [id, prompt3] of Object.entries(manualPrompts)) {
|
|
4836
|
+
prompts.set(id, prompt3);
|
|
4837
|
+
registerPrompt(id, prompt3);
|
|
4838
4838
|
}
|
|
4839
4839
|
const result = {
|
|
4840
4840
|
tools,
|
|
@@ -8240,7 +8240,7 @@ export {
|
|
|
8240
8240
|
isAISDKModel,
|
|
8241
8241
|
openai,
|
|
8242
8242
|
parallel,
|
|
8243
|
-
prompt,
|
|
8243
|
+
prompt2 as prompt,
|
|
8244
8244
|
promptRegistry,
|
|
8245
8245
|
rateLimitMiddleware,
|
|
8246
8246
|
registerAgent,
|