cloud-ide-lms-model 1.1.85 → 1.1.86

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.
@@ -1,6 +1,10 @@
1
1
  import { MTableQueries } from "../../common-types/common";
2
2
  import { CoreAiCapability, CoreAiEmbeddingChunk, CoreAiFeedbackLog, CoreAiKnowledgeSource, CoreAiPromptTemplate, CoreAiRequestAuditLog, CoreAiRoleCapabilityMapping } from "../../schema";
3
3
  import { controllerResponse } from "../../utilities";
4
+ export type AiChatMessage = {
5
+ role: "user" | "assistant";
6
+ content: string;
7
+ };
4
8
  declare class MAiChatPayload extends MTableQueries {
5
9
  query: string;
6
10
  capability_code: string;
@@ -8,6 +12,8 @@ declare class MAiChatPayload extends MTableQueries {
8
12
  module?: string;
9
13
  record_id?: string;
10
14
  context?: Record<string, any>;
15
+ /** Conversation history for multi-turn chat. Each turn: { role: "user"|"assistant", content: string }. */
16
+ messages?: AiChatMessage[];
11
17
  constructor(init: MAiChatPayload);
12
18
  Validate?(): Partial<Record<keyof MAiChatPayload, string>>;
13
19
  }
@@ -11,6 +11,8 @@ class MAiChatPayload extends common_1.MTableQueries {
11
11
  this.module = "";
12
12
  this.record_id = "";
13
13
  this.context = {};
14
+ /** Conversation history for multi-turn chat. Each turn: { role: "user"|"assistant", content: string }. */
15
+ this.messages = [];
14
16
  Object.assign(this, init);
15
17
  }
16
18
  Validate() {
@@ -82,8 +82,8 @@ class MSystemPagesThemeInsertUpdatePayload {
82
82
  else {
83
83
  for (let i = 0; i < layout.sytm_layout_drawer.length; i++) {
84
84
  const drawer = layout.sytm_layout_drawer[i];
85
- if (typeof drawer.status !== 'boolean' || typeof drawer.config_code !== 'string') {
86
- errorLogger.sytm_layout = `Drawer at index ${i} must have status (boolean) and config_code (string) properties!`;
85
+ if (typeof drawer.syth_status !== 'boolean' || typeof drawer.syth_config_syco_for !== 'string') {
86
+ errorLogger.sytm_layout = `Drawer at index ${i} must have syth_status (boolean) and syth_config_syco_for (string) properties!`;
87
87
  break;
88
88
  }
89
89
  }
@@ -10,5 +10,8 @@ declare const aiRoutesUrl: {
10
10
  adminPromptTemplateList: string;
11
11
  adminKnowledgeSourceSync: string;
12
12
  adminUsageReport: string;
13
+ agentsLaunch: string;
14
+ agentsStatus: string;
15
+ agentsConversation: string;
13
16
  };
14
17
  export { aiRoutesUrl };
@@ -12,7 +12,10 @@ const aiRoutesUrl = {
12
12
  adminPromptTemplateSave: "admin/prompt-template/save",
13
13
  adminPromptTemplateList: "admin/prompt-template/list",
14
14
  adminKnowledgeSourceSync: "admin/knowledge-source/sync",
15
- adminUsageReport: "admin/usage-report"
15
+ adminUsageReport: "admin/usage-report",
16
+ agentsLaunch: "agents/launch",
17
+ agentsStatus: "agents/:id/status",
18
+ agentsConversation: "agents/:id/conversation"
16
19
  };
17
20
  exports.aiRoutesUrl = aiRoutesUrl;
18
21
  Object.freeze(aiRoutesUrl);
@@ -8,5 +8,6 @@ declare class AcaAcademicYear {
8
8
  acayr_isactive?: boolean;
9
9
  acayr_iscurrent?: boolean;
10
10
  acayr_islocked?: boolean;
11
+ acayr_origin?: string;
11
12
  }
12
13
  export { AcaAcademicYear };
@@ -10,6 +10,8 @@ declare class ICoreSyth {
10
10
  interface ICoreSythDrawer {
11
11
  syth_status: boolean;
12
12
  syth_config_syco_for: string;
13
+ /** Optional JSON config per drawer row (e.g. for drawer_docs: array of doc items with title, url, etc.) */
14
+ syth_config_json?: string | Record<string, unknown> | unknown[];
13
15
  core_system_config?: ICoreSyco;
14
16
  }
15
17
  export { ICoreSyth, // interface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-ide-lms-model",
3
- "version": "1.1.85",
3
+ "version": "1.1.86",
4
4
  "description": "Package for Model management of Cloud IDEsys LMS",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",