@matrix-ai/sdk 1.1.60 → 1.1.62

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.
@@ -4,4 +4,5 @@ import { OpencodeClient } from "./gen/sdk.gen.js";
4
4
  export { type Config as OpencodeClientConfig, OpencodeClient };
5
5
  export declare function createOpencodeClient(config?: Config & {
6
6
  directory?: string;
7
+ experimental_workspaceID?: string;
7
8
  }): OpencodeClient;
package/dist/v2/client.js CHANGED
@@ -22,6 +22,12 @@ export function createOpencodeClient(config) {
22
22
  "x-opencode-directory": encodedDirectory,
23
23
  };
24
24
  }
25
+ if (config?.experimental_workspaceID) {
26
+ config.headers = {
27
+ ...config.headers,
28
+ "x-opencode-workspace": config.experimental_workspaceID,
29
+ };
30
+ }
25
31
  const client = createClient(config);
26
32
  return new OpencodeClient({ client });
27
33
  }
@@ -821,7 +821,7 @@ export type GlobalEvent = {
821
821
  */
822
822
  export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR";
823
823
  /**
824
- * Server configuration for opencode serve and web commands
824
+ * Server configuration for matrix serve and web commands
825
825
  */
826
826
  export type ServerConfig = {
827
827
  /**
@@ -837,7 +837,7 @@ export type ServerConfig = {
837
837
  */
838
838
  mdns?: boolean;
839
839
  /**
840
- * Custom domain name for mDNS service (default: opencode.local)
840
+ * Custom domain name for mDNS service (default: matrix.local)
841
841
  */
842
842
  mdnsDomain?: string;
843
843
  /**
@@ -1082,7 +1082,7 @@ export type Config = {
1082
1082
  logLevel?: LogLevel;
1083
1083
  server?: ServerConfig;
1084
1084
  /**
1085
- * Command configuration, see https://opencode.ai/docs/commands
1085
+ * Command configuration, see https://y-square-t3.github.io/matrix/commands/
1086
1086
  */
1087
1087
  command?: {
1088
1088
  [key: string]: {
@@ -1156,7 +1156,7 @@ export type Config = {
1156
1156
  [key: string]: AgentConfig | undefined;
1157
1157
  };
1158
1158
  /**
1159
- * Agent configuration, see https://opencode.ai/docs/agents
1159
+ * Agent configuration, see https://y-square-t3.github.io/matrix/agents/
1160
1160
  */
1161
1161
  agent?: {
1162
1162
  plan?: AgentConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@matrix-ai/sdk",
4
- "version": "1.1.60",
4
+ "version": "1.1.62",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {