@commandable/integration-data 0.1.3 → 0.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/integrations/__tests__/liveHarness.ts +4 -4
- package/integrations/__tests__/usageParity.ts +1 -1
- package/integrations/airtable/__tests__/get_handlers.test.ts +2 -2
- package/integrations/airtable/__tests__/write_and_admin_handlers.test.ts +2 -2
- package/integrations/google-calendar/__tests__/get_handlers.test.ts +2 -2
- package/integrations/google-calendar/__tests__/write_and_admin_handlers.test.ts +2 -2
- package/integrations/new_integration_prompt.md +1 -1
- package/integrations/notion/__tests__/get_handlers.test.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IntegrationProxy } from '../../../
|
|
2
|
-
import { loadIntegrationTools } from '../../../
|
|
3
|
-
import { createSafeHandlerFromString } from '../../../
|
|
4
|
-
import { buildSandboxUtils } from '../../../
|
|
1
|
+
import { IntegrationProxy } from '../../../core/src/integrations/proxy.js'
|
|
2
|
+
import { loadIntegrationTools } from '../../../core/src/integrations/dataLoader.js'
|
|
3
|
+
import { createSafeHandlerFromString } from '../../../core/src/integrations/sandbox.js'
|
|
4
|
+
import { buildSandboxUtils } from '../../../core/src/integrations/sandboxUtils.js'
|
|
5
5
|
|
|
6
6
|
type ToolDef = {
|
|
7
7
|
name: string
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readdirSync, readFileSync } from 'node:fs'
|
|
2
2
|
import { resolve } from 'node:path'
|
|
3
3
|
import { fileURLToPath } from 'node:url'
|
|
4
|
-
import { loadIntegrationManifest } from '../../../
|
|
4
|
+
import { loadIntegrationManifest } from '../../../core/src/integrations/dataLoader.js'
|
|
5
5
|
|
|
6
6
|
function escapeRegExp(str: string): string {
|
|
7
7
|
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
|
|
2
|
-
import { IntegrationProxy } from '../../../../
|
|
3
|
-
import { loadIntegrationTools } from '../../../../
|
|
2
|
+
import { IntegrationProxy } from '../../../../core/src/integrations/proxy.js'
|
|
3
|
+
import { loadIntegrationTools } from '../../../../core/src/integrations/dataLoader.js'
|
|
4
4
|
|
|
5
5
|
// LIVE Airtable integration tests using credentials
|
|
6
6
|
// Required env vars:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { beforeAll, describe, expect, it } from 'vitest'
|
|
2
|
-
import { IntegrationProxy } from '../../../../
|
|
3
|
-
import { loadIntegrationTools } from '../../../../
|
|
2
|
+
import { IntegrationProxy } from '../../../../core/src/integrations/proxy.js'
|
|
3
|
+
import { loadIntegrationTools } from '../../../../core/src/integrations/dataLoader.js'
|
|
4
4
|
|
|
5
5
|
// LIVE Airtable write tests using credentials
|
|
6
6
|
// Required env vars:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { beforeAll, describe, expect, it } from 'vitest'
|
|
2
|
-
import { IntegrationProxy } from '../../../../
|
|
3
|
-
import { loadIntegrationTools } from '../../../../
|
|
2
|
+
import { IntegrationProxy } from '../../../../core/src/integrations/proxy.js'
|
|
3
|
+
import { loadIntegrationTools } from '../../../../core/src/integrations/dataLoader.js'
|
|
4
4
|
|
|
5
5
|
// LIVE Google Calendar read tests using credentials
|
|
6
6
|
// Required env vars:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { beforeAll, describe, expect, it } from 'vitest'
|
|
2
|
-
import { IntegrationProxy } from '../../../../
|
|
3
|
-
import { loadIntegrationTools } from '../../../../
|
|
2
|
+
import { IntegrationProxy } from '../../../../core/src/integrations/proxy.js'
|
|
3
|
+
import { loadIntegrationTools } from '../../../../core/src/integrations/dataLoader.js'
|
|
4
4
|
|
|
5
5
|
// LIVE Google Calendar write/admin tests using credentials
|
|
6
6
|
// Required env vars:
|
|
@@ -4,7 +4,7 @@ Write a new integration-data folder for `<INTEGRATION_NAME>`.
|
|
|
4
4
|
|
|
5
5
|
## Required structure
|
|
6
6
|
|
|
7
|
-
Create `commandable-mcp/packages/
|
|
7
|
+
Create `commandable-mcp/packages/integration-data/integrations/<name>/` containing:
|
|
8
8
|
|
|
9
9
|
- `manifest.json`: flat `tools[]`; each tool has `name`, `description`, `inputSchema` (relative path), `handler` (relative path), `scope` (`read` | `write` | optionally `admin`). If the integration has genuinely independent workflow areas, add a top-level `toolsets` map and a `toolset` field on each tool (see **Toolsets** section below).
|
|
10
10
|
- `schemas/*.json`: JSON Schema for each tool input. Prefer `additionalProperties: false` for strict contracts; use `true` only for pass-through bodies (common in Google APIs). Reuse `empty.json` for no-arg tools.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { beforeAll, describe, expect, it } from 'vitest'
|
|
2
|
-
import { IntegrationProxy } from '../../../../
|
|
3
|
-
import { loadIntegrationTools } from '../../../../
|
|
2
|
+
import { IntegrationProxy } from '../../../../core/src/integrations/proxy.js'
|
|
3
|
+
import { loadIntegrationTools } from '../../../../core/src/integrations/dataLoader.js'
|
|
4
4
|
|
|
5
5
|
// LIVE Notion integration tests using credentials
|
|
6
6
|
// Required env vars:
|
package/package.json
CHANGED