@infuro/cms-core 1.0.20 → 1.0.22
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/admin.cjs +194 -75
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.js +188 -70
- package/dist/admin.js.map +1 -1
- package/dist/api.cjs +3230 -259
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +3232 -252
- package/dist/api.js.map +1 -1
- package/dist/{index-DGtM2Gsk.d.cts → index-BGAh4fPQ.d.cts} +18 -1
- package/dist/{index--GBYw5JE.d.ts → index-Cnwh7B3r.d.ts} +18 -1
- package/dist/index.cjs +753 -209
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -9
- package/dist/index.d.ts +34 -9
- package/dist/index.js +753 -209
- package/dist/index.js.map +1 -1
- package/dist/migrations/1775300000000-LlmAgents.ts +57 -57
- package/dist/migrations/1775300000001-LlmAgentsValidationRulesText.ts +43 -43
- package/dist/migrations/1775300000002-SeedLlmAgentsPermissions.ts +33 -33
- package/dist/migrations/1775300000003-LlmAgentKnowledgeDocuments.ts +50 -50
- package/package.json +2 -1
|
@@ -369,6 +369,23 @@ interface ChatPublicConfig {
|
|
|
369
369
|
/**
|
|
370
370
|
* Admin API: attach knowledge base documents to an LLM agent, ingest text into chunks + embeddings.
|
|
371
371
|
* Routes: GET/POST /api/llm_agents/:slug/knowledge, DELETE /api/llm_agents/:slug/knowledge/:documentId
|
|
372
|
+
*
|
|
373
|
+
* Pipeline logs (grep `[llm-agent-knowledge] pipeline`):
|
|
374
|
+
* - 01_request — incoming POST, content-type preview
|
|
375
|
+
* - 02_agent_loaded — agent id for slug
|
|
376
|
+
* - 03_body_parsed — JSON vs multipart, sizes / documentId
|
|
377
|
+
* - 04_* — file decode or PDF extract (multipart)
|
|
378
|
+
* - 05_branch — link_existing_document | new_upload_ingest
|
|
379
|
+
* - 06_* — KB row + junction (link create / exists)
|
|
380
|
+
* - 06b_chunks_existing_count — link path: existing chunk rows
|
|
381
|
+
* - 06_knowledge_document_saved — new ingest: document row id
|
|
382
|
+
* - 07_chunk_split — split stats
|
|
383
|
+
* - 07b_chunks_persisted — chunk rows saved
|
|
384
|
+
* - 07_query_chunks_missing_embedding — link path: rows with NULL embedding
|
|
385
|
+
* - 08_* — resolve LLM plugin, embed availability or skip
|
|
386
|
+
* - 09_embedding_workers_start / 10_embedding_workers_finished — concurrent embed+DB update
|
|
387
|
+
* - 11_response — final outcome summary
|
|
388
|
+
* - 99_pipeline_error — uncaught exception
|
|
372
389
|
*/
|
|
373
390
|
|
|
374
391
|
interface LlmAgentKnowledgeApiConfig {
|
|
@@ -455,7 +472,7 @@ interface CmsApiHandlerConfig {
|
|
|
455
472
|
getSessionUser?: () => Promise<SessionUser | null>;
|
|
456
473
|
}
|
|
457
474
|
declare function createCmsApiHandler(config: CmsApiHandlerConfig): {
|
|
458
|
-
handle(method: string,
|
|
475
|
+
handle(method: string, pathInput: string[], req: Request): Promise<Response>;
|
|
459
476
|
};
|
|
460
477
|
|
|
461
478
|
interface StorefrontOtpFlags {
|
|
@@ -369,6 +369,23 @@ interface ChatPublicConfig {
|
|
|
369
369
|
/**
|
|
370
370
|
* Admin API: attach knowledge base documents to an LLM agent, ingest text into chunks + embeddings.
|
|
371
371
|
* Routes: GET/POST /api/llm_agents/:slug/knowledge, DELETE /api/llm_agents/:slug/knowledge/:documentId
|
|
372
|
+
*
|
|
373
|
+
* Pipeline logs (grep `[llm-agent-knowledge] pipeline`):
|
|
374
|
+
* - 01_request — incoming POST, content-type preview
|
|
375
|
+
* - 02_agent_loaded — agent id for slug
|
|
376
|
+
* - 03_body_parsed — JSON vs multipart, sizes / documentId
|
|
377
|
+
* - 04_* — file decode or PDF extract (multipart)
|
|
378
|
+
* - 05_branch — link_existing_document | new_upload_ingest
|
|
379
|
+
* - 06_* — KB row + junction (link create / exists)
|
|
380
|
+
* - 06b_chunks_existing_count — link path: existing chunk rows
|
|
381
|
+
* - 06_knowledge_document_saved — new ingest: document row id
|
|
382
|
+
* - 07_chunk_split — split stats
|
|
383
|
+
* - 07b_chunks_persisted — chunk rows saved
|
|
384
|
+
* - 07_query_chunks_missing_embedding — link path: rows with NULL embedding
|
|
385
|
+
* - 08_* — resolve LLM plugin, embed availability or skip
|
|
386
|
+
* - 09_embedding_workers_start / 10_embedding_workers_finished — concurrent embed+DB update
|
|
387
|
+
* - 11_response — final outcome summary
|
|
388
|
+
* - 99_pipeline_error — uncaught exception
|
|
372
389
|
*/
|
|
373
390
|
|
|
374
391
|
interface LlmAgentKnowledgeApiConfig {
|
|
@@ -455,7 +472,7 @@ interface CmsApiHandlerConfig {
|
|
|
455
472
|
getSessionUser?: () => Promise<SessionUser | null>;
|
|
456
473
|
}
|
|
457
474
|
declare function createCmsApiHandler(config: CmsApiHandlerConfig): {
|
|
458
|
-
handle(method: string,
|
|
475
|
+
handle(method: string, pathInput: string[], req: Request): Promise<Response>;
|
|
459
476
|
};
|
|
460
477
|
|
|
461
478
|
interface StorefrontOtpFlags {
|