@dudousxd/nestjs-agent-store-drizzle 0.26.0 → 0.27.0

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.cjs CHANGED
@@ -185,6 +185,9 @@ var agentQueuedMessage = (0, import_sqlite_core.sqliteTable)("agent_queued_messa
185
185
  uiCapabilities: (0, import_sqlite_core.text)("ui_capabilities", {
186
186
  mode: "json"
187
187
  }).$type(),
188
+ hostContext: (0, import_sqlite_core.text)("host_context", {
189
+ mode: "json"
190
+ }).$type(),
188
191
  id: (0, import_sqlite_core.text)("id").primaryKey(),
189
192
  threadId: (0, import_sqlite_core.text)("thread_id").notNull().references(() => agentThread.id, {
190
193
  onDelete: "cascade"
@@ -496,6 +499,7 @@ var agentToolCall2 = (0, import_mysql_core.mysqlTable)("agent_tool_call", {
496
499
  ]);
497
500
  var agentQueuedMessage2 = (0, import_mysql_core.mysqlTable)("agent_queued_message", {
498
501
  uiCapabilities: (0, import_mysql_core.json)("ui_capabilities").$type(),
502
+ hostContext: (0, import_mysql_core.json)("host_context").$type(),
499
503
  id: key("id").primaryKey(),
500
504
  threadId: key("thread_id").notNull().references(() => agentThread2.id, {
501
505
  onDelete: "cascade"
@@ -763,6 +767,7 @@ var agentToolCall3 = (0, import_pg_core.pgTable)("agent_tool_call", {
763
767
  ]);
764
768
  var agentQueuedMessage3 = (0, import_pg_core.pgTable)("agent_queued_message", {
765
769
  uiCapabilities: (0, import_pg_core.jsonb)("ui_capabilities").$type(),
770
+ hostContext: (0, import_pg_core.jsonb)("host_context").$type(),
766
771
  id: (0, import_pg_core.text)("id").primaryKey(),
767
772
  threadId: (0, import_pg_core.text)("thread_id").notNull().references(() => agentThread3.id, {
768
773
  onDelete: "cascade"
@@ -2121,6 +2126,7 @@ var DrizzleAgentStore = class {
2121
2126
  actor: input.actor,
2122
2127
  content: input.content,
2123
2128
  uiCapabilities: input.uiCapabilities ?? null,
2129
+ hostContext: input.hostContext ?? null,
2124
2130
  attachments: input.attachments !== void 0 && input.attachments.length > 0 ? input.attachments : null,
2125
2131
  agentName: input.agentName ?? null,
2126
2132
  persona: input.persona ?? null,
@@ -2588,6 +2594,9 @@ function toQueuedMessage(row) {
2588
2594
  ...row.uiCapabilities !== null ? {
2589
2595
  uiCapabilities: row.uiCapabilities
2590
2596
  } : {},
2597
+ ...row.hostContext != null ? {
2598
+ hostContext: row.hostContext
2599
+ } : {},
2591
2600
  id: row.id,
2592
2601
  threadId: row.threadId,
2593
2602
  actor: row.actor,