Skip to content

Commit 1750043

Browse files
authored
Revert "improvement(mship): clean up dead tools, add enrichments (#5056)" (#5057)
This reverts commit 6f4189f.
1 parent 6f4189f commit 1750043

8 files changed

Lines changed: 545 additions & 292 deletions

File tree

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

Lines changed: 71 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export interface ToolCatalogEntry {
3030
| 'download_to_workspace_file'
3131
| 'edit_content'
3232
| 'edit_workflow'
33-
| 'enrichment_run'
3433
| 'ffmpeg'
3534
| 'file'
3635
| 'function_execute'
@@ -98,6 +97,7 @@ export interface ToolCatalogEntry {
9897
| 'set_global_workflow_variables'
9998
| 'superagent'
10099
| 'table'
100+
| 'touch_plan'
101101
| 'update_deployment_version'
102102
| 'update_job_history'
103103
| 'update_workspace_mcp_server'
@@ -131,7 +131,6 @@ export interface ToolCatalogEntry {
131131
| 'download_to_workspace_file'
132132
| 'edit_content'
133133
| 'edit_workflow'
134-
| 'enrichment_run'
135134
| 'ffmpeg'
136135
| 'file'
137136
| 'function_execute'
@@ -199,6 +198,7 @@ export interface ToolCatalogEntry {
199198
| 'set_global_workflow_variables'
200199
| 'superagent'
201200
| 'table'
201+
| 'touch_plan'
202202
| 'update_deployment_version'
203203
| 'update_job_history'
204204
| 'update_workspace_mcp_server'
@@ -1073,54 +1073,6 @@ export const EditWorkflow: ToolCatalogEntry = {
10731073
requiredPermission: 'write',
10741074
}
10751075

1076-
export const EnrichmentRun: ToolCatalogEntry = {
1077-
id: 'enrichment_run',
1078-
name: 'enrichment_run',
1079-
route: 'sim',
1080-
mode: 'async',
1081-
parameters: {
1082-
type: 'object',
1083-
properties: {
1084-
enrichmentId: {
1085-
type: 'string',
1086-
description:
1087-
"Which enrichment to run. Discover the full set and each one's inputs/outputs via user_table.list_enrichments.",
1088-
enum: [
1089-
'work-email',
1090-
'phone-number',
1091-
'company-domain',
1092-
'company-info',
1093-
'email-verification',
1094-
],
1095-
},
1096-
inputs: {
1097-
type: 'object',
1098-
description:
1099-
'Map of the enrichment\'s input id → value, e.g. { "fullName": "Jane Doe", "companyDomain": "acme.com" }. Provide a value for every required input.',
1100-
},
1101-
},
1102-
required: ['enrichmentId', 'inputs'],
1103-
},
1104-
resultSchema: {
1105-
type: 'object',
1106-
properties: {
1107-
matched: {
1108-
type: 'boolean',
1109-
description: 'True when a provider returned a non-empty result.',
1110-
},
1111-
provider: {
1112-
type: 'string',
1113-
description: 'Label of the provider that produced the result, or null on no match.',
1114-
},
1115-
result: {
1116-
type: 'object',
1117-
description: 'Mapped output values from the winning provider (empty object on no match).',
1118-
},
1119-
},
1120-
required: ['matched', 'result'],
1121-
},
1122-
}
1123-
11241076
export const Ffmpeg: ToolCatalogEntry = {
11251077
id: 'ffmpeg',
11261078
name: 'ffmpeg',
@@ -1154,7 +1106,7 @@ export const Ffmpeg: ToolCatalogEntry = {
11541106
path: {
11551107
type: 'string',
11561108
description:
1157-
'Canonical VFS folder path, e.g. "files/Reports". By default this mounts at "/home/user/{path}".',
1109+
'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/...".',
11581110
},
11591111
sandboxPath: {
11601112
type: 'string',
@@ -1174,7 +1126,7 @@ export const Ffmpeg: ToolCatalogEntry = {
11741126
path: {
11751127
type: 'string',
11761128
description:
1177-
'Canonical VFS file path, e.g. "files/Reports/sales.csv". By default this mounts at "/home/user/{path}".',
1129+
'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/...".',
11781130
},
11791131
sandboxPath: {
11801132
type: 'string',
@@ -1255,7 +1207,8 @@ export const Ffmpeg: ToolCatalogEntry = {
12551207
},
12561208
path: {
12571209
type: 'string',
1258-
description: 'Canonical destination VFS path, e.g. "files/Reports/chart.png".',
1210+
description:
1211+
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
12591212
},
12601213
sandboxPath: {
12611214
type: 'string',
@@ -1334,7 +1287,7 @@ export const FunctionExecute: ToolCatalogEntry = {
13341287
path: {
13351288
type: 'string',
13361289
description:
1337-
'Canonical VFS folder path, e.g. "files/Reports". By default this mounts at "/home/user/{path}".',
1290+
'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/...".',
13381291
},
13391292
sandboxPath: {
13401293
type: 'string',
@@ -1354,7 +1307,7 @@ export const FunctionExecute: ToolCatalogEntry = {
13541307
path: {
13551308
type: 'string',
13561309
description:
1357-
'Canonical VFS file path, e.g. "files/Reports/sales.csv". By default this mounts at "/home/user/{path}".',
1310+
'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/...".',
13581311
},
13591312
sandboxPath: {
13601313
type: 'string',
@@ -1419,7 +1372,8 @@ export const FunctionExecute: ToolCatalogEntry = {
14191372
},
14201373
path: {
14211374
type: 'string',
1422-
description: 'Canonical destination VFS path, e.g. "files/Reports/chart.png".',
1375+
description:
1376+
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
14231377
},
14241378
sandboxPath: {
14251379
type: 'string',
@@ -1495,7 +1449,7 @@ export const GenerateAudio: ToolCatalogEntry = {
14951449
path: {
14961450
type: 'string',
14971451
description:
1498-
'Canonical VFS folder path, e.g. "files/Reports". By default this mounts at "/home/user/{path}".',
1452+
'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/...".',
14991453
},
15001454
sandboxPath: {
15011455
type: 'string',
@@ -1515,7 +1469,7 @@ export const GenerateAudio: ToolCatalogEntry = {
15151469
path: {
15161470
type: 'string',
15171471
description:
1518-
'Canonical VFS file path, e.g. "files/Reports/sales.csv". By default this mounts at "/home/user/{path}".',
1472+
'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/...".',
15191473
},
15201474
sandboxPath: {
15211475
type: 'string',
@@ -1585,7 +1539,8 @@ export const GenerateAudio: ToolCatalogEntry = {
15851539
},
15861540
path: {
15871541
type: 'string',
1588-
description: 'Canonical destination VFS path, e.g. "files/Reports/chart.png".',
1542+
description:
1543+
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
15891544
},
15901545
sandboxPath: {
15911546
type: 'string',
@@ -1644,7 +1599,7 @@ export const GenerateImage: ToolCatalogEntry = {
16441599
path: {
16451600
type: 'string',
16461601
description:
1647-
'Canonical VFS folder path, e.g. "files/Reports". By default this mounts at "/home/user/{path}".',
1602+
'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/...".',
16481603
},
16491604
sandboxPath: {
16501605
type: 'string',
@@ -1664,7 +1619,7 @@ export const GenerateImage: ToolCatalogEntry = {
16641619
path: {
16651620
type: 'string',
16661621
description:
1667-
'Canonical VFS file path, e.g. "files/Reports/sales.csv". By default this mounts at "/home/user/{path}".',
1622+
'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/...".',
16681623
},
16691624
sandboxPath: {
16701625
type: 'string',
@@ -1719,7 +1674,8 @@ export const GenerateImage: ToolCatalogEntry = {
17191674
},
17201675
path: {
17211676
type: 'string',
1722-
description: 'Canonical destination VFS path, e.g. "files/Reports/chart.png".',
1677+
description:
1678+
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
17231679
},
17241680
sandboxPath: {
17251681
type: 'string',
@@ -1781,7 +1737,7 @@ export const GenerateVideo: ToolCatalogEntry = {
17811737
path: {
17821738
type: 'string',
17831739
description:
1784-
'Canonical VFS folder path, e.g. "files/Reports". By default this mounts at "/home/user/{path}".',
1740+
'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/...".',
17851741
},
17861742
sandboxPath: {
17871743
type: 'string',
@@ -1801,7 +1757,7 @@ export const GenerateVideo: ToolCatalogEntry = {
18011757
path: {
18021758
type: 'string',
18031759
description:
1804-
'Canonical VFS file path, e.g. "files/Reports/sales.csv". By default this mounts at "/home/user/{path}".',
1760+
'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/...".',
18051761
},
18061762
sandboxPath: {
18071763
type: 'string',
@@ -1877,7 +1833,8 @@ export const GenerateVideo: ToolCatalogEntry = {
18771833
},
18781834
path: {
18791835
type: 'string',
1880-
description: 'Canonical destination VFS path, e.g. "files/Reports/chart.png".',
1836+
description:
1837+
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
18811838
},
18821839
sandboxPath: {
18831840
type: 'string',
@@ -3737,6 +3694,54 @@ export const Table: ToolCatalogEntry = {
37373694
internal: true,
37383695
}
37393696

3697+
export const TouchPlan: ToolCatalogEntry = {
3698+
id: 'touch_plan',
3699+
name: 'touch_plan',
3700+
route: 'sim',
3701+
mode: 'async',
3702+
parameters: {
3703+
type: 'object',
3704+
properties: {
3705+
name: {
3706+
type: 'string',
3707+
description:
3708+
'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.',
3709+
},
3710+
scope: {
3711+
type: 'string',
3712+
description:
3713+
'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.',
3714+
enum: ['workspace', 'workflow'],
3715+
},
3716+
title: {
3717+
type: 'string',
3718+
description: 'Optional short user-visible label for the plan creation.',
3719+
},
3720+
workflowPath: {
3721+
type: 'string',
3722+
description:
3723+
'Required for scope "workflow". Canonical workflow VFS path, e.g. "workflows/My%20Workflow" or "workflows/Folder/My%20Workflow". Copy paths verbatim from glob/read/grep output — they are percent-encoded per segment (spaces are %20, an in-name slash is %2F; parentheses and dots stay literal). Both the encoded path and the plain name resolve, so copy the returned path exactly rather than retyping or decoding it. Do not use workflow IDs.',
3724+
},
3725+
},
3726+
required: ['name'],
3727+
},
3728+
resultSchema: {
3729+
type: 'object',
3730+
properties: {
3731+
data: {
3732+
type: 'object',
3733+
description:
3734+
'Contains id, name, scope, vfsPath, backingVfsPath, and workflowId for workflow plans. Use vfsPath for follow-up workspace_file calls.',
3735+
},
3736+
message: { type: 'string', description: 'Human-readable outcome.' },
3737+
success: { type: 'boolean', description: 'Whether the plan file was created.' },
3738+
},
3739+
required: ['success', 'message'],
3740+
},
3741+
requiredPermission: 'write',
3742+
capabilities: ['file_output'],
3743+
}
3744+
37403745
export const UpdateDeploymentVersion: ToolCatalogEntry = {
37413746
id: 'update_deployment_version',
37423747
name: 'update_deployment_version',
@@ -4622,7 +4627,6 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
46224627
[DownloadToWorkspaceFile.id]: DownloadToWorkspaceFile,
46234628
[EditContent.id]: EditContent,
46244629
[EditWorkflow.id]: EditWorkflow,
4625-
[EnrichmentRun.id]: EnrichmentRun,
46264630
[Ffmpeg.id]: Ffmpeg,
46274631
[File.id]: File,
46284632
[FunctionExecute.id]: FunctionExecute,
@@ -4690,6 +4694,7 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
46904694
[SetGlobalWorkflowVariables.id]: SetGlobalWorkflowVariables,
46914695
[Superagent.id]: Superagent,
46924696
[Table.id]: Table,
4697+
[TouchPlan.id]: TouchPlan,
46934698
[UpdateDeploymentVersion.id]: UpdateDeploymentVersion,
46944699
[UpdateJobHistory.id]: UpdateJobHistory,
46954700
[UpdateWorkspaceMcpServer.id]: UpdateWorkspaceMcpServer,

0 commit comments

Comments
 (0)