patchwork-os 0.2.0-alpha.34 → 0.2.0-alpha.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +202 -93
- package/deploy/bootstrap-new-vps.sh +12 -12
- package/deploy/bootstrap-vps.sh +6 -3
- package/deploy/deploy-landing.sh +59 -2
- package/dist/activityLog.d.ts +49 -0
- package/dist/activityLog.js +78 -0
- package/dist/activityLog.js.map +1 -1
- package/dist/approvalHttp.d.ts +25 -0
- package/dist/approvalHttp.js +74 -18
- package/dist/approvalHttp.js.map +1 -1
- package/dist/approvalInsights.d.ts +49 -0
- package/dist/approvalInsights.js +97 -0
- package/dist/approvalInsights.js.map +1 -0
- package/dist/approvalQueue.d.ts +11 -0
- package/dist/approvalQueue.js +80 -1
- package/dist/approvalQueue.js.map +1 -1
- package/dist/approvalSignals.d.ts +124 -0
- package/dist/approvalSignals.js +512 -0
- package/dist/approvalSignals.js.map +1 -0
- package/dist/automation.d.ts +37 -0
- package/dist/automation.js +105 -61
- package/dist/automation.js.map +1 -1
- package/dist/automationSuggestions.d.ts +79 -0
- package/dist/automationSuggestions.js +150 -0
- package/dist/automationSuggestions.js.map +1 -0
- package/dist/bridge.js +78 -1
- package/dist/bridge.js.map +1 -1
- package/dist/ccPermissions.d.ts +15 -0
- package/dist/ccPermissions.js +15 -0
- package/dist/ccPermissions.js.map +1 -1
- package/dist/claudeDriver.js +74 -16
- package/dist/claudeDriver.js.map +1 -1
- package/dist/commands/patchworkInit.d.ts +8 -0
- package/dist/commands/patchworkInit.js +41 -5
- package/dist/commands/patchworkInit.js.map +1 -1
- package/dist/commands/recipe.d.ts +20 -0
- package/dist/commands/recipe.js +212 -6
- package/dist/commands/recipe.js.map +1 -1
- package/dist/commands/recipeInstall.d.ts +79 -1
- package/dist/commands/recipeInstall.js +333 -16
- package/dist/commands/recipeInstall.js.map +1 -1
- package/dist/commands/tracesExport.d.ts +83 -0
- package/dist/commands/tracesExport.js +269 -0
- package/dist/commands/tracesExport.js.map +1 -0
- package/dist/commands/tracesImport.d.ts +56 -0
- package/dist/commands/tracesImport.js +161 -0
- package/dist/commands/tracesImport.js.map +1 -0
- package/dist/config.d.ts +8 -0
- package/dist/config.js +9 -1
- package/dist/config.js.map +1 -1
- package/dist/connectorRoutes.d.ts +43 -0
- package/dist/connectorRoutes.js +1023 -0
- package/dist/connectorRoutes.js.map +1 -0
- package/dist/connectors/asana.d.ts +198 -0
- package/dist/connectors/asana.js +679 -0
- package/dist/connectors/asana.js.map +1 -0
- package/dist/connectors/baseConnector.d.ts +36 -0
- package/dist/connectors/baseConnector.js +151 -28
- package/dist/connectors/baseConnector.js.map +1 -1
- package/dist/connectors/discord.d.ts +150 -0
- package/dist/connectors/discord.js +543 -0
- package/dist/connectors/discord.js.map +1 -0
- package/dist/connectors/github.js +11 -4
- package/dist/connectors/github.js.map +1 -1
- package/dist/connectors/gitlab.d.ts +180 -0
- package/dist/connectors/gitlab.js +582 -0
- package/dist/connectors/gitlab.js.map +1 -0
- package/dist/connectors/gmail.js +50 -10
- package/dist/connectors/gmail.js.map +1 -1
- package/dist/connectors/googleCalendar.js +36 -10
- package/dist/connectors/googleCalendar.js.map +1 -1
- package/dist/connectors/googleDrive.d.ts +34 -0
- package/dist/connectors/googleDrive.js +321 -0
- package/dist/connectors/googleDrive.js.map +1 -0
- package/dist/connectors/linear.js +23 -4
- package/dist/connectors/linear.js.map +1 -1
- package/dist/connectors/mcpOAuth.js +26 -2
- package/dist/connectors/mcpOAuth.js.map +1 -1
- package/dist/connectors/oauthStateStore.d.ts +31 -0
- package/dist/connectors/oauthStateStore.js +52 -0
- package/dist/connectors/oauthStateStore.js.map +1 -0
- package/dist/connectors/pagerduty.d.ts +160 -0
- package/dist/connectors/pagerduty.js +464 -0
- package/dist/connectors/pagerduty.js.map +1 -0
- package/dist/connectors/slack.d.ts +16 -1
- package/dist/connectors/slack.js +57 -5
- package/dist/connectors/slack.js.map +1 -1
- package/dist/connectors/tokenStorage.js +27 -2
- package/dist/connectors/tokenStorage.js.map +1 -1
- package/dist/connectors/zendesk.js +19 -1
- package/dist/connectors/zendesk.js.map +1 -1
- package/dist/cors.d.ts +10 -0
- package/dist/cors.js +29 -0
- package/dist/cors.js.map +1 -0
- package/dist/decisionReplay.d.ts +72 -0
- package/dist/decisionReplay.js +92 -0
- package/dist/decisionReplay.js.map +1 -0
- package/dist/decisionTraceLog.d.ts +6 -0
- package/dist/decisionTraceLog.js +54 -2
- package/dist/decisionTraceLog.js.map +1 -1
- package/dist/featureFlags.d.ts +17 -11
- package/dist/featureFlags.js +52 -47
- package/dist/featureFlags.js.map +1 -1
- package/dist/fp/automationInterpreter.js +25 -21
- package/dist/fp/automationInterpreter.js.map +1 -1
- package/dist/fp/automationState.js +4 -1
- package/dist/fp/automationState.js.map +1 -1
- package/dist/fp/policyParser.js +4 -1
- package/dist/fp/policyParser.js.map +1 -1
- package/dist/inboxRoutes.d.ts +22 -0
- package/dist/inboxRoutes.js +114 -0
- package/dist/inboxRoutes.js.map +1 -0
- package/dist/index.js +734 -144
- package/dist/index.js.map +1 -1
- package/dist/mcpRoutes.d.ts +37 -0
- package/dist/mcpRoutes.js +76 -0
- package/dist/mcpRoutes.js.map +1 -0
- package/dist/oauth.d.ts +3 -0
- package/dist/oauth.js +151 -26
- package/dist/oauth.js.map +1 -1
- package/dist/oauthRoutes.d.ts +32 -0
- package/dist/oauthRoutes.js +124 -0
- package/dist/oauthRoutes.js.map +1 -0
- package/dist/orchestrator/orchestratorBridge.js +2 -2
- package/dist/orchestrator/orchestratorBridge.js.map +1 -1
- package/dist/patchworkConfig.d.ts +7 -0
- package/dist/patchworkConfig.js.map +1 -1
- package/dist/pluginLoader.d.ts +12 -0
- package/dist/pluginLoader.js +43 -4
- package/dist/pluginLoader.js.map +1 -1
- package/dist/pluginWatcher.js +8 -3
- package/dist/pluginWatcher.js.map +1 -1
- package/dist/preToolUseHook.d.ts +12 -0
- package/dist/preToolUseHook.js +23 -0
- package/dist/preToolUseHook.js.map +1 -1
- package/dist/recipeOrchestration.d.ts +8 -0
- package/dist/recipeOrchestration.js +320 -39
- package/dist/recipeOrchestration.js.map +1 -1
- package/dist/recipeRoutes.d.ts +154 -0
- package/dist/recipeRoutes.js +1098 -0
- package/dist/recipeRoutes.js.map +1 -0
- package/dist/recipes/captureForRunlog.d.ts +27 -0
- package/dist/recipes/captureForRunlog.js +128 -0
- package/dist/recipes/captureForRunlog.js.map +1 -0
- package/dist/recipes/chainedRunner.d.ts +54 -3
- package/dist/recipes/chainedRunner.js +256 -36
- package/dist/recipes/chainedRunner.js.map +1 -1
- package/dist/recipes/compiler.js +3 -3
- package/dist/recipes/compiler.js.map +1 -1
- package/dist/recipes/detectSilentFail.d.ts +34 -0
- package/dist/recipes/detectSilentFail.js +105 -0
- package/dist/recipes/detectSilentFail.js.map +1 -0
- package/dist/recipes/installer.js +3 -3
- package/dist/recipes/installer.js.map +1 -1
- package/dist/recipes/manifest.js +21 -6
- package/dist/recipes/manifest.js.map +1 -1
- package/dist/recipes/migrationWarnings.d.ts +12 -0
- package/dist/recipes/migrationWarnings.js +44 -0
- package/dist/recipes/migrationWarnings.js.map +1 -0
- package/dist/recipes/replayRun.d.ts +62 -0
- package/dist/recipes/replayRun.js +97 -0
- package/dist/recipes/replayRun.js.map +1 -0
- package/dist/recipes/resolveRecipePath.d.ts +69 -0
- package/dist/recipes/resolveRecipePath.js +202 -0
- package/dist/recipes/resolveRecipePath.js.map +1 -0
- package/dist/recipes/scheduler.js +102 -11
- package/dist/recipes/scheduler.js.map +1 -1
- package/dist/recipes/schemaGenerator.js +3 -3
- package/dist/recipes/schemaGenerator.js.map +1 -1
- package/dist/recipes/toolRegistry.d.ts +5 -0
- package/dist/recipes/toolRegistry.js +9 -0
- package/dist/recipes/toolRegistry.js.map +1 -1
- package/dist/recipes/tools/asana.d.ts +16 -0
- package/dist/recipes/tools/asana.js +524 -0
- package/dist/recipes/tools/asana.js.map +1 -0
- package/dist/recipes/tools/discord.d.ts +18 -0
- package/dist/recipes/tools/discord.js +254 -0
- package/dist/recipes/tools/discord.js.map +1 -0
- package/dist/recipes/tools/file.d.ts +6 -0
- package/dist/recipes/tools/file.js +12 -8
- package/dist/recipes/tools/file.js.map +1 -1
- package/dist/recipes/tools/github.js +29 -4
- package/dist/recipes/tools/github.js.map +1 -1
- package/dist/recipes/tools/gitlab.d.ts +11 -0
- package/dist/recipes/tools/gitlab.js +285 -0
- package/dist/recipes/tools/gitlab.js.map +1 -0
- package/dist/recipes/tools/gmail.d.ts +1 -1
- package/dist/recipes/tools/gmail.js +230 -6
- package/dist/recipes/tools/gmail.js.map +1 -1
- package/dist/recipes/tools/googleDrive.d.ts +1 -0
- package/dist/recipes/tools/googleDrive.js +55 -0
- package/dist/recipes/tools/googleDrive.js.map +1 -0
- package/dist/recipes/tools/index.d.ts +8 -0
- package/dist/recipes/tools/index.js +8 -0
- package/dist/recipes/tools/index.js.map +1 -1
- package/dist/recipes/tools/jira.d.ts +14 -0
- package/dist/recipes/tools/jira.js +369 -0
- package/dist/recipes/tools/jira.js.map +1 -0
- package/dist/recipes/tools/linear.d.ts +2 -1
- package/dist/recipes/tools/linear.js +227 -3
- package/dist/recipes/tools/linear.js.map +1 -1
- package/dist/recipes/tools/meetingNotes.d.ts +21 -0
- package/dist/recipes/tools/meetingNotes.js +701 -0
- package/dist/recipes/tools/meetingNotes.js.map +1 -0
- package/dist/recipes/tools/pagerduty.d.ts +15 -0
- package/dist/recipes/tools/pagerduty.js +451 -0
- package/dist/recipes/tools/pagerduty.js.map +1 -0
- package/dist/recipes/tools/sentry.d.ts +12 -0
- package/dist/recipes/tools/sentry.js +73 -0
- package/dist/recipes/tools/sentry.js.map +1 -0
- package/dist/recipes/tools/slack.js +15 -5
- package/dist/recipes/tools/slack.js.map +1 -1
- package/dist/recipes/validation.js +83 -14
- package/dist/recipes/validation.js.map +1 -1
- package/dist/recipes/yamlRunner.d.ts +30 -2
- package/dist/recipes/yamlRunner.js +369 -70
- package/dist/recipes/yamlRunner.js.map +1 -1
- package/dist/recipesHttp.d.ts +76 -1
- package/dist/recipesHttp.js +474 -12
- package/dist/recipesHttp.js.map +1 -1
- package/dist/runLog.d.ts +78 -2
- package/dist/runLog.js +204 -6
- package/dist/runLog.js.map +1 -1
- package/dist/schemas/dry-run-plan.v1.json +139 -0
- package/dist/schemas/recipe.v1.json +684 -0
- package/dist/server.d.ts +79 -10
- package/dist/server.js +366 -1384
- package/dist/server.js.map +1 -1
- package/dist/ssrfGuard.d.ts +54 -0
- package/dist/ssrfGuard.js +122 -0
- package/dist/ssrfGuard.js.map +1 -0
- package/dist/streamableHttp.d.ts +39 -1
- package/dist/streamableHttp.js +126 -17
- package/dist/streamableHttp.js.map +1 -1
- package/dist/tools/getDocumentSymbols.d.ts +24 -0
- package/dist/tools/getDocumentSymbols.js +74 -8
- package/dist/tools/getDocumentSymbols.js.map +1 -1
- package/dist/tools/getSecurityAdvisories.js +10 -1
- package/dist/tools/getSecurityAdvisories.js.map +1 -1
- package/dist/tools/getSessionUsage.d.ts +3 -0
- package/dist/tools/getSessionUsage.js +3 -0
- package/dist/tools/getSessionUsage.js.map +1 -1
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/index.js +32 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/slackPostMessage.js +1 -1
- package/dist/tools/slackPostMessage.js.map +1 -1
- package/dist/tools/transaction.d.ts +19 -0
- package/dist/tools/transaction.js +29 -0
- package/dist/tools/transaction.js.map +1 -1
- package/dist/traceEncryption.d.ts +46 -0
- package/dist/traceEncryption.js +124 -0
- package/dist/traceEncryption.js.map +1 -0
- package/dist/transport.d.ts +39 -0
- package/dist/transport.js +88 -8
- package/dist/transport.js.map +1 -1
- package/package.json +22 -5
- package/templates/policies/README.md +72 -0
- package/templates/policies/conservative.json +14 -0
- package/templates/policies/developer.json +14 -0
- package/templates/policies/headless-ci.json +24 -0
- package/templates/policies/personal-assistant.json +15 -0
- package/templates/policies/regulated-industry.json +18 -0
- package/templates/recipes/project-health-check.yaml +1 -1
- package/templates/recipes/webhook/README.md +70 -0
- package/templates/recipes/webhook/capture-thought.yaml +26 -0
- package/templates/recipes/webhook/customer-escalation.yaml +49 -0
- package/templates/recipes/webhook/incident-intake.yaml +46 -0
- package/templates/recipes/webhook/meeting-prep.yaml +48 -0
- package/templates/recipes/webhook/morning-brief.yaml +57 -0
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asana tools — read wrappers (workspaces, projects, tasks, user) plus writes
|
|
3
|
+
* (create_task, update_task, complete_task, add_task_comment).
|
|
4
|
+
*
|
|
5
|
+
* Self-registering tool module for the recipe tool registry. Read tools wrap
|
|
6
|
+
* connector throws into the `{count, items, error}` shape that the runner's
|
|
7
|
+
* silent-fail detector (PR #75) catches as a step error rather than a silent
|
|
8
|
+
* empty list. Write tools use a single-object response shape (no count/items)
|
|
9
|
+
* but still surface failures via an `error` field.
|
|
10
|
+
*
|
|
11
|
+
* Note: Asana's only OAuth scope (`default`) grants read+write combined —
|
|
12
|
+
* there is no read-only-only scope. Defense lives here at the recipe-tool
|
|
13
|
+
* layer: read tools declare `isWrite: false`, write tools declare
|
|
14
|
+
* `isWrite: true` so the approval queue gates them appropriately.
|
|
15
|
+
*/
|
|
16
|
+
import { CommonSchemas, registerTool } from "../toolRegistry.js";
|
|
17
|
+
// ============================================================================
|
|
18
|
+
// asana.get_current_user
|
|
19
|
+
// ============================================================================
|
|
20
|
+
registerTool({
|
|
21
|
+
id: "asana.get_current_user",
|
|
22
|
+
namespace: "asana",
|
|
23
|
+
description: "Fetch the authenticated Asana user (gid, name, email).",
|
|
24
|
+
paramsSchema: {
|
|
25
|
+
type: "object",
|
|
26
|
+
properties: {
|
|
27
|
+
into: CommonSchemas.into,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
outputSchema: {
|
|
31
|
+
type: "object",
|
|
32
|
+
properties: {
|
|
33
|
+
count: { type: "number" },
|
|
34
|
+
items: { type: "array", items: { type: "object" } },
|
|
35
|
+
error: { type: "string" },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
riskDefault: "low",
|
|
39
|
+
isWrite: false,
|
|
40
|
+
isConnector: true,
|
|
41
|
+
execute: async () => {
|
|
42
|
+
const { getAsanaConnector } = await import("../../connectors/asana.js");
|
|
43
|
+
try {
|
|
44
|
+
const connector = getAsanaConnector();
|
|
45
|
+
const user = await connector.getCurrentUser();
|
|
46
|
+
return JSON.stringify({ count: 1, items: [user] });
|
|
47
|
+
}
|
|
48
|
+
catch (err) {
|
|
49
|
+
return JSON.stringify({
|
|
50
|
+
count: 0,
|
|
51
|
+
items: [],
|
|
52
|
+
error: err instanceof Error ? err.message : String(err),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
// ============================================================================
|
|
58
|
+
// asana.list_workspaces
|
|
59
|
+
// ============================================================================
|
|
60
|
+
registerTool({
|
|
61
|
+
id: "asana.list_workspaces",
|
|
62
|
+
namespace: "asana",
|
|
63
|
+
description: "List Asana workspaces the authenticated user belongs to.",
|
|
64
|
+
paramsSchema: {
|
|
65
|
+
type: "object",
|
|
66
|
+
properties: {
|
|
67
|
+
max: CommonSchemas.max,
|
|
68
|
+
into: CommonSchemas.into,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
outputSchema: {
|
|
72
|
+
type: "object",
|
|
73
|
+
properties: {
|
|
74
|
+
count: { type: "number" },
|
|
75
|
+
items: { type: "array", items: { type: "object" } },
|
|
76
|
+
error: { type: "string" },
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
riskDefault: "low",
|
|
80
|
+
isWrite: false,
|
|
81
|
+
isConnector: true,
|
|
82
|
+
execute: async ({ params }) => {
|
|
83
|
+
const { getAsanaConnector } = await import("../../connectors/asana.js");
|
|
84
|
+
const limit = typeof params.max === "number" ? params.max : 50;
|
|
85
|
+
try {
|
|
86
|
+
const connector = getAsanaConnector();
|
|
87
|
+
const workspaces = await connector.listWorkspaces({ limit });
|
|
88
|
+
return JSON.stringify({ count: workspaces.length, items: workspaces });
|
|
89
|
+
}
|
|
90
|
+
catch (err) {
|
|
91
|
+
return JSON.stringify({
|
|
92
|
+
count: 0,
|
|
93
|
+
items: [],
|
|
94
|
+
error: err instanceof Error ? err.message : String(err),
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
// ============================================================================
|
|
100
|
+
// asana.list_projects
|
|
101
|
+
// ============================================================================
|
|
102
|
+
registerTool({
|
|
103
|
+
id: "asana.list_projects",
|
|
104
|
+
namespace: "asana",
|
|
105
|
+
description: "List projects within an Asana workspace.",
|
|
106
|
+
paramsSchema: {
|
|
107
|
+
type: "object",
|
|
108
|
+
properties: {
|
|
109
|
+
workspaceGid: {
|
|
110
|
+
type: "string",
|
|
111
|
+
description: "Asana workspace gid",
|
|
112
|
+
},
|
|
113
|
+
max: CommonSchemas.max,
|
|
114
|
+
into: CommonSchemas.into,
|
|
115
|
+
},
|
|
116
|
+
required: ["workspaceGid"],
|
|
117
|
+
},
|
|
118
|
+
outputSchema: {
|
|
119
|
+
type: "object",
|
|
120
|
+
properties: {
|
|
121
|
+
count: { type: "number" },
|
|
122
|
+
items: { type: "array", items: { type: "object" } },
|
|
123
|
+
error: { type: "string" },
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
riskDefault: "low",
|
|
127
|
+
isWrite: false,
|
|
128
|
+
isConnector: true,
|
|
129
|
+
execute: async ({ params }) => {
|
|
130
|
+
const { getAsanaConnector } = await import("../../connectors/asana.js");
|
|
131
|
+
const limit = typeof params.max === "number" ? params.max : 50;
|
|
132
|
+
try {
|
|
133
|
+
const connector = getAsanaConnector();
|
|
134
|
+
const projects = await connector.listProjects({
|
|
135
|
+
workspaceGid: params.workspaceGid,
|
|
136
|
+
limit,
|
|
137
|
+
});
|
|
138
|
+
return JSON.stringify({ count: projects.length, items: projects });
|
|
139
|
+
}
|
|
140
|
+
catch (err) {
|
|
141
|
+
return JSON.stringify({
|
|
142
|
+
count: 0,
|
|
143
|
+
items: [],
|
|
144
|
+
error: err instanceof Error ? err.message : String(err),
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
});
|
|
149
|
+
// ============================================================================
|
|
150
|
+
// asana.list_tasks
|
|
151
|
+
// ============================================================================
|
|
152
|
+
registerTool({
|
|
153
|
+
id: "asana.list_tasks",
|
|
154
|
+
namespace: "asana",
|
|
155
|
+
description: "List Asana tasks. Requires either projectGid, or assignee + workspaceGid.",
|
|
156
|
+
paramsSchema: {
|
|
157
|
+
type: "object",
|
|
158
|
+
properties: {
|
|
159
|
+
projectGid: {
|
|
160
|
+
type: "string",
|
|
161
|
+
description: "Asana project gid (filter by project)",
|
|
162
|
+
},
|
|
163
|
+
assignee: {
|
|
164
|
+
type: "string",
|
|
165
|
+
description: "Asana user gid or 'me' (filter by assignee)",
|
|
166
|
+
},
|
|
167
|
+
workspaceGid: {
|
|
168
|
+
type: "string",
|
|
169
|
+
description: "Asana workspace gid (required when filtering by assignee)",
|
|
170
|
+
},
|
|
171
|
+
max: CommonSchemas.max,
|
|
172
|
+
into: CommonSchemas.into,
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
outputSchema: {
|
|
176
|
+
type: "object",
|
|
177
|
+
properties: {
|
|
178
|
+
count: { type: "number" },
|
|
179
|
+
items: { type: "array", items: { type: "object" } },
|
|
180
|
+
error: { type: "string" },
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
riskDefault: "low",
|
|
184
|
+
isWrite: false,
|
|
185
|
+
isConnector: true,
|
|
186
|
+
execute: async ({ params }) => {
|
|
187
|
+
const { getAsanaConnector } = await import("../../connectors/asana.js");
|
|
188
|
+
const limit = typeof params.max === "number" ? params.max : 50;
|
|
189
|
+
try {
|
|
190
|
+
const connector = getAsanaConnector();
|
|
191
|
+
const tasks = await connector.listTasks({
|
|
192
|
+
projectGid: params.projectGid,
|
|
193
|
+
assignee: params.assignee,
|
|
194
|
+
workspaceGid: params.workspaceGid,
|
|
195
|
+
limit,
|
|
196
|
+
});
|
|
197
|
+
return JSON.stringify({ count: tasks.length, items: tasks });
|
|
198
|
+
}
|
|
199
|
+
catch (err) {
|
|
200
|
+
return JSON.stringify({
|
|
201
|
+
count: 0,
|
|
202
|
+
items: [],
|
|
203
|
+
error: err instanceof Error ? err.message : String(err),
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
// ============================================================================
|
|
209
|
+
// asana.get_task
|
|
210
|
+
// ============================================================================
|
|
211
|
+
registerTool({
|
|
212
|
+
id: "asana.get_task",
|
|
213
|
+
namespace: "asana",
|
|
214
|
+
description: "Fetch a single Asana task by gid.",
|
|
215
|
+
paramsSchema: {
|
|
216
|
+
type: "object",
|
|
217
|
+
properties: {
|
|
218
|
+
taskGid: {
|
|
219
|
+
type: "string",
|
|
220
|
+
description: "Asana task gid",
|
|
221
|
+
},
|
|
222
|
+
into: CommonSchemas.into,
|
|
223
|
+
},
|
|
224
|
+
required: ["taskGid"],
|
|
225
|
+
},
|
|
226
|
+
outputSchema: {
|
|
227
|
+
type: "object",
|
|
228
|
+
properties: {
|
|
229
|
+
count: { type: "number" },
|
|
230
|
+
items: { type: "array", items: { type: "object" } },
|
|
231
|
+
error: { type: "string" },
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
riskDefault: "low",
|
|
235
|
+
isWrite: false,
|
|
236
|
+
isConnector: true,
|
|
237
|
+
execute: async ({ params }) => {
|
|
238
|
+
const { getAsanaConnector } = await import("../../connectors/asana.js");
|
|
239
|
+
try {
|
|
240
|
+
const connector = getAsanaConnector();
|
|
241
|
+
const task = await connector.getTask(params.taskGid);
|
|
242
|
+
return JSON.stringify({ count: 1, items: [task] });
|
|
243
|
+
}
|
|
244
|
+
catch (err) {
|
|
245
|
+
return JSON.stringify({
|
|
246
|
+
count: 0,
|
|
247
|
+
items: [],
|
|
248
|
+
error: err instanceof Error ? err.message : String(err),
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
});
|
|
253
|
+
// ============================================================================
|
|
254
|
+
// asana.create_task (write-gated)
|
|
255
|
+
// ============================================================================
|
|
256
|
+
registerTool({
|
|
257
|
+
id: "asana.create_task",
|
|
258
|
+
namespace: "asana",
|
|
259
|
+
description: "Create a new Asana task in a workspace, optionally attached to a project, assigned, due-dated, or nested under a parent task.",
|
|
260
|
+
paramsSchema: {
|
|
261
|
+
type: "object",
|
|
262
|
+
properties: {
|
|
263
|
+
workspace_gid: {
|
|
264
|
+
type: "string",
|
|
265
|
+
description: "Asana workspace gid (required)",
|
|
266
|
+
},
|
|
267
|
+
name: { type: "string", description: "Task title (required)" },
|
|
268
|
+
project_gid: {
|
|
269
|
+
type: "string",
|
|
270
|
+
description: "Optional project gid to attach the task to",
|
|
271
|
+
},
|
|
272
|
+
notes: {
|
|
273
|
+
type: "string",
|
|
274
|
+
description: "Optional task body / notes (free-form text)",
|
|
275
|
+
},
|
|
276
|
+
assignee_gid: {
|
|
277
|
+
type: "string",
|
|
278
|
+
description: "Optional Asana user gid to assign the task to",
|
|
279
|
+
},
|
|
280
|
+
due_on: {
|
|
281
|
+
type: "string",
|
|
282
|
+
description: "Optional ISO date YYYY-MM-DD",
|
|
283
|
+
},
|
|
284
|
+
parent_task_gid: {
|
|
285
|
+
type: "string",
|
|
286
|
+
description: "Optional parent task gid (creates a subtask)",
|
|
287
|
+
},
|
|
288
|
+
into: CommonSchemas.into,
|
|
289
|
+
},
|
|
290
|
+
required: ["workspace_gid", "name"],
|
|
291
|
+
},
|
|
292
|
+
outputSchema: {
|
|
293
|
+
type: "object",
|
|
294
|
+
properties: {
|
|
295
|
+
ok: { type: "boolean" },
|
|
296
|
+
gid: { type: "string" },
|
|
297
|
+
name: { type: "string" },
|
|
298
|
+
error: { type: "string" },
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
riskDefault: "medium",
|
|
302
|
+
isWrite: true,
|
|
303
|
+
isConnector: true,
|
|
304
|
+
execute: async ({ params }) => {
|
|
305
|
+
const { getAsanaConnector } = await import("../../connectors/asana.js");
|
|
306
|
+
try {
|
|
307
|
+
const connector = getAsanaConnector();
|
|
308
|
+
const task = await connector.createTask({
|
|
309
|
+
workspaceGid: params.workspace_gid,
|
|
310
|
+
name: params.name,
|
|
311
|
+
projectGid: typeof params.project_gid === "string"
|
|
312
|
+
? params.project_gid
|
|
313
|
+
: undefined,
|
|
314
|
+
notes: typeof params.notes === "string" ? params.notes : undefined,
|
|
315
|
+
assigneeGid: typeof params.assignee_gid === "string"
|
|
316
|
+
? params.assignee_gid
|
|
317
|
+
: undefined,
|
|
318
|
+
dueOn: typeof params.due_on === "string" ? params.due_on : undefined,
|
|
319
|
+
parentTaskGid: typeof params.parent_task_gid === "string"
|
|
320
|
+
? params.parent_task_gid
|
|
321
|
+
: undefined,
|
|
322
|
+
});
|
|
323
|
+
return JSON.stringify({ ok: true, gid: task.gid, name: task.name });
|
|
324
|
+
}
|
|
325
|
+
catch (err) {
|
|
326
|
+
return JSON.stringify({
|
|
327
|
+
ok: false,
|
|
328
|
+
error: err instanceof Error ? err.message : String(err),
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
});
|
|
333
|
+
// ============================================================================
|
|
334
|
+
// asana.update_task (write-gated)
|
|
335
|
+
// ============================================================================
|
|
336
|
+
registerTool({
|
|
337
|
+
id: "asana.update_task",
|
|
338
|
+
namespace: "asana",
|
|
339
|
+
description: "Update fields on an Asana task. At least one of name/notes/completed/assignee_gid/due_on must be supplied.",
|
|
340
|
+
paramsSchema: {
|
|
341
|
+
type: "object",
|
|
342
|
+
properties: {
|
|
343
|
+
task_gid: { type: "string", description: "Asana task gid (required)" },
|
|
344
|
+
name: { type: "string", description: "New task title" },
|
|
345
|
+
notes: { type: "string", description: "New task notes / body" },
|
|
346
|
+
completed: {
|
|
347
|
+
type: "boolean",
|
|
348
|
+
description: "Mark task completed/uncompleted",
|
|
349
|
+
},
|
|
350
|
+
assignee_gid: {
|
|
351
|
+
type: "string",
|
|
352
|
+
description: "New assignee user gid",
|
|
353
|
+
},
|
|
354
|
+
due_on: {
|
|
355
|
+
type: "string",
|
|
356
|
+
description: "ISO date YYYY-MM-DD",
|
|
357
|
+
},
|
|
358
|
+
into: CommonSchemas.into,
|
|
359
|
+
},
|
|
360
|
+
required: ["task_gid"],
|
|
361
|
+
},
|
|
362
|
+
outputSchema: {
|
|
363
|
+
type: "object",
|
|
364
|
+
properties: {
|
|
365
|
+
ok: { type: "boolean" },
|
|
366
|
+
gid: { type: "string" },
|
|
367
|
+
name: { type: "string" },
|
|
368
|
+
completed: { type: "boolean" },
|
|
369
|
+
error: { type: "string" },
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
riskDefault: "medium",
|
|
373
|
+
isWrite: true,
|
|
374
|
+
isConnector: true,
|
|
375
|
+
execute: async ({ params }) => {
|
|
376
|
+
const { getAsanaConnector } = await import("../../connectors/asana.js");
|
|
377
|
+
// Defense at wrapper level — refuse when no update fields supplied so the
|
|
378
|
+
// recipe author sees a clear error rather than an Asana 400.
|
|
379
|
+
const updates = {};
|
|
380
|
+
if (typeof params.name === "string")
|
|
381
|
+
updates.name = params.name;
|
|
382
|
+
if (typeof params.notes === "string")
|
|
383
|
+
updates.notes = params.notes;
|
|
384
|
+
if (typeof params.completed === "boolean") {
|
|
385
|
+
updates.completed = params.completed;
|
|
386
|
+
}
|
|
387
|
+
if (typeof params.assignee_gid === "string") {
|
|
388
|
+
updates.assigneeGid = params.assignee_gid;
|
|
389
|
+
}
|
|
390
|
+
if (typeof params.due_on === "string")
|
|
391
|
+
updates.dueOn = params.due_on;
|
|
392
|
+
if (Object.keys(updates).length === 0) {
|
|
393
|
+
return JSON.stringify({
|
|
394
|
+
ok: false,
|
|
395
|
+
error: "update_task requires at least one of name/notes/completed/assignee_gid/due_on",
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
try {
|
|
399
|
+
const connector = getAsanaConnector();
|
|
400
|
+
const task = await connector.updateTask(params.task_gid, updates);
|
|
401
|
+
return JSON.stringify({
|
|
402
|
+
ok: true,
|
|
403
|
+
gid: task.gid,
|
|
404
|
+
name: task.name,
|
|
405
|
+
completed: task.completed,
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
catch (err) {
|
|
409
|
+
return JSON.stringify({
|
|
410
|
+
ok: false,
|
|
411
|
+
error: err instanceof Error ? err.message : String(err),
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
});
|
|
416
|
+
// ============================================================================
|
|
417
|
+
// asana.complete_task (write-gated)
|
|
418
|
+
// ============================================================================
|
|
419
|
+
registerTool({
|
|
420
|
+
id: "asana.complete_task",
|
|
421
|
+
namespace: "asana",
|
|
422
|
+
description: "Mark an Asana task completed (sets completed: true).",
|
|
423
|
+
paramsSchema: {
|
|
424
|
+
type: "object",
|
|
425
|
+
properties: {
|
|
426
|
+
task_gid: { type: "string", description: "Asana task gid (required)" },
|
|
427
|
+
into: CommonSchemas.into,
|
|
428
|
+
},
|
|
429
|
+
required: ["task_gid"],
|
|
430
|
+
},
|
|
431
|
+
outputSchema: {
|
|
432
|
+
type: "object",
|
|
433
|
+
properties: {
|
|
434
|
+
ok: { type: "boolean" },
|
|
435
|
+
gid: { type: "string" },
|
|
436
|
+
completed: { type: "boolean" },
|
|
437
|
+
error: { type: "string" },
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
riskDefault: "low",
|
|
441
|
+
isWrite: true,
|
|
442
|
+
isConnector: true,
|
|
443
|
+
execute: async ({ params }) => {
|
|
444
|
+
const { getAsanaConnector } = await import("../../connectors/asana.js");
|
|
445
|
+
try {
|
|
446
|
+
const connector = getAsanaConnector();
|
|
447
|
+
const task = await connector.completeTask(params.task_gid);
|
|
448
|
+
return JSON.stringify({
|
|
449
|
+
ok: true,
|
|
450
|
+
gid: task.gid,
|
|
451
|
+
completed: task.completed,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
catch (err) {
|
|
455
|
+
return JSON.stringify({
|
|
456
|
+
ok: false,
|
|
457
|
+
error: err instanceof Error ? err.message : String(err),
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
});
|
|
462
|
+
// ============================================================================
|
|
463
|
+
// asana.add_task_comment (write-gated)
|
|
464
|
+
// ============================================================================
|
|
465
|
+
registerTool({
|
|
466
|
+
id: "asana.add_task_comment",
|
|
467
|
+
namespace: "asana",
|
|
468
|
+
description: "Append a comment story to an Asana task's timeline.",
|
|
469
|
+
paramsSchema: {
|
|
470
|
+
type: "object",
|
|
471
|
+
properties: {
|
|
472
|
+
task_gid: { type: "string", description: "Asana task gid (required)" },
|
|
473
|
+
text: {
|
|
474
|
+
type: "string",
|
|
475
|
+
description: "Comment text (non-empty, plain text)",
|
|
476
|
+
minLength: 1,
|
|
477
|
+
},
|
|
478
|
+
into: CommonSchemas.into,
|
|
479
|
+
},
|
|
480
|
+
required: ["task_gid", "text"],
|
|
481
|
+
},
|
|
482
|
+
outputSchema: {
|
|
483
|
+
type: "object",
|
|
484
|
+
properties: {
|
|
485
|
+
ok: { type: "boolean" },
|
|
486
|
+
gid: { type: "string" },
|
|
487
|
+
text: { type: "string" },
|
|
488
|
+
created_at: { type: "string" },
|
|
489
|
+
error: { type: "string" },
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
riskDefault: "low",
|
|
493
|
+
isWrite: true,
|
|
494
|
+
isConnector: true,
|
|
495
|
+
execute: async ({ params }) => {
|
|
496
|
+
const { getAsanaConnector } = await import("../../connectors/asana.js");
|
|
497
|
+
const text = typeof params.text === "string" ? params.text : "";
|
|
498
|
+
if (!text) {
|
|
499
|
+
return JSON.stringify({
|
|
500
|
+
ok: false,
|
|
501
|
+
error: "add_task_comment requires non-empty text",
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
try {
|
|
505
|
+
const connector = getAsanaConnector();
|
|
506
|
+
const story = await connector.addTaskComment(params.task_gid, {
|
|
507
|
+
text,
|
|
508
|
+
});
|
|
509
|
+
return JSON.stringify({
|
|
510
|
+
ok: true,
|
|
511
|
+
gid: story.gid,
|
|
512
|
+
text: story.text,
|
|
513
|
+
created_at: story.created_at,
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
catch (err) {
|
|
517
|
+
return JSON.stringify({
|
|
518
|
+
ok: false,
|
|
519
|
+
error: err instanceof Error ? err.message : String(err),
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
});
|
|
524
|
+
//# sourceMappingURL=asana.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asana.js","sourceRoot":"","sources":["../../../src/recipes/tools/asana.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEjE,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E,YAAY,CAAC;IACX,EAAE,EAAE,wBAAwB;IAC5B,SAAS,EAAE,OAAO;IAClB,WAAW,EAAE,wDAAwD;IACrE,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,aAAa,CAAC,IAAI;SACzB;KACF;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;YACnD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC1B;KACF;IACD,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,IAAI;I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QACD,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,iBAAiB,EAAE,CAAC;YACtC,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,QAAkB,EAAE;gBACtE,IAAI;aACL,CAAC,CAAC;YACH,OAAO,IAAI,CAAC,SAAS,CAAC;gBACpB,EAAE,EAAE,IAAI;gBACR,GAAG,EAAE,KAAK,CAAC,GAAG;gBACd,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,UAAU,EAAE,KAAK,CAAC,UAAU;aAC7B,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,IAAI,CAAC,SAAS,CAAC;gBACpB,EAAE,EAAE,KAAK;gBACT,KAAK,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;aACxD,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Discord tools — wrappers for guilds, channels, messages, user, and send.
|
|
3
|
+
*
|
|
4
|
+
* Self-registering tool module for the recipe tool registry. Read tools wrap
|
|
5
|
+
* connector throws into the `{count, items, error}` shape; the write tool
|
|
6
|
+
* (`discord.send_message`) returns the single-object `{ok, ..., error?}` shape
|
|
7
|
+
* and is gated through the approval queue (`isWrite: true`).
|
|
8
|
+
*
|
|
9
|
+
* Each tool wraps connector throws into the `{count, items, error}` shape that
|
|
10
|
+
* the runner's silent-fail detector (PR #75) catches as a step error rather
|
|
11
|
+
* than a silent empty list.
|
|
12
|
+
*
|
|
13
|
+
* NOTE on `discord.send_message`: Discord's REST API only accepts message
|
|
14
|
+
* sends from bot-scope OAuth tokens. The connector currently uses user-scope
|
|
15
|
+
* (identify/guilds/messages.read), so the underlying call will surface a
|
|
16
|
+
* `permission_denied` error until operators re-auth with the bot scope.
|
|
17
|
+
*/
|
|
18
|
+
export {};
|