veryfront 0.1.261 → 0.1.263
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/commands/knowledge/command.d.ts.map +1 -1
- package/esm/cli/commands/knowledge/command.js +19 -26
- package/esm/cli/templates/manifest.d.ts +470 -470
- package/esm/cli/templates/manifest.js +519 -519
- package/esm/deno.js +1 -1
- package/esm/src/agent/ag-ui-detached-start.d.ts +1 -4
- package/esm/src/agent/ag-ui-detached-start.d.ts.map +1 -1
- package/esm/src/agent/ag-ui-detached-start.js +4 -67
- package/esm/src/agent/ag-ui-handler.d.ts +1 -4
- package/esm/src/agent/ag-ui-handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui-handler.js +3 -61
- package/esm/src/agent/ag-ui-host-support.d.ts.map +1 -1
- package/esm/src/agent/ag-ui-host-support.js +2 -21
- package/esm/src/agent/ag-ui-request-shared.d.ts +4 -0
- package/esm/src/agent/ag-ui-request-shared.d.ts.map +1 -0
- package/esm/src/agent/ag-ui-request-shared.js +47 -0
- package/esm/src/agent/ag-ui-run-control.d.ts.map +1 -1
- package/esm/src/agent/ag-ui-run-control.js +1 -23
- package/esm/src/agent/ag-ui-runtime-handler.d.ts +1 -5
- package/esm/src/agent/ag-ui-runtime-handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui-runtime-handler.js +3 -67
- package/esm/src/agent/ag-ui-tool-shared.d.ts +15 -0
- package/esm/src/agent/ag-ui-tool-shared.d.ts.map +1 -0
- package/esm/src/agent/ag-ui-tool-shared.js +47 -0
- package/esm/src/agent/conversation-run-event-preparation.d.ts +3 -1
- package/esm/src/agent/conversation-run-event-preparation.d.ts.map +1 -1
- package/esm/src/agent/conversation-run-event-preparation.js +40 -0
- package/esm/src/agent/index.d.ts +3 -1
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +2 -1
- package/esm/src/agent/runtime-ag-ui-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime-ag-ui-contract.js +2 -21
- package/esm/src/chat/chat-ui-message-helpers.d.ts +20 -0
- package/esm/src/chat/chat-ui-message-helpers.d.ts.map +1 -0
- package/esm/src/chat/chat-ui-message-helpers.js +167 -0
- package/esm/src/chat/index.d.ts +2 -0
- package/esm/src/chat/index.d.ts.map +1 -1
- package/esm/src/chat/index.js +1 -0
- package/esm/src/chat/protocol.d.ts +109 -0
- package/esm/src/chat/protocol.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-http.d.ts +47 -0
- package/esm/src/provider/runtime-loader/provider-http.d.ts.map +1 -0
- package/esm/src/provider/runtime-loader/provider-http.js +171 -0
- package/esm/src/provider/runtime-loader/provider-records.d.ts +2 -0
- package/esm/src/provider/runtime-loader/provider-records.d.ts.map +1 -0
- package/esm/src/provider/runtime-loader/provider-records.js +6 -0
- package/esm/src/provider/runtime-loader.d.ts +2 -32
- package/esm/src/provider/runtime-loader.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader.js +3 -176
- package/esm/src/routing/api/module-loader/external-import-rewriter.d.ts +27 -0
- package/esm/src/routing/api/module-loader/external-import-rewriter.d.ts.map +1 -0
- package/esm/src/routing/api/module-loader/external-import-rewriter.js +339 -0
- package/esm/src/routing/api/module-loader/loader.d.ts +1 -22
- package/esm/src/routing/api/module-loader/loader.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/loader.js +4 -336
- package/esm/src/server/dev-ui/manifest.d.ts +17 -17
- package/esm/src/server/dev-ui/manifest.js +17 -17
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
- package/src/cli/commands/knowledge/command.ts +27 -32
- package/src/cli/templates/manifest.js +519 -519
- package/src/deno.js +1 -1
- package/src/src/agent/ag-ui-detached-start.ts +4 -92
- package/src/src/agent/ag-ui-handler.ts +3 -81
- package/src/src/agent/ag-ui-host-support.ts +5 -28
- package/src/src/agent/ag-ui-request-shared.ts +62 -0
- package/src/src/agent/ag-ui-run-control.ts +1 -27
- package/src/src/agent/ag-ui-runtime-handler.ts +3 -86
- package/src/src/agent/ag-ui-tool-shared.ts +77 -0
- package/src/src/agent/conversation-run-event-preparation.ts +57 -1
- package/src/src/agent/index.ts +19 -0
- package/src/src/agent/runtime-ag-ui-contract.ts +5 -28
- package/src/src/chat/chat-ui-message-helpers.ts +232 -0
- package/src/src/chat/index.ts +19 -0
- package/src/src/chat/protocol.ts +148 -0
- package/src/src/provider/runtime-loader/provider-http.ts +207 -0
- package/src/src/provider/runtime-loader/provider-records.ts +7 -0
- package/src/src/provider/runtime-loader.ts +10 -214
- package/src/src/routing/api/module-loader/external-import-rewriter.ts +461 -0
- package/src/src/routing/api/module-loader/loader.ts +19 -462
- package/src/src/server/dev-ui/manifest.js +17 -17
- package/src/src/utils/version-constant.ts +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.263";
|
|
2
2
|
//# sourceMappingURL=version-constant.d.ts.map
|
package/package.json
CHANGED
|
@@ -229,6 +229,31 @@ async function collectLocalFiles(
|
|
|
229
229
|
return commandHelpers.collectLocalFiles(root, recursive);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
function classifyListedUploadsForKnowledge(uploads: UploadItem[]): {
|
|
233
|
+
skipped: KnowledgeIngestSkippedFileResult[];
|
|
234
|
+
uploadTargets: string[];
|
|
235
|
+
} {
|
|
236
|
+
const skipped: KnowledgeIngestSkippedFileResult[] = [];
|
|
237
|
+
const uploadTargets: string[] = [];
|
|
238
|
+
|
|
239
|
+
for (const item of uploads) {
|
|
240
|
+
if (item.type === "folder") {
|
|
241
|
+
continue;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const source = formatKnowledgeUploadSource(item.path);
|
|
245
|
+
const skippedUpload = classifySourceOrSkip({ source });
|
|
246
|
+
if (skippedUpload == null) {
|
|
247
|
+
uploadTargets.push(item.path);
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
skipped.push(skippedUpload);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return { skipped, uploadTargets };
|
|
255
|
+
}
|
|
256
|
+
|
|
232
257
|
function buildSourceReference(source: KnowledgeSource): string {
|
|
233
258
|
return commandHelpers.buildSourceReference(source);
|
|
234
259
|
}
|
|
@@ -489,41 +514,11 @@ export async function collectKnowledgeSources(
|
|
|
489
514
|
});
|
|
490
515
|
|
|
491
516
|
let uploads = await listUploadsForPrefix(uploadPrefix || undefined);
|
|
492
|
-
let skipped = uploads
|
|
493
|
-
if (item.type === "folder") {
|
|
494
|
-
return [];
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
const skippedUpload = classifySourceOrSkip({
|
|
498
|
-
source: formatKnowledgeUploadSource(item.path),
|
|
499
|
-
});
|
|
500
|
-
return skippedUpload == null ? [] : [skippedUpload];
|
|
501
|
-
});
|
|
502
|
-
let uploadTargets = uploads
|
|
503
|
-
.filter((item: UploadItem) => item.type !== "folder")
|
|
504
|
-
.map((item: UploadItem) => item.path)
|
|
505
|
-
.filter((uploadPath) =>
|
|
506
|
-
classifySourceOrSkip({ source: formatKnowledgeUploadSource(uploadPath) }) == null
|
|
507
|
-
);
|
|
517
|
+
let { skipped, uploadTargets } = classifyListedUploadsForKnowledge(uploads);
|
|
508
518
|
|
|
509
519
|
if (!uploadTargets.length && uploadPrefix && !uploadPrefix.endsWith("/")) {
|
|
510
520
|
uploads = await listUploadsForPrefix(`${uploadPrefix}/`);
|
|
511
|
-
skipped = uploads
|
|
512
|
-
if (item.type === "folder") {
|
|
513
|
-
return [];
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
const skippedUpload = classifySourceOrSkip({
|
|
517
|
-
source: formatKnowledgeUploadSource(item.path),
|
|
518
|
-
});
|
|
519
|
-
return skippedUpload == null ? [] : [skippedUpload];
|
|
520
|
-
});
|
|
521
|
-
uploadTargets = uploads
|
|
522
|
-
.filter((item: UploadItem) => item.type !== "folder")
|
|
523
|
-
.map((item: UploadItem) => item.path)
|
|
524
|
-
.filter((uploadPath) =>
|
|
525
|
-
classifySourceOrSkip({ source: formatKnowledgeUploadSource(uploadPath) }) == null
|
|
526
|
-
);
|
|
521
|
+
({ skipped, uploadTargets } = classifyListedUploadsForKnowledge(uploads));
|
|
527
522
|
}
|
|
528
523
|
|
|
529
524
|
if (!uploadTargets.length && skipped.length === 0) {
|