diff --git a/apps/sim/lib/copilot/generated/metrics-v1.ts b/apps/sim/lib/copilot/generated/metrics-v1.ts index b379803f21f..027979197fa 100644 --- a/apps/sim/lib/copilot/generated/metrics-v1.ts +++ b/apps/sim/lib/copilot/generated/metrics-v1.ts @@ -14,6 +14,7 @@ // union is queryable as one series set. export const Metric = { + CopilotBillingLongContextCount: 'copilot.billing.long_context.count', CopilotCacheAttempted: 'copilot.cache.attempted', CopilotCacheHit: 'copilot.cache.hit', CopilotCacheWrite: 'copilot.cache.write', @@ -23,6 +24,8 @@ export const Metric = { CopilotFileReadDuration: 'copilot.file.read.duration', CopilotFileReadSize: 'copilot.file.read.size', CopilotMessagesSerializeDuration: 'copilot.messages.serialize.duration', + CopilotOptionsEmittedCount: 'copilot.options.emitted.count', + CopilotPromptComponentChars: 'copilot.prompt.component.chars', CopilotRequestCount: 'copilot.request.count', CopilotRequestDuration: 'copilot.request.duration', CopilotToolCalls: 'copilot.tool.calls', @@ -44,6 +47,7 @@ export type MetricValue = (typeof Metric)[MetricKey] /** Readonly sorted list of every canonical mothership metric name. */ export const MetricValues: readonly MetricValue[] = [ + 'copilot.billing.long_context.count', 'copilot.cache.attempted', 'copilot.cache.hit', 'copilot.cache.write', @@ -53,6 +57,8 @@ export const MetricValues: readonly MetricValue[] = [ 'copilot.file.read.duration', 'copilot.file.read.size', 'copilot.messages.serialize.duration', + 'copilot.options.emitted.count', + 'copilot.prompt.component.chars', 'copilot.request.count', 'copilot.request.duration', 'copilot.tool.calls', diff --git a/apps/sim/lib/copilot/generated/tool-catalog-v1.ts b/apps/sim/lib/copilot/generated/tool-catalog-v1.ts index 5be407c6da4..008046891f0 100644 --- a/apps/sim/lib/copilot/generated/tool-catalog-v1.ts +++ b/apps/sim/lib/copilot/generated/tool-catalog-v1.ts @@ -5693,7 +5693,7 @@ export const TableRows: ToolCatalogEntry = { data: { type: 'object', description: - 'Row data as column → value pairs (required for insert_row, update_row; the patch object for update_rows_by_filter). Select (enum) cells take the option NAME. TTL cells take an absolute whole Unix epoch timestamp in seconds, never JavaScript milliseconds; missing or null TTL means no expiration.', + 'Row data as column → value pairs (required for insert_row, update_row; the patch object for update_rows_by_filter). Select (enum) cells take the option NAME. TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds. On insert_row, a missing or null TTL means no expiration. On update_row and update_rows_by_filter, omit the TTL to preserve its current value or set it to null to clear the expiration.', }, filter: { type: 'object', @@ -5724,18 +5724,18 @@ export const TableRows: ToolCatalogEntry = { rows: { type: 'array', description: - 'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.', + 'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds; a missing or null TTL means no expiration.', }, tableId: { type: 'string', description: 'Table ID (required for every operation)' }, updates: { type: 'array', description: - 'Array of per-row updates: [{ rowId, data: { col: val } }] (batch_update_rows format a)', + "Array of per-row updates: [{ rowId, data: { col: val } }] (batch_update_rows format a). TTL values are absolute whole Unix epoch seconds, never JavaScript milliseconds; omit a row's TTL key to preserve it or set it to null to clear the expiration.", }, values: { type: 'object', description: - 'Map of rowId → value for single-column batch update (batch_update_rows format b, with columnName)', + "Map of rowId → value for single-column batch update (batch_update_rows format b, with columnName). For a TTL column, values are absolute whole Unix epoch seconds, never JavaScript milliseconds; set a row's value to null to clear its expiration, and omit the row from the map to leave it unchanged.", }, }, required: ['tableId'], @@ -6073,7 +6073,7 @@ export const UserTable: ToolCatalogEntry = { data: { type: 'object', description: - 'Row data as key-value pairs (required for insert_row, update_row). TTL cells take an absolute whole Unix epoch timestamp in seconds, never JavaScript milliseconds; missing or null TTL means no expiration.', + 'Row data as key-value pairs (required for insert_row, update_row). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds. On insert_row, a missing or null TTL means no expiration. On update_row, omit the TTL to preserve its current value or set it to null to clear the expiration.', }, dependencies: { type: 'object', @@ -6270,7 +6270,7 @@ export const UserTable: ToolCatalogEntry = { rows: { type: 'array', description: - 'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.', + 'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds; a missing or null TTL means no expiration.', }, runMode: { type: 'string', @@ -6306,12 +6306,12 @@ export const UserTable: ToolCatalogEntry = { updates: { type: 'array', description: - 'Array of per-row updates: [{ rowId, data: { col: val } }] (for batch_update_rows)', + "Array of per-row updates: [{ rowId, data: { col: val } }] (for batch_update_rows). TTL values are absolute whole Unix epoch seconds, never JavaScript milliseconds; omit a row's TTL key to preserve it or set it to null to clear the expiration.", }, values: { type: 'object', description: - 'Map of rowId to value for single-column batch update: { "rowId1": val1, "rowId2": val2 } (for batch_update_rows with columnName)', + 'Map of rowId to value for single-column batch update: { "rowId1": val1, "rowId2": val2 } (for batch_update_rows with columnName). For a TTL column, values are absolute whole Unix epoch seconds, never JavaScript milliseconds; set a row\'s value to null to clear its expiration, and omit the row from the map to leave it unchanged.', }, workflowId: { type: 'string', diff --git a/apps/sim/lib/copilot/generated/tool-schemas-v1.ts b/apps/sim/lib/copilot/generated/tool-schemas-v1.ts index a4b5c3be8a3..3e51e61db66 100644 --- a/apps/sim/lib/copilot/generated/tool-schemas-v1.ts +++ b/apps/sim/lib/copilot/generated/tool-schemas-v1.ts @@ -5613,7 +5613,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record = { data: { type: 'object', description: - 'Row data as column → value pairs (required for insert_row, update_row; the patch object for update_rows_by_filter). Select (enum) cells take the option NAME. TTL cells take an absolute whole Unix epoch timestamp in seconds, never JavaScript milliseconds; missing or null TTL means no expiration.', + 'Row data as column → value pairs (required for insert_row, update_row; the patch object for update_rows_by_filter). Select (enum) cells take the option NAME. TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds. On insert_row, a missing or null TTL means no expiration. On update_row and update_rows_by_filter, omit the TTL to preserve its current value or set it to null to clear the expiration.', }, filter: { type: 'object', @@ -5649,7 +5649,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record = { rows: { type: 'array', description: - 'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.', + 'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds; a missing or null TTL means no expiration.', }, tableId: { type: 'string', @@ -5658,12 +5658,12 @@ export const TOOL_RUNTIME_SCHEMAS: Record = { updates: { type: 'array', description: - 'Array of per-row updates: [{ rowId, data: { col: val } }] (batch_update_rows format a)', + "Array of per-row updates: [{ rowId, data: { col: val } }] (batch_update_rows format a). TTL values are absolute whole Unix epoch seconds, never JavaScript milliseconds; omit a row's TTL key to preserve it or set it to null to clear the expiration.", }, values: { type: 'object', description: - 'Map of rowId → value for single-column batch update (batch_update_rows format b, with columnName)', + "Map of rowId → value for single-column batch update (batch_update_rows format b, with columnName). For a TTL column, values are absolute whole Unix epoch seconds, never JavaScript milliseconds; set a row's value to null to clear its expiration, and omit the row from the map to leave it unchanged.", }, }, required: ['tableId'], @@ -6013,7 +6013,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record = { data: { type: 'object', description: - 'Row data as key-value pairs (required for insert_row, update_row). TTL cells take an absolute whole Unix epoch timestamp in seconds, never JavaScript milliseconds; missing or null TTL means no expiration.', + 'Row data as key-value pairs (required for insert_row, update_row). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds. On insert_row, a missing or null TTL means no expiration. On update_row, omit the TTL to preserve its current value or set it to null to clear the expiration.', }, dependencies: { type: 'object', @@ -6233,7 +6233,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record = { rows: { type: 'array', description: - 'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.', + 'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds; a missing or null TTL means no expiration.', }, runMode: { type: 'string', @@ -6271,12 +6271,12 @@ export const TOOL_RUNTIME_SCHEMAS: Record = { updates: { type: 'array', description: - 'Array of per-row updates: [{ rowId, data: { col: val } }] (for batch_update_rows)', + "Array of per-row updates: [{ rowId, data: { col: val } }] (for batch_update_rows). TTL values are absolute whole Unix epoch seconds, never JavaScript milliseconds; omit a row's TTL key to preserve it or set it to null to clear the expiration.", }, values: { type: 'object', description: - 'Map of rowId to value for single-column batch update: { "rowId1": val1, "rowId2": val2 } (for batch_update_rows with columnName)', + 'Map of rowId to value for single-column batch update: { "rowId1": val1, "rowId2": val2 } (for batch_update_rows with columnName). For a TTL column, values are absolute whole Unix epoch seconds, never JavaScript milliseconds; set a row\'s value to null to clear its expiration, and omit the row from the map to leave it unchanged.', }, workflowId: { type: 'string', diff --git a/apps/sim/lib/copilot/generated/trace-attributes-v1.ts b/apps/sim/lib/copilot/generated/trace-attributes-v1.ts index 8e8778eb6d0..fdc1a5da7ca 100644 --- a/apps/sim/lib/copilot/generated/trace-attributes-v1.ts +++ b/apps/sim/lib/copilot/generated/trace-attributes-v1.ts @@ -589,6 +589,9 @@ export const TraceAttr = { SpanType: 'span.type', StreamId: 'stream.id', SubagentDepth: 'subagent.depth', + SubagentEscalationApplied: 'subagent.escalation.applied', + SubagentEscalationPriorCalls: 'subagent.escalation.prior_calls', + SubagentEscalationRequested: 'subagent.escalation.requested', SubagentExecutionPhase: 'subagent.execution.phase', SubagentId: 'subagent.id', SubagentNested: 'subagent.nested', @@ -600,6 +603,7 @@ export const TraceAttr = { SubagentOutcomeSuccess: 'subagent.outcome.success', SubagentOutcomeToolCallCount: 'subagent.outcome.tool_call_count', SubagentParentAgentId: 'subagent.parent_agent_id', + SubagentRouteManifestMissing: 'subagent.route.manifest_missing', SubagentSessionId: 'subagent.session.id', SubagentSessionOperation: 'subagent.session.operation', SubagentSessionPersistenceOutcome: 'subagent.session.persistence_outcome', @@ -1266,6 +1270,9 @@ export const TraceAttrValues: readonly TraceAttrValue[] = [ 'span.type', 'stream.id', 'subagent.depth', + 'subagent.escalation.applied', + 'subagent.escalation.prior_calls', + 'subagent.escalation.requested', 'subagent.execution.phase', 'subagent.id', 'subagent.nested', @@ -1277,6 +1284,7 @@ export const TraceAttrValues: readonly TraceAttrValue[] = [ 'subagent.outcome.success', 'subagent.outcome.tool_call_count', 'subagent.parent_agent_id', + 'subagent.route.manifest_missing', 'subagent.session.id', 'subagent.session.operation', 'subagent.session.persistence_outcome',