@matrix-ai/sdk 1.1.61 → 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.
- package/dist/v2/client.d.ts +1 -0
- package/dist/v2/client.js +6 -0
- package/dist/v2/gen/types.gen.d.ts +4 -4
- package/package.json +1 -1
package/dist/v2/client.d.ts
CHANGED
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
|
|
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:
|
|
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://
|
|
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://
|
|
1159
|
+
* Agent configuration, see https://y-square-t3.github.io/matrix/agents/
|
|
1160
1160
|
*/
|
|
1161
1161
|
agent?: {
|
|
1162
1162
|
plan?: AgentConfig;
|