@miosa/sdk 1.2.16 → 1.2.18
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/README.md +23 -0
- package/dist/index.d.ts +28 -3
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -142,6 +142,29 @@ For platform agents that plan work outside the sandbox and then hand execution
|
|
|
142
142
|
to a runtime inside the sandbox/computer, use the unified device API:
|
|
143
143
|
|
|
144
144
|
```ts
|
|
145
|
+
await miosa.agentRuntimeProfiles.create({
|
|
146
|
+
workspaceId: "clinic-workspace",
|
|
147
|
+
name: "ClinicIQ Claude Code",
|
|
148
|
+
runtime: "claude-code",
|
|
149
|
+
isDefault: true,
|
|
150
|
+
connectors: [
|
|
151
|
+
"anthropic/cliniciq",
|
|
152
|
+
{
|
|
153
|
+
uid: "refero",
|
|
154
|
+
type: "mcp",
|
|
155
|
+
managed: true,
|
|
156
|
+
serverUrl: "https://api.refero.design/mcp",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
env: {
|
|
160
|
+
ANTHROPIC_API_KEY: "miosa-managed:anthropic/cliniciq",
|
|
161
|
+
},
|
|
162
|
+
metadata: {
|
|
163
|
+
model: "claude-opus-4.8",
|
|
164
|
+
whiteLabelClient: "cliniciq",
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
|
|
145
168
|
await miosa.devices.writeFile(sbx.id, {
|
|
146
169
|
path: "/workspace/PLAN.md",
|
|
147
170
|
content: "# Build plan\nUse the customer profile and export /workspace/out.",
|
package/dist/index.d.ts
CHANGED
|
@@ -251,6 +251,7 @@ interface AgentRunCreateParams {
|
|
|
251
251
|
runtimeCommand?: string;
|
|
252
252
|
cwd?: string;
|
|
253
253
|
timeout?: number;
|
|
254
|
+
wait?: boolean;
|
|
254
255
|
env?: Record<string, string>;
|
|
255
256
|
agentRuntimeProfileId?: string;
|
|
256
257
|
agentProfileId?: string;
|
|
@@ -424,6 +425,18 @@ declare class AgentRunGroups {
|
|
|
424
425
|
}
|
|
425
426
|
|
|
426
427
|
type AgentRuntime = "osa" | "codex" | "claude" | "claude-code" | "pi" | "hermes" | "custom";
|
|
428
|
+
type AgentRuntimeConnector = string | {
|
|
429
|
+
uid?: string;
|
|
430
|
+
name?: string;
|
|
431
|
+
type?: "mcp" | "api-key" | "api_key" | "oauth" | "custom" | string;
|
|
432
|
+
provider?: string;
|
|
433
|
+
managed?: boolean;
|
|
434
|
+
server_url?: string;
|
|
435
|
+
serverUrl?: string;
|
|
436
|
+
scopes?: string[];
|
|
437
|
+
metadata?: Record<string, unknown>;
|
|
438
|
+
[key: string]: unknown;
|
|
439
|
+
};
|
|
427
440
|
interface AgentRuntimeProfile {
|
|
428
441
|
id: string;
|
|
429
442
|
tenant_id?: string;
|
|
@@ -438,7 +451,7 @@ interface AgentRuntimeProfile {
|
|
|
438
451
|
applies_to?: Record<string, unknown>;
|
|
439
452
|
appliesTo?: Record<string, unknown>;
|
|
440
453
|
tools?: string[];
|
|
441
|
-
connectors?:
|
|
454
|
+
connectors?: AgentRuntimeConnector[];
|
|
442
455
|
env?: Record<string, string>;
|
|
443
456
|
policy?: Record<string, unknown>;
|
|
444
457
|
metadata?: Record<string, unknown>;
|
|
@@ -460,7 +473,7 @@ interface AgentRuntimeProfileParams {
|
|
|
460
473
|
appliesTo?: Record<string, unknown>;
|
|
461
474
|
applies_to?: Record<string, unknown>;
|
|
462
475
|
tools?: string[];
|
|
463
|
-
connectors?:
|
|
476
|
+
connectors?: AgentRuntimeConnector[];
|
|
464
477
|
env?: Record<string, string>;
|
|
465
478
|
policy?: Record<string, unknown>;
|
|
466
479
|
metadata?: Record<string, unknown>;
|
|
@@ -3913,10 +3926,22 @@ interface DeviceExtendParams {
|
|
|
3913
3926
|
timeoutSec?: number;
|
|
3914
3927
|
timeout_sec?: number;
|
|
3915
3928
|
}
|
|
3929
|
+
type DeviceConnectorBinding = string | {
|
|
3930
|
+
uid?: string;
|
|
3931
|
+
name?: string;
|
|
3932
|
+
type?: "mcp" | "api-key" | "api_key" | "oauth" | "custom" | string;
|
|
3933
|
+
provider?: string;
|
|
3934
|
+
managed?: boolean;
|
|
3935
|
+
server_url?: string;
|
|
3936
|
+
serverUrl?: string;
|
|
3937
|
+
scopes?: string[];
|
|
3938
|
+
metadata?: Record<string, unknown>;
|
|
3939
|
+
[key: string]: unknown;
|
|
3940
|
+
};
|
|
3916
3941
|
interface DeviceBootstrapParams {
|
|
3917
3942
|
runtime: "osa" | "claude-code" | "claude" | "codex" | "hermes" | "pi" | "custom" | string;
|
|
3918
3943
|
cwd?: string;
|
|
3919
|
-
connectors?:
|
|
3944
|
+
connectors?: DeviceConnectorBinding[];
|
|
3920
3945
|
env?: Record<string, string>;
|
|
3921
3946
|
mcp?: Array<{
|
|
3922
3947
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -1045,6 +1045,7 @@ var AgentRuns = class {
|
|
|
1045
1045
|
runtime_command: params.runtimeCommand,
|
|
1046
1046
|
cwd: params.cwd,
|
|
1047
1047
|
timeout: params.timeout,
|
|
1048
|
+
wait: params.wait,
|
|
1048
1049
|
env: params.env,
|
|
1049
1050
|
agent_runtime_profile_id: params.agentRuntimeProfileId,
|
|
1050
1051
|
agent_profile_id: params.agentProfileId,
|