Skip to content

Commit e042278

Browse files
committed
chore(copilot): sync mothership contracts
1 parent 8e9aeb9 commit e042278

4 files changed

Lines changed: 30 additions & 16 deletions

File tree

apps/sim/lib/copilot/generated/metrics-v1.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// union is queryable as one series set.
1515

1616
export const Metric = {
17+
CopilotBillingLongContextCount: 'copilot.billing.long_context.count',
1718
CopilotCacheAttempted: 'copilot.cache.attempted',
1819
CopilotCacheHit: 'copilot.cache.hit',
1920
CopilotCacheWrite: 'copilot.cache.write',
@@ -23,6 +24,8 @@ export const Metric = {
2324
CopilotFileReadDuration: 'copilot.file.read.duration',
2425
CopilotFileReadSize: 'copilot.file.read.size',
2526
CopilotMessagesSerializeDuration: 'copilot.messages.serialize.duration',
27+
CopilotOptionsEmittedCount: 'copilot.options.emitted.count',
28+
CopilotPromptComponentChars: 'copilot.prompt.component.chars',
2629
CopilotRequestCount: 'copilot.request.count',
2730
CopilotRequestDuration: 'copilot.request.duration',
2831
CopilotToolCalls: 'copilot.tool.calls',
@@ -44,6 +47,7 @@ export type MetricValue = (typeof Metric)[MetricKey]
4447

4548
/** Readonly sorted list of every canonical mothership metric name. */
4649
export const MetricValues: readonly MetricValue[] = [
50+
'copilot.billing.long_context.count',
4751
'copilot.cache.attempted',
4852
'copilot.cache.hit',
4953
'copilot.cache.write',
@@ -53,6 +57,8 @@ export const MetricValues: readonly MetricValue[] = [
5357
'copilot.file.read.duration',
5458
'copilot.file.read.size',
5559
'copilot.messages.serialize.duration',
60+
'copilot.options.emitted.count',
61+
'copilot.prompt.component.chars',
5662
'copilot.request.count',
5763
'copilot.request.duration',
5864
'copilot.tool.calls',

apps/sim/lib/copilot/generated/tool-catalog-v1.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5693,7 +5693,7 @@ export const TableRows: ToolCatalogEntry = {
56935693
data: {
56945694
type: 'object',
56955695
description:
5696-
'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.',
5696+
'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.',
56975697
},
56985698
filter: {
56995699
type: 'object',
@@ -5724,18 +5724,18 @@ export const TableRows: ToolCatalogEntry = {
57245724
rows: {
57255725
type: 'array',
57265726
description:
5727-
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.',
5727+
'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.',
57285728
},
57295729
tableId: { type: 'string', description: 'Table ID (required for every operation)' },
57305730
updates: {
57315731
type: 'array',
57325732
description:
5733-
'Array of per-row updates: [{ rowId, data: { col: val } }] (batch_update_rows format a)',
5733+
"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.",
57345734
},
57355735
values: {
57365736
type: 'object',
57375737
description:
5738-
'Map of rowId → value for single-column batch update (batch_update_rows format b, with columnName)',
5738+
"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.",
57395739
},
57405740
},
57415741
required: ['tableId'],
@@ -6073,7 +6073,7 @@ export const UserTable: ToolCatalogEntry = {
60736073
data: {
60746074
type: 'object',
60756075
description:
6076-
'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.',
6076+
'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.',
60776077
},
60786078
dependencies: {
60796079
type: 'object',
@@ -6270,7 +6270,7 @@ export const UserTable: ToolCatalogEntry = {
62706270
rows: {
62716271
type: 'array',
62726272
description:
6273-
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.',
6273+
'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.',
62746274
},
62756275
runMode: {
62766276
type: 'string',
@@ -6306,12 +6306,12 @@ export const UserTable: ToolCatalogEntry = {
63066306
updates: {
63076307
type: 'array',
63086308
description:
6309-
'Array of per-row updates: [{ rowId, data: { col: val } }] (for batch_update_rows)',
6309+
"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.",
63106310
},
63116311
values: {
63126312
type: 'object',
63136313
description:
6314-
'Map of rowId to value for single-column batch update: { "rowId1": val1, "rowId2": val2 } (for batch_update_rows with columnName)',
6314+
'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.',
63156315
},
63166316
workflowId: {
63176317
type: 'string',

apps/sim/lib/copilot/generated/tool-schemas-v1.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5613,7 +5613,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
56135613
data: {
56145614
type: 'object',
56155615
description:
5616-
'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.',
5616+
'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.',
56175617
},
56185618
filter: {
56195619
type: 'object',
@@ -5649,7 +5649,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
56495649
rows: {
56505650
type: 'array',
56515651
description:
5652-
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.',
5652+
'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.',
56535653
},
56545654
tableId: {
56555655
type: 'string',
@@ -5658,12 +5658,12 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
56585658
updates: {
56595659
type: 'array',
56605660
description:
5661-
'Array of per-row updates: [{ rowId, data: { col: val } }] (batch_update_rows format a)',
5661+
"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.",
56625662
},
56635663
values: {
56645664
type: 'object',
56655665
description:
5666-
'Map of rowId → value for single-column batch update (batch_update_rows format b, with columnName)',
5666+
"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.",
56675667
},
56685668
},
56695669
required: ['tableId'],
@@ -6013,7 +6013,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
60136013
data: {
60146014
type: 'object',
60156015
description:
6016-
'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.',
6016+
'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.',
60176017
},
60186018
dependencies: {
60196019
type: 'object',
@@ -6233,7 +6233,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
62336233
rows: {
62346234
type: 'array',
62356235
description:
6236-
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.',
6236+
'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.',
62376237
},
62386238
runMode: {
62396239
type: 'string',
@@ -6271,12 +6271,12 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
62716271
updates: {
62726272
type: 'array',
62736273
description:
6274-
'Array of per-row updates: [{ rowId, data: { col: val } }] (for batch_update_rows)',
6274+
"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.",
62756275
},
62766276
values: {
62776277
type: 'object',
62786278
description:
6279-
'Map of rowId to value for single-column batch update: { "rowId1": val1, "rowId2": val2 } (for batch_update_rows with columnName)',
6279+
'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.',
62806280
},
62816281
workflowId: {
62826282
type: 'string',

apps/sim/lib/copilot/generated/trace-attributes-v1.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,9 @@ export const TraceAttr = {
589589
SpanType: 'span.type',
590590
StreamId: 'stream.id',
591591
SubagentDepth: 'subagent.depth',
592+
SubagentEscalationApplied: 'subagent.escalation.applied',
593+
SubagentEscalationPriorCalls: 'subagent.escalation.prior_calls',
594+
SubagentEscalationRequested: 'subagent.escalation.requested',
592595
SubagentExecutionPhase: 'subagent.execution.phase',
593596
SubagentId: 'subagent.id',
594597
SubagentNested: 'subagent.nested',
@@ -600,6 +603,7 @@ export const TraceAttr = {
600603
SubagentOutcomeSuccess: 'subagent.outcome.success',
601604
SubagentOutcomeToolCallCount: 'subagent.outcome.tool_call_count',
602605
SubagentParentAgentId: 'subagent.parent_agent_id',
606+
SubagentRouteManifestMissing: 'subagent.route.manifest_missing',
603607
SubagentSessionId: 'subagent.session.id',
604608
SubagentSessionOperation: 'subagent.session.operation',
605609
SubagentSessionPersistenceOutcome: 'subagent.session.persistence_outcome',
@@ -1266,6 +1270,9 @@ export const TraceAttrValues: readonly TraceAttrValue[] = [
12661270
'span.type',
12671271
'stream.id',
12681272
'subagent.depth',
1273+
'subagent.escalation.applied',
1274+
'subagent.escalation.prior_calls',
1275+
'subagent.escalation.requested',
12691276
'subagent.execution.phase',
12701277
'subagent.id',
12711278
'subagent.nested',
@@ -1277,6 +1284,7 @@ export const TraceAttrValues: readonly TraceAttrValue[] = [
12771284
'subagent.outcome.success',
12781285
'subagent.outcome.tool_call_count',
12791286
'subagent.parent_agent_id',
1287+
'subagent.route.manifest_missing',
12801288
'subagent.session.id',
12811289
'subagent.session.operation',
12821290
'subagent.session.persistence_outcome',

0 commit comments

Comments
 (0)