clawdi 0.13.2 → 0.13.3

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.
@@ -79,12 +79,38 @@ When the user's request is **conceptual** ("how do I usually do X"), prefer `mem
79
79
 
80
80
  ## Connectors
81
81
 
82
- Connected service tools (Gmail, GitHub, Notion, etc.) are dynamically registered from the user's Clawdi Cloud dashboard. They appear as individual tools like `gmail_fetch_emails`, `github_list_issues`, etc.
83
-
84
- - These tools are already authenticated — no OAuth needed at runtime
85
- - If a tool call fails with "No connected account", tell the user to connect the service in the Clawdi Cloud dashboard
86
- - File downloads from connectors return signed URLs download them with `curl` or `fetch` before processing
87
- - Confirm with the user before side-effecting operations (sending email, creating issues, etc.)
82
+ Use the Composio Tool Router meta-tools returned by `tools/list` on the `clawdi` MCP server.
83
+ Treat their live names and schemas as authoritative; never assume a fixed meta-tool set.
84
+
85
+ 1. Start each external-app workflow with `COMPOSIO_SEARCH_TOOLS`. Follow its exposed
86
+ `queries` and `session` schema, reuse the returned session ID throughout that workflow,
87
+ and use only the exact toolkit and tool slugs it returns. If a required schema is absent
88
+ or incomplete, call `COMPOSIO_GET_TOOL_SCHEMAS`; never invent fields or inputs.
89
+ 2. Before a side effect, require a complete target identity and all schema-required inputs.
90
+ Explicit intent authorizes the exact requested action and target, but never authorizes
91
+ guessing a missing recipient, account, resource, or other target. Ask only for what is
92
+ missing, and do not request redundant confirmation once the exact action is authorized.
93
+ 3. When search reports no active connection, call `COMPOSIO_MANAGE_CONNECTIONS` with its
94
+ exposed schema and interpret only the fields it returns. Continue on `active`. On
95
+ `initiated`, present its non-empty `redirect_url` as a clickable authentication link with
96
+ a concise explanation that authorization is pending; the link URL must be exactly that
97
+ value. If `initiated` has no non-empty `redirect_url`, report that authorization cannot
98
+ continue and stop. On `failed`, report the returned error and stop. Never construct a
99
+ substitute link, ask for OAuth credentials, API keys, or tokens, or suggest an
100
+ out-of-band fallback.
101
+ 4. Use a wait or status operation only when `tools/list` exposes one. Follow its actual schema
102
+ and status values without inventing polling arguments. Continue only when it reports an
103
+ active connection; keep waiting only for a non-terminal status its schema defines, and
104
+ report any terminal failure. If none is exposed, stop until the user reports completing
105
+ authorization, then re-run search to verify the active connection before continuing.
106
+ 5. Execute exact returned slugs through `COMPOSIO_MULTI_EXECUTE_TOOL` with schema-compliant
107
+ arguments. Batch only independent calls. Keep ordinary results inline. Set
108
+ `sync_response_to_workbench` only when a result may be large or needs later remote
109
+ processing; use `COMPOSIO_REMOTE_WORKBENCH` / `COMPOSIO_REMOTE_BASH_TOOL` only for large
110
+ responses saved remotely or remote artifacts.
111
+ 6. Preserve dependencies and returned semantics. Follow signed-file metadata, pagination
112
+ fields, and termination signals exactly as exposed. Select an account only when the schema
113
+ supports it, and use additional or future meta-tools only according to their live schemas.
88
114
 
89
115
  ## Vault CLI
90
116
 
@@ -18,12 +18,35 @@ session. Do not use a generic web fetcher for Clawdi share URLs.
18
18
 
19
19
  ## Connectors
20
20
 
