Skip to content

Commit 7fbf3dc

Browse files
committed
chore(copilot): regenerate mothership contract mirror after staging rebase
1 parent 25d9d9f commit 7fbf3dc

3 files changed

Lines changed: 173 additions & 1 deletion

File tree

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

Lines changed: 129 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
327327
properties: {
328328
request: {
329329
description:
330-
'Detailed deployment instructions. Include deployment type (api/chat/mcp) and ALL user-specified options: identifier, title, description, authType, password, allowedEmails, welcomeMessage, outputConfigs (block outputs to display).',
330+
'Detailed deployment instructions. Include the deployment type and ALL user-specified options: identifier, title, description, authType, password, allowedEmails, welcomeMessage, outputConfigs (block outputs to display).',
331331
type: 'string',
332332
},
333333
},
@@ -579,6 +579,134 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
579579
],
580580
},
581581
},
582+
deploy_custom_block: {
583+
parameters: {
584+
type: 'object',
585+
properties: {
586+
action: {
587+
type: 'string',
588+
description: 'Whether to publish (deploy) or unpublish (undeploy) the custom block',
589+
enum: ['deploy', 'undeploy'],
590+
default: 'deploy',
591+
},
592+
description: {
593+
type: 'string',
594+
description: 'Short description shown in the block picker, max 280 characters',
595+
},
596+
exposedOutputs: {
597+
type: 'array',
598+
description:
599+
"Outputs the block exposes, each mapping a child block output path to a friendly name (use get_block_outputs for valid paths). Omit to expose the terminal block's whole result",
600+
items: {
601+
type: 'object',
602+
properties: {
603+
blockId: {
604+
type: 'string',
605+
description: 'Block UUID inside the workflow',
606+
},
607+
name: {
608+
type: 'string',
609+
description: 'Friendly output name shown on the block',
610+
},
611+
path: {
612+
type: 'string',
613+
description:
614+
"Dot-path into that block's output (from get_block_outputs relativeOutputs)",
615+
},
616+
},
617+
required: ['blockId', 'path', 'name'],
618+
},
619+
},
620+
iconUrl: {
621+
type: 'string',
622+
description:
623+
'Optional icon image for the block: a workspace file VFS path (e.g. "files/icon.png", copied into public icon storage at publish) or an external image URL. Omit to use the organization\'s default icon',
624+
},
625+
inputs: {
626+
type: 'array',
627+
description:
628+
"Optional per-input placeholder overrides. Input names and types are derived from the workflow's input trigger and cannot be changed here",
629+
items: {
630+
type: 'object',
631+
properties: {
632+
id: {
633+
type: 'string',
634+
description: 'Stable id of the input trigger field',
635+
},
636+
placeholder: {
637+
type: 'string',
638+
description: "Placeholder text shown in the block's input field",
639+
},
640+
},
641+
required: ['id'],
642+
},
643+
},
644+
name: {
645+
type: 'string',
646+
description:
647+
'Display name for the block, max 60 characters. When republishing an existing block, pass the current name to keep it or a new name to rename.',
648+
},
649+
workflowId: {
650+
type: 'string',
651+
description: 'Workflow ID (defaults to active workflow)',
652+
},
653+
},
654+
required: ['name'],
655+
},
656+
resultSchema: {
657+
type: 'object',
658+
properties: {
659+
action: {
660+
type: 'string',
661+
description: 'Action performed by the tool, such as "deploy" or "undeploy".',
662+
},
663+
blockId: {
664+
type: 'string',
665+
description: 'Custom block record ID.',
666+
},
667+
blockType: {
668+
type: 'string',
669+
description: 'Stable block type slug (custom_block_*) used in workflow state.',
670+
},
671+
deploymentConfig: {
672+
type: 'object',
673+
description:
674+
"Structured deployment configuration keyed by surface name. Includes the block's type, name, description, icon, derived input fields, and exposed outputs.",
675+
},
676+
deploymentStatus: {
677+
type: 'object',
678+
description:
679+
'Structured per-surface deployment status keyed by surface name, including customBlock and the underlying api surface when applicable.',
680+
},
681+
deploymentType: {
682+
type: 'string',
683+
description:
684+
'Deployment surface this result describes. For deploy_custom_block this is always "custom_block".',
685+
},
686+
isDeployed: {
687+
type: 'boolean',
688+
description: 'Whether the custom block is published after this tool call.',
689+
},
690+
name: {
691+
type: 'string',
692+
description: 'Display name of the custom block.',
693+
},
694+
removed: {
695+
type: 'boolean',
696+
description: 'Whether the custom block was unpublished during an undeploy action.',
697+
},
698+
updated: {
699+
type: 'boolean',
700+
description: 'Whether an existing custom block was updated instead of created.',
701+
},
702+
workflowId: {
703+
type: 'string',
704+
description: 'Workflow ID the custom block is bound to.',
705+
},
706+
},
707+
required: ['deploymentType', 'deploymentStatus'],
708+
},
709+
},
582710
deploy_mcp: {
583711
parameters: {
584712
type: 'object',

apps/sim/lib/copilot/generated/trace-attribute-values-v1.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,36 @@ export const RateLimitOutcome = {
329329
export type RateLimitOutcomeKey = keyof typeof RateLimitOutcome
330330
export type RateLimitOutcomeValue = (typeof RateLimitOutcome)[RateLimitOutcomeKey]
331331

332+
export const SubagentExecutionPhase = {
333+
Continuation: 'continuation',
334+
Initial: 'initial',
335+
} as const
336+
337+
export type SubagentExecutionPhaseKey = keyof typeof SubagentExecutionPhase
338+
export type SubagentExecutionPhaseValue = (typeof SubagentExecutionPhase)[SubagentExecutionPhaseKey]
339+
340+
export const SubagentSessionOperation = {
341+
Ephemeral: 'ephemeral',
342+
New: 'new',
343+
Resume: 'resume',
344+
} as const
345+
346+
export type SubagentSessionOperationKey = keyof typeof SubagentSessionOperation
347+
export type SubagentSessionOperationValue =
348+
(typeof SubagentSessionOperation)[SubagentSessionOperationKey]
349+
350+
export const SubagentSessionPersistenceOutcome = {
351+
Deferred: 'deferred',
352+
Failed: 'failed',
353+
NotApplicable: 'not_applicable',
354+
NotAttempted: 'not_attempted',
355+
Succeeded: 'succeeded',
356+
} as const
357+
358+
export type SubagentSessionPersistenceOutcomeKey = keyof typeof SubagentSessionPersistenceOutcome
359+
export type SubagentSessionPersistenceOutcomeValue =
360+
(typeof SubagentSessionPersistenceOutcome)[SubagentSessionPersistenceOutcomeKey]
361+
332362
export const ToolAsyncWaiterResolution = {
333363
ContextCancelled: 'context_cancelled',
334364
Poll: 'poll',

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ export const TraceAttr = {
544544
SpanType: 'span.type',
545545
StreamId: 'stream.id',
546546
SubagentDepth: 'subagent.depth',
547+
SubagentExecutionPhase: 'subagent.execution.phase',
547548
SubagentId: 'subagent.id',
548549
SubagentNested: 'subagent.nested',
549550
SubagentOutcomeContentBytes: 'subagent.outcome.content_bytes',
@@ -554,6 +555,12 @@ export const TraceAttr = {
554555
SubagentOutcomeSuccess: 'subagent.outcome.success',
555556
SubagentOutcomeToolCallCount: 'subagent.outcome.tool_call_count',
556557
SubagentParentAgentId: 'subagent.parent_agent_id',
558+
SubagentSessionId: 'subagent.session.id',
559+
SubagentSessionOperation: 'subagent.session.operation',
560+
SubagentSessionPersistenceOutcome: 'subagent.session.persistence_outcome',
561+
SubagentSessionRevision: 'subagent.session.revision',
562+
SubagentSessionRunId: 'subagent.session.run_id',
563+
SubagentSessionTitle: 'subagent.session.title',
557564
SubagentToolCallId: 'subagent.tool_call_id',
558565
TaskAge: 'task.age',
559566
TaskDecisionCount: 'task.decision_count',
@@ -1169,6 +1176,7 @@ export const TraceAttrValues: readonly TraceAttrValue[] = [
11691176
'span.type',
11701177
'stream.id',
11711178
'subagent.depth',
1179+
'subagent.execution.phase',
11721180
'subagent.id',
11731181
'subagent.nested',
11741182
'subagent.outcome.content_bytes',
@@ -1179,6 +1187,12 @@ export const TraceAttrValues: readonly TraceAttrValue[] = [
11791187
'subagent.outcome.success',
11801188
'subagent.outcome.tool_call_count',
11811189
'subagent.parent_agent_id',
1190+
'subagent.session.id',
1191+
'subagent.session.operation',
1192+
'subagent.session.persistence_outcome',
1193+
'subagent.session.revision',
1194+
'subagent.session.run_id',
1195+
'subagent.session.title',
11821196
'subagent.tool_call_id',
11831197
'task.age',
11841198
'task.decision_count',

0 commit comments

Comments
 (0)