@withgateway/sdk 0.6.0 → 0.9.1
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/agents/index.d.mts +573 -0
- package/dist/agents/index.d.ts +573 -0
- package/dist/agents/index.js +1443 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/index.mjs +1394 -0
- package/dist/agents/index.mjs.map +1 -0
- package/dist/apiError-DHpfbmdx.d.mts +17 -0
- package/dist/apiError-DHpfbmdx.d.ts +17 -0
- package/dist/cli.js +5019 -1599
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +5003 -1584
- package/dist/cli.mjs.map +1 -1
- package/dist/files/index.d.mts +3 -1
- package/dist/files/index.d.ts +3 -1
- package/dist/files/index.js +371 -102
- package/dist/files/index.js.map +1 -1
- package/dist/files/index.mjs +371 -102
- package/dist/files/index.mjs.map +1 -1
- package/dist/hooks/index.js +346 -136
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +346 -136
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/{index-LA-PMRJT.d.ts → index-DIN14Lhg.d.ts} +1 -1
- package/dist/{index-Di9nNqOY.d.mts → index-DuB-eQ0Z.d.mts} +1 -1
- package/dist/index.d.mts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +2689 -401
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2650 -394
- package/dist/index.mjs.map +1 -1
- package/dist/media-CQUC7TkS.d.mts +39 -0
- package/dist/media-DQnBloaX.d.ts +39 -0
- package/dist/traces/index.d.mts +3 -1
- package/dist/traces/index.d.ts +3 -1
- package/dist/traces/index.js +371 -102
- package/dist/traces/index.js.map +1 -1
- package/dist/traces/index.mjs +371 -102
- package/dist/traces/index.mjs.map +1 -1
- package/dist/tracing/index.d.mts +3 -2
- package/dist/tracing/index.d.ts +3 -2
- package/dist/tracing/index.js +257 -16
- package/dist/tracing/index.js.map +1 -1
- package/dist/tracing/index.mjs +257 -16
- package/dist/tracing/index.mjs.map +1 -1
- package/dist/transport-CpRe7zgd.d.mts +123 -0
- package/dist/transport-CpRe7zgd.d.ts +123 -0
- package/dist/worlds/index.d.mts +1983 -1745
- package/dist/worlds/index.d.ts +1983 -1745
- package/dist/worlds/index.js +1295 -226
- package/dist/worlds/index.js.map +1 -1
- package/dist/worlds/index.mjs +1290 -222
- package/dist/worlds/index.mjs.map +1 -1
- package/package.json +6 -1
- package/runtime/gatewaysdk/environment/bundle_manifest.py +243 -0
- package/runtime/gatewaysdk/environment/schema/__main__.py +2 -2
- package/runtime/gatewaysdk/environment/schema/_slack_fidelity.py +8 -23
- package/runtime/gatewaysdk/environment/schema/api.py +3 -4
- package/runtime/gatewaysdk/environment/schema/assertions.py +7 -1
- package/runtime/gatewaysdk/environment/schema/bundle_runtime.py +1 -0
- package/runtime/gatewaysdk/environment/schema/call_log.py +20 -0
- package/runtime/gatewaysdk/environment/schema/database/base.py +2 -2
- package/runtime/gatewaysdk/environment/schema/host.py +74 -11
- package/runtime/gatewaysdk/environment/schema/host_browser.py +48 -0
- package/runtime/gatewaysdk/environment/schema/host_control.py +33 -2
- package/runtime/gatewaysdk/environment/schema/host_handoff.py +4 -1
- package/runtime/gatewaysdk/environment/schema/host_requests.py +14 -0
- package/runtime/gatewaysdk/environment/schema/host_session.py +13 -2
- package/runtime/gatewaysdk/environment/schema/host_surfaces.py +6 -0
- package/runtime/gatewaysdk/environment/schema/host_versions.py +96 -19
- package/runtime/gatewaysdk/environment/schema/journal.py +7 -2
- package/runtime/gatewaysdk/environment/schema/local.py +32 -7
- package/runtime/gatewaysdk/environment/schema/page_checks.py +123 -0
- package/runtime/gatewaysdk/environment/schema/platform.py +23 -267
- package/runtime/gatewaysdk/environment/schema/platform_templates.py +332 -0
- package/runtime/gatewaysdk/environment/schema/request_ledger.py +4 -1
- package/runtime/gatewaysdk/environment/schema/run_parameters.py +25 -0
- package/runtime/gatewaysdk/environment/schema/runtime.py +43 -5
- package/runtime/gatewaysdk/environment/schema/scaffold.py +367 -217
- package/runtime/gatewaysdk/environment/schema/session_files.py +13 -2
- package/runtime/gatewaysdk/environment/schema/skills/benchmarks-getting-started/SKILL.md +1 -1
- package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/SKILL.md +1 -2
- package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/SKILL.md +4 -2
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/SKILL.md +7 -7
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/cli-mcp-map.md +32 -2
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/gotchas.md +6 -6
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/journal-checks.md +17 -2
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/new-world-sandbox.md +1 -1
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/ui-map.md +3 -2
- package/runtime/gatewaysdk/environment/schema/slack.py +55 -10
- package/runtime/gatewaysdk/environment/schema/snapshot.py +28 -2
- package/runtime/gatewaysdk/environment/schema/tasks.py +25 -2
- package/runtime/gatewaysdk/environment/schema/template_record.py +131 -0
- package/runtime/gatewaysdk/environment/schema/tools_world.py +7 -5
- package/runtime/gatewaysdk/environment/schema/ui.py +54 -33
- package/runtime/gatewaysdk/environment/schema/ui_interactions.py +419 -0
- package/runtime/gatewaysdk/environment/schema/ui_recorder.js +895 -0
- package/runtime/gatewaysdk/environment/schema/ui_replay.py +366 -0
- package/runtime/gatewaysdk/environment/schema/ui_replay_record.LICENSE +25 -0
- package/runtime/gatewaysdk/environment/schema/ui_replay_record.js +109 -0
- package/runtime/gatewaysdk/environment/schema/validation.py +10 -1
- package/runtime/gatewaysdk/environment/schema/worker.py +5 -1
- package/runtime/gatewaysdk/environment/schema/workers.py +8 -1
- package/runtime/gatewaysdk/environment/schema/world_host.py +44 -15
- package/runtime/gatewaysdk/environment/secret_values.py +1 -1
- package/runtime/gatewaysdk/environment/world.py +34 -43
- package/runtime/gatewaysdk/environment/world_session_contract.py +7 -34
- package/skills/benchmarks-getting-started/SKILL.md +1 -1
- package/skills/connector-schema-authoring/SKILL.md +1 -2
- package/skills/connector-schema-authoring/connector-worlds.md +2 -2
- package/skills/connector-schema-authoring/world-schema.md +29 -23
- package/skills/world-data-ingestion/SKILL.md +4 -2
- package/skills/worlds-getting-started/SKILL.md +7 -7
- package/skills/worlds-getting-started/references/cli-mcp-map.md +32 -2
- package/skills/worlds-getting-started/references/gotchas.md +6 -6
- package/skills/worlds-getting-started/references/journal-checks.md +17 -2
- package/skills/worlds-getting-started/references/new-world-sandbox.md +1 -1
- package/skills/worlds-getting-started/references/ui-map.md +3 -2
- package/dist/media-BIApiPzS.d.mts +0 -102
- package/dist/media-BIApiPzS.d.ts +0 -102
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { P as PlatformTransport } from './transport-CpRe7zgd.mjs';
|
|
2
|
+
|
|
3
|
+
declare const MAX_MEDIA_BYTES: number;
|
|
4
|
+
type MediaField = "input" | "output" | "metadata";
|
|
5
|
+
declare class MediaUploadError extends Error {
|
|
6
|
+
readonly status?: number | undefined;
|
|
7
|
+
constructor(message: string, status?: number | undefined);
|
|
8
|
+
}
|
|
9
|
+
declare class MediaReference {
|
|
10
|
+
readonly mediaId: string;
|
|
11
|
+
readonly contentType: string;
|
|
12
|
+
constructor(mediaId: string, contentType: string);
|
|
13
|
+
toString(): string;
|
|
14
|
+
}
|
|
15
|
+
type PutBytes = (url: string, data: Buffer, headers: Record<string, string>) => Promise<{
|
|
16
|
+
status: number;
|
|
17
|
+
error: string | null;
|
|
18
|
+
}>;
|
|
19
|
+
/** Uploads media for one project (the key pair's). */
|
|
20
|
+
declare class MediaUploader {
|
|
21
|
+
private readonly transport;
|
|
22
|
+
private readonly put;
|
|
23
|
+
maxBytes: number;
|
|
24
|
+
constructor(transport: PlatformTransport, put?: PutBytes, maxBytes?: number);
|
|
25
|
+
/** The uploader for `GATEWAY_HOST` / `GATEWAY_PUBLIC_KEY` /
|
|
26
|
+
* `GATEWAY_SECRET_KEY` only; null when any is unset, so a run traced with a saved login uploads none. */
|
|
27
|
+
static fromEnv(env?: NodeJS.ProcessEnv): MediaUploader | null;
|
|
28
|
+
/** Store `data` linked to the trace (and observation) and return its reference. */
|
|
29
|
+
upload(data: Buffer, link: {
|
|
30
|
+
contentType: string;
|
|
31
|
+
traceId: string;
|
|
32
|
+
observationId: string | null;
|
|
33
|
+
field: MediaField;
|
|
34
|
+
}): Promise<MediaReference>;
|
|
35
|
+
private store;
|
|
36
|
+
private send;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { MAX_MEDIA_BYTES as M, type MediaField as a, MediaReference as b, MediaUploadError as c, MediaUploader as d };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { P as PlatformTransport } from './transport-CpRe7zgd.js';
|
|
2
|
+
|
|
3
|
+
declare const MAX_MEDIA_BYTES: number;
|
|
4
|
+
type MediaField = "input" | "output" | "metadata";
|
|
5
|
+
declare class MediaUploadError extends Error {
|
|
6
|
+
readonly status?: number | undefined;
|
|
7
|
+
constructor(message: string, status?: number | undefined);
|
|
8
|
+
}
|
|
9
|
+
declare class MediaReference {
|
|
10
|
+
readonly mediaId: string;
|
|
11
|
+
readonly contentType: string;
|
|
12
|
+
constructor(mediaId: string, contentType: string);
|
|
13
|
+
toString(): string;
|
|
14
|
+
}
|
|
15
|
+
type PutBytes = (url: string, data: Buffer, headers: Record<string, string>) => Promise<{
|
|
16
|
+
status: number;
|
|
17
|
+
error: string | null;
|
|
18
|
+
}>;
|
|
19
|
+
/** Uploads media for one project (the key pair's). */
|
|
20
|
+
declare class MediaUploader {
|
|
21
|
+
private readonly transport;
|
|
22
|
+
private readonly put;
|
|
23
|
+
maxBytes: number;
|
|
24
|
+
constructor(transport: PlatformTransport, put?: PutBytes, maxBytes?: number);
|
|
25
|
+
/** The uploader for `GATEWAY_HOST` / `GATEWAY_PUBLIC_KEY` /
|
|
26
|
+
* `GATEWAY_SECRET_KEY` only; null when any is unset, so a run traced with a saved login uploads none. */
|
|
27
|
+
static fromEnv(env?: NodeJS.ProcessEnv): MediaUploader | null;
|
|
28
|
+
/** Store `data` linked to the trace (and observation) and return its reference. */
|
|
29
|
+
upload(data: Buffer, link: {
|
|
30
|
+
contentType: string;
|
|
31
|
+
traceId: string;
|
|
32
|
+
observationId: string | null;
|
|
33
|
+
field: MediaField;
|
|
34
|
+
}): Promise<MediaReference>;
|
|
35
|
+
private store;
|
|
36
|
+
private send;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { MAX_MEDIA_BYTES as M, type MediaField as a, MediaReference as b, MediaUploadError as c, MediaUploader as d };
|
package/dist/traces/index.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import '../worlds/index.mjs';
|
|
2
2
|
export { E as ExportOptions, a as ExportSummary, O as Observation, b as ObservationFilters, P as PAGE_LIMIT, c as Page, d as PageMeta, S as SessionFilters, T as Trace, e as TraceDetail, f as TraceFilters, g as TraceSession, h as TraceSessionDetail, j as exportTraces, k as getSession, l as getTrace, m as iterateObservations, n as iterateSessions, o as iterateTraces, p as listObservations, q as listSessions, r as listTraces } from '../index-CiKWoroJ.mjs';
|
|
3
|
-
import '../
|
|
3
|
+
import '../transport-CpRe7zgd.mjs';
|
|
4
|
+
import '../apiError-DHpfbmdx.mjs';
|
|
5
|
+
import '../media-CQUC7TkS.mjs';
|
package/dist/traces/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import '../worlds/index.js';
|
|
2
2
|
export { E as ExportOptions, a as ExportSummary, O as Observation, b as ObservationFilters, P as PAGE_LIMIT, c as Page, d as PageMeta, S as SessionFilters, T as Trace, e as TraceDetail, f as TraceFilters, g as TraceSession, h as TraceSessionDetail, j as exportTraces, k as getSession, l as getTrace, m as iterateObservations, n as iterateSessions, o as iterateTraces, p as listObservations, q as listSessions, r as listTraces } from '../index-BgvvQ3BC.js';
|
|
3
|
-
import '../
|
|
3
|
+
import '../transport-CpRe7zgd.js';
|
|
4
|
+
import '../apiError-DHpfbmdx.js';
|
|
5
|
+
import '../media-DQnBloaX.js';
|