Skip to content

Commit 3f82429

Browse files
committed
Contrat update
1 parent b58f591 commit 3f82429

2 files changed

Lines changed: 140 additions & 6 deletions

File tree

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

Lines changed: 81 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export interface ToolCatalogEntry {
9494
| 'set_global_workflow_variables'
9595
| 'superagent'
9696
| 'table'
97+
| 'touch_plan'
9798
| 'update_job_history'
9899
| 'update_workspace_mcp_server'
99100
| 'user_memory'
@@ -190,6 +191,7 @@ export interface ToolCatalogEntry {
190191
| 'set_global_workflow_variables'
191192
| 'superagent'
192193
| 'table'
194+
| 'touch_plan'
193195
| 'update_job_history'
194196
| 'update_workspace_mcp_server'
195197
| 'user_memory'
@@ -1169,7 +1171,11 @@ export const FunctionExecute: ToolCatalogEntry = {
11691171
items: {
11701172
type: 'object',
11711173
properties: {
1172-
path: { type: 'string' },
1174+
path: {
1175+
type: 'string',
1176+
description:
1177+
'Canonical VFS folder path, e.g. "files/Reports" or "workflows/My%20Workflow/.plans". By default this mounts at "/home/user/{path}". Workflow alias directories mount under "/home/user/workflows/...".',
1178+
},
11731179
sandboxPath: {
11741180
type: 'string',
11751181
description:
@@ -1185,7 +1191,11 @@ export const FunctionExecute: ToolCatalogEntry = {
11851191
items: {
11861192
type: 'object',
11871193
properties: {
1188-
path: { type: 'string' },
1194+
path: {
1195+
type: 'string',
1196+
description:
1197+
'Canonical VFS file path, e.g. "files/Reports/sales.csv" or "workflows/My%20Workflow/changelog.md". By default this mounts at "/home/user/{path}". Workflow alias paths mount under "/home/user/workflows/...".',
1198+
},
11891199
sandboxPath: {
11901200
type: 'string',
11911201
description:
@@ -1247,7 +1257,11 @@ export const FunctionExecute: ToolCatalogEntry = {
12471257
description: 'Create a new file or overwrite an existing file at path.',
12481258
enum: ['create', 'overwrite'],
12491259
},
1250-
path: { type: 'string' },
1260+
path: {
1261+
type: 'string',
1262+
description:
1263+
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
1264+
},
12511265
sandboxPath: {
12521266
type: 'string',
12531267
description:
@@ -1319,7 +1333,11 @@ export const GenerateImage: ToolCatalogEntry = {
13191333
items: {
13201334
type: 'object',
13211335
properties: {
1322-
path: { type: 'string' },
1336+
path: {
1337+
type: 'string',
1338+
description:
1339+
'Canonical VFS folder path, e.g. "files/Reports" or "workflows/My%20Workflow/.plans". By default this mounts at "/home/user/{path}". Workflow alias directories mount under "/home/user/workflows/...".',
1340+
},
13231341
sandboxPath: {
13241342
type: 'string',
13251343
description:
@@ -1335,7 +1353,11 @@ export const GenerateImage: ToolCatalogEntry = {
13351353
items: {
13361354
type: 'object',
13371355
properties: {
1338-
path: { type: 'string' },
1356+
path: {
1357+
type: 'string',
1358+
description:
1359+
'Canonical VFS file path, e.g. "files/Reports/sales.csv" or "workflows/My%20Workflow/changelog.md". By default this mounts at "/home/user/{path}". Workflow alias paths mount under "/home/user/workflows/...".',
1360+
},
13391361
sandboxPath: {
13401362
type: 'string',
13411363
description:
@@ -1387,7 +1409,11 @@ export const GenerateImage: ToolCatalogEntry = {
13871409
description: 'Create a new file or overwrite an existing file at path.',
13881410
enum: ['create', 'overwrite'],
13891411
},
1390-
path: { type: 'string' },
1412+
path: {
1413+
type: 'string',
1414+
description:
1415+
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
1416+
},
13911417
sandboxPath: {
13921418
type: 'string',
13931419
description:
@@ -3131,6 +3157,54 @@ export const Table: ToolCatalogEntry = {
31313157
internal: true,
31323158
}
31333159

3160+
export const TouchPlan: ToolCatalogEntry = {
3161+
id: 'touch_plan',
3162+
name: 'touch_plan',
3163+
route: 'sim',
3164+
mode: 'async',
3165+
parameters: {
3166+
type: 'object',
3167+
properties: {
3168+
name: {
3169+
type: 'string',
3170+
description:
3171+
'Plan file name or relative path under .plans, e.g. "implementation.md" or "phase-1/implementation.md". If no extension is supplied, ".md" is appended.',
3172+
},
3173+
scope: {
3174+
type: 'string',
3175+
description:
3176+
'Plan scope. Use "workspace" for root .plans/** main-agent plans. Use "workflow" for workflows/{workflow}/.plans/** subplans. If omitted with workflowPath, workflow scope is assumed; otherwise workspace scope is assumed.',
3177+
enum: ['workspace', 'workflow'],
3178+
},
3179+
title: {
3180+
type: 'string',
3181+
description: 'Optional short user-visible label for the plan creation.',
3182+
},
3183+
workflowPath: {
3184+
type: 'string',
3185+
description:
3186+
'Required for scope "workflow". Canonical workflow VFS path, e.g. "workflows/My%20Workflow" or "workflows/Folder/My%20Workflow". Copy from glob/read output; do not use workflow IDs.',
3187+
},
3188+
},
3189+
required: ['name'],
3190+
},
3191+
resultSchema: {
3192+
type: 'object',
3193+
properties: {
3194+
data: {
3195+
type: 'object',
3196+
description:
3197+
'Contains id, name, scope, vfsPath, backingVfsPath, and workflowId for workflow plans. Use vfsPath for follow-up workspace_file calls.',
3198+
},
3199+
message: { type: 'string', description: 'Human-readable outcome.' },
3200+
success: { type: 'boolean', description: 'Whether the plan file was created.' },
3201+
},
3202+
required: ['success', 'message'],
3203+
},
3204+
requiredPermission: 'write',
3205+
capabilities: ['file_output'],
3206+
}
3207+
31343208
export const UpdateJobHistory: ToolCatalogEntry = {
31353209
id: 'update_job_history',
31363210
name: 'update_job_history',
@@ -4007,6 +4081,7 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
40074081
[SetGlobalWorkflowVariables.id]: SetGlobalWorkflowVariables,
40084082
[Superagent.id]: Superagent,
40094083
[Table.id]: Table,
4084+
[TouchPlan.id]: TouchPlan,
40104085
[UpdateJobHistory.id]: UpdateJobHistory,
40114086
[UpdateWorkspaceMcpServer.id]: UpdateWorkspaceMcpServer,
40124087
[UserMemory.id]: UserMemory,

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

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,8 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
959959
properties: {
960960
path: {
961961
type: 'string',
962+
description:
963+
'Canonical VFS folder path, e.g. "files/Reports" or "workflows/My%20Workflow/.plans". By default this mounts at "/home/user/{path}". Workflow alias directories mount under "/home/user/workflows/...".',
962964
},
963965
sandboxPath: {
964966
type: 'string',
@@ -977,6 +979,8 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
977979
properties: {
978980
path: {
979981
type: 'string',
982+
description:
983+
'Canonical VFS file path, e.g. "files/Reports/sales.csv" or "workflows/My%20Workflow/changelog.md". By default this mounts at "/home/user/{path}". Workflow alias paths mount under "/home/user/workflows/...".',
980984
},
981985
sandboxPath: {
982986
type: 'string',
@@ -1047,6 +1051,8 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
10471051
},
10481052
path: {
10491053
type: 'string',
1054+
description:
1055+
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
10501056
},
10511057
sandboxPath: {
10521058
type: 'string',
@@ -1110,6 +1116,8 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
11101116
properties: {
11111117
path: {
11121118
type: 'string',
1119+
description:
1120+
'Canonical VFS folder path, e.g. "files/Reports" or "workflows/My%20Workflow/.plans". By default this mounts at "/home/user/{path}". Workflow alias directories mount under "/home/user/workflows/...".',
11131121
},
11141122
sandboxPath: {
11151123
type: 'string',
@@ -1128,6 +1136,8 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
11281136
properties: {
11291137
path: {
11301138
type: 'string',
1139+
description:
1140+
'Canonical VFS file path, e.g. "files/Reports/sales.csv" or "workflows/My%20Workflow/changelog.md". By default this mounts at "/home/user/{path}". Workflow alias paths mount under "/home/user/workflows/...".',
11311141
},
11321142
sandboxPath: {
11331143
type: 'string',
@@ -1188,6 +1198,8 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
11881198
},
11891199
path: {
11901200
type: 'string',
1201+
description:
1202+
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
11911203
},
11921204
sandboxPath: {
11931205
type: 'string',
@@ -2887,6 +2899,53 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
28872899
},
28882900
resultSchema: undefined,
28892901
},
2902+
['touch_plan']: {
2903+
parameters: {
2904+
type: 'object',
2905+
properties: {
2906+
name: {
2907+
type: 'string',
2908+
description:
2909+
'Plan file name or relative path under .plans, e.g. "implementation.md" or "phase-1/implementation.md". If no extension is supplied, ".md" is appended.',
2910+
},
2911+
scope: {
2912+
type: 'string',
2913+
description:
2914+
'Plan scope. Use "workspace" for root .plans/** main-agent plans. Use "workflow" for workflows/{workflow}/.plans/** subplans. If omitted with workflowPath, workflow scope is assumed; otherwise workspace scope is assumed.',
2915+
enum: ['workspace', 'workflow'],
2916+
},
2917+
title: {
2918+
type: 'string',
2919+
description: 'Optional short user-visible label for the plan creation.',
2920+
},
2921+
workflowPath: {
2922+
type: 'string',
2923+
description:
2924+
'Required for scope "workflow". Canonical workflow VFS path, e.g. "workflows/My%20Workflow" or "workflows/Folder/My%20Workflow". Copy from glob/read output; do not use workflow IDs.',
2925+
},
2926+
},
2927+
required: ['name'],
2928+
},
2929+
resultSchema: {
2930+
type: 'object',
2931+
properties: {
2932+
data: {
2933+
type: 'object',
2934+
description:
2935+
'Contains id, name, scope, vfsPath, backingVfsPath, and workflowId for workflow plans. Use vfsPath for follow-up workspace_file calls.',
2936+
},
2937+
message: {
2938+
type: 'string',
2939+
description: 'Human-readable outcome.',
2940+
},
2941+
success: {
2942+
type: 'boolean',
2943+
description: 'Whether the plan file was created.',
2944+
},
2945+
},
2946+
required: ['success', 'message'],
2947+
},
2948+
},
28902949
['update_job_history']: {
28912950
parameters: {
28922951
type: 'object',

0 commit comments

Comments
 (0)