@dobbyai/mcp-external 1.1.0 → 1.2.0
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 +44 -14
- package/dist/__tests__/agent-mail-tools.test.js +19 -26
- package/dist/__tests__/agent-mail-tools.test.js.map +1 -1
- package/dist/__tests__/auth.test.js +50 -5
- package/dist/__tests__/auth.test.js.map +1 -1
- package/dist/__tests__/doctor.test.d.ts +16 -0
- package/dist/__tests__/doctor.test.d.ts.map +1 -0
- package/dist/__tests__/doctor.test.js +258 -0
- package/dist/__tests__/doctor.test.js.map +1 -0
- package/dist/__tests__/external-agents-tools.test.d.ts +11 -0
- package/dist/__tests__/external-agents-tools.test.d.ts.map +1 -0
- package/dist/__tests__/external-agents-tools.test.js +619 -0
- package/dist/__tests__/external-agents-tools.test.js.map +1 -0
- package/dist/__tests__/gateway-bearer.test.d.ts +12 -0
- package/dist/__tests__/gateway-bearer.test.d.ts.map +1 -0
- package/dist/__tests__/gateway-bearer.test.js +112 -0
- package/dist/__tests__/gateway-bearer.test.js.map +1 -0
- package/dist/__tests__/gateway-key-resolver.test.d.ts +10 -0
- package/dist/__tests__/gateway-key-resolver.test.d.ts.map +1 -0
- package/dist/__tests__/gateway-key-resolver.test.js +125 -0
- package/dist/__tests__/gateway-key-resolver.test.js.map +1 -0
- package/dist/__tests__/http-concurrency.test.d.ts +20 -0
- package/dist/__tests__/http-concurrency.test.d.ts.map +1 -0
- package/dist/__tests__/http-concurrency.test.js +254 -0
- package/dist/__tests__/http-concurrency.test.js.map +1 -0
- package/dist/__tests__/integration/protocol.test.js +14 -8
- package/dist/__tests__/integration/protocol.test.js.map +1 -1
- package/dist/__tests__/mcp-integrations.test.js +20 -30
- package/dist/__tests__/mcp-integrations.test.js.map +1 -1
- package/dist/__tests__/memory-graph-tools.test.js +27 -38
- package/dist/__tests__/memory-graph-tools.test.js.map +1 -1
- package/dist/__tests__/registry-dispatch.test.d.ts +11 -0
- package/dist/__tests__/registry-dispatch.test.d.ts.map +1 -0
- package/dist/__tests__/registry-dispatch.test.js +30 -0
- package/dist/__tests__/registry-dispatch.test.js.map +1 -0
- package/dist/__tests__/registry-listing-parity.test.d.ts +2 -0
- package/dist/__tests__/registry-listing-parity.test.d.ts.map +1 -0
- package/dist/__tests__/registry-listing-parity.test.js +89 -0
- package/dist/__tests__/registry-listing-parity.test.js.map +1 -0
- package/dist/__tests__/role-cap.test.d.ts +2 -0
- package/dist/__tests__/role-cap.test.d.ts.map +1 -0
- package/dist/__tests__/role-cap.test.js +113 -0
- package/dist/__tests__/role-cap.test.js.map +1 -0
- package/dist/__tests__/schedule-tools.test.js +15 -20
- package/dist/__tests__/schedule-tools.test.js.map +1 -1
- package/dist/__tests__/server-gateway-key.test.d.ts +18 -0
- package/dist/__tests__/server-gateway-key.test.d.ts.map +1 -0
- package/dist/__tests__/server-gateway-key.test.js +148 -0
- package/dist/__tests__/server-gateway-key.test.js.map +1 -0
- package/dist/__tests__/server-user-scoped.test.d.ts +34 -0
- package/dist/__tests__/server-user-scoped.test.d.ts.map +1 -0
- package/dist/__tests__/server-user-scoped.test.js +577 -0
- package/dist/__tests__/server-user-scoped.test.js.map +1 -0
- package/dist/__tests__/task-id-pattern.test.d.ts +12 -0
- package/dist/__tests__/task-id-pattern.test.d.ts.map +1 -0
- package/dist/__tests__/task-id-pattern.test.js +43 -0
- package/dist/__tests__/task-id-pattern.test.js.map +1 -0
- package/dist/__tests__/tiers.test.js +152 -56
- package/dist/__tests__/tiers.test.js.map +1 -1
- package/dist/__tests__/tools/hosted-agents.test.d.ts +9 -0
- package/dist/__tests__/tools/hosted-agents.test.d.ts.map +1 -0
- package/dist/__tests__/tools/hosted-agents.test.js +301 -0
- package/dist/__tests__/tools/hosted-agents.test.js.map +1 -0
- package/dist/__tests__/tools/llm-providers.test.d.ts +10 -0
- package/dist/__tests__/tools/llm-providers.test.d.ts.map +1 -0
- package/dist/__tests__/tools/llm-providers.test.js +105 -0
- package/dist/__tests__/tools/llm-providers.test.js.map +1 -0
- package/dist/__tests__/tools/services.test.js +139 -98
- package/dist/__tests__/tools/services.test.js.map +1 -1
- package/dist/__tests__/tools.test.js +24 -15
- package/dist/__tests__/tools.test.js.map +1 -1
- package/dist/__tests__/transport.test.js +365 -23
- package/dist/__tests__/transport.test.js.map +1 -1
- package/dist/__tests__/validate-credentials.test.d.ts +9 -0
- package/dist/__tests__/validate-credentials.test.d.ts.map +1 -0
- package/dist/__tests__/validate-credentials.test.js +172 -0
- package/dist/__tests__/validate-credentials.test.js.map +1 -0
- package/dist/__tests__/web-eval-tools.test.js +21 -32
- package/dist/__tests__/web-eval-tools.test.js.map +1 -1
- package/dist/__tests__/whoami.test.d.ts +11 -0
- package/dist/__tests__/whoami.test.d.ts.map +1 -0
- package/dist/__tests__/whoami.test.js +194 -0
- package/dist/__tests__/whoami.test.js.map +1 -0
- package/dist/__tests__/workflow-tools.test.js +20 -27
- package/dist/__tests__/workflow-tools.test.js.map +1 -1
- package/dist/__tests__/workloads.test.d.ts +9 -0
- package/dist/__tests__/workloads.test.d.ts.map +1 -0
- package/dist/__tests__/workloads.test.js +169 -0
- package/dist/__tests__/workloads.test.js.map +1 -0
- package/dist/auth/token-verifier.d.ts +11 -6
- package/dist/auth/token-verifier.d.ts.map +1 -1
- package/dist/auth/token-verifier.js +41 -19
- package/dist/auth/token-verifier.js.map +1 -1
- package/dist/connectors/claude-desktop.d.ts.map +1 -1
- package/dist/connectors/claude-desktop.js +3 -2
- package/dist/connectors/claude-desktop.js.map +1 -1
- package/dist/connectors/cursor.d.ts.map +1 -1
- package/dist/connectors/cursor.js +3 -2
- package/dist/connectors/cursor.js.map +1 -1
- package/dist/connectors/setup.d.ts.map +1 -1
- package/dist/connectors/setup.js +2 -1
- package/dist/connectors/setup.js.map +1 -1
- package/dist/connectors/vscode.d.ts.map +1 -1
- package/dist/connectors/vscode.js +3 -2
- package/dist/connectors/vscode.js.map +1 -1
- package/dist/connectors/windsurf.d.ts.map +1 -1
- package/dist/connectors/windsurf.js +3 -2
- package/dist/connectors/windsurf.js.map +1 -1
- package/dist/doctor.d.ts +34 -0
- package/dist/doctor.d.ts.map +1 -0
- package/dist/doctor.js +134 -0
- package/dist/doctor.js.map +1 -0
- package/dist/http-server.d.ts +24 -3
- package/dist/http-server.d.ts.map +1 -1
- package/dist/http-server.js +342 -62
- package/dist/http-server.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +72 -208
- package/dist/index.js.map +1 -1
- package/dist/lib/consts.d.ts +21 -0
- package/dist/lib/consts.d.ts.map +1 -0
- package/dist/lib/consts.js +30 -0
- package/dist/lib/consts.js.map +1 -0
- package/dist/lib/dobby-client.d.ts +50 -23
- package/dist/lib/dobby-client.d.ts.map +1 -1
- package/dist/lib/dobby-client.js +105 -54
- package/dist/lib/dobby-client.js.map +1 -1
- package/dist/lib/gateway-key-resolver.d.ts +38 -0
- package/dist/lib/gateway-key-resolver.d.ts.map +1 -0
- package/dist/lib/gateway-key-resolver.js +59 -0
- package/dist/lib/gateway-key-resolver.js.map +1 -0
- package/dist/lib/log.d.ts +25 -0
- package/dist/lib/log.d.ts.map +1 -0
- package/dist/lib/log.js +36 -0
- package/dist/lib/log.js.map +1 -0
- package/dist/server.d.ts +175 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +1017 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/agent-mail.d.ts +0 -41
- package/dist/tools/agent-mail.d.ts.map +1 -1
- package/dist/tools/agent-mail.js +0 -222
- package/dist/tools/agent-mail.js.map +1 -1
- package/dist/tools/agent-versions.d.ts +93 -0
- package/dist/tools/agent-versions.d.ts.map +1 -0
- package/dist/tools/agent-versions.js +99 -0
- package/dist/tools/agent-versions.js.map +1 -0
- package/dist/tools/approvals.d.ts +0 -34
- package/dist/tools/approvals.d.ts.map +1 -1
- package/dist/tools/approvals.js +0 -81
- package/dist/tools/approvals.js.map +1 -1
- package/dist/tools/claude-code-sync.d.ts +40 -0
- package/dist/tools/claude-code-sync.d.ts.map +1 -0
- package/dist/tools/claude-code-sync.js +52 -0
- package/dist/tools/claude-code-sync.js.map +1 -0
- package/dist/tools/control-plane.d.ts +118 -0
- package/dist/tools/control-plane.d.ts.map +1 -0
- package/dist/tools/control-plane.js +135 -0
- package/dist/tools/control-plane.js.map +1 -0
- package/dist/tools/crew-builder.d.ts +0 -66
- package/dist/tools/crew-builder.d.ts.map +1 -1
- package/dist/tools/crew-builder.js +0 -185
- package/dist/tools/crew-builder.js.map +1 -1
- package/dist/tools/crewai.d.ts +0 -63
- package/dist/tools/crewai.d.ts.map +1 -1
- package/dist/tools/crewai.js +0 -145
- package/dist/tools/crewai.js.map +1 -1
- package/dist/tools/exa.d.ts +0 -35
- package/dist/tools/exa.d.ts.map +1 -1
- package/dist/tools/exa.js +0 -103
- package/dist/tools/exa.js.map +1 -1
- package/dist/tools/external-agents.d.ts +440 -0
- package/dist/tools/external-agents.d.ts.map +1 -0
- package/dist/tools/external-agents.js +386 -0
- package/dist/tools/external-agents.js.map +1 -0
- package/dist/tools/github-mcp.d.ts +0 -75
- package/dist/tools/github-mcp.d.ts.map +1 -1
- package/dist/tools/github-mcp.js +0 -162
- package/dist/tools/github-mcp.js.map +1 -1
- package/dist/tools/governance.d.ts +162 -18
- package/dist/tools/governance.d.ts.map +1 -1
- package/dist/tools/governance.js +208 -93
- package/dist/tools/governance.js.map +1 -1
- package/dist/tools/hosted-agents.d.ts +216 -0
- package/dist/tools/hosted-agents.d.ts.map +1 -0
- package/dist/tools/hosted-agents.js +214 -0
- package/dist/tools/hosted-agents.js.map +1 -0
- package/dist/tools/index.d.ts +3933 -1219
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +412 -393
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/jira.d.ts +0 -176
- package/dist/tools/jira.d.ts.map +1 -1
- package/dist/tools/jira.js +0 -365
- package/dist/tools/jira.js.map +1 -1
- package/dist/tools/llm-providers.d.ts +50 -0
- package/dist/tools/llm-providers.d.ts.map +1 -0
- package/dist/tools/llm-providers.js +41 -0
- package/dist/tools/llm-providers.js.map +1 -0
- package/dist/tools/mcp-metrics.d.ts +0 -15
- package/dist/tools/mcp-metrics.d.ts.map +1 -1
- package/dist/tools/mcp-metrics.js +0 -217
- package/dist/tools/mcp-metrics.js.map +1 -1
- package/dist/tools/mcp-tools.d.ts +0 -29
- package/dist/tools/mcp-tools.d.ts.map +1 -1
- package/dist/tools/mcp-tools.js +0 -131
- package/dist/tools/mcp-tools.js.map +1 -1
- package/dist/tools/mem0.d.ts +0 -41
- package/dist/tools/mem0.d.ts.map +1 -1
- package/dist/tools/mem0.js +65 -165
- package/dist/tools/mem0.js.map +1 -1
- package/dist/tools/memory-graph.d.ts +0 -46
- package/dist/tools/memory-graph.d.ts.map +1 -1
- package/dist/tools/memory-graph.js +0 -386
- package/dist/tools/memory-graph.js.map +1 -1
- package/dist/tools/memory-stores.d.ts +141 -0
- package/dist/tools/memory-stores.d.ts.map +1 -0
- package/dist/tools/memory-stores.js +147 -0
- package/dist/tools/memory-stores.js.map +1 -0
- package/dist/tools/messages.d.ts +0 -20
- package/dist/tools/messages.d.ts.map +1 -1
- package/dist/tools/messages.js +0 -49
- package/dist/tools/messages.js.map +1 -1
- package/dist/tools/moltbook.d.ts +0 -236
- package/dist/tools/moltbook.d.ts.map +1 -1
- package/dist/tools/moltbook.js +0 -458
- package/dist/tools/moltbook.js.map +1 -1
- package/dist/tools/monitoring-attribution.d.ts +71 -0
- package/dist/tools/monitoring-attribution.d.ts.map +1 -0
- package/dist/tools/monitoring-attribution.js +74 -0
- package/dist/tools/monitoring-attribution.js.map +1 -0
- package/dist/tools/ops.d.ts +0 -80
- package/dist/tools/ops.d.ts.map +1 -1
- package/dist/tools/ops.js +0 -209
- package/dist/tools/ops.js.map +1 -1
- package/dist/tools/orchestrations.d.ts +109 -0
- package/dist/tools/orchestrations.d.ts.map +1 -0
- package/dist/tools/orchestrations.js +115 -0
- package/dist/tools/orchestrations.js.map +1 -0
- package/dist/tools/outcomes.d.ts +138 -0
- package/dist/tools/outcomes.d.ts.map +1 -0
- package/dist/tools/outcomes.js +136 -0
- package/dist/tools/outcomes.js.map +1 -0
- package/dist/tools/schedules.d.ts +0 -47
- package/dist/tools/schedules.d.ts.map +1 -1
- package/dist/tools/schedules.js +0 -109
- package/dist/tools/schedules.js.map +1 -1
- package/dist/tools/services.d.ts +0 -16
- package/dist/tools/services.d.ts.map +1 -1
- package/dist/tools/services.js +0 -135
- package/dist/tools/services.js.map +1 -1
- package/dist/tools/sessions.d.ts +124 -0
- package/dist/tools/sessions.d.ts.map +1 -0
- package/dist/tools/sessions.js +130 -0
- package/dist/tools/sessions.js.map +1 -0
- package/dist/tools/setup-status.d.ts +29 -0
- package/dist/tools/setup-status.d.ts.map +1 -0
- package/dist/tools/setup-status.js +35 -0
- package/dist/tools/setup-status.js.map +1 -0
- package/dist/tools/tasks.d.ts +0 -57
- package/dist/tools/tasks.d.ts.map +1 -1
- package/dist/tools/tasks.js +8 -217
- package/dist/tools/tasks.js.map +1 -1
- package/dist/tools/tiers.d.ts +23 -7
- package/dist/tools/tiers.d.ts.map +1 -1
- package/dist/tools/tiers.js +180 -79
- package/dist/tools/tiers.js.map +1 -1
- package/dist/tools/unified-agents.d.ts +0 -19
- package/dist/tools/unified-agents.d.ts.map +1 -1
- package/dist/tools/unified-agents.js +2 -103
- package/dist/tools/unified-agents.js.map +1 -1
- package/dist/tools/web-eval.d.ts +0 -43
- package/dist/tools/web-eval.d.ts.map +1 -1
- package/dist/tools/web-eval.js +0 -211
- package/dist/tools/web-eval.js.map +1 -1
- package/dist/tools/workflow.d.ts +0 -66
- package/dist/tools/workflow.d.ts.map +1 -1
- package/dist/tools/workflow.js +2 -409
- package/dist/tools/workflow.js.map +1 -1
- package/dist/tools/workloads.d.ts +81 -0
- package/dist/tools/workloads.d.ts.map +1 -0
- package/dist/tools/workloads.js +81 -0
- package/dist/tools/workloads.js.map +1 -0
- package/package.json +7 -6
- package/dist/tools/knowledge-base.d.ts +0 -144
- package/dist/tools/knowledge-base.d.ts.map +0 -1
- package/dist/tools/knowledge-base.js +0 -179
- package/dist/tools/knowledge-base.js.map +0 -1
package/dist/tools/tiers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiers.js","sourceRoot":"","sources":["../../src/tools/tiers.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tiers.js","sourceRoot":"","sources":["../../src/tools/tiers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,+CAA+C;AAC/C,mBAAmB;AACnB,+CAA+C;AAE/C,8EAA8E;AAC9E,MAAM,CAAC,MAAM,SAAS,GAAsB;IAC1C,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,UAAU;IACV,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,cAAc;IACd,cAAc;IACd,uBAAuB;IACvB,uBAAuB;IACvB,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,gBAAgB;IAChB,iBAAiB;IACjB,wBAAwB;IACxB,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;IAChB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,qBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,qBAAqB;IACrB,oBAAoB;IACpB,iBAAiB;IACjB,aAAa;IACb,eAAe;IACf,6BAA6B;IAC7B,qBAAqB;IACrB,yBAAyB;IACzB,mBAAmB;IACnB,kBAAkB;IAClB,uBAAuB;IACvB,yBAAyB;IACzB,2BAA2B;IAC3B,mBAAmB;IACnB,qBAAqB;IACrB,8BAA8B;IAC9B,oBAAoB;IACpB,oBAAoB;IACpB,2BA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ACH,MAAM,UAAU,gBAAgB,CAAC,MAAgB;IAC/C,OAAO,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AACxE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC/B,YAAsB,EACtB,IAAc;IAEd,IAAI,IAAI,KAAK,YAAY;QAAE,OAAO,YAAY,CAAC;IAC/C,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1C,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1D,CAAC;AAED,mCAAmC;AACnC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,EAAE,SAAS,CAAC,MAAM;IACrB,GAAG,EAAE,SAAS,CAAC,MAAM;CACb,CAAC"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Tool to list all agents across all connected platforms
|
|
5
5
|
* (Dobby internal, external BYOA, Moltbook).
|
|
6
6
|
*/
|
|
7
|
-
import { DobbyClient } from '../lib/dobby-client.js';
|
|
8
7
|
export declare const unifiedAgentTools: {
|
|
9
8
|
list_all_agents: {
|
|
10
9
|
name: string;
|
|
@@ -41,22 +40,4 @@ export declare const unifiedAgentTools: {
|
|
|
41
40
|
};
|
|
42
41
|
};
|
|
43
42
|
};
|
|
44
|
-
export declare function handleListAllAgents(client: DobbyClient, args: {
|
|
45
|
-
source?: string;
|
|
46
|
-
status?: string;
|
|
47
|
-
search?: string;
|
|
48
|
-
include_moltbook?: boolean;
|
|
49
|
-
}): Promise<{
|
|
50
|
-
content: {
|
|
51
|
-
type: "text";
|
|
52
|
-
text: string;
|
|
53
|
-
}[];
|
|
54
|
-
isError?: undefined;
|
|
55
|
-
} | {
|
|
56
|
-
content: {
|
|
57
|
-
type: "text";
|
|
58
|
-
text: string;
|
|
59
|
-
}[];
|
|
60
|
-
isError: boolean;
|
|
61
|
-
}>;
|
|
62
43
|
//# sourceMappingURL=unified-agents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unified-agents.d.ts","sourceRoot":"","sources":["../../src/tools/unified-agents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"unified-agents.d.ts","sourceRoot":"","sources":["../../src/tools/unified-agents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC7B,CAAC"}
|
|
@@ -16,14 +16,14 @@ export const unifiedAgentTools = {
|
|
|
16
16
|
destructiveHint: false,
|
|
17
17
|
openWorldHint: false,
|
|
18
18
|
},
|
|
19
|
-
description: 'List
|
|
19
|
+
description: 'List agents in your workspace. By default returns external (BYOA) agents. Use source="all" to include Dobby built-in agents.',
|
|
20
20
|
inputSchema: {
|
|
21
21
|
type: 'object',
|
|
22
22
|
properties: {
|
|
23
23
|
source: {
|
|
24
24
|
type: 'string',
|
|
25
25
|
enum: ['all', 'dobby_tenant', 'dobby_org', 'external', 'moltbook'],
|
|
26
|
-
description: 'Filter by agent source. Defaults to "
|
|
26
|
+
description: 'Filter by agent source. Defaults to "external".',
|
|
27
27
|
},
|
|
28
28
|
status: {
|
|
29
29
|
type: 'string',
|
|
@@ -43,105 +43,4 @@ export const unifiedAgentTools = {
|
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
|
-
// ============================================
|
|
47
|
-
// Tool Handlers
|
|
48
|
-
// ============================================
|
|
49
|
-
export async function handleListAllAgents(client, args) {
|
|
50
|
-
try {
|
|
51
|
-
// Build query params
|
|
52
|
-
const queryParams = new URLSearchParams();
|
|
53
|
-
if (args.source && args.source !== 'all') {
|
|
54
|
-
queryParams.set('source', args.source);
|
|
55
|
-
}
|
|
56
|
-
if (args.status && args.status !== 'all') {
|
|
57
|
-
queryParams.set('status', args.status);
|
|
58
|
-
}
|
|
59
|
-
if (args.search) {
|
|
60
|
-
queryParams.set('search', args.search);
|
|
61
|
-
}
|
|
62
|
-
if (args.include_moltbook) {
|
|
63
|
-
queryParams.set('include_moltbook', 'true');
|
|
64
|
-
}
|
|
65
|
-
// Use client's request method to call the unified-agents API
|
|
66
|
-
const data = await client.request(`/api/v1/tenants/${client.tenantId}/unified-agents?${queryParams.toString()}`);
|
|
67
|
-
const text = formatUnifiedAgents(data);
|
|
68
|
-
return {
|
|
69
|
-
content: [{ type: 'text', text }],
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
catch (error) {
|
|
73
|
-
return {
|
|
74
|
-
content: [
|
|
75
|
-
{
|
|
76
|
-
type: 'text',
|
|
77
|
-
text: `Failed to list unified agents: ${error.message}`,
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
isError: true,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function formatUnifiedAgents(responseData) {
|
|
85
|
-
const data = responseData?.data || responseData;
|
|
86
|
-
let text = '# All Agents\n\n';
|
|
87
|
-
// Stats summary
|
|
88
|
-
const stats = data.stats;
|
|
89
|
-
text += `**Total: ${stats.total} agents**\n\n`;
|
|
90
|
-
// Source breakdown
|
|
91
|
-
const sourceLabels = {
|
|
92
|
-
dobby_tenant: 'Dobby Tenant',
|
|
93
|
-
dobby_org: 'Dobby Org',
|
|
94
|
-
external: 'External (BYOA)',
|
|
95
|
-
moltbook: 'Moltbook',
|
|
96
|
-
};
|
|
97
|
-
if (stats.by_source) {
|
|
98
|
-
const parts = [];
|
|
99
|
-
for (const [source, count] of Object.entries(stats.by_source)) {
|
|
100
|
-
if (count > 0) {
|
|
101
|
-
parts.push(`${sourceLabels[source] || source}: ${count}`);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (parts.length > 0) {
|
|
105
|
-
text += `Sources: ${parts.join(' | ')}\n\n`;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
// Failed sources warning
|
|
109
|
-
if (data.sources_failed?.length > 0) {
|
|
110
|
-
text += `⚠️ Could not fetch from: ${data.sources_failed.join(', ')}\n\n`;
|
|
111
|
-
}
|
|
112
|
-
// No agents
|
|
113
|
-
if (!data.agents || data.agents.length === 0) {
|
|
114
|
-
text += '_No agents found._\n';
|
|
115
|
-
return text;
|
|
116
|
-
}
|
|
117
|
-
// Group agents by source
|
|
118
|
-
const grouped = {};
|
|
119
|
-
for (const agent of data.agents) {
|
|
120
|
-
const key = agent.source;
|
|
121
|
-
if (!grouped[key])
|
|
122
|
-
grouped[key] = [];
|
|
123
|
-
grouped[key].push(agent);
|
|
124
|
-
}
|
|
125
|
-
// Render each group
|
|
126
|
-
for (const [source, agents] of Object.entries(grouped)) {
|
|
127
|
-
text += `## ${sourceLabels[source] || source} (${agents.length})\n\n`;
|
|
128
|
-
text += '| Agent | Status | Health | Role |\n';
|
|
129
|
-
text += '|-------|--------|--------|------|\n';
|
|
130
|
-
for (const agent of agents) {
|
|
131
|
-
const statusIcon = agent.status === 'active' ? '✅' :
|
|
132
|
-
agent.status === 'paused' ? '⏸️' :
|
|
133
|
-
agent.status === 'error' ? '❌' : '⚪';
|
|
134
|
-
const healthIcon = agent.health_status === 'healthy' ? '🟢' :
|
|
135
|
-
agent.health_status === 'degraded' ? '🟡' :
|
|
136
|
-
agent.health_status === 'unhealthy' ? '🔴' : '⚪';
|
|
137
|
-
const name = agent.profile_url
|
|
138
|
-
? `[${agent.display_name}](${agent.profile_url})`
|
|
139
|
-
: agent.display_name;
|
|
140
|
-
const role = agent.role || agent.group || '—';
|
|
141
|
-
text += `| ${name} | ${statusIcon} ${agent.status} | ${healthIcon} ${agent.health_status} | ${role} |\n`;
|
|
142
|
-
}
|
|
143
|
-
text += '\n';
|
|
144
|
-
}
|
|
145
|
-
return text;
|
|
146
|
-
}
|
|
147
46
|
//# sourceMappingURL=unified-agents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unified-agents.js","sourceRoot":"","sources":["../../src/tools/unified-agents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"unified-agents.js","sourceRoot":"","sources":["../../src/tools/unified-agents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,+CAA+C;AAC/C,mBAAmB;AACnB,+CAA+C;AAE/C,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,eAAe,EAAE;QACf,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACX,KAAK,EAAE,iBAAiB;YACxB,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;SACrB;QACD,WAAW,EACT,8HAA8H;QAChI,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,CAAC;oBAClE,WAAW,EAAE,iDAAiD;iBAC/D;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC;oBACtD,WAAW,EAAE,4CAA4C;iBAC1D;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,iEAAiE;oBAC9E,SAAS,EAAE,CAAC;iBACb;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE,iFAAiF;iBAC/F;aACF;SACF;KACF;CACF,CAAC"}
|
package/dist/tools/web-eval.d.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Wraps Playwright E2E infrastructure for agent-driven testing.
|
|
6
6
|
* Agents can trigger tests, capture screenshots, and validate UI.
|
|
7
7
|
*/
|
|
8
|
-
import { DobbyClient } from '../lib/dobby-client.js';
|
|
9
8
|
export declare const webEvalTools: {
|
|
10
9
|
webeval_run_tests: {
|
|
11
10
|
name: string;
|
|
@@ -127,46 +126,4 @@ export declare const webEvalTools: {
|
|
|
127
126
|
};
|
|
128
127
|
};
|
|
129
128
|
};
|
|
130
|
-
export declare function handleWebEvalRunTests(_client: DobbyClient, args: {
|
|
131
|
-
spec?: string;
|
|
132
|
-
grep?: string;
|
|
133
|
-
browser?: string;
|
|
134
|
-
headed?: boolean;
|
|
135
|
-
}): Promise<{
|
|
136
|
-
content: {
|
|
137
|
-
type: "text";
|
|
138
|
-
text: string;
|
|
139
|
-
}[];
|
|
140
|
-
}>;
|
|
141
|
-
export declare function handleWebEvalCheckHealth(_client: DobbyClient, args: {
|
|
142
|
-
base_url?: string;
|
|
143
|
-
pages?: string[];
|
|
144
|
-
}): Promise<{
|
|
145
|
-
content: {
|
|
146
|
-
type: "text";
|
|
147
|
-
text: string;
|
|
148
|
-
}[];
|
|
149
|
-
}>;
|
|
150
|
-
export declare function handleWebEvalTestApiEndpoint(_client: DobbyClient, args: {
|
|
151
|
-
method?: string;
|
|
152
|
-
path: string;
|
|
153
|
-
body?: Record<string, unknown>;
|
|
154
|
-
expected_status?: number;
|
|
155
|
-
headers?: Record<string, string>;
|
|
156
|
-
}): Promise<{
|
|
157
|
-
content: {
|
|
158
|
-
type: "text";
|
|
159
|
-
text: string;
|
|
160
|
-
}[];
|
|
161
|
-
isError: boolean | undefined;
|
|
162
|
-
}>;
|
|
163
|
-
export declare function handleWebEvalCoverageReport(_client: DobbyClient, args: {
|
|
164
|
-
type?: string;
|
|
165
|
-
threshold?: number;
|
|
166
|
-
}): Promise<{
|
|
167
|
-
content: {
|
|
168
|
-
type: "text";
|
|
169
|
-
text: string;
|
|
170
|
-
}[];
|
|
171
|
-
}>;
|
|
172
129
|
//# sourceMappingURL=web-eval.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-eval.d.ts","sourceRoot":"","sources":["../../src/tools/web-eval.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"web-eval.d.ts","sourceRoot":"","sources":["../../src/tools/web-eval.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyHxB,CAAC"}
|
package/dist/tools/web-eval.js
CHANGED
|
@@ -130,218 +130,7 @@ export const webEvalTools = {
|
|
|
130
130
|
// ============================================
|
|
131
131
|
// Test Runner Configuration
|
|
132
132
|
// ============================================
|
|
133
|
-
const DEFAULT_BASE_URL = 'http://localhost:3000';
|
|
134
|
-
const HEALTH_CHECK_PAGES = ['/', '/auth/signin', '/api/health'];
|
|
135
133
|
// ============================================
|
|
136
134
|
// Tool Handlers
|
|
137
135
|
// ============================================
|
|
138
|
-
export async function handleWebEvalRunTests(_client, args) {
|
|
139
|
-
const browser = args.browser || 'chromium';
|
|
140
|
-
const specFile = args.spec ? `web/e2e/${args.spec}.spec.ts` : '';
|
|
141
|
-
// Build playwright command
|
|
142
|
-
const cmdParts = ['npx', 'playwright', 'test'];
|
|
143
|
-
if (specFile)
|
|
144
|
-
cmdParts.push(specFile);
|
|
145
|
-
if (args.grep)
|
|
146
|
-
cmdParts.push('--grep', `"${args.grep}"`);
|
|
147
|
-
if (browser !== 'all')
|
|
148
|
-
cmdParts.push('--project', browser);
|
|
149
|
-
if (args.headed)
|
|
150
|
-
cmdParts.push('--headed');
|
|
151
|
-
cmdParts.push('--reporter', 'json');
|
|
152
|
-
const command = cmdParts.join(' ');
|
|
153
|
-
// Note: This returns the command to run, not the actual result.
|
|
154
|
-
// In production, this would execute via a task runner or subprocess.
|
|
155
|
-
// For now, we return the command and test configuration for the agent to execute.
|
|
156
|
-
const testConfig = {
|
|
157
|
-
command,
|
|
158
|
-
working_directory: 'web/',
|
|
159
|
-
spec: args.spec || 'all',
|
|
160
|
-
browser,
|
|
161
|
-
grep: args.grep || null,
|
|
162
|
-
headed: args.headed || false,
|
|
163
|
-
available_specs: ['auth', 'navigation', 'tasks', 'agents', 'onboarding'],
|
|
164
|
-
browsers: ['chromium', 'firefox', 'mobile-safari'],
|
|
165
|
-
tips: [
|
|
166
|
-
'Run from the web/ directory',
|
|
167
|
-
'Ensure the dev server is running (npm run dev)',
|
|
168
|
-
'Set E2E_AUTH_COOKIE env var for CI authentication',
|
|
169
|
-
'Use --headed to watch the tests run in a browser',
|
|
170
|
-
],
|
|
171
|
-
};
|
|
172
|
-
return {
|
|
173
|
-
content: [{
|
|
174
|
-
type: 'text',
|
|
175
|
-
text: JSON.stringify({
|
|
176
|
-
status: 'ready',
|
|
177
|
-
test_config: testConfig,
|
|
178
|
-
note: 'Execute the command above to run the tests. Results will be in JSON format.',
|
|
179
|
-
}, null, 2),
|
|
180
|
-
}],
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
export async function handleWebEvalCheckHealth(_client, args) {
|
|
184
|
-
const baseUrl = args.base_url || DEFAULT_BASE_URL;
|
|
185
|
-
const pages = args.pages || HEALTH_CHECK_PAGES;
|
|
186
|
-
const results = [];
|
|
187
|
-
for (const page of pages) {
|
|
188
|
-
const url = `${baseUrl}${page}`;
|
|
189
|
-
const start = Date.now();
|
|
190
|
-
try {
|
|
191
|
-
const response = await fetch(url, {
|
|
192
|
-
method: 'GET',
|
|
193
|
-
headers: { 'User-Agent': 'Dobby-WebEval/1.0' },
|
|
194
|
-
signal: AbortSignal.timeout(10000),
|
|
195
|
-
});
|
|
196
|
-
results.push({
|
|
197
|
-
url: page,
|
|
198
|
-
status: response.status,
|
|
199
|
-
response_time_ms: Date.now() - start,
|
|
200
|
-
ok: response.ok,
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
catch (error) {
|
|
204
|
-
const errMsg = error instanceof Error ? error.message : 'Unknown error';
|
|
205
|
-
results.push({
|
|
206
|
-
url: page,
|
|
207
|
-
status: null,
|
|
208
|
-
response_time_ms: Date.now() - start,
|
|
209
|
-
ok: false,
|
|
210
|
-
error: errMsg,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
const allOk = results.every(r => r.ok);
|
|
215
|
-
const avgResponseTime = results.reduce((sum, r) => sum + r.response_time_ms, 0) / results.length;
|
|
216
|
-
return {
|
|
217
|
-
content: [{
|
|
218
|
-
type: 'text',
|
|
219
|
-
text: JSON.stringify({
|
|
220
|
-
overall_status: allOk ? 'healthy' : 'unhealthy',
|
|
221
|
-
base_url: baseUrl,
|
|
222
|
-
checked_at: new Date().toISOString(),
|
|
223
|
-
pages_checked: results.length,
|
|
224
|
-
all_ok: allOk,
|
|
225
|
-
avg_response_time_ms: Math.round(avgResponseTime),
|
|
226
|
-
results,
|
|
227
|
-
}, null, 2),
|
|
228
|
-
}],
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
export async function handleWebEvalTestApiEndpoint(_client, args) {
|
|
232
|
-
const baseUrl = process.env.PLAYWRIGHT_BASE_URL || DEFAULT_BASE_URL;
|
|
233
|
-
const method = args.method || 'GET';
|
|
234
|
-
const expectedStatus = args.expected_status || 200;
|
|
235
|
-
const url = `${baseUrl}${args.path}`;
|
|
236
|
-
const start = Date.now();
|
|
237
|
-
try {
|
|
238
|
-
const fetchOptions = {
|
|
239
|
-
method,
|
|
240
|
-
headers: {
|
|
241
|
-
'Content-Type': 'application/json',
|
|
242
|
-
'User-Agent': 'Dobby-WebEval/1.0',
|
|
243
|
-
...args.headers,
|
|
244
|
-
},
|
|
245
|
-
signal: AbortSignal.timeout(15000),
|
|
246
|
-
};
|
|
247
|
-
if (args.body && ['POST', 'PUT', 'PATCH'].includes(method)) {
|
|
248
|
-
fetchOptions.body = JSON.stringify(args.body);
|
|
249
|
-
}
|
|
250
|
-
const response = await fetch(url, fetchOptions);
|
|
251
|
-
const responseTime = Date.now() - start;
|
|
252
|
-
let responseBody;
|
|
253
|
-
const contentType = response.headers.get('content-type') || '';
|
|
254
|
-
if (contentType.includes('application/json')) {
|
|
255
|
-
responseBody = await response.json();
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
const text = await response.text();
|
|
259
|
-
responseBody = text.slice(0, 500);
|
|
260
|
-
}
|
|
261
|
-
const statusMatch = response.status === expectedStatus;
|
|
262
|
-
return {
|
|
263
|
-
content: [{
|
|
264
|
-
type: 'text',
|
|
265
|
-
text: JSON.stringify({
|
|
266
|
-
test_result: statusMatch ? 'PASS' : 'FAIL',
|
|
267
|
-
request: {
|
|
268
|
-
method,
|
|
269
|
-
url: args.path,
|
|
270
|
-
body: args.body || null,
|
|
271
|
-
},
|
|
272
|
-
response: {
|
|
273
|
-
status: response.status,
|
|
274
|
-
expected_status: expectedStatus,
|
|
275
|
-
status_match: statusMatch,
|
|
276
|
-
response_time_ms: responseTime,
|
|
277
|
-
content_type: contentType,
|
|
278
|
-
body: responseBody,
|
|
279
|
-
},
|
|
280
|
-
}, null, 2),
|
|
281
|
-
}],
|
|
282
|
-
isError: !statusMatch ? true : undefined,
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
catch (error) {
|
|
286
|
-
const errMsg = error instanceof Error ? error.message : 'Unknown error';
|
|
287
|
-
return {
|
|
288
|
-
content: [{
|
|
289
|
-
type: 'text',
|
|
290
|
-
text: JSON.stringify({
|
|
291
|
-
test_result: 'ERROR',
|
|
292
|
-
request: { method, url: args.path },
|
|
293
|
-
error: errMsg,
|
|
294
|
-
response_time_ms: Date.now() - start,
|
|
295
|
-
}, null, 2),
|
|
296
|
-
}],
|
|
297
|
-
isError: true,
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
export async function handleWebEvalCoverageReport(_client, args) {
|
|
302
|
-
const coverageType = args.type || 'all';
|
|
303
|
-
const threshold = args.threshold || 30;
|
|
304
|
-
// Return test infrastructure info and commands to get coverage
|
|
305
|
-
const coverageConfig = {
|
|
306
|
-
coverage_type: coverageType,
|
|
307
|
-
threshold,
|
|
308
|
-
commands: {
|
|
309
|
-
unit: 'cd web && npm run test:coverage',
|
|
310
|
-
e2e: 'cd web && npx playwright test --reporter=html',
|
|
311
|
-
all: 'cd web && npm run test:coverage && npx playwright test --reporter=html',
|
|
312
|
-
},
|
|
313
|
-
coverage_config: {
|
|
314
|
-
provider: 'v8',
|
|
315
|
-
thresholds: {
|
|
316
|
-
statements: threshold,
|
|
317
|
-
branches: threshold,
|
|
318
|
-
functions: threshold,
|
|
319
|
-
lines: threshold,
|
|
320
|
-
},
|
|
321
|
-
report_location: 'web/coverage/',
|
|
322
|
-
e2e_report_location: 'web/playwright-report/',
|
|
323
|
-
},
|
|
324
|
-
test_inventory: {
|
|
325
|
-
e2e_specs: ['auth', 'navigation', 'tasks', 'agents', 'onboarding'],
|
|
326
|
-
unit_test_dirs: ['web/__tests__/api/', 'web/__tests__/unit/', 'web/__tests__/integration/'],
|
|
327
|
-
python_tests: 'dobby/tests/',
|
|
328
|
-
},
|
|
329
|
-
current_ci_gates: {
|
|
330
|
-
unit_tests: 'blocking',
|
|
331
|
-
e2e_critical: 'blocking (auth + tasks)',
|
|
332
|
-
e2e_extended: 'non-blocking',
|
|
333
|
-
coverage_threshold: '30%',
|
|
334
|
-
},
|
|
335
|
-
};
|
|
336
|
-
return {
|
|
337
|
-
content: [{
|
|
338
|
-
type: 'text',
|
|
339
|
-
text: JSON.stringify({
|
|
340
|
-
status: 'config_ready',
|
|
341
|
-
...coverageConfig,
|
|
342
|
-
note: 'Run the commands above to generate fresh coverage reports.',
|
|
343
|
-
}, null, 2),
|
|
344
|
-
}],
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
136
|
//# sourceMappingURL=web-eval.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-eval.js","sourceRoot":"","sources":["../../src/tools/web-eval.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"web-eval.js","sourceRoot":"","sources":["../../src/tools/web-eval.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,+CAA+C;AAC/C,mBAAmB;AACnB,+CAA+C;AAE/C,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,iBAAiB,EAAE;QACjB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE;YACX,KAAK,EAAE,WAAW;YAClB,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;SACrB;QACD,WAAW,EAAE,0LAA0L;QACvM,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,+HAA+H;iBAC7I;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,uEAAuE;iBACrF;gBACD,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC;oBACrD,WAAW,EAAE,wCAAwC;iBACtD;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE,2CAA2C;iBACzD;aACF;SACF;KACF;IAED,oBAAoB,EAAE;QACpB,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE;YACX,KAAK,EAAE,cAAc;YACrB,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;SACrB;QACD,WAAW,EAAE,qJAAqJ;QAClK,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EA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AAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC;oBAC5B,WAAW,EAAE,wCAAwC;iBACtD;gBACD,SAAS,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,kDAAkD;iBAChE;aACF;SACF;KACF;CACF,CAAC;AAEF,+CAA+C;AAC/C,4BAA4B;AAC5B,+CAA+C;AAK/C,+CAA+C;AAC/C,gBAAgB;AAChB,+CAA+C"}
|
package/dist/tools/workflow.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow Automation MCP Tools
|
|
3
|
-
*
|
|
4
|
-
* Phase 2: Intelligent task routing and auto-assignment.
|
|
5
|
-
* Provides tools for task classification, agent workload monitoring,
|
|
6
|
-
* and automated/manual assignment through the Dobby platform.
|
|
7
|
-
*/
|
|
8
|
-
import { DobbyClient } from '../lib/dobby-client.js';
|
|
9
1
|
export declare const workflowTools: {
|
|
10
2
|
workflow_classify_task: {
|
|
11
3
|
name: string;
|
|
@@ -110,62 +102,4 @@ export declare const workflowTools: {
|
|
|
110
102
|
};
|
|
111
103
|
};
|
|
112
104
|
};
|
|
113
|
-
export declare function handleWorkflowClassifyTask(client: DobbyClient, args: {
|
|
114
|
-
title: string;
|
|
115
|
-
description?: string;
|
|
116
|
-
priority?: string;
|
|
117
|
-
}): Promise<{
|
|
118
|
-
content: {
|
|
119
|
-
type: "text";
|
|
120
|
-
text: string;
|
|
121
|
-
}[];
|
|
122
|
-
}>;
|
|
123
|
-
export declare function handleWorkflowAutoAssign(client: DobbyClient, args: {
|
|
124
|
-
task_id: string;
|
|
125
|
-
title: string;
|
|
126
|
-
description?: string;
|
|
127
|
-
priority?: string;
|
|
128
|
-
}): Promise<{
|
|
129
|
-
content: {
|
|
130
|
-
type: "text";
|
|
131
|
-
text: string;
|
|
132
|
-
}[];
|
|
133
|
-
isError: boolean;
|
|
134
|
-
} | {
|
|
135
|
-
content: {
|
|
136
|
-
type: "text";
|
|
137
|
-
text: string;
|
|
138
|
-
}[];
|
|
139
|
-
isError?: undefined;
|
|
140
|
-
}>;
|
|
141
|
-
export declare function handleWorkflowAgentWorkload(client: DobbyClient, args: {
|
|
142
|
-
agent_layer?: string;
|
|
143
|
-
}): Promise<{
|
|
144
|
-
content: {
|
|
145
|
-
type: "text";
|
|
146
|
-
text: string;
|
|
147
|
-
}[];
|
|
148
|
-
isError: boolean;
|
|
149
|
-
} | {
|
|
150
|
-
content: {
|
|
151
|
-
type: "text";
|
|
152
|
-
text: string;
|
|
153
|
-
}[];
|
|
154
|
-
isError?: undefined;
|
|
155
|
-
}>;
|
|
156
|
-
export declare function handleWorkflowAssignmentRules(client: DobbyClient, args: {
|
|
157
|
-
active_only?: boolean;
|
|
158
|
-
}): Promise<{
|
|
159
|
-
content: {
|
|
160
|
-
type: "text";
|
|
161
|
-
text: string;
|
|
162
|
-
}[];
|
|
163
|
-
isError: boolean;
|
|
164
|
-
} | {
|
|
165
|
-
content: {
|
|
166
|
-
type: "text";
|
|
167
|
-
text: string;
|
|
168
|
-
}[];
|
|
169
|
-
isError?: undefined;
|
|
170
|
-
}>;
|
|
171
105
|
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/tools/workflow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/tools/workflow.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0GzB,CAAC"}
|