@miosa/sdk 1.2.17 → 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 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
@@ -425,6 +425,18 @@ declare class AgentRunGroups {
425
425
  }
426
426
 
427
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
+ };
428
440
  interface AgentRuntimeProfile {
429
441
  id: string;
430
442
  tenant_id?: string;
@@ -439,7 +451,7 @@ interface AgentRuntimeProfile {
439
451
  applies_to?: Record<string, unknown>;
440
452
  appliesTo?: Record<string, unknown>;
441
453
  tools?: string[];
442
- connectors?: string[];
454
+ connectors?: AgentRuntimeConnector[];
443
455
  env?: Record<string, string>;
444
456
  policy?: Record<string, unknown>;
445
457
  metadata?: Record<string, unknown>;
@@ -461,7 +473,7 @@ interface AgentRuntimeProfileParams {
461
473
  appliesTo?: Record<string, unknown>;
462
474
  applies_to?: Record<string, unknown>;
463
475
  tools?: string[];
464
- connectors?: string[];
476
+ connectors?: AgentRuntimeConnector[];
465
477
  env?: Record<string, string>;
466
478
  policy?: Record<string, unknown>;
467
479
  metadata?: Record<string, unknown>;
@@ -3914,10 +3926,22 @@ interface DeviceExtendParams {
3914
3926
  timeoutSec?: number;
3915
3927
  timeout_sec?: number;
3916
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
+ };
3917
3941
  interface DeviceBootstrapParams {
3918
3942
  runtime: "osa" | "claude-code" | "claude" | "codex" | "hermes" | "pi" | "custom" | string;
3919
3943
  cwd?: string;
3920
- connectors?: string[];
3944
+ connectors?: DeviceConnectorBinding[];
3921
3945
  env?: Record<string, string>;
3922
3946
  mcp?: Array<{
3923
3947
  name: string;