@datalayer/agent-runtimes 1.3.10 → 1.3.13

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 (107) hide show
  1. package/README.md +1 -2
  2. package/lib/AgentNode.js +3 -3
  3. package/lib/api/runtimes/environments.d.ts +22 -1
  4. package/lib/api/runtimes/environments.js +31 -0
  5. package/lib/api/runtimes/healthz.js +4 -2
  6. package/lib/api/spacer/healthz.js +4 -2
  7. package/lib/chat/ChatFloating.d.ts +8 -1
  8. package/lib/chat/ChatFloating.js +5 -2
  9. package/lib/chat/base/ChatBase.js +39 -25
  10. package/lib/chat/base/modelChoice.d.ts +62 -0
  11. package/lib/chat/base/modelChoice.js +56 -0
  12. package/lib/chat/display/ButtonGlow.d.ts +9 -0
  13. package/lib/chat/display/ButtonGlow.js +60 -0
  14. package/lib/chat/display/EmptyState.js +4 -1
  15. package/lib/chat/header/ChatHeaderBase.js +4 -56
  16. package/lib/chat/header/ChatViewModeToggle.d.ts +29 -0
  17. package/lib/chat/header/ChatViewModeToggle.js +55 -0
  18. package/lib/chat/index.d.ts +1 -0
  19. package/lib/chat/index.js +1 -0
  20. package/lib/chat/messages/ChatMessageList.js +13 -5
  21. package/lib/chat/messages/FormSubmissionMessage.d.ts +17 -0
  22. package/lib/chat/messages/FormSubmissionMessage.js +49 -0
  23. package/lib/chat/messages/formSubmission.d.ts +41 -0
  24. package/lib/chat/messages/formSubmission.js +90 -0
  25. package/lib/chat/prompt/menus/ModelSelector.js +11 -4
  26. package/lib/chat/styles/streamdownStyles.js +40 -0
  27. package/lib/client/mixins/RuntimesMixin.js +1 -1
  28. package/lib/client/mixins/SpacerMixin.js +3 -3
  29. package/lib/components/a2ui/A2uiMarkdownProvider.d.ts +11 -0
  30. package/lib/components/a2ui/A2uiMarkdownProvider.js +13 -0
  31. package/lib/components/a2ui/index.d.ts +1 -0
  32. package/lib/components/a2ui/index.js +1 -0
  33. package/lib/components/code-sandboxes/CodeSandboxLauncher.d.ts +8 -0
  34. package/lib/components/code-sandboxes/CodeSandboxLauncher.js +54 -5
  35. package/lib/components/code-sandboxes/codeSandboxEnvironments.d.ts +12 -1
  36. package/lib/components/code-sandboxes/codeSandboxEnvironments.js +38 -1
  37. package/lib/components/icons/ArtifactIcon.js +2 -1
  38. package/lib/examples/A2UiAgentExample.js +36 -223
  39. package/lib/examples/A2UiJupyterOutputExample.js +11 -1
  40. package/lib/examples/A2UiViewerExample.d.ts +9 -2
  41. package/lib/examples/A2UiViewerExample.js +33 -3
  42. package/lib/examples/DecksAgent.d.ts +1 -1
  43. package/lib/examples/DecksAgent.js +1 -1
  44. package/lib/examples/main.js +37 -35
  45. package/lib/examples/utils/a2uiMarkdownProvider.d.ts +1 -7
  46. package/lib/examples/utils/a2uiMarkdownProvider.js +6 -8
  47. package/lib/loop/core/index.d.ts +44 -4
  48. package/lib/loop/core/index.js +29 -2
  49. package/lib/loop/embed/LoopEmbed.js +7 -0
  50. package/lib/loop/index.d.ts +1 -1
  51. package/lib/loop/index.js +4 -1
  52. package/lib/loop/plugins/a2ui-surface/InlineSurface.d.ts +22 -0
  53. package/lib/loop/plugins/a2ui-surface/InlineSurface.js +64 -0
  54. package/lib/loop/plugins/a2ui-surface/SurfaceToolResult.d.ts +38 -0
  55. package/lib/loop/plugins/a2ui-surface/SurfaceToolResult.js +64 -0
  56. package/lib/loop/plugins/a2ui-surface/index.d.ts +34 -0
  57. package/lib/loop/plugins/a2ui-surface/index.js +91 -0
  58. package/lib/loop/plugins/a2ui-surface/toolResult.d.ts +52 -0
  59. package/lib/loop/plugins/a2ui-surface/toolResult.js +106 -0
  60. package/lib/loop/plugins/chat/ChatView.js +95 -15
  61. package/lib/loop/plugins/chat/index.d.ts +14 -0
  62. package/lib/loop/plugins/chat/index.js +1 -0
  63. package/lib/loop/plugins/document/index.js +4 -0
  64. package/lib/loop/plugins/notebook/index.js +4 -0
  65. package/lib/loop/plugins/page-layout/index.d.ts +36 -0
  66. package/lib/loop/plugins/page-layout/index.js +87 -7
  67. package/lib/loop/plugins/shell/useEditorPreviews.js +7 -0
  68. package/lib/loop/presets.d.ts +19 -0
  69. package/lib/loop/presets.js +9 -1
  70. package/lib/models/Deck.d.ts +14 -0
  71. package/lib/models/Deck.js +5 -0
  72. package/lib/models/Environment.d.ts +117 -0
  73. package/lib/models/ItemType.d.ts +1 -1
  74. package/lib/models/Runtime.d.ts +6 -0
  75. package/lib/models/SpaceItem.d.ts +2 -1
  76. package/lib/models/environments.generated.d.ts +35 -1
  77. package/lib/models/environments.generated.js +1 -1
  78. package/lib/models/index.d.ts +1 -0
  79. package/lib/models/index.js +1 -0
  80. package/lib/protocols/BrowserAgentAdapter.d.ts +9 -1
  81. package/lib/protocols/BrowserAgentAdapter.js +11 -4
  82. package/lib/runtimes/actions.d.ts +5 -0
  83. package/lib/runtimes/actions.js +19 -0
  84. package/lib/specs/agents/agents.d.ts +3 -1
  85. package/lib/specs/agents/agents.js +426 -130
  86. package/lib/specs/frontendTools.d.ts +1 -0
  87. package/lib/specs/frontendTools.js +31 -0
  88. package/lib/specs/mcpServers.js +13 -13
  89. package/lib/specs/models.js +7 -7
  90. package/lib/specs/outputs.js +9 -0
  91. package/lib/specs/skills.js +7 -7
  92. package/lib/specs/teams/teams.js +1 -1
  93. package/lib/tools/adapters/copilotkit/CopilotKitToolAdapter.js +1 -1
  94. package/lib/types/outputs.d.ts +2 -0
  95. package/package.json +10 -4
  96. package/patches/@primer+react+37.31.0.patch +390 -0
  97. package/patches/eslint-plugin-react+7.37.5.patch +65 -0
  98. package/scripts/apply-patches.sh +15 -1
  99. package/scripts/codegen/compose.py +4 -4
  100. package/scripts/codegen/generate_agents.py +1 -2
  101. package/scripts/codegen/generate_frontend_tools.py +1 -1
  102. package/scripts/codegen/generate_mcp_servers.py +2 -2
  103. package/scripts/codegen/generate_models.py +33 -8
  104. package/scripts/codegen/generate_outputs.py +2 -0
  105. package/scripts/codegen/generate_skills.py +2 -2
  106. package/scripts/codegen/__pycache__/compose.cpython-313.pyc +0 -0
  107. package/scripts/codegen/__pycache__/versioning.cpython-313.pyc +0 -0
