@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.
@@ -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, path: string[], req: Request): Promise<Response>;
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, path: string[], req: Request): Promise<Response>;
475
+ handle(method: string, pathInput: string[], req: Request): Promise<Response>;
459
476
  };
460
477
 
461
478
  interface StorefrontOtpFlags {