@mastra/oracledb 0.5.5 → 0.5.6

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/index.js CHANGED
@@ -2221,6 +2221,7 @@ var AgentsOracle = class AgentsOracle extends AgentsStorage {
2221
2221
  tableName: TABLE_AGENT_VERSIONS,
2222
2222
  schema: ORACLE_AGENT_VERSIONS_SCHEMA,
2223
2223
  ifNotExists: [
2224
+ "modelList",
2224
2225
  "tools",
2225
2226
  "mcpClients",
2226
2227
  "requestContextSchema",
@@ -2556,6 +2557,7 @@ var AgentsOracle = class AgentsOracle extends AgentsStorage {
2556
2557
  description: input.description,
2557
2558
  instructions: input.instructions,
2558
2559
  model: input.model,
2560
+ modelList: input.modelList,
2559
2561
  tools: normalizeLegacyTools(input.tools),
2560
2562
  defaultOptions: input.defaultOptions,
2561
2563
  workflows: input.workflows,
@@ -2590,14 +2592,14 @@ var AgentsOracle = class AgentsOracle extends AgentsStorage {
2590
2592
  async insertVersion(client, input, createdAt = /* @__PURE__ */ new Date()) {
2591
2593
  await client.none(`INSERT INTO ${this.table(TABLE_AGENT_VERSIONS)} (
2592
2594
  id, ${VERSION_AGENT_ID}, ${VERSION_VERSION_NUMBER$2},
2593
- name, description, instructions, model, tools,
2595
+ name, description, instructions, model, "modelList", tools,
2594
2596
  ${VERSION_DEFAULT_OPTIONS}, workflows, agents, ${VERSION_INTEGRATION_TOOLS},
2595
2597
  ${VERSION_INPUT_PROCESSORS}, ${VERSION_OUTPUT_PROCESSORS}, memory, scorers,
2596
2598
  ${VERSION_MCP_CLIENTS}, ${VERSION_REQUEST_CONTEXT_SCHEMA},
2597
2599
  browser, ${VERSION_CHANGED_FIELDS$2}, ${VERSION_CHANGE_MESSAGE$2}, ${VERSION_CREATED_AT$2}
2598
2600
  ) VALUES (
2599
2601
  :id, :agentId, :versionNumber,
2600
- :name, :description, :instructions, :model, :tools,
2602
+ :name, :description, :instructions, :model, :modelList, :tools,
2601
2603
  :defaultOptions, :workflows, :agents, :integrationTools,
2602
2604
  :inputProcessors, :outputProcessors, :memory, :scorers,
2603
2605
  :mcpClients, :requestContextSchema,
@@ -2608,8 +2610,9 @@ var AgentsOracle = class AgentsOracle extends AgentsStorage {
2608
2610
  versionNumber: input.versionNumber,
2609
2611
  name: input.name,
2610
2612
  description: nullableClobBind(input.description),
2611
- instructions: clobBind(this.serializeInstructions(input.instructions)),
2612
- model: jsonBind(input.model),
2613
+ instructions: clobBind(this.serializeInstructions(input.instructions ?? "")),
2614
+ model: jsonBind(input.model ?? {}),
2615
+ modelList: nullableJsonBind(input.modelList),
2613
2616
  tools: nullableJsonBind(normalizeLegacyTools(input.tools)),
2614
2617
  defaultOptions: nullableJsonBind(input.defaultOptions),
2615
2618
  workflows: nullableJsonBind(input.workflows),
@@ -2687,6 +2690,7 @@ var AgentsOracle = class AgentsOracle extends AgentsStorage {
2687
2690
  `description AS "description"`,
2688
2691
  `instructions AS "instructions"`,
2689
2692
  `model AS "model"`,
2693
+ `"modelList" AS "modelList"`,
2690
2694
  `tools AS "tools"`,
2691
2695
  `${VERSION_DEFAULT_OPTIONS} AS "defaultOptions"`,
2692
2696
  `workflows AS "workflows"`,
@@ -2726,6 +2730,7 @@ var AgentsOracle = class AgentsOracle extends AgentsStorage {
2726
2730
  description: optionalString$3(row.description),
2727
2731
  instructions: this.deserializeInstructions(row.instructions),
2728
2732
  model: parseOracleJson(row.model),
2733
+ modelList: parseOptionalJson(row.modelList),
2729
2734
  tools: normalizeLegacyTools(parseOptionalJson(row.tools)),
2730
2735
  defaultOptions: parseOptionalJson(row.defaultOptions),
2731
2736
  workflows: parseOptionalJson(row.workflows),
@@ -2744,6 +2749,7 @@ var AgentsOracle = class AgentsOracle extends AgentsStorage {
2744
2749
  };
2745
2750
  }
2746
2751
  serializeInstructions(instructions) {
2752
+ if (instructions === void 0) return "";
2747
2753
  return Array.isArray(instructions) ? JSON.stringify(instructions) : instructions;
2748
2754
  }
2749
2755
  deserializeInstructions(raw) {