@opencode-ai/sdk 1.1.4 → 1.1.6

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/dist/v2/client.js CHANGED
@@ -15,9 +15,11 @@ export function createOpencodeClient(config) {
15
15
  };
16
16
  }
17
17
  if (config?.directory) {
18
+ const isNonASCII = /[^\x00-\x7F]/.test(config.directory);
19
+ const encodedDirectory = isNonASCII ? encodeURIComponent(config.directory) : config.directory;
18
20
  config.headers = {
19
21
  ...config.headers,
20
- "x-opencode-directory": config.directory,
22
+ "x-opencode-directory": encodedDirectory,
21
23
  };
22
24
  }
23
25
  const client = createClient(config);
@@ -1100,6 +1100,10 @@ export type AgentConfig = {
1100
1100
  */
1101
1101
  description?: string;
1102
1102
  mode?: "subagent" | "primary" | "all";
1103
+ /**
1104
+ * Hide this subagent from the @ autocomplete menu (default: false, only applies to mode: subagent)
1105
+ */
1106
+ hidden?: boolean;
1103
1107
  options?: {
1104
1108
  [key: string]: unknown;
1105
1109
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "1.1.4",
4
+ "version": "1.1.6",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {