@opengeni/runtime 4.6.0-canary.37062299158001 → 4.6.0

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.
Files changed (67) hide show
  1. package/dist/anthropic-messages.d.ts +3 -13
  2. package/dist/assets/codemode-client.json +1 -1
  3. package/dist/{chunk-LJNCGUMB.js → chunk-A22BKN4P.js} +3 -3
  4. package/dist/chunk-A22BKN4P.js.map +1 -0
  5. package/dist/{chunk-35GWX4PK.js → chunk-D5DPVA2C.js} +335 -936
  6. package/dist/chunk-D5DPVA2C.js.map +1 -0
  7. package/dist/{chunk-LKXCAUGT.js → chunk-GTWKWJ67.js} +100 -505
  8. package/dist/chunk-GTWKWJ67.js.map +1 -0
  9. package/dist/claude-subscription-usage.d.ts +4 -14
  10. package/dist/context-compaction.d.ts +7 -7
  11. package/dist/index.d.ts +0 -2
  12. package/dist/index.js +3 -11
  13. package/dist/interaction-tools.d.ts +1 -1
  14. package/dist/mcp-network.js +1 -1
  15. package/dist/runtime-skills.d.ts +0 -1
  16. package/dist/sandbox/channel-a.d.ts +0 -3
  17. package/dist/sandbox/index.d.ts +1 -1
  18. package/dist/sandbox/index.js +1 -5
  19. package/dist/sandbox/provider-command-session.d.ts +0 -21
  20. package/dist/sandbox/providers/modal-command-control.d.ts +4 -11
  21. package/dist/sandbox/routing/routing-session.d.ts +0 -10
  22. package/dist/sandbox/turn-tool-cancellation.d.ts +0 -4
  23. package/dist/workspace-tool-gateway.js +3 -3
  24. package/package.json +12 -12
  25. package/src/agent-instructions/PROMPT_CHANGELOG.md +1 -23
  26. package/src/agent-instructions/compose.ts +0 -2
  27. package/src/agent-instructions/runtime-mechanics.ts +0 -8
  28. package/src/anthropic-messages.ts +31 -223
  29. package/src/bundled_default_skills/opengeni-client/SKILL.md +7 -9
  30. package/src/bundled_default_skills/opengeni-client/references/agent-recipes.md +1 -1
  31. package/src/bundled_default_skills/opengeni-client/references/api-workflows.md +0 -61
  32. package/src/bundled_default_skills/opengeni-client/references/compatibility-and-troubleshooting.md +0 -86
  33. package/src/bundled_default_skills/opengeni-client/references/data-tools-and-credentials.md +0 -82
  34. package/src/bundled_default_skills/opengeni-client/references/discovery-and-autonomy.md +25 -32
  35. package/src/bundled_default_skills/opengeni-client/references/external-users-and-connect.md +0 -17
  36. package/src/bundled_default_skills/opengeni-client/references/product-shapes-and-ui.md +0 -156
  37. package/src/claude-subscription-usage.ts +9 -55
  38. package/src/context-compaction.ts +9 -16
  39. package/src/index.ts +18 -85
  40. package/src/interaction-tools.ts +3 -113
  41. package/src/lazy-tool-transport.ts +10 -26
  42. package/src/mcp-network.ts +2 -4
  43. package/src/model-provider-client.ts +3 -11
  44. package/src/model-provider-routing.ts +0 -4
  45. package/src/runtime-skills.ts +0 -8
  46. package/src/sandbox/channel-a.ts +0 -3
  47. package/src/sandbox/index.ts +1 -5
  48. package/src/sandbox/provider-command-session.ts +0 -58
  49. package/src/sandbox/provider-errors.ts +9 -43
  50. package/src/sandbox/providers/modal-command-control.ts +83 -394
  51. package/src/sandbox/providers/modal-command-session.ts +4 -26
  52. package/src/sandbox/providers/modal-legacy-command-control.ts +9 -2
  53. package/src/sandbox/providers/modal-materialization-verification.ts +6 -70
  54. package/src/sandbox/routing/routing-session.ts +41 -140
  55. package/src/sandbox/turn-tool-cancellation.ts +42 -159
  56. package/dist/agent-instructions/modules/media.d.ts +0 -3
  57. package/dist/anthropic-request-error.d.ts +0 -10
  58. package/dist/chunk-35GWX4PK.js.map +0 -1
  59. package/dist/chunk-LJNCGUMB.js.map +0 -1
  60. package/dist/chunk-LKXCAUGT.js.map +0 -1
  61. package/dist/sandbox/providers/modal-command-argv.d.ts +0 -4
  62. package/dist/sandbox/providers/modal-command-observation-errors.d.ts +0 -3
  63. package/src/agent-instructions/modules/media.ts +0 -20
  64. package/src/anthropic-request-error.ts +0 -45
  65. package/src/bundled_schedule_skills/opengeni-schedules/SKILL.md +0 -56
  66. package/src/sandbox/providers/modal-command-argv.ts +0 -20
  67. package/src/sandbox/providers/modal-command-observation-errors.ts +0 -65
@@ -1,5 +1,5 @@
1
1
  import { type Model, type ModelRequest, type ModelResponse, type ResponseStreamEvent } from "@openai/agents";
2
- import { type ResolvedModelProvider } from "@opengeni/config";
2
+ import type { ResolvedModelProvider } from "@opengeni/config";
3
3
  type Json = Record<string, any>;
4
4
  type Message = {
5
5
  role: "user" | "assistant" | "system";
@@ -8,20 +8,10 @@ type Message = {
8
8
  export declare class AnthropicProtocolError extends Error {
9
9
  readonly code = "anthropic_protocol_error";
10
10
  }
11
- /** Closed provider rejections carry authored copy, never arbitrary response text. */
12
- export declare class AnthropicProviderRejection extends Error {
13
- readonly code: "anthropic_model_access_suspended" | "anthropic_permission_denied" | "content_policy_violation";
14
- readonly status: number;
15
- readonly request_id?: string | undefined;
16
- readonly suspendedUntil?: string | undefined;
17
- readonly headers: Record<string, string>;
18
- readonly name = "AnthropicProviderRejection";
19
- constructor(code: "anthropic_model_access_suspended" | "anthropic_permission_denied" | "content_policy_violation", status: number, request_id?: string | undefined, suspendedUntil?: string | undefined, headers?: Record<string, string>);
20
- }
21
11
  export declare function anthropicToolName(name: string, namespace?: string): string;
22
12
  /** Request-local projection only. Never mutate canonical conversation items. */
23
13
  export declare function anthropicMessages(input: ModelRequest["input"]): Message[];
24
- export declare function buildAnthropicRequest(request: ModelRequest, model: string, provider: Pick<ResolvedModelProvider, "anthropic"> & Partial<Pick<ResolvedModelProvider, "kind">>, stream: boolean): Json;
14
+ export declare function buildAnthropicRequest(request: ModelRequest, model: string, provider: Pick<ResolvedModelProvider, "anthropic">, stream: boolean): Json;
25
15
  export declare function anthropicResponse(message: Json, requestId?: string, names?: Map<string, {
26
16
  name: string;
27
17
  namespace?: string;
@@ -40,5 +30,5 @@ export declare class AnthropicMessagesModel implements Model {
40
30
  getStreamedResponse(request: ModelRequest): AsyncIterable<ResponseStreamEvent>;
41
31
  }
42
32
  /** UTF-8 and SSE boundaries are independent of network chunks. */
43
- export declare function anthropicSse(body: ReadableStream<Uint8Array>, idleTimeoutMs?: number, signal?: AbortSignal): AsyncGenerator<Json>;
33
+ export declare function anthropicSse(body: ReadableStream<Uint8Array>, idleTimeoutMs?: number): AsyncGenerator<Json>;
44
34
  export {};