@@ -170,6 +170,12 @@ export interface IDatalayerEnvironment {
170
170
  * from its public page expects to find it.
171
171
  */
172
172
  fromLibrary?: boolean;
173
+ /**
174
+ * How a reader is shown an entry whose launch name is not its name: a
175
+ * Library entry is launched by its environment's uid, and shown as the
176
+ * name its owner gave it, `steps-drill`, rather than that uid (E2-19).
177
+ */
178
+ label?: string;
173
179
  }
174
180
  /**
175
181
  * A refusal, as every registry route answers one (section 10): a code, a
@@ -358,6 +364,27 @@ export interface IEnvironmentConformanceReport {
358
364
  passed: boolean;
359
365
  checks: IEnvironmentConformanceCheck[];
360
366
  }
367
+ /** One step of a build as its workflow ran it (E2-19). */
368
+ export interface IEnvironmentBuildStep {
369
+ name: string;
370
+ status: 'running' | 'succeeded' | 'failed' | 'skipped';
371
+ startedAt?: string;
372
+ finishedAt?: string;
373
+ /** For a failure: its section 10 code. */
374
+ code?: string;
375
+ message?: string;
376
+ /**
377
+ * What the step found, for a page to list rather than leave in the log:
378
+ * `{kind: 'egress_refused', subject: 'github.com'}` for a host the build
379
+ * pool's egress proxy refused.
380
+ */
381
+ findings?: IEnvironmentBuildFinding[];
382
+ }
383
+ /** One finding of a build's step (E2-19): what it found, and what about. */
384
+ export interface IEnvironmentBuildFinding {
385
+ kind: string;
386
+ subject: string;
387
+ }
361
388
  export interface IEnvironmentBuildRecord {
362
389
  uid: string;
363
390
  environmentUid: string;
@@ -367,6 +394,13 @@ export interface IEnvironmentBuildRecord {
367
394
  region: string;
368
395
  /** Counted from 1; a retry is the next attempt. */
369
396
  attempt: number;
397
+ /**
398
+ * What this build is for: `build`, or `resolve` — a build that stops once
399
+ * the version has its lock (PLAN_ENVS.md E1-26). Absent from a Runtimes
400
+ * before that, and from every build recorded before the term existed, each
401
+ * of which is a build.
402
+ */
403
+ kind?: string;
370
404
  /** The request's key, suffixed with the variant and region. */
371
405
  idempotencyKey: string;
372
406
  /** `queued` when created; see `TERMINAL_ENVIRONMENT_BUILD_STATUSES`. */
@@ -379,6 +413,28 @@ export interface IEnvironmentBuildRecord {
379
413
  * report with `passed: false` names the checks that failed and why.
380
414
  */
381
415
  conformanceReport?: IEnvironmentConformanceReport | Record<string, never>;
416
+ /**
417
+ * Whether the retry route takes this build: cancelled, or failed under a
418
+ * code another attempt can pass (section 10). Said by Runtimes with the
419
+ * build, so a page offers Retry only where it would be taken (E2-19).
420
+ * Absent from a Runtimes before 1.0.36.
421
+ */
422
+ retryable?: boolean;
423
+ /**
424
+ * The build's steps as its workflow ran them (E2-19), each kept by its
425
+ * name: `resolve`, `build`, `attest`, `smoke_test`… Absent from a Runtimes
426
+ * before 1.0.37 and from a build nothing reported for.
427
+ */
428
+ steps?: IEnvironmentBuildStep[];
429
+ /**
430
+ * What the build spent (E2-19): its minutes by the daily quota's own rule —
431
+ * from its claim to its end, or to now while it runs — and those minutes at
432
+ * its variant's rate, in credits. `metered` is false where the provider
433
+ * bills the owner's own account (D-8). Absent from a Runtimes before them.
434
+ */
435
+ buildMinutes?: number;
436
+ credits?: number;
437
+ metered?: boolean;
382
438
  cacheHit: boolean;
383
439
  correlationId: string;
384
440
  requestedBy: string;
@@ -481,6 +537,13 @@ export interface IEnvironmentPublicationRecord {
481
537
  publishedAt: string;
482
538
  updatedAt: string;
483
539
  snapshot: IEnvironmentPublicationSnapshot;
540
+ /**
541
+ * What a second of the snapshot's size class costs, priced by Runtimes when
542
+ * the publication is read (E2-15, E2-19): what a launch of it reserves by,
543
+ * since a stranger has no listing entry of it to read a rate from. Absent
544
+ * from a Runtimes before 1.0.35, and `null` for a class nothing prices.
545
+ */
546
+ burningRate?: number | null;
484
547
  /** What a conditional write names in `If-Match`. */
485
548
  etag: string;
486
549
  }
@@ -640,3 +703,57 @@ export interface IEnvironmentBuildLogPage {
640
703
  complete: boolean;
641
704
  }
642
705
  export default IEnvironment;
706
+ /** Section 13's preview limits, per owner. */
707
+ export interface IEnvironmentQuotaLimits {
708
+ concurrentBuilds: number;
709
+ buildMinutesPerDay: number;
710
+ retainedVersions: number;
711
+ storedGib: number;
712
+ }
713
+ /** What an owner stores, and how it was measured. */
714
+ export interface IEnvironmentStoredHoldings {
715
+ gib: number;
716
+ bytes: number;
717
+ source: string;
718
+ meteredArtifacts: number;
719
+ unmeteredArtifacts: number;
720
+ }
721
+ /** What an owner holds against each limit right now. */
722
+ export interface IEnvironmentQuotaHoldings {
723
+ openBuilds: number;
724
+ buildMinutesToday: number;
725
+ retainedVersions: number;
726
+ storage: IEnvironmentStoredHoldings;
727
+ }
728
+ /**
729
+ * An owner's build quotas and holdings, `GET /environment-quotas`: the numbers
730
+ * a `DL_ENV_QUOTA_EXCEEDED` refusal quotes, read before one (E2-19).
731
+ */
732
+ export interface IEnvironmentQuotas {
733
+ ownerType: 'user' | 'organization';
734
+ ownerUid: string;
735
+ limits: IEnvironmentQuotaLimits;
736
+ holdings: IEnvironmentQuotaHoldings;
737
+ }
738
+ /**
739
+ * One sandbox running a version. The caller's own carries its runtime uid,
740
+ * its digest and why it waits, if it does — the scheduler's own words, such
741
+ * as `Unschedulable: 0/6 nodes are available: 4 Insufficient cpu.`; anybody
742
+ * else's only its phase and start, so a page counts it without naming it.
743
+ */
744
+ export interface IEnvironmentVersionSandbox {
745
+ /** `Pending` or `Running`: Kubernetes' phase of the sandbox's pod. */
746
+ phase: string;
747
+ startedAt: string;
748
+ yours: boolean;
749
+ runtimeUid?: string;
750
+ digest?: string;
751
+ waiting?: string;
752
+ /** Credits a second, for the caller's own: what it burns while it runs. */
753
+ burningRate?: number;
754
+ }
755
+ /** `GET /environment-versions/{uid}/sandboxes`. */
756
+ export interface IEnvironmentVersionSandboxes {
757
+ versionUid: string;
758
+ sandboxes: IEnvironmentVersionSandbox[];
759
+ }
@@ -1,2 +1,2 @@
1
- export type IItemType = 'assignment' | 'authoring' | 'cell' | 'content' | 'credits' | 'dataset' | 'datasource' | 'document' | 'documentation' | 'environment' | 'exercise' | 'growth' | 'home' | 'invite' | 'lesson' | 'library' | 'mail' | 'management' | 'notebook' | 'onboarding' | 'organization' | 'page' | 'runtime' | 'runtime-snapshot' | 'settings' | 'share' | 'space' | 'storage' | 'success' | 'support' | 'tag' | 'team' | 'usage' | 'user' | 'undefined';
1
+ export type IItemType = 'assignment' | 'authoring' | 'cell' | 'content' | 'credits' | 'dataset' | 'datasource' | 'deck' | 'document' | 'documentation' | 'environment' | 'exercise' | 'growth' | 'home' | 'invite' | 'lesson' | 'library' | 'mail' | 'management' | 'notebook' | 'onboarding' | 'organization' | 'page' | 'runtime' | 'runtime-snapshot' | 'settings' | 'share' | 'space' | 'storage' | 'success' | 'support' | 'tag' | 'team' | 'usage' | 'user' | 'undefined';
2
2
  export default IItemType;
@@ -97,6 +97,12 @@ export interface IRuntimeRecord {
97
97
  * Runtime credits reservation expiration timestamp
98
98
  */
99
99
  expired_at?: string;
100
+ /**
101
+ * Why the runtime's pod does not run yet, in Kubernetes' own words — the
102
+ * scheduler's `Unschedulable: 0/6 nodes are available: 4 Insufficient
103
+ * cpu.`, or an image that cannot be pulled — or empty once it runs.
104
+ */
105
+ waiting?: string;
100
106
  }
101
107
  /**
102
108
  * Runtime description (UI layer).
@@ -1,9 +1,10 @@
1
1
  import { INotebook } from './Notebook';
2
2
  import { IDocument } from './Document';
3
+ import { IDeck } from './Deck';
3
4
  import { ICell } from './Cell';
4
5
  import { IEnvironment } from './Environment';
5
6
  import { ILesson } from './Lesson';
6
7
  import { IExercise } from './Exercise';
7
8
  import { IAssignment } from './Assignment';
8
- export type ISpaceItem = INotebook | ICell | IEnvironment | ILesson | IExercise | IAssignment | IDocument;
9
+ export type ISpaceItem = INotebook | ICell | IEnvironment | ILesson | IExercise | IAssignment | IDocument | IDeck;
9
10
  export default ISpaceItem;
@@ -1,7 +1,7 @@
1
1
  /** The `$id` of the JSON Schema these types are generated from. */
2
2
  export declare const ENVIRONMENT_SCHEMA_ID = "https://datalayer.io/schemas/environments/v1alpha1/environment.json";
3
3
  /** The sha256 of the schema text these types are generated from. */
4
- export declare const ENVIRONMENT_SCHEMA_SHA256 = "76eb8c80d1e27f7c6519946a6f7022b53a717ff2645d993b34aaa54dea658201";
4
+ export declare const ENVIRONMENT_SCHEMA_SHA256 = "3aa1a84206afd2d5d04d3a2eab28abca1d60e1a6a6ab8c14a94ace62b39e6015";
5
5
  /** The `apiVersion` an Environment document carries. */
6
6
  export declare const ENVIRONMENT_API_VERSION = "environments.datalayer.io/v1alpha1";
7
7
  /** The `kind` an Environment document carries. */
@@ -25,6 +25,9 @@ export interface BuildSecret {
25
25
  name: string;
26
26
  }
27
27
  export interface BuildSpec {
28
+ dependencyFile?: DependencyFileSpec | null;
29
+ dockerfile?: DockerfileSpec | null;
30
+ image?: ImageSourceSpec | null;
28
31
  /** Default: `"packages"`. */
29
32
  source?: 'packages' | 'dependencyFile' | 'dockerfile' | 'image';
30
33
  }
@@ -35,12 +38,36 @@ export interface Compatibility {
35
38
  regions?: string[];
36
39
  variants?: VariantSet;
37
40
  }
41
+ /** One immutable file the Environment bakes from an external source. */
42
+ export interface ContentsBuildEntry {
43
+ path: string;
44
+ /** Pattern: `^[0-9a-f]{64}$`. */
45
+ sha256: string;
46
+ /** Minimum: 0. */
47
+ sizeBytes?: number | null;
48
+ source: string;
49
+ }
50
+ /** A `requirements.txt`, a `pyproject.toml` with its `uv.lock`, or a conda `environment.yml` (E3-01, E3-02). */
51
+ export interface DependencyFileSpec {
52
+ /** Default: `""`. */
53
+ content?: string;
54
+ /** Default: `""`. */
55
+ lockContent?: string;
56
+ /** Default: `"requirements"`. */
57
+ sourceFormat?: 'requirements' | 'pyproject' | 'conda';
58
+ }
59
+ /** The Dockerfile a `dockerfile`-sourced version builds from (E3-03). */
60
+ export interface DockerfileSpec {
61
+ /** Default: `""`. */
62
+ content?: string;
63
+ }
38
64
  export interface EnvironmentSpec {
39
65
  base: Base;
40
66
  build?: BuildSpec;
41
67
  buildSecrets?: BuildSecret[];
42
68
  commands?: Commands;
43
69
  compatibility?: Compatibility;
70
+ contentsBuild?: ContentsBuildEntry[];
44
71
  /** Default: `"sandbox-contract/v1"`. */
45
72
  contract?: string;
46
73
  env?: Record<string, string>;
@@ -58,6 +85,13 @@ export interface FileEntry {
58
85
  /** Minimum: 0. */
59
86
  sizeBytes?: number | null;
60
87
  }
88
+ /** An existing OCI image, imported as the build's base (E3-04). */
89
+ export interface ImageSourceSpec {
90
+ /** Pattern: `^dlsec_[0-9A-Za-z]+$`. */
91
+ credentialSecretId?: string | null;
92
+ /** Default: `""`. */
93
+ reference?: string;
94
+ }
61
95
  export interface Language {
62
96
  name?: 'python';
63
97
  /** Pattern: `^3\.\d+$`. */
@@ -6,7 +6,7 @@
6
6
  /** The `$id` of the JSON Schema these types are generated from. */
7
7
  export const ENVIRONMENT_SCHEMA_ID = 'https://datalayer.io/schemas/environments/v1alpha1/environment.json';
8
8
  /** The sha256 of the schema text these types are generated from. */
9
- export const ENVIRONMENT_SCHEMA_SHA256 = '76eb8c80d1e27f7c6519946a6f7022b53a717ff2645d993b34aaa54dea658201';
9
+ export const ENVIRONMENT_SCHEMA_SHA256 = '3aa1a84206afd2d5d04d3a2eab28abca1d60e1a6a6ab8c14a94ace62b39e6015';
10
10
  /** The `apiVersion` an Environment document carries. */
11
11
  export const ENVIRONMENT_API_VERSION = 'environments.datalayer.io/v1alpha1';
12
12
  /** The `kind` an Environment document carries. */
@@ -6,6 +6,7 @@ export * from './CodeSandboxSnapshot';
6
6
  export * from './CodeSandboxSnapshotDTO';
7
7
  export * from './Content';
8
8
  export * from './Course';
9
+ export * from './Deck';
9
10
  export * from './Document';
10
11
  export * from './Environment';
11
12
  export * from './EnvironmentDTO';
@@ -11,6 +11,7 @@ export * from './CodeSandboxSnapshot';
11
11
  export * from './CodeSandboxSnapshotDTO';
12
12
  export * from './Content';
13
13
  export * from './Course';
14
+ export * from './Deck';
14
15
  export * from './Document';
15
16
  export * from './Environment';
16
17
  export * from './EnvironmentDTO';
@@ -102,7 +102,14 @@ export declare class BrowserAgentAdapter extends BaseProtocolAdapter {
102
102
  * it and a host should not have to know which adapter it is holding.
103
103
  */
104
104
  sendToolResult(): Promise<void>;
105
- /** The model this agent asks, resolved once per request. */
105
+ /**
106
+ * The model this agent asks, resolved once per request.
107
+ *
108
+ * The chat's model menu sends its choice with each message, as it does to
109
+ * a server-side harness; here it names the model the inference service is
110
+ * asked for, over the one the agent was built with. A ready-made
111
+ * `languageModel` is the host's own choice and is not swapped out.
112
+ */
106
113
  private resolveModel;
107
114
  /**
108
115
  * Run one turn of the loop and report it as it happens.
@@ -113,5 +120,6 @@ export declare class BrowserAgentAdapter extends BaseProtocolAdapter {
113
120
  */
114
121
  sendMessage(message: ChatMessage, options?: {
115
122
  messages?: ChatMessage[];
123
+ model?: string;
116
124
  }): Promise<void>;
117
125
  }
@@ -122,8 +122,15 @@ export class BrowserAgentAdapter extends BaseProtocolAdapter {
122
122
  * it and a host should not have to know which adapter it is holding.
123
123
  */
124
124
  async sendToolResult() { }
125
- /** The model this agent asks, resolved once per request. */
126
- resolveModel() {
125
+ /**
126
+ * The model this agent asks, resolved once per request.
127
+ *
128
+ * The chat's model menu sends its choice with each message, as it does to
129
+ * a server-side harness; here it names the model the inference service is
130
+ * asked for, over the one the agent was built with. A ready-made
131
+ * `languageModel` is the host's own choice and is not swapped out.
132
+ */
133
+ resolveModel(requested) {
127
134
  const { languageModel, inference, model } = this.browserConfig;
128
135
  if (languageModel) {
129
136
  return languageModel;
@@ -131,7 +138,7 @@ export class BrowserAgentAdapter extends BaseProtocolAdapter {
131
138
  if (!inference) {
132
139
  throw new Error('A browser agent needs either a `languageModel` or an `inference` endpoint to reach one.');
133
140
  }
134
- return createBrowserModel({ ...inference, model });
141
+ return createBrowserModel({ ...inference, model: requested || model });
135
142
  }
136
143
  /**
137
144
  * Run one turn of the loop and report it as it happens.
@@ -188,7 +195,7 @@ export class BrowserAgentAdapter extends BaseProtocolAdapter {
188
195
  };
189
196
  try {
190
197
  const result = streamText({
191
- model: this.resolveModel(),
198
+ model: this.resolveModel(options?.model),
192
199
  system: this.browserConfig.instructions,
193
200
  messages: history,
194
201
  tools: this.tools,
@@ -12,6 +12,11 @@ export declare function createRuntime(options: IRuntimeOptions): Promise<IRuntim
12
12
  * Get the Runtimes.
13
13
  */
14
14
  export declare function getRuntimes(): Promise<IRuntimeRecord[]>;
15
+ /**
16
+ * One runtime as the platform answers it now — why its pod waits included —
17
+ * or `null` when there is none by that uid (E2-19).
18
+ */
19
+ export declare function getRuntimeRecord(id: string): Promise<IRuntimeRecord | null>;
15
20
  /**
16
21
  * Delete a Runtime
17
22
  */
@@ -109,6 +109,25 @@ export async function getRuntimes() {
109
109
  }
110
110
  return data.runtimes ?? [];
111
111
  }
112
+ /**
113
+ * One runtime as the platform answers it now — why its pod waits included —
114
+ * or `null` when there is none by that uid (E2-19).
115
+ */
116
+ export async function getRuntimeRecord(id) {
117
+ try {
118
+ const data = await requestDatalayerAPI({
119
+ url: runtimeUrl(runtimesStore.getState().runtimesUrl, id),
120
+ token: iamStore.getState().token,
121
+ });
122
+ return data.runtime ?? null;
123
+ }
124
+ catch (error) {
125
+ if (error.response?.status === 404) {
126
+ return null;
127
+ }
128
+ throw error;
129
+ }
130
+ }
112
131
  /**
113
132
  * Delete a Runtime
114
133
  */
@@ -11,6 +11,7 @@ export declare const EXAMPLE_A2A_WRITER_AGENTSPEC_0_0_1: Agentspec;
11
11
  export declare const EXAMPLE_A2A_AGENTSPEC_0_0_1: Agentspec;
12
12
  export declare const EXAMPLE_A2UI_AGENT_SPEC_0_0_1: Agentspec;
13
13
  export declare const EXAMPLE_A2UI_JUPYTER_OUTPUT_AGENTSPEC_0_0_1: Agentspec;
14
+ export declare const EXAMPLE_A2UI_VIEWER_AGENTSPEC_0_0_1: Agentspec;
14
15
  export declare const EXAMPLE_AGENT_CRITIC_LOOP_FOR_ANALYSIS_AGENTSPEC_0_0_1: Agentspec;
15
16
  export declare const EXAMPLE_AGENTIC_CHAT_AGENTSPEC_0_0_1: Agentspec;
16
17
  export declare const EXAMPLE_AGENTIC_GENERATIVE_UI_AGENTSPEC_0_0_1: Agentspec;
@@ -26,6 +27,7 @@ export declare const EXAMPLE_CODEMODE_AGENTSPEC_0_0_1: Agentspec;
26
27
  export declare const EXAMPLE_COMPACTION_AGENTSPEC_0_0_1: Agentspec;
27
28
  export declare const EXAMPLE_COMPARE_TWO_SPREADSHEETS_AGENTSPEC_0_0_1: Agentspec;
28
29
  export declare const EXAMPLE_COST_COMPARISON_REPORT_AGENTSPEC_0_0_1: Agentspec;
30
+ export declare const EXAMPLE_DECKS_AGENTSPEC_0_0_1: Agentspec;
29
31
  export declare const EXAMPLE_DOCUMENT_AGENT_SIDEBAR_AGENTSPEC_0_0_1: Agentspec;
30
32
  export declare const EXAMPLE_DOCUMENT_AGENT_SPEC_0_0_1: Agentspec;
31
33
  export declare const EXAMPLE_EVALS_NOCODEMODE_AGENTSPEC_0_0_1: Agentspec;
@@ -109,7 +111,6 @@ export declare const WORKER_CURTAILMENT_INVESTIGATOR_AGENTSPEC_0_0_1: Agentspec;
109
111
  export declare const WORKER_CUSTOMER_CHURN_ANALYSIS_AGENTSPEC_0_0_1: Agentspec;
110
112
  export declare const WORKER_CUSTOMER_INTERVIEWER_AGENTSPEC_0_0_1: Agentspec;
111
113
  export declare const WORKER_DATA_ACQUISITION_AGENTSPEC_0_0_1: Agentspec;
112
- export declare const WORKER_DECKS_AGENTSPEC_0_0_1: Agentspec;
113
114
  export declare const WORKER_DISASTER_ASSESSMENT_AGENTSPEC_0_0_1: Agentspec;
114
115
  export declare const WORKER_DOCUMENT_QA_AGENTSPEC_0_0_1: Agentspec;
115
116
  export declare const WORKER_END_OF_MONTH_PERFORMANCE_AGENTSPEC_0_0_1: Agentspec;
@@ -144,6 +145,7 @@ export declare const WORKER_OPTIMIZE_GRID_OPERATIONS_AGENTSPEC_0_0_1: Agentspec;
144
145
  export declare const WORKER_OPTIMIZE_SQL_QUERY_PERFORMANCE_AGENTSPEC_0_0_1: Agentspec;
145
146
  export declare const WORKER_PERFORMANCE_ATTRIBUTION_AGENTSPEC_0_0_1: Agentspec;
146
147
  export declare const WORKER_PIPELINE_DEBUGGER_AGENTSPEC_0_0_1: Agentspec;
148
+ export declare const WORKER_PITCHER_AGENTSPEC_0_0_1: Agentspec;
147
149
  export declare const WORKER_PORTFOLIO_ACCUMULATION_AGENTSPEC_0_0_1: Agentspec;
148
150
  export declare const WORKER_PORTFOLIO_RISK_AGENTSPEC_0_0_1: Agentspec;
149
151
  export declare const WORKER_PREDICTIVE_MAINTENANCE_AGENTSPEC_0_0_1: Agentspec;