21
- Connected-service tools are registered dynamically from the user's Clawdi Cloud account.
22
- They can include Gmail, GitHub, Notion, Drive, Calendar, and other services.
23
-
24
- - Treat the tools as already authenticated for this runtime.
25
- - If a call reports that no account is connected, ask the user to connect that service in
26
- the Clawdi Cloud dashboard.
27
- - Download files returned as signed URLs before processing them.
28
- - Confirm with the user before side-effecting actions such as sending mail or creating an
29
- issue.
21
+ Use the Composio Tool Router meta-tools returned by `tools/list` on the `clawdi` MCP server.
22
+ Treat their live names and schemas as authoritative; never assume a fixed meta-tool set.
23
+
24
+ 1. Start each external-app workflow with `COMPOSIO_SEARCH_TOOLS`. Follow its exposed
25
+ `queries` and `session` schema, reuse the returned session ID throughout that workflow,
26
+ and use only the exact toolkit and tool slugs it returns. If a required schema is absent
27
+ or incomplete, call `COMPOSIO_GET_TOOL_SCHEMAS`; never invent fields or inputs.
28
+ 2. Before a side effect, require a complete target identity and all schema-required inputs.
29
+ Explicit intent authorizes the exact requested action and target, but never authorizes
30
+ guessing a missing recipient, account, resource, or other target. Ask only for what is
31
+ missing, and do not request redundant confirmation once the exact action is authorized.
32
+ 3. When search reports no active connection, call `COMPOSIO_MANAGE_CONNECTIONS` with its
33
+ exposed schema and interpret only the fields it returns. Continue on `active`. On
34
+ `initiated`, present its non-empty `redirect_url` as a clickable authentication link with
35
+ a concise explanation that authorization is pending; the link URL must be exactly that
36
+ value. If `initiated` has no non-empty `redirect_url`, report that authorization cannot
37
+ continue and stop. On `failed`, report the returned error and stop. Never construct a
38
+ substitute link, ask for OAuth credentials, API keys, or tokens, or suggest an
39
+ out-of-band fallback.
40
+ 4. Use a wait or status operation only when `tools/list` exposes one. Follow its actual schema
41
+ and status values without inventing polling arguments. Continue only when it reports an
42
+ active connection; keep waiting only for a non-terminal status its schema defines, and
43
+ report any terminal failure. If none is exposed, stop until the user reports completing
44
+ authorization, then re-run search to verify the active connection before continuing.
45
+ 5. Execute exact returned slugs through `COMPOSIO_MULTI_EXECUTE_TOOL` with schema-compliant
46
+ arguments. Batch only independent calls. Keep ordinary results inline. Set
47
+ `sync_response_to_workbench` only when a result may be large or needs later remote
48
+ processing; use `COMPOSIO_REMOTE_WORKBENCH` / `COMPOSIO_REMOTE_BASH_TOOL` only for large
49
+ responses saved remotely or remote artifacts.
50
+ 6. Preserve dependencies and returned semantics. Follow signed-file metadata, pagination
51
+ fields, and termination signals exactly as exposed. Select an account only when the schema
52
+ supports it, and use additional or future meta-tools only according to their live schemas.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawdi",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "iCloud for AI Agents — cross-agent sessions, skills, memory, and vault.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "scripts": {
25
25
  "dev": "bun run src/index.ts",
26
- "build": "rm -rf dist && bun build src/index.ts --outdir dist --target node --minify --define 'process.env.CLAWDI_DEFAULT_API_URL=\"https://cloud-api.clawdi.ai\"' && cp -r skills dist/skills",
26
+ "build": "rm -rf dist && bun build src/index.ts --outdir dist --target node --minify --define 'process.env.CLAWDI_DEFAULT_API_URL=\"https://cloud-api.clawdi.ai\"' --define 'process.env.CLAWDI_DEFAULT_DEPLOY_API_URL=\"https://api.clawdi.ai\"' && cp -r skills dist/skills",
27
27
  "build:binary": "bun run scripts/build-binary.mjs",
28
28
  "package:binary-release": "bun run scripts/package-binary-release.mjs",
29
29
  "build:dev": "rm -rf dist && bun build src/index.ts --outdir dist --target node && cp -r skills dist/skills",