@dharta/cli 0.6.77 → 0.6.78
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/LICENSE +1 -1
- package/README.md +215 -11
- package/dist/agent.js +3 -2
- package/dist/agent.js.map +1 -1
- package/dist/api-error.js +6 -6
- package/dist/api-error.js.map +1 -1
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +860 -149
- package/dist/cli.js.map +1 -1
- package/dist/command-tree.d.ts +3 -0
- package/dist/command-tree.js +10 -0
- package/dist/command-tree.js.map +1 -0
- package/dist/commands/agents.d.ts +54 -17
- package/dist/commands/agents.js +246 -136
- package/dist/commands/agents.js.map +1 -1
- package/dist/commands/analytics.js +6 -5
- package/dist/commands/analytics.js.map +1 -1
- package/dist/commands/api.js +71 -86
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/appearance.js +5 -6
- package/dist/commands/appearance.js.map +1 -1
- package/dist/commands/artifact.js +7 -6
- package/dist/commands/artifact.js.map +1 -1
- package/dist/commands/audit-log.js +2 -1
- package/dist/commands/audit-log.js.map +1 -1
- package/dist/commands/auth.js +26 -6
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/caps.js +11 -15
- package/dist/commands/caps.js.map +1 -1
- package/dist/commands/deploy.js +25 -10
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/dev.d.ts +10 -1
- package/dist/commands/dev.js +56 -25
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.js +60 -0
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/embed-keys.js +4 -13
- package/dist/commands/embed-keys.js.map +1 -1
- package/dist/commands/env.js +4 -7
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/files.js +3 -4
- package/dist/commands/files.js.map +1 -1
- package/dist/commands/fleet.d.ts +129 -0
- package/dist/commands/fleet.js +408 -0
- package/dist/commands/fleet.js.map +1 -0
- package/dist/commands/genui.d.ts +2 -0
- package/dist/commands/genui.js +53 -0
- package/dist/commands/genui.js.map +1 -0
- package/dist/commands/git-credential.js +2 -3
- package/dist/commands/git-credential.js.map +1 -1
- package/dist/commands/kartas.d.ts +9 -0
- package/dist/commands/kartas.js +33 -11
- package/dist/commands/kartas.js.map +1 -1
- package/dist/commands/keys.d.ts +17 -18
- package/dist/commands/keys.js +108 -19
- package/dist/commands/keys.js.map +1 -1
- package/dist/commands/login.js +2 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/members.d.ts +10 -0
- package/dist/commands/members.js +20 -6
- package/dist/commands/members.js.map +1 -1
- package/dist/commands/model-connections.d.ts +44 -0
- package/dist/commands/model-connections.js +435 -0
- package/dist/commands/model-connections.js.map +1 -0
- package/dist/commands/open.d.ts +2 -2
- package/dist/commands/open.js +4 -3
- package/dist/commands/open.js.map +1 -1
- package/dist/commands/org.d.ts +9 -0
- package/dist/commands/org.js +42 -0
- package/dist/commands/org.js.map +1 -0
- package/dist/commands/organization.d.ts +16 -0
- package/dist/commands/organization.js +118 -0
- package/dist/commands/organization.js.map +1 -0
- package/dist/commands/parity.js +1 -3
- package/dist/commands/parity.js.map +1 -1
- package/dist/commands/repos.d.ts +4 -0
- package/dist/commands/repos.js +17 -0
- package/dist/commands/repos.js.map +1 -0
- package/dist/commands/rollback.js +2 -3
- package/dist/commands/rollback.js.map +1 -1
- package/dist/commands/schedules.js +26 -21
- package/dist/commands/schedules.js.map +1 -1
- package/dist/commands/scopes.js +8 -1
- package/dist/commands/scopes.js.map +1 -1
- package/dist/commands/sessions.js +9 -3
- package/dist/commands/sessions.js.map +1 -1
- package/dist/commands/setup.js +5 -4
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/update.d.ts +1 -0
- package/dist/commands/update.js +24 -11
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/webhooks.d.ts +4 -1
- package/dist/commands/webhooks.js +21 -16
- package/dist/commands/webhooks.js.map +1 -1
- package/dist/completions.js +24 -13
- package/dist/completions.js.map +1 -1
- package/dist/config.d.ts +12 -0
- package/dist/config.js +121 -7
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +2 -0
- package/dist/context.js +23 -7
- package/dist/context.js.map +1 -1
- package/dist/docs/cli-reference.d.ts +2 -0
- package/dist/docs/cli-reference.js +191 -0
- package/dist/docs/cli-reference.js.map +1 -0
- package/dist/exit-codes.d.ts +25 -0
- package/dist/exit-codes.js +107 -0
- package/dist/exit-codes.js.map +1 -0
- package/dist/genui.d.ts +178 -0
- package/dist/genui.js +1130 -0
- package/dist/genui.js.map +1 -0
- package/dist/harnesses.js +2 -1
- package/dist/harnesses.js.map +1 -1
- package/dist/jq.d.ts +4 -0
- package/dist/jq.js +91 -0
- package/dist/jq.js.map +1 -0
- package/dist/login-offer.js +6 -2
- package/dist/login-offer.js.map +1 -1
- package/dist/manifest.d.ts +12 -0
- package/dist/manifest.js +126 -0
- package/dist/manifest.js.map +1 -1
- package/dist/model-auth.d.ts +29 -0
- package/dist/model-auth.js +117 -0
- package/dist/model-auth.js.map +1 -0
- package/dist/model-settings.d.ts +23 -0
- package/dist/model-settings.js +186 -0
- package/dist/model-settings.js.map +1 -0
- package/dist/money.js +2 -1
- package/dist/money.js.map +1 -1
- package/dist/output.d.ts +6 -0
- package/dist/output.js +54 -0
- package/dist/output.js.map +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/scaffold.js +2 -1
- package/dist/scaffold.js.map +1 -1
- package/dist/validators.js +17 -11
- package/dist/validators.js.map +1 -1
- package/dist/version-check.d.ts +1 -1
- package/dist/version-check.js +1 -1
- package/dist/version-check.js.map +1 -1
- package/node_modules/@dharta/contracts/LICENSE +21 -0
- package/node_modules/@dharta/contracts/README.md +45 -0
- package/node_modules/@dharta/contracts/artifact-runtime.json +750 -0
- package/node_modules/@dharta/contracts/dist/activity.d.ts +62 -0
- package/node_modules/@dharta/contracts/dist/activity.d.ts.map +1 -0
- package/node_modules/@dharta/contracts/dist/activity.js +178 -0
- package/node_modules/@dharta/contracts/dist/activity.js.map +1 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime-formats.d.ts +20 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime-formats.d.ts.map +1 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime-formats.js +53 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime-formats.js.map +1 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime-validators.generated.d.ts +37 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime-validators.generated.d.ts.map +1 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime-validators.generated.js +5107 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime-validators.generated.js.map +1 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime.d.ts +154 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime.d.ts.map +1 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime.generated.d.ts +1670 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime.generated.d.ts.map +1 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime.generated.js +1903 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime.generated.js.map +1 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime.js +377 -0
- package/node_modules/@dharta/contracts/dist/artifact-runtime.js.map +1 -0
- package/node_modules/@dharta/contracts/dist/index.d.ts +6 -0
- package/node_modules/@dharta/contracts/dist/index.d.ts.map +1 -0
- package/node_modules/@dharta/contracts/dist/index.js +6 -0
- package/node_modules/@dharta/contracts/dist/index.js.map +1 -0
- package/node_modules/@dharta/contracts/dist/model-auth.d.ts +31 -0
- package/node_modules/@dharta/contracts/dist/model-auth.d.ts.map +1 -0
- package/node_modules/@dharta/contracts/dist/model-auth.js +45 -0
- package/node_modules/@dharta/contracts/dist/model-auth.js.map +1 -0
- package/node_modules/@dharta/contracts/dist/tasks.d.ts +44 -0
- package/node_modules/@dharta/contracts/dist/tasks.d.ts.map +1 -0
- package/node_modules/@dharta/contracts/dist/tasks.js +127 -0
- package/node_modules/@dharta/contracts/dist/tasks.js.map +1 -0
- package/node_modules/@dharta/contracts/dist/wire-events.d.ts +71 -0
- package/node_modules/@dharta/contracts/dist/wire-events.d.ts.map +1 -0
- package/node_modules/@dharta/contracts/dist/wire-events.js +48 -0
- package/node_modules/@dharta/contracts/dist/wire-events.js.map +1 -0
- package/node_modules/@dharta/contracts/model-auth-capabilities-v1.json +168 -0
- package/node_modules/@dharta/contracts/model-auth-reasons-v1.json +38 -0
- package/node_modules/@dharta/contracts/package.json +44 -0
- package/node_modules/@dharta/contracts/src/activity.ts +215 -0
- package/node_modules/@dharta/contracts/src/artifact-runtime-formats.ts +54 -0
- package/node_modules/@dharta/contracts/src/artifact-runtime-validators.generated.ts +29 -0
- package/node_modules/@dharta/contracts/src/artifact-runtime.generated.ts +2093 -0
- package/node_modules/@dharta/contracts/src/artifact-runtime.ts +520 -0
- package/node_modules/@dharta/contracts/src/index.ts +5 -0
- package/node_modules/@dharta/contracts/src/model-auth.ts +82 -0
- package/node_modules/@dharta/contracts/src/tasks.ts +142 -0
- package/node_modules/@dharta/contracts/src/wire-events.ts +150 -0
- package/node_modules/@dharta/contracts/wire-events.json +29 -0
- package/node_modules/@dharta/sdk/LICENSE +1 -1
- package/node_modules/@dharta/sdk/README.md +22 -8
- package/node_modules/@dharta/sdk/dist/errors.d.ts +9 -7
- package/node_modules/@dharta/sdk/dist/errors.d.ts.map +1 -1
- package/node_modules/@dharta/sdk/dist/errors.js +36 -18
- package/node_modules/@dharta/sdk/dist/errors.js.map +1 -1
- package/node_modules/@dharta/sdk/dist/fleet.d.ts +69 -0
- package/node_modules/@dharta/sdk/dist/fleet.d.ts.map +1 -0
- package/node_modules/@dharta/sdk/dist/fleet.js +240 -0
- package/node_modules/@dharta/sdk/dist/fleet.js.map +1 -0
- package/node_modules/@dharta/sdk/dist/http.d.ts +6 -2
- package/node_modules/@dharta/sdk/dist/http.d.ts.map +1 -1
- package/node_modules/@dharta/sdk/dist/http.js +71 -12
- package/node_modules/@dharta/sdk/dist/http.js.map +1 -1
- package/node_modules/@dharta/sdk/dist/idempotency.d.ts +12 -0
- package/node_modules/@dharta/sdk/dist/idempotency.d.ts.map +1 -0
- package/node_modules/@dharta/sdk/dist/idempotency.js +72 -0
- package/node_modules/@dharta/sdk/dist/idempotency.js.map +1 -0
- package/node_modules/@dharta/sdk/dist/index.d.ts +20 -6
- package/node_modules/@dharta/sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@dharta/sdk/dist/index.js +27 -4
- package/node_modules/@dharta/sdk/dist/index.js.map +1 -1
- package/node_modules/@dharta/sdk/dist/resources.d.ts +108 -13
- package/node_modules/@dharta/sdk/dist/resources.d.ts.map +1 -1
- package/node_modules/@dharta/sdk/dist/resources.js +403 -57
- package/node_modules/@dharta/sdk/dist/resources.js.map +1 -1
- package/node_modules/@dharta/sdk/dist/types.d.ts +436 -16
- package/node_modules/@dharta/sdk/dist/types.d.ts.map +1 -1
- package/node_modules/@dharta/sdk/dist/types.js +31 -2
- package/node_modules/@dharta/sdk/dist/types.js.map +1 -1
- package/node_modules/@dharta/sdk/package.json +9 -3
- package/node_modules/@dharta/sdk/src/errors.ts +41 -18
- package/node_modules/@dharta/sdk/src/fleet.ts +339 -0
- package/node_modules/@dharta/sdk/src/http.ts +110 -17
- package/node_modules/@dharta/sdk/src/idempotency.ts +101 -0
- package/node_modules/@dharta/sdk/src/index.ts +50 -11
- package/node_modules/@dharta/sdk/src/resources.ts +549 -68
- package/node_modules/@dharta/sdk/src/types.ts +629 -20
- package/package.json +16 -6
- package/src/agent.ts +3 -2
- package/src/api-error.ts +6 -5
- package/src/cli.ts +978 -163
- package/src/command-tree.ts +13 -0
- package/src/commands/agents.ts +365 -167
- package/src/commands/analytics.ts +6 -5
- package/src/commands/api.ts +73 -92
- package/src/commands/appearance.ts +5 -6
- package/src/commands/artifact.ts +7 -6
- package/src/commands/audit-log.ts +2 -1
- package/src/commands/auth.ts +25 -5
- package/src/commands/caps.ts +11 -15
- package/src/commands/deploy.ts +18 -4
- package/src/commands/dev.ts +86 -25
- package/src/commands/doctor.ts +69 -0
- package/src/commands/embed-keys.ts +4 -14
- package/src/commands/env.ts +4 -7
- package/src/commands/files.ts +3 -4
- package/src/commands/fleet.ts +672 -0
- package/src/commands/genui.ts +59 -0
- package/src/commands/git-credential.ts +2 -3
- package/src/commands/kartas.ts +45 -11
- package/src/commands/keys.ts +152 -35
- package/src/commands/login.ts +2 -1
- package/src/commands/members.ts +31 -6
- package/src/commands/model-connections.ts +547 -0
- package/src/commands/open.ts +5 -4
- package/src/commands/org.ts +57 -0
- package/src/commands/organization.ts +153 -0
- package/src/commands/parity.ts +1 -3
- package/src/commands/repos.ts +23 -0
- package/src/commands/rollback.ts +2 -3
- package/src/commands/schedules.ts +33 -22
- package/src/commands/scopes.ts +8 -1
- package/src/commands/sessions.ts +9 -3
- package/src/commands/setup.ts +5 -4
- package/src/commands/update.ts +28 -12
- package/src/commands/webhooks.ts +30 -19
- package/src/completions.ts +25 -13
- package/src/config.ts +141 -9
- package/src/context.ts +34 -7
- package/src/docs/cli-reference.ts +206 -0
- package/src/exit-codes.ts +122 -0
- package/src/genui.ts +1398 -0
- package/src/harnesses.ts +2 -1
- package/src/jq.ts +109 -0
- package/src/login-offer.ts +6 -2
- package/src/manifest.ts +134 -0
- package/src/model-auth.ts +173 -0
- package/src/model-settings.ts +222 -0
- package/src/money.ts +5 -1
- package/src/output.ts +60 -0
- package/src/runtime.ts +1 -1
- package/src/scaffold.ts +2 -1
- package/src/validators.ts +18 -11
- package/src/version-check.ts +1 -1
- package/dist/commands/model-keys.d.ts +0 -22
- package/dist/commands/model-keys.js +0 -222
- package/dist/commands/model-keys.js.map +0 -1
- package/src/commands/model-keys.ts +0 -278
|
@@ -0,0 +1,1670 @@
|
|
|
1
|
+
export declare const ARTIFACT_RUNTIME_CATALOG: {
|
|
2
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
3
|
+
readonly contract_version: 2;
|
|
4
|
+
readonly manifest: {
|
|
5
|
+
readonly id_pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$";
|
|
6
|
+
readonly type_id_pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
7
|
+
readonly input_alias_pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
8
|
+
readonly workspace_source_pattern: "^workspace:(?!.*[\\uD800-\\uDFFF])(?!/)(?!.*\\\\)(?!.*//)(?!\\.\\.?(?:$|/))(?!.*[/]\\.\\.?(?:$|/))[^\\u0000/]+(?:/[^\\u0000/]+)*$";
|
|
9
|
+
readonly max_title_characters: 200;
|
|
10
|
+
readonly max_root_bytes: 1024;
|
|
11
|
+
readonly max_root_depth: 32;
|
|
12
|
+
readonly max_entry_bytes: 1024;
|
|
13
|
+
readonly max_entry_depth: 32;
|
|
14
|
+
readonly max_run_bytes: 16384;
|
|
15
|
+
readonly max_inputs: 64;
|
|
16
|
+
readonly max_input_source_bytes: 2048;
|
|
17
|
+
readonly freshness: readonly ("follow" | "pinned")[];
|
|
18
|
+
readonly reserved_root_paths: readonly ".dharta/inputs"[];
|
|
19
|
+
};
|
|
20
|
+
readonly trees: {
|
|
21
|
+
readonly root: {
|
|
22
|
+
readonly max_files: 20000;
|
|
23
|
+
readonly max_bytes: 1000000000;
|
|
24
|
+
};
|
|
25
|
+
readonly input: {
|
|
26
|
+
readonly max_files: 20000;
|
|
27
|
+
readonly max_bytes: 1000000000;
|
|
28
|
+
};
|
|
29
|
+
readonly all_inputs: {
|
|
30
|
+
readonly max_files: 50000;
|
|
31
|
+
readonly max_bytes: 5000000000;
|
|
32
|
+
};
|
|
33
|
+
readonly static_share: {
|
|
34
|
+
readonly max_files: 20000;
|
|
35
|
+
readonly max_bytes: 1000000000;
|
|
36
|
+
};
|
|
37
|
+
readonly reject_symlinks_escaping_tree: true;
|
|
38
|
+
readonly reject_secret_paths: true;
|
|
39
|
+
};
|
|
40
|
+
readonly runtime: {
|
|
41
|
+
readonly abi: "dharta.artifact.renderer/v1";
|
|
42
|
+
readonly shell: "/bin/sh";
|
|
43
|
+
readonly shell_arguments: readonly "-lc"[];
|
|
44
|
+
readonly host: "127.0.0.1";
|
|
45
|
+
readonly environment: {
|
|
46
|
+
readonly DHARTA_ARTIFACT_PORT: {
|
|
47
|
+
readonly secret: false;
|
|
48
|
+
readonly value: "assigned loopback port";
|
|
49
|
+
};
|
|
50
|
+
readonly DHARTA_ARTIFACT_INPUTS: {
|
|
51
|
+
readonly secret: false;
|
|
52
|
+
readonly value: "absolute mounted input directory";
|
|
53
|
+
};
|
|
54
|
+
readonly DHARTA_ARTIFACT_TYPE_DIR: {
|
|
55
|
+
readonly secret: false;
|
|
56
|
+
readonly value: "absolute Type recipe directory when present";
|
|
57
|
+
};
|
|
58
|
+
readonly DHARTA_ARTIFACT_RUN: {
|
|
59
|
+
readonly secret: false;
|
|
60
|
+
readonly value: "opaque declared shell command";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly inherited_environment: "allowlist-only";
|
|
64
|
+
readonly secret_environment: readonly never[];
|
|
65
|
+
readonly startup_seconds: 30;
|
|
66
|
+
readonly idle_seconds: 300;
|
|
67
|
+
readonly absolute_seconds: 3600;
|
|
68
|
+
readonly teardown_seconds: 30;
|
|
69
|
+
};
|
|
70
|
+
readonly portable_sharing: {
|
|
71
|
+
readonly format: "dharta.portable-artifact-execution-pack.v1";
|
|
72
|
+
readonly cost_owners: readonly ("organization" | "publisher" | "viewer")[];
|
|
73
|
+
readonly required_live_execution: true;
|
|
74
|
+
readonly capabilities: {
|
|
75
|
+
readonly network: "none";
|
|
76
|
+
readonly workspace: "none";
|
|
77
|
+
readonly model: false;
|
|
78
|
+
readonly credentials: readonly never[];
|
|
79
|
+
readonly connections: readonly never[];
|
|
80
|
+
};
|
|
81
|
+
readonly exclude_producer_sources: true;
|
|
82
|
+
readonly exclude_snapshot_ids: true;
|
|
83
|
+
readonly exclude_credentials: true;
|
|
84
|
+
};
|
|
85
|
+
readonly access: {
|
|
86
|
+
readonly public_token_pattern: "^sfl_[A-Za-z0-9_-]{32,96}$";
|
|
87
|
+
readonly execution_id_pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$";
|
|
88
|
+
readonly execution_id_max_characters: 128;
|
|
89
|
+
readonly artifact_version_id_pattern: "^[A-Za-z0-9_-]{1,64}$";
|
|
90
|
+
readonly artifact_version_id_max_characters: 64;
|
|
91
|
+
readonly audience_digest_pattern: "^[0-9a-f]{64}$";
|
|
92
|
+
readonly handoff_digest_pattern: "^[0-9a-f]{64}$";
|
|
93
|
+
readonly handoff_token_pattern: "^aat_[A-Za-z0-9_-]{39,1996}$";
|
|
94
|
+
readonly origin_label_pattern: "^a-[a-z2-7]{52}$";
|
|
95
|
+
};
|
|
96
|
+
readonly http: {
|
|
97
|
+
readonly root_path: "/";
|
|
98
|
+
readonly handoff_path: "/_dharta/artifact/handoff";
|
|
99
|
+
readonly authorize_path: "/_dharta/artifact/authorize";
|
|
100
|
+
readonly open_path: "/_dharta/artifact/open";
|
|
101
|
+
readonly access_cookie: "__Host-dharta_artifact_access";
|
|
102
|
+
readonly local_access_cookie: "dharta_artifact_access_dev";
|
|
103
|
+
readonly root_media_type_essence: "text/html";
|
|
104
|
+
readonly allow_media_type_parameters: true;
|
|
105
|
+
readonly methods: readonly ("DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT")[];
|
|
106
|
+
readonly max_header_bytes: 65536;
|
|
107
|
+
readonly max_request_body_bytes: 16777216;
|
|
108
|
+
readonly max_response_body_bytes: 1000000000;
|
|
109
|
+
readonly max_websocket_frame_bytes: 1048576;
|
|
110
|
+
readonly max_websocket_queue_frames: 2;
|
|
111
|
+
readonly max_concurrent_requests: 32;
|
|
112
|
+
readonly supports_streaming: true;
|
|
113
|
+
readonly supports_ranges: true;
|
|
114
|
+
readonly supports_sse: true;
|
|
115
|
+
readonly supports_websocket: true;
|
|
116
|
+
};
|
|
117
|
+
readonly schemas: {
|
|
118
|
+
readonly input_v2: {
|
|
119
|
+
readonly type: "object";
|
|
120
|
+
readonly additionalProperties: false;
|
|
121
|
+
readonly required: readonly ("freshness" | "source")[];
|
|
122
|
+
readonly properties: {
|
|
123
|
+
readonly source: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
readonly maxLength: 2048;
|
|
126
|
+
readonly pattern: "^workspace:(?!.*[\\uD800-\\uDFFF])(?!/)(?!.*\\\\)(?!.*//)(?!\\.\\.?(?:$|/))(?!.*[/]\\.\\.?(?:$|/))[^\\u0000/]+(?:/[^\\u0000/]+)*$";
|
|
127
|
+
readonly "x-dharta-error": "artifact_input_source_invalid";
|
|
128
|
+
};
|
|
129
|
+
readonly freshness: {
|
|
130
|
+
readonly enum: readonly ("follow" | "pinned")[];
|
|
131
|
+
readonly "x-dharta-error": "artifact_input_freshness_required";
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly "x-dharta-error": "artifact_input_invalid";
|
|
135
|
+
};
|
|
136
|
+
readonly agent_activation_v1: {
|
|
137
|
+
readonly type: "object";
|
|
138
|
+
readonly additionalProperties: false;
|
|
139
|
+
readonly required: readonly ("activation_mode" | "authorities" | "budget_cents" | "descendant_ceiling" | "lifetime_seconds" | "visibility")[];
|
|
140
|
+
readonly properties: {
|
|
141
|
+
readonly authorities: {
|
|
142
|
+
readonly type: "array";
|
|
143
|
+
readonly maxItems: 32;
|
|
144
|
+
readonly uniqueItems: true;
|
|
145
|
+
readonly items: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly pattern: "^[a-z][a-z0-9_.:-]{0,127}$";
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly budget_cents: {
|
|
151
|
+
readonly type: "integer";
|
|
152
|
+
readonly minimum: 0;
|
|
153
|
+
readonly maximum: 10000;
|
|
154
|
+
};
|
|
155
|
+
readonly lifetime_seconds: {
|
|
156
|
+
readonly type: "integer";
|
|
157
|
+
readonly minimum: 1;
|
|
158
|
+
readonly maximum: 86400;
|
|
159
|
+
};
|
|
160
|
+
readonly descendant_ceiling: {
|
|
161
|
+
readonly type: "integer";
|
|
162
|
+
readonly minimum: 0;
|
|
163
|
+
readonly maximum: 8;
|
|
164
|
+
};
|
|
165
|
+
readonly activation_mode: {
|
|
166
|
+
readonly enum: readonly ("new" | "resume")[];
|
|
167
|
+
};
|
|
168
|
+
readonly visibility: {
|
|
169
|
+
readonly enum: readonly ("headless" | "inspectable" | "user-facing")[];
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
readonly "x-dharta-error": "artifact_agent_activation_invalid";
|
|
173
|
+
};
|
|
174
|
+
readonly artifact_v2: {
|
|
175
|
+
readonly type: "object";
|
|
176
|
+
readonly additionalProperties: false;
|
|
177
|
+
readonly required: readonly ("contract_version" | "id" | "inputs" | "root" | "title")[];
|
|
178
|
+
readonly allOf: readonly ({
|
|
179
|
+
readonly oneOf: readonly ({
|
|
180
|
+
readonly required: readonly "entry"[];
|
|
181
|
+
readonly not: {
|
|
182
|
+
readonly required: readonly "run"[];
|
|
183
|
+
};
|
|
184
|
+
} | {
|
|
185
|
+
readonly required: readonly "run"[];
|
|
186
|
+
readonly not: {
|
|
187
|
+
readonly required: readonly "entry"[];
|
|
188
|
+
};
|
|
189
|
+
})[];
|
|
190
|
+
readonly "x-dharta-error": "artifact_presentation_invalid";
|
|
191
|
+
} | {
|
|
192
|
+
readonly if: {
|
|
193
|
+
readonly required: readonly "agent_activation"[];
|
|
194
|
+
};
|
|
195
|
+
readonly then: {
|
|
196
|
+
readonly properties: {
|
|
197
|
+
readonly run: {
|
|
198
|
+
readonly const: "karta artifact run agent .";
|
|
199
|
+
readonly "x-dharta-error": "artifact_agent_activation_runner_required";
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
readonly required: readonly "run"[];
|
|
203
|
+
};
|
|
204
|
+
readonly "x-dharta-error": "artifact_agent_activation_runner_required";
|
|
205
|
+
})[];
|
|
206
|
+
readonly properties: {
|
|
207
|
+
readonly contract_version: {
|
|
208
|
+
readonly const: 2;
|
|
209
|
+
readonly "x-dharta-error": "artifact_contract_version_invalid";
|
|
210
|
+
};
|
|
211
|
+
readonly id: {
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$";
|
|
214
|
+
readonly "x-dharta-error": "artifact_id_invalid";
|
|
215
|
+
};
|
|
216
|
+
readonly title: {
|
|
217
|
+
readonly type: "string";
|
|
218
|
+
readonly minLength: 1;
|
|
219
|
+
readonly maxLength: 200;
|
|
220
|
+
readonly pattern: "^(?!.*[\\uD800-\\uDFFF]).+$";
|
|
221
|
+
readonly "x-dharta-error": "artifact_title_invalid";
|
|
222
|
+
};
|
|
223
|
+
readonly type_id: {
|
|
224
|
+
readonly type: "string";
|
|
225
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
226
|
+
readonly "x-dharta-error": "artifact_type_id_invalid";
|
|
227
|
+
};
|
|
228
|
+
readonly root: {
|
|
229
|
+
readonly type: "string";
|
|
230
|
+
readonly minLength: 1;
|
|
231
|
+
readonly maxLength: 1024;
|
|
232
|
+
readonly pattern: "^(?!.*[\\uD800-\\uDFFF])(?!/)(?!.*\\\\)(?!.*//)(?!\\.\\.?(?:$|/))(?!.*[/]\\.\\.?(?:$|/))(?!\\.dharta/inputs(?:/|$))[^\\u0000/]+(?:/[^\\u0000/]+)*$";
|
|
233
|
+
readonly "x-dharta-error": "artifact_root_invalid";
|
|
234
|
+
};
|
|
235
|
+
readonly entry: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly minLength: 1;
|
|
238
|
+
readonly maxLength: 1024;
|
|
239
|
+
readonly pattern: "^(?!.*[\\uD800-\\uDFFF])(?!/)(?!.*\\\\)(?!.*//)(?!\\.\\.?(?:$|/))(?!.*[/]\\.\\.?(?:$|/))[^\\u0000/]+(?:/[^\\u0000/]+)*$";
|
|
240
|
+
readonly "x-dharta-error": "artifact_entry_invalid";
|
|
241
|
+
};
|
|
242
|
+
readonly run: {
|
|
243
|
+
readonly type: "string";
|
|
244
|
+
readonly minLength: 1;
|
|
245
|
+
readonly maxLength: 16384;
|
|
246
|
+
readonly pattern: "^(?!.*[\\uD800-\\uDFFF])[^\\u0000]+$";
|
|
247
|
+
readonly "x-dharta-error": "artifact_run_invalid";
|
|
248
|
+
};
|
|
249
|
+
readonly agent_activation: {
|
|
250
|
+
readonly $ref: "#/$defs/agent_activation_v1";
|
|
251
|
+
};
|
|
252
|
+
readonly inputs: {
|
|
253
|
+
readonly type: "object";
|
|
254
|
+
readonly maxProperties: 64;
|
|
255
|
+
readonly propertyNames: {
|
|
256
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
257
|
+
readonly "x-dharta-error": "artifact_input_alias_invalid";
|
|
258
|
+
};
|
|
259
|
+
readonly additionalProperties: {
|
|
260
|
+
readonly $ref: "#/$defs/input_v2";
|
|
261
|
+
};
|
|
262
|
+
readonly "x-dharta-error": "artifact_inputs_invalid";
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
readonly "x-dharta-error": "artifact_v2_invalid";
|
|
266
|
+
};
|
|
267
|
+
readonly artifact_v1: {
|
|
268
|
+
readonly type: "object";
|
|
269
|
+
readonly required: readonly ("contract_version" | "dependencies" | "entrypoint" | "key" | "kind" | "title")[];
|
|
270
|
+
readonly properties: {
|
|
271
|
+
readonly contract_version: {
|
|
272
|
+
readonly const: 1;
|
|
273
|
+
readonly "x-dharta-error": "artifact_contract_version_invalid";
|
|
274
|
+
};
|
|
275
|
+
readonly key: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly minLength: 1;
|
|
278
|
+
};
|
|
279
|
+
readonly kind: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly minLength: 1;
|
|
282
|
+
};
|
|
283
|
+
readonly title: {
|
|
284
|
+
readonly type: "string";
|
|
285
|
+
readonly minLength: 1;
|
|
286
|
+
};
|
|
287
|
+
readonly entrypoint: {
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
readonly minLength: 1;
|
|
290
|
+
};
|
|
291
|
+
readonly dependencies: {
|
|
292
|
+
readonly type: "array";
|
|
293
|
+
readonly items: {
|
|
294
|
+
readonly type: "object";
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
readonly suggested_surface: {
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
readonly minLength: 1;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
readonly additionalProperties: true;
|
|
303
|
+
readonly "x-dharta-error": "artifact_v1_invalid";
|
|
304
|
+
};
|
|
305
|
+
readonly manifest_document: {
|
|
306
|
+
readonly type: "object";
|
|
307
|
+
readonly additionalProperties: false;
|
|
308
|
+
readonly required: readonly ("artifacts" | "schema")[];
|
|
309
|
+
readonly properties: {
|
|
310
|
+
readonly schema: {
|
|
311
|
+
readonly const: 2;
|
|
312
|
+
readonly "x-dharta-error": "artifact_document_schema_invalid";
|
|
313
|
+
};
|
|
314
|
+
readonly artifacts: {
|
|
315
|
+
readonly type: "array";
|
|
316
|
+
readonly maxItems: 256;
|
|
317
|
+
readonly items: {
|
|
318
|
+
readonly oneOf: readonly ({
|
|
319
|
+
readonly $ref: "#/$defs/artifact_v1";
|
|
320
|
+
} | {
|
|
321
|
+
readonly $ref: "#/$defs/artifact_v2";
|
|
322
|
+
})[];
|
|
323
|
+
};
|
|
324
|
+
readonly "x-dharta-error": "artifact_document_invalid";
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
readonly "x-dharta-error": "artifact_document_invalid";
|
|
328
|
+
};
|
|
329
|
+
readonly artifact_summary_input_v2: {
|
|
330
|
+
readonly type: "object";
|
|
331
|
+
readonly additionalProperties: false;
|
|
332
|
+
readonly required: readonly ("alias" | "files" | "freshness" | "kind" | "snapshot_id" | "source" | "total_bytes")[];
|
|
333
|
+
readonly properties: {
|
|
334
|
+
readonly alias: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
337
|
+
};
|
|
338
|
+
readonly source: {
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
readonly maxLength: 2048;
|
|
341
|
+
};
|
|
342
|
+
readonly freshness: {
|
|
343
|
+
readonly enum: readonly ("follow" | "pinned")[];
|
|
344
|
+
};
|
|
345
|
+
readonly snapshot_id: {
|
|
346
|
+
readonly type: "string";
|
|
347
|
+
readonly minLength: 1;
|
|
348
|
+
};
|
|
349
|
+
readonly kind: {
|
|
350
|
+
readonly enum: readonly ("directory" | "file")[];
|
|
351
|
+
};
|
|
352
|
+
readonly files: {
|
|
353
|
+
readonly type: "integer";
|
|
354
|
+
readonly minimum: 0;
|
|
355
|
+
};
|
|
356
|
+
readonly total_bytes: {
|
|
357
|
+
readonly type: "integer";
|
|
358
|
+
readonly minimum: 0;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
readonly artifact_summary_v1: {
|
|
363
|
+
readonly type: "object";
|
|
364
|
+
readonly additionalProperties: false;
|
|
365
|
+
readonly required: readonly ("artifact_id" | "artifact_version_id" | "contract_version" | "entrypoint" | "key" | "kind" | "member_count" | "portability" | "publish_audiences" | "renderer" | "schema_version" | "snapshot_id" | "title" | "total_bytes")[];
|
|
366
|
+
readonly properties: {
|
|
367
|
+
readonly contract_version: {
|
|
368
|
+
readonly const: 1;
|
|
369
|
+
};
|
|
370
|
+
readonly artifact_id: {
|
|
371
|
+
readonly type: "string";
|
|
372
|
+
readonly minLength: 1;
|
|
373
|
+
};
|
|
374
|
+
readonly artifact_version_id: {
|
|
375
|
+
readonly type: "string";
|
|
376
|
+
readonly minLength: 1;
|
|
377
|
+
};
|
|
378
|
+
readonly key: {
|
|
379
|
+
readonly type: "string";
|
|
380
|
+
readonly minLength: 1;
|
|
381
|
+
};
|
|
382
|
+
readonly kind: {
|
|
383
|
+
readonly type: "string";
|
|
384
|
+
readonly minLength: 1;
|
|
385
|
+
};
|
|
386
|
+
readonly title: {
|
|
387
|
+
readonly type: "string";
|
|
388
|
+
readonly minLength: 1;
|
|
389
|
+
};
|
|
390
|
+
readonly entrypoint: {
|
|
391
|
+
readonly type: "string";
|
|
392
|
+
readonly minLength: 1;
|
|
393
|
+
};
|
|
394
|
+
readonly renderer: {
|
|
395
|
+
readonly type: "string";
|
|
396
|
+
readonly minLength: 1;
|
|
397
|
+
};
|
|
398
|
+
readonly schema_version: {
|
|
399
|
+
readonly type: "integer";
|
|
400
|
+
readonly minimum: 1;
|
|
401
|
+
};
|
|
402
|
+
readonly portability: {
|
|
403
|
+
readonly enum: readonly ("explainable" | "forkable" | "static")[];
|
|
404
|
+
};
|
|
405
|
+
readonly snapshot_id: {
|
|
406
|
+
readonly type: "string";
|
|
407
|
+
readonly minLength: 1;
|
|
408
|
+
};
|
|
409
|
+
readonly member_count: {
|
|
410
|
+
readonly type: "integer";
|
|
411
|
+
readonly minimum: 0;
|
|
412
|
+
};
|
|
413
|
+
readonly total_bytes: {
|
|
414
|
+
readonly type: "integer";
|
|
415
|
+
readonly minimum: 0;
|
|
416
|
+
};
|
|
417
|
+
readonly publish_audiences: {
|
|
418
|
+
readonly type: "array";
|
|
419
|
+
readonly items: {
|
|
420
|
+
readonly enum: readonly ("link" | "named" | "organization" | "public")[];
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
readonly artifact_summary_v2: {
|
|
426
|
+
readonly type: "object";
|
|
427
|
+
readonly additionalProperties: false;
|
|
428
|
+
readonly required: readonly ("artifact_id" | "artifact_version_id" | "contract_version" | "id" | "inputs" | "member_count" | "publish_audiences" | "root" | "snapshot_id" | "title" | "total_bytes")[];
|
|
429
|
+
readonly allOf: readonly ({
|
|
430
|
+
readonly oneOf: readonly ({
|
|
431
|
+
readonly required: readonly ("entry" | "presentation_availability" | "renderer")[];
|
|
432
|
+
readonly not: {
|
|
433
|
+
readonly anyOf: readonly ({
|
|
434
|
+
readonly required: readonly "run"[];
|
|
435
|
+
} | {
|
|
436
|
+
readonly required: readonly "execution_availability"[];
|
|
437
|
+
} | {
|
|
438
|
+
readonly required: readonly "execution_unavailable_reason"[];
|
|
439
|
+
})[];
|
|
440
|
+
};
|
|
441
|
+
} | {
|
|
442
|
+
readonly required: readonly ("execution_availability" | "run")[];
|
|
443
|
+
readonly not: {
|
|
444
|
+
readonly anyOf: readonly ({
|
|
445
|
+
readonly required: readonly "entry"[];
|
|
446
|
+
} | {
|
|
447
|
+
readonly required: readonly "renderer"[];
|
|
448
|
+
} | {
|
|
449
|
+
readonly required: readonly "presentation_availability"[];
|
|
450
|
+
} | {
|
|
451
|
+
readonly required: readonly "presentation_unavailable_reason"[];
|
|
452
|
+
})[];
|
|
453
|
+
};
|
|
454
|
+
})[];
|
|
455
|
+
} | {
|
|
456
|
+
readonly if: {
|
|
457
|
+
readonly required: readonly "agent_activation"[];
|
|
458
|
+
};
|
|
459
|
+
readonly then: {
|
|
460
|
+
readonly properties: {
|
|
461
|
+
readonly run: {
|
|
462
|
+
readonly const: "karta artifact run agent .";
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
readonly required: readonly "run"[];
|
|
466
|
+
};
|
|
467
|
+
})[];
|
|
468
|
+
readonly properties: {
|
|
469
|
+
readonly contract_version: {
|
|
470
|
+
readonly const: 2;
|
|
471
|
+
};
|
|
472
|
+
readonly artifact_id: {
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
readonly minLength: 1;
|
|
475
|
+
};
|
|
476
|
+
readonly artifact_version_id: {
|
|
477
|
+
readonly type: "string";
|
|
478
|
+
readonly minLength: 1;
|
|
479
|
+
};
|
|
480
|
+
readonly id: {
|
|
481
|
+
readonly type: "string";
|
|
482
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$";
|
|
483
|
+
};
|
|
484
|
+
readonly title: {
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
readonly minLength: 1;
|
|
487
|
+
};
|
|
488
|
+
readonly root: {
|
|
489
|
+
readonly type: "string";
|
|
490
|
+
readonly minLength: 1;
|
|
491
|
+
};
|
|
492
|
+
readonly entry: {
|
|
493
|
+
readonly type: "string";
|
|
494
|
+
readonly minLength: 1;
|
|
495
|
+
};
|
|
496
|
+
readonly run: {
|
|
497
|
+
readonly type: "string";
|
|
498
|
+
readonly minLength: 1;
|
|
499
|
+
};
|
|
500
|
+
readonly agent_activation: {
|
|
501
|
+
readonly $ref: "#/$defs/agent_activation_v1";
|
|
502
|
+
};
|
|
503
|
+
readonly renderer: {
|
|
504
|
+
readonly enum: readonly ("builtin.audio" | "builtin.code" | "builtin.csv" | "builtin.download" | "builtin.html" | "builtin.image" | "builtin.markdown" | "builtin.pdf" | "builtin.text" | "builtin.video")[];
|
|
505
|
+
};
|
|
506
|
+
readonly type_id: {
|
|
507
|
+
readonly type: "string";
|
|
508
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
509
|
+
};
|
|
510
|
+
readonly snapshot_id: {
|
|
511
|
+
readonly type: "string";
|
|
512
|
+
readonly minLength: 1;
|
|
513
|
+
};
|
|
514
|
+
readonly member_count: {
|
|
515
|
+
readonly type: "integer";
|
|
516
|
+
readonly minimum: 0;
|
|
517
|
+
};
|
|
518
|
+
readonly total_bytes: {
|
|
519
|
+
readonly type: "integer";
|
|
520
|
+
readonly minimum: 0;
|
|
521
|
+
};
|
|
522
|
+
readonly inputs: {
|
|
523
|
+
readonly type: "array";
|
|
524
|
+
readonly items: {
|
|
525
|
+
readonly $ref: "#/$defs/artifact_summary_input_v2";
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
readonly presentation_availability: {
|
|
529
|
+
readonly enum: readonly ("available" | "unavailable")[];
|
|
530
|
+
};
|
|
531
|
+
readonly presentation_unavailable_reason: {
|
|
532
|
+
readonly type: "string";
|
|
533
|
+
readonly minLength: 1;
|
|
534
|
+
};
|
|
535
|
+
readonly execution_availability: {
|
|
536
|
+
readonly enum: readonly ("available" | "unavailable")[];
|
|
537
|
+
};
|
|
538
|
+
readonly execution_unavailable_reason: {
|
|
539
|
+
readonly type: "string";
|
|
540
|
+
readonly minLength: 1;
|
|
541
|
+
};
|
|
542
|
+
readonly publish_audiences: {
|
|
543
|
+
readonly type: "array";
|
|
544
|
+
readonly items: {
|
|
545
|
+
readonly enum: readonly ("link" | "named" | "organization" | "public")[];
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
readonly portable_pack_input: {
|
|
551
|
+
readonly type: "object";
|
|
552
|
+
readonly additionalProperties: false;
|
|
553
|
+
readonly required: readonly ("alias" | "bytes" | "files" | "freshness" | "kind" | "tree_digest")[];
|
|
554
|
+
readonly properties: {
|
|
555
|
+
readonly alias: {
|
|
556
|
+
readonly type: "string";
|
|
557
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
558
|
+
};
|
|
559
|
+
readonly freshness: {
|
|
560
|
+
readonly enum: readonly ("follow" | "pinned")[];
|
|
561
|
+
};
|
|
562
|
+
readonly kind: {
|
|
563
|
+
readonly enum: readonly ("directory" | "file")[];
|
|
564
|
+
};
|
|
565
|
+
readonly tree_digest: {
|
|
566
|
+
readonly type: "string";
|
|
567
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
568
|
+
};
|
|
569
|
+
readonly files: {
|
|
570
|
+
readonly type: "integer";
|
|
571
|
+
readonly minimum: 0;
|
|
572
|
+
};
|
|
573
|
+
readonly bytes: {
|
|
574
|
+
readonly type: "integer";
|
|
575
|
+
readonly minimum: 0;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
readonly portable_pack_member: {
|
|
580
|
+
readonly type: "object";
|
|
581
|
+
readonly additionalProperties: false;
|
|
582
|
+
readonly required: readonly ("kind" | "mode" | "path" | "scope" | "size")[];
|
|
583
|
+
readonly properties: {
|
|
584
|
+
readonly scope: {
|
|
585
|
+
readonly enum: readonly ("input" | "root" | "type")[];
|
|
586
|
+
};
|
|
587
|
+
readonly alias: {
|
|
588
|
+
readonly type: "string";
|
|
589
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
590
|
+
};
|
|
591
|
+
readonly path: {
|
|
592
|
+
readonly type: "string";
|
|
593
|
+
readonly minLength: 1;
|
|
594
|
+
readonly maxLength: 1024;
|
|
595
|
+
};
|
|
596
|
+
readonly kind: {
|
|
597
|
+
readonly enum: readonly ("directory" | "file" | "symlink")[];
|
|
598
|
+
};
|
|
599
|
+
readonly digest: {
|
|
600
|
+
readonly type: "string";
|
|
601
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
602
|
+
};
|
|
603
|
+
readonly size: {
|
|
604
|
+
readonly type: "integer";
|
|
605
|
+
readonly minimum: 0;
|
|
606
|
+
};
|
|
607
|
+
readonly mode: {
|
|
608
|
+
readonly type: "integer";
|
|
609
|
+
readonly minimum: 0;
|
|
610
|
+
readonly maximum: 4095;
|
|
611
|
+
};
|
|
612
|
+
readonly target: {
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
readonly minLength: 1;
|
|
615
|
+
readonly maxLength: 4096;
|
|
616
|
+
};
|
|
617
|
+
readonly target_kind: {
|
|
618
|
+
readonly enum: readonly ("directory" | "file")[];
|
|
619
|
+
};
|
|
620
|
+
readonly generation: {
|
|
621
|
+
readonly type: "integer";
|
|
622
|
+
readonly minimum: 0;
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
readonly portable_execution_capabilities: {
|
|
627
|
+
readonly type: "object";
|
|
628
|
+
readonly additionalProperties: false;
|
|
629
|
+
readonly required: readonly ("connections" | "credentials" | "model" | "network" | "workspace")[];
|
|
630
|
+
readonly properties: {
|
|
631
|
+
readonly network: {
|
|
632
|
+
readonly const: "none";
|
|
633
|
+
};
|
|
634
|
+
readonly workspace: {
|
|
635
|
+
readonly const: "none";
|
|
636
|
+
};
|
|
637
|
+
readonly model: {
|
|
638
|
+
readonly const: false;
|
|
639
|
+
};
|
|
640
|
+
readonly credentials: {
|
|
641
|
+
readonly type: "array";
|
|
642
|
+
readonly maxItems: 0;
|
|
643
|
+
};
|
|
644
|
+
readonly connections: {
|
|
645
|
+
readonly type: "array";
|
|
646
|
+
readonly maxItems: 0;
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
readonly portable_execution_pack: {
|
|
651
|
+
readonly type: "object";
|
|
652
|
+
readonly additionalProperties: false;
|
|
653
|
+
readonly required: readonly ("artifact_id" | "artifact_version_id" | "capabilities" | "cost_owner" | "format" | "inputs" | "members" | "root" | "run" | "type_id" | "type_package_digest")[];
|
|
654
|
+
readonly properties: {
|
|
655
|
+
readonly format: {
|
|
656
|
+
readonly const: "dharta.portable-artifact-execution-pack.v1";
|
|
657
|
+
};
|
|
658
|
+
readonly artifact_id: {
|
|
659
|
+
readonly type: "string";
|
|
660
|
+
readonly minLength: 1;
|
|
661
|
+
readonly maxLength: 128;
|
|
662
|
+
};
|
|
663
|
+
readonly artifact_version_id: {
|
|
664
|
+
readonly type: "string";
|
|
665
|
+
readonly minLength: 1;
|
|
666
|
+
readonly maxLength: 128;
|
|
667
|
+
};
|
|
668
|
+
readonly run: {
|
|
669
|
+
readonly type: "string";
|
|
670
|
+
readonly minLength: 1;
|
|
671
|
+
readonly maxLength: 16384;
|
|
672
|
+
};
|
|
673
|
+
readonly root: {
|
|
674
|
+
readonly type: "object";
|
|
675
|
+
readonly additionalProperties: false;
|
|
676
|
+
readonly required: readonly ("bytes" | "files" | "kind" | "tree_digest")[];
|
|
677
|
+
readonly properties: {
|
|
678
|
+
readonly kind: {
|
|
679
|
+
readonly enum: readonly ("directory" | "file")[];
|
|
680
|
+
};
|
|
681
|
+
readonly tree_digest: {
|
|
682
|
+
readonly type: "string";
|
|
683
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
684
|
+
};
|
|
685
|
+
readonly files: {
|
|
686
|
+
readonly type: "integer";
|
|
687
|
+
readonly minimum: 0;
|
|
688
|
+
};
|
|
689
|
+
readonly bytes: {
|
|
690
|
+
readonly type: "integer";
|
|
691
|
+
readonly minimum: 0;
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
readonly inputs: {
|
|
696
|
+
readonly type: "array";
|
|
697
|
+
readonly maxItems: 64;
|
|
698
|
+
readonly items: {
|
|
699
|
+
readonly $ref: "#/$defs/portable_pack_input";
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
readonly type_id: {
|
|
703
|
+
readonly type: readonly ("null" | "string")[];
|
|
704
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
705
|
+
};
|
|
706
|
+
readonly type_package_digest: {
|
|
707
|
+
readonly type: readonly ("null" | "string")[];
|
|
708
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
709
|
+
};
|
|
710
|
+
readonly cost_owner: {
|
|
711
|
+
readonly enum: readonly ("organization" | "publisher" | "viewer")[];
|
|
712
|
+
};
|
|
713
|
+
readonly capabilities: {
|
|
714
|
+
readonly $ref: "#/$defs/portable_execution_capabilities";
|
|
715
|
+
};
|
|
716
|
+
readonly members: {
|
|
717
|
+
readonly type: "array";
|
|
718
|
+
readonly maxItems: 20000;
|
|
719
|
+
readonly items: {
|
|
720
|
+
readonly $ref: "#/$defs/portable_pack_member";
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
readonly portable_execution_consent: {
|
|
726
|
+
readonly type: "object";
|
|
727
|
+
readonly additionalProperties: false;
|
|
728
|
+
readonly required: readonly ("artifact_version_id" | "capabilities" | "consent_digest" | "cost_owner" | "inputs" | "pack_id" | "required_live_execution" | "root" | "run" | "type_id" | "unique_bytes" | "unique_files")[];
|
|
729
|
+
readonly properties: {
|
|
730
|
+
readonly pack_id: {
|
|
731
|
+
readonly type: "string";
|
|
732
|
+
readonly pattern: "^sp_[0-9a-f]{64}$";
|
|
733
|
+
};
|
|
734
|
+
readonly artifact_version_id: {
|
|
735
|
+
readonly type: "string";
|
|
736
|
+
readonly minLength: 1;
|
|
737
|
+
readonly maxLength: 128;
|
|
738
|
+
};
|
|
739
|
+
readonly run: {
|
|
740
|
+
readonly type: "string";
|
|
741
|
+
readonly minLength: 1;
|
|
742
|
+
readonly maxLength: 16384;
|
|
743
|
+
};
|
|
744
|
+
readonly required_live_execution: {
|
|
745
|
+
readonly const: true;
|
|
746
|
+
};
|
|
747
|
+
readonly cost_owner: {
|
|
748
|
+
readonly enum: readonly ("organization" | "publisher" | "viewer")[];
|
|
749
|
+
};
|
|
750
|
+
readonly capabilities: {
|
|
751
|
+
readonly $ref: "#/$defs/portable_execution_capabilities";
|
|
752
|
+
};
|
|
753
|
+
readonly root: {
|
|
754
|
+
readonly type: "object";
|
|
755
|
+
readonly additionalProperties: false;
|
|
756
|
+
readonly required: readonly ("bytes" | "files")[];
|
|
757
|
+
readonly properties: {
|
|
758
|
+
readonly files: {
|
|
759
|
+
readonly type: "integer";
|
|
760
|
+
readonly minimum: 0;
|
|
761
|
+
};
|
|
762
|
+
readonly bytes: {
|
|
763
|
+
readonly type: "integer";
|
|
764
|
+
readonly minimum: 0;
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
readonly inputs: {
|
|
769
|
+
readonly type: "array";
|
|
770
|
+
readonly maxItems: 64;
|
|
771
|
+
readonly items: {
|
|
772
|
+
readonly type: "object";
|
|
773
|
+
readonly additionalProperties: false;
|
|
774
|
+
readonly required: readonly ("alias" | "bytes" | "files" | "freshness")[];
|
|
775
|
+
readonly properties: {
|
|
776
|
+
readonly alias: {
|
|
777
|
+
readonly type: "string";
|
|
778
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
779
|
+
};
|
|
780
|
+
readonly freshness: {
|
|
781
|
+
readonly enum: readonly ("follow" | "pinned")[];
|
|
782
|
+
};
|
|
783
|
+
readonly files: {
|
|
784
|
+
readonly type: "integer";
|
|
785
|
+
readonly minimum: 0;
|
|
786
|
+
};
|
|
787
|
+
readonly bytes: {
|
|
788
|
+
readonly type: "integer";
|
|
789
|
+
readonly minimum: 0;
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
};
|
|
794
|
+
readonly type_id: {
|
|
795
|
+
readonly type: readonly ("null" | "string")[];
|
|
796
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$";
|
|
797
|
+
};
|
|
798
|
+
readonly unique_files: {
|
|
799
|
+
readonly type: "integer";
|
|
800
|
+
readonly minimum: 0;
|
|
801
|
+
};
|
|
802
|
+
readonly unique_bytes: {
|
|
803
|
+
readonly type: "integer";
|
|
804
|
+
readonly minimum: 0;
|
|
805
|
+
};
|
|
806
|
+
readonly consent_digest: {
|
|
807
|
+
readonly type: "string";
|
|
808
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
readonly artifact_execution_session: {
|
|
813
|
+
readonly type: "object";
|
|
814
|
+
readonly additionalProperties: false;
|
|
815
|
+
readonly required: readonly ("absolute_expires_at" | "artifact_version_id" | "cost_microusd" | "cost_state" | "id" | "lease_expires_at" | "metered_seconds" | "renewal_token" | "state" | "url")[];
|
|
816
|
+
readonly properties: {
|
|
817
|
+
readonly id: {
|
|
818
|
+
readonly type: "string";
|
|
819
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$";
|
|
820
|
+
};
|
|
821
|
+
readonly url: {
|
|
822
|
+
readonly type: "string";
|
|
823
|
+
readonly format: "uri";
|
|
824
|
+
readonly pattern: "^https://";
|
|
825
|
+
};
|
|
826
|
+
readonly state: {
|
|
827
|
+
readonly enum: readonly ("active" | "hidden")[];
|
|
828
|
+
};
|
|
829
|
+
readonly lease_expires_at: {
|
|
830
|
+
readonly type: "string";
|
|
831
|
+
readonly format: "date-time";
|
|
832
|
+
};
|
|
833
|
+
readonly absolute_expires_at: {
|
|
834
|
+
readonly type: "string";
|
|
835
|
+
readonly format: "date-time";
|
|
836
|
+
};
|
|
837
|
+
readonly cost_microusd: {
|
|
838
|
+
readonly type: "integer";
|
|
839
|
+
readonly minimum: 0;
|
|
840
|
+
};
|
|
841
|
+
readonly cost_state: {
|
|
842
|
+
readonly enum: readonly ("final" | "pending")[];
|
|
843
|
+
};
|
|
844
|
+
readonly metered_seconds: {
|
|
845
|
+
readonly type: "integer";
|
|
846
|
+
readonly minimum: 0;
|
|
847
|
+
};
|
|
848
|
+
readonly artifact_version_id: {
|
|
849
|
+
readonly type: "string";
|
|
850
|
+
readonly pattern: "^[A-Za-z0-9_-]{1,64}$";
|
|
851
|
+
};
|
|
852
|
+
readonly renewal_token: {
|
|
853
|
+
readonly type: "string";
|
|
854
|
+
readonly pattern: "^sfl_[A-Za-z0-9_-]{32,96}$";
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
readonly artifact_execution_renewal: {
|
|
859
|
+
readonly type: "object";
|
|
860
|
+
readonly additionalProperties: false;
|
|
861
|
+
readonly required: readonly ("absolute_expires_at" | "cost_microusd" | "cost_state" | "handoff" | "id" | "lease_expires_at" | "metered_seconds" | "state")[];
|
|
862
|
+
readonly properties: {
|
|
863
|
+
readonly id: {
|
|
864
|
+
readonly type: "string";
|
|
865
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$";
|
|
866
|
+
};
|
|
867
|
+
readonly state: {
|
|
868
|
+
readonly enum: readonly ("active" | "hidden")[];
|
|
869
|
+
};
|
|
870
|
+
readonly lease_expires_at: {
|
|
871
|
+
readonly type: "string";
|
|
872
|
+
readonly format: "date-time";
|
|
873
|
+
};
|
|
874
|
+
readonly absolute_expires_at: {
|
|
875
|
+
readonly type: "string";
|
|
876
|
+
readonly format: "date-time";
|
|
877
|
+
};
|
|
878
|
+
readonly cost_microusd: {
|
|
879
|
+
readonly type: "integer";
|
|
880
|
+
readonly minimum: 0;
|
|
881
|
+
};
|
|
882
|
+
readonly cost_state: {
|
|
883
|
+
readonly enum: readonly ("final" | "pending")[];
|
|
884
|
+
};
|
|
885
|
+
readonly metered_seconds: {
|
|
886
|
+
readonly type: "integer";
|
|
887
|
+
readonly minimum: 0;
|
|
888
|
+
};
|
|
889
|
+
readonly handoff: {
|
|
890
|
+
readonly type: "string";
|
|
891
|
+
readonly pattern: "^aat_[A-Za-z0-9_-]{39,1996}$";
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
readonly fixtures: readonly ({
|
|
897
|
+
readonly name: "generated-python-viewer";
|
|
898
|
+
readonly validator: "manifest";
|
|
899
|
+
readonly valid: true;
|
|
900
|
+
readonly value: {
|
|
901
|
+
readonly schema: 2;
|
|
902
|
+
readonly artifacts: readonly {
|
|
903
|
+
readonly contract_version: 2;
|
|
904
|
+
readonly id: "energy-landscape";
|
|
905
|
+
readonly title: "Energy Landscape";
|
|
906
|
+
readonly root: "outputs/energy-landscape";
|
|
907
|
+
readonly run: "python energy-landscape-viewer.py";
|
|
908
|
+
readonly inputs: {
|
|
909
|
+
readonly landscape: {
|
|
910
|
+
readonly source: "workspace:simulations/energy-landscape.sqlite";
|
|
911
|
+
readonly freshness: "follow";
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
}[];
|
|
915
|
+
};
|
|
916
|
+
} | {
|
|
917
|
+
readonly name: "developer-type-recipe";
|
|
918
|
+
readonly validator: "manifest";
|
|
919
|
+
readonly valid: true;
|
|
920
|
+
readonly value: {
|
|
921
|
+
readonly schema: 2;
|
|
922
|
+
readonly artifacts: readonly {
|
|
923
|
+
readonly contract_version: 2;
|
|
924
|
+
readonly id: "investment-report";
|
|
925
|
+
readonly title: "Investment Report";
|
|
926
|
+
readonly type_id: "investment-report";
|
|
927
|
+
readonly root: "outputs/investment-report";
|
|
928
|
+
readonly run: "python \"$DHARTA_ARTIFACT_TYPE_DIR/render.py\" report.sqlite";
|
|
929
|
+
readonly inputs: {
|
|
930
|
+
readonly evidence: {
|
|
931
|
+
readonly source: "workspace:evidence";
|
|
932
|
+
readonly freshness: "pinned";
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
}[];
|
|
936
|
+
};
|
|
937
|
+
} | {
|
|
938
|
+
readonly name: "passive-pdf-entry";
|
|
939
|
+
readonly validator: "manifest";
|
|
940
|
+
readonly valid: true;
|
|
941
|
+
readonly value: {
|
|
942
|
+
readonly schema: 2;
|
|
943
|
+
readonly artifacts: readonly {
|
|
944
|
+
readonly contract_version: 2;
|
|
945
|
+
readonly id: "audit-report";
|
|
946
|
+
readonly title: "Audit Report";
|
|
947
|
+
readonly root: "outputs/audit-report";
|
|
948
|
+
readonly entry: "report.pdf";
|
|
949
|
+
readonly inputs: {
|
|
950
|
+
readonly audit: {
|
|
951
|
+
readonly source: "workspace:audit/source";
|
|
952
|
+
readonly freshness: "pinned";
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
}[];
|
|
956
|
+
};
|
|
957
|
+
} | {
|
|
958
|
+
readonly name: "static-html-entry";
|
|
959
|
+
readonly validator: "manifest";
|
|
960
|
+
readonly valid: true;
|
|
961
|
+
readonly value: {
|
|
962
|
+
readonly schema: 2;
|
|
963
|
+
readonly artifacts: readonly {
|
|
964
|
+
readonly contract_version: 2;
|
|
965
|
+
readonly id: "interactive-report";
|
|
966
|
+
readonly title: "Interactive Report";
|
|
967
|
+
readonly root: "outputs/interactive-report";
|
|
968
|
+
readonly entry: "index.html";
|
|
969
|
+
readonly inputs: {};
|
|
970
|
+
}[];
|
|
971
|
+
};
|
|
972
|
+
} | {
|
|
973
|
+
readonly name: "interactive-post-websocket";
|
|
974
|
+
readonly validator: "manifest";
|
|
975
|
+
readonly valid: true;
|
|
976
|
+
readonly value: {
|
|
977
|
+
readonly schema: 2;
|
|
978
|
+
readonly artifacts: readonly {
|
|
979
|
+
readonly contract_version: 2;
|
|
980
|
+
readonly id: "simulation";
|
|
981
|
+
readonly title: "Interactive Simulation";
|
|
982
|
+
readonly root: "outputs/simulation";
|
|
983
|
+
readonly run: "python server.py";
|
|
984
|
+
readonly inputs: {};
|
|
985
|
+
}[];
|
|
986
|
+
};
|
|
987
|
+
} | {
|
|
988
|
+
readonly name: "arbitrary-shell-command";
|
|
989
|
+
readonly validator: "manifest";
|
|
990
|
+
readonly valid: true;
|
|
991
|
+
readonly value: {
|
|
992
|
+
readonly schema: 2;
|
|
993
|
+
readonly artifacts: readonly {
|
|
994
|
+
readonly contract_version: 2;
|
|
995
|
+
readonly id: "generated-dashboard";
|
|
996
|
+
readonly title: "Generated Dashboard";
|
|
997
|
+
readonly root: "outputs/generated-dashboard";
|
|
998
|
+
readonly run: "python preprocess.py && http-server index.html --port \"$DHARTA_ARTIFACT_PORT\"";
|
|
999
|
+
readonly inputs: {};
|
|
1000
|
+
}[];
|
|
1001
|
+
};
|
|
1002
|
+
} | {
|
|
1003
|
+
readonly name: "shared-sqlite-follow-input";
|
|
1004
|
+
readonly validator: "manifest";
|
|
1005
|
+
readonly valid: true;
|
|
1006
|
+
readonly value: {
|
|
1007
|
+
readonly schema: 2;
|
|
1008
|
+
readonly artifacts: readonly ({
|
|
1009
|
+
readonly contract_version: 2;
|
|
1010
|
+
readonly id: "landscape-map";
|
|
1011
|
+
readonly title: "Landscape Map";
|
|
1012
|
+
readonly root: "outputs/landscape-map";
|
|
1013
|
+
readonly run: "python map.py";
|
|
1014
|
+
readonly inputs: {
|
|
1015
|
+
readonly simulation: {
|
|
1016
|
+
readonly source: "workspace:simulations/shared.sqlite";
|
|
1017
|
+
readonly freshness: "follow";
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
} | {
|
|
1021
|
+
readonly contract_version: 2;
|
|
1022
|
+
readonly id: "landscape-table";
|
|
1023
|
+
readonly title: "Landscape Table";
|
|
1024
|
+
readonly root: "outputs/landscape-table";
|
|
1025
|
+
readonly run: "python table.py";
|
|
1026
|
+
readonly inputs: {
|
|
1027
|
+
readonly simulation: {
|
|
1028
|
+
readonly source: "workspace:simulations/shared.sqlite";
|
|
1029
|
+
readonly freshness: "follow";
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
})[];
|
|
1033
|
+
};
|
|
1034
|
+
} | {
|
|
1035
|
+
readonly name: "generated-agent-app";
|
|
1036
|
+
readonly validator: "manifest";
|
|
1037
|
+
readonly valid: true;
|
|
1038
|
+
readonly value: {
|
|
1039
|
+
readonly schema: 2;
|
|
1040
|
+
readonly artifacts: readonly {
|
|
1041
|
+
readonly contract_version: 2;
|
|
1042
|
+
readonly id: "scenario-analyst";
|
|
1043
|
+
readonly title: "Scenario Analyst";
|
|
1044
|
+
readonly root: "outputs/scenario-analyst";
|
|
1045
|
+
readonly run: "karta artifact run agent .";
|
|
1046
|
+
readonly agent_activation: {
|
|
1047
|
+
readonly authorities: readonly "model"[];
|
|
1048
|
+
readonly budget_cents: 100;
|
|
1049
|
+
readonly lifetime_seconds: 3600;
|
|
1050
|
+
readonly descendant_ceiling: 0;
|
|
1051
|
+
readonly activation_mode: "resume";
|
|
1052
|
+
readonly visibility: "user-facing";
|
|
1053
|
+
};
|
|
1054
|
+
readonly inputs: {};
|
|
1055
|
+
}[];
|
|
1056
|
+
};
|
|
1057
|
+
} | {
|
|
1058
|
+
readonly name: "agent-activation-on-arbitrary-runner";
|
|
1059
|
+
readonly validator: "artifact";
|
|
1060
|
+
readonly valid: false;
|
|
1061
|
+
readonly error: "artifact_agent_activation_runner_required";
|
|
1062
|
+
readonly value: {
|
|
1063
|
+
readonly contract_version: 2;
|
|
1064
|
+
readonly id: "bad-agent";
|
|
1065
|
+
readonly title: "Bad Agent";
|
|
1066
|
+
readonly root: "outputs/bad-agent";
|
|
1067
|
+
readonly run: "python server.py";
|
|
1068
|
+
readonly agent_activation: {
|
|
1069
|
+
readonly authorities: readonly never[];
|
|
1070
|
+
readonly budget_cents: 0;
|
|
1071
|
+
readonly lifetime_seconds: 3600;
|
|
1072
|
+
readonly descendant_ceiling: 0;
|
|
1073
|
+
readonly activation_mode: "resume";
|
|
1074
|
+
readonly visibility: "headless";
|
|
1075
|
+
};
|
|
1076
|
+
readonly inputs: {};
|
|
1077
|
+
};
|
|
1078
|
+
} | {
|
|
1079
|
+
readonly name: "mixed-v1-v2";
|
|
1080
|
+
readonly validator: "manifest";
|
|
1081
|
+
readonly valid: true;
|
|
1082
|
+
readonly value: {
|
|
1083
|
+
readonly schema: 2;
|
|
1084
|
+
readonly artifacts: readonly ({
|
|
1085
|
+
readonly contract_version: 1;
|
|
1086
|
+
readonly key: "legacy-report";
|
|
1087
|
+
readonly kind: "briefing";
|
|
1088
|
+
readonly title: "Legacy report";
|
|
1089
|
+
readonly entrypoint: "reports/legacy.md";
|
|
1090
|
+
readonly dependencies: readonly {
|
|
1091
|
+
readonly role: "render";
|
|
1092
|
+
readonly path: "reports/legacy.md";
|
|
1093
|
+
}[];
|
|
1094
|
+
readonly suggested_surface: "artifact";
|
|
1095
|
+
} | {
|
|
1096
|
+
readonly contract_version: 2;
|
|
1097
|
+
readonly id: "new-report";
|
|
1098
|
+
readonly title: "New report";
|
|
1099
|
+
readonly root: "outputs/new-report";
|
|
1100
|
+
readonly entry: "report.md";
|
|
1101
|
+
readonly inputs: {};
|
|
1102
|
+
})[];
|
|
1103
|
+
};
|
|
1104
|
+
} | {
|
|
1105
|
+
readonly name: "legacy-v1-extension-roundtrip";
|
|
1106
|
+
readonly validator: "manifest";
|
|
1107
|
+
readonly valid: true;
|
|
1108
|
+
readonly value: {
|
|
1109
|
+
readonly schema: 2;
|
|
1110
|
+
readonly artifacts: readonly {
|
|
1111
|
+
readonly contract_version: 1;
|
|
1112
|
+
readonly key: "legacy-evidence";
|
|
1113
|
+
readonly kind: "audit";
|
|
1114
|
+
readonly title: "Legacy evidence";
|
|
1115
|
+
readonly entrypoint: "reports/evidence.md";
|
|
1116
|
+
readonly dependencies: readonly {
|
|
1117
|
+
readonly role: "render";
|
|
1118
|
+
readonly path: "reports/evidence.md";
|
|
1119
|
+
}[];
|
|
1120
|
+
readonly provenance: {
|
|
1121
|
+
readonly snapshot_id: "snap-17";
|
|
1122
|
+
readonly sources: readonly "evidence/a.json"[];
|
|
1123
|
+
};
|
|
1124
|
+
}[];
|
|
1125
|
+
};
|
|
1126
|
+
} | {
|
|
1127
|
+
readonly name: "root-traversal";
|
|
1128
|
+
readonly validator: "artifact";
|
|
1129
|
+
readonly valid: false;
|
|
1130
|
+
readonly error: "artifact_root_invalid";
|
|
1131
|
+
readonly value: {
|
|
1132
|
+
readonly contract_version: 2;
|
|
1133
|
+
readonly id: "bad-root";
|
|
1134
|
+
readonly title: "Bad root";
|
|
1135
|
+
readonly root: "../secret";
|
|
1136
|
+
readonly run: "python viewer.py";
|
|
1137
|
+
readonly inputs: {};
|
|
1138
|
+
};
|
|
1139
|
+
} | {
|
|
1140
|
+
readonly name: "reserved-root-collision";
|
|
1141
|
+
readonly validator: "artifact";
|
|
1142
|
+
readonly valid: false;
|
|
1143
|
+
readonly error: "artifact_root_invalid";
|
|
1144
|
+
readonly value: {
|
|
1145
|
+
readonly contract_version: 2;
|
|
1146
|
+
readonly id: "reserved-root";
|
|
1147
|
+
readonly title: "Reserved root";
|
|
1148
|
+
readonly root: ".dharta/inputs/data";
|
|
1149
|
+
readonly run: "python viewer.py";
|
|
1150
|
+
readonly inputs: {};
|
|
1151
|
+
};
|
|
1152
|
+
} | {
|
|
1153
|
+
readonly name: "malicious-shell-nul";
|
|
1154
|
+
readonly validator: "artifact";
|
|
1155
|
+
readonly valid: false;
|
|
1156
|
+
readonly error: "artifact_run_invalid";
|
|
1157
|
+
readonly value: {
|
|
1158
|
+
readonly contract_version: 2;
|
|
1159
|
+
readonly id: "bad-shell";
|
|
1160
|
+
readonly title: "Bad shell";
|
|
1161
|
+
readonly root: "outputs/bad-shell";
|
|
1162
|
+
readonly run: "python viewer.py\0--escape";
|
|
1163
|
+
readonly inputs: {};
|
|
1164
|
+
};
|
|
1165
|
+
} | {
|
|
1166
|
+
readonly name: "empty-run";
|
|
1167
|
+
readonly validator: "artifact";
|
|
1168
|
+
readonly valid: false;
|
|
1169
|
+
readonly error: "artifact_run_invalid";
|
|
1170
|
+
readonly value: {
|
|
1171
|
+
readonly contract_version: 2;
|
|
1172
|
+
readonly id: "empty-run";
|
|
1173
|
+
readonly title: "Empty run";
|
|
1174
|
+
readonly root: "outputs/empty-run";
|
|
1175
|
+
readonly run: "";
|
|
1176
|
+
readonly inputs: {};
|
|
1177
|
+
};
|
|
1178
|
+
} | {
|
|
1179
|
+
readonly name: "missing-presentation";
|
|
1180
|
+
readonly validator: "artifact";
|
|
1181
|
+
readonly valid: false;
|
|
1182
|
+
readonly error: "artifact_presentation_invalid";
|
|
1183
|
+
readonly value: {
|
|
1184
|
+
readonly contract_version: 2;
|
|
1185
|
+
readonly id: "missing-presentation";
|
|
1186
|
+
readonly title: "Missing Presentation";
|
|
1187
|
+
readonly root: "outputs/missing-presentation";
|
|
1188
|
+
readonly inputs: {};
|
|
1189
|
+
};
|
|
1190
|
+
} | {
|
|
1191
|
+
readonly name: "entry-and-run";
|
|
1192
|
+
readonly validator: "artifact";
|
|
1193
|
+
readonly valid: false;
|
|
1194
|
+
readonly error: "artifact_presentation_invalid";
|
|
1195
|
+
readonly value: {
|
|
1196
|
+
readonly contract_version: 2;
|
|
1197
|
+
readonly id: "entry-and-run";
|
|
1198
|
+
readonly title: "Entry and Run";
|
|
1199
|
+
readonly root: "outputs/entry-and-run";
|
|
1200
|
+
readonly entry: "index.html";
|
|
1201
|
+
readonly run: "python server.py";
|
|
1202
|
+
readonly inputs: {};
|
|
1203
|
+
};
|
|
1204
|
+
} | {
|
|
1205
|
+
readonly name: "entry-traversal";
|
|
1206
|
+
readonly validator: "artifact";
|
|
1207
|
+
readonly valid: false;
|
|
1208
|
+
readonly error: "artifact_entry_invalid";
|
|
1209
|
+
readonly value: {
|
|
1210
|
+
readonly contract_version: 2;
|
|
1211
|
+
readonly id: "bad-entry";
|
|
1212
|
+
readonly title: "Bad Entry";
|
|
1213
|
+
readonly root: "outputs/bad-entry";
|
|
1214
|
+
readonly entry: "../secret.md";
|
|
1215
|
+
readonly inputs: {};
|
|
1216
|
+
};
|
|
1217
|
+
} | {
|
|
1218
|
+
readonly name: "empty-entry";
|
|
1219
|
+
readonly validator: "artifact";
|
|
1220
|
+
readonly valid: false;
|
|
1221
|
+
readonly error: "artifact_entry_invalid";
|
|
1222
|
+
readonly value: {
|
|
1223
|
+
readonly contract_version: 2;
|
|
1224
|
+
readonly id: "empty-entry";
|
|
1225
|
+
readonly title: "Empty Entry";
|
|
1226
|
+
readonly root: "outputs/empty-entry";
|
|
1227
|
+
readonly entry: "";
|
|
1228
|
+
readonly inputs: {};
|
|
1229
|
+
};
|
|
1230
|
+
} | {
|
|
1231
|
+
readonly name: "invalid-run-unicode";
|
|
1232
|
+
readonly validator: "artifact";
|
|
1233
|
+
readonly valid: false;
|
|
1234
|
+
readonly error: "artifact_run_invalid";
|
|
1235
|
+
readonly value: {
|
|
1236
|
+
readonly contract_version: 2;
|
|
1237
|
+
readonly id: "unicode-run";
|
|
1238
|
+
readonly title: "Unicode run";
|
|
1239
|
+
readonly root: "outputs/unicode-run";
|
|
1240
|
+
readonly run: "python __KARTA_UNPAIRED_SURROGATE__";
|
|
1241
|
+
readonly inputs: {};
|
|
1242
|
+
};
|
|
1243
|
+
} | {
|
|
1244
|
+
readonly name: "invalid-title-unicode";
|
|
1245
|
+
readonly validator: "artifact";
|
|
1246
|
+
readonly valid: false;
|
|
1247
|
+
readonly error: "artifact_title_invalid";
|
|
1248
|
+
readonly value: {
|
|
1249
|
+
readonly contract_version: 2;
|
|
1250
|
+
readonly id: "unicode-title";
|
|
1251
|
+
readonly title: "__KARTA_UNPAIRED_SURROGATE__";
|
|
1252
|
+
readonly root: "outputs/unicode-title";
|
|
1253
|
+
readonly run: "python viewer.py";
|
|
1254
|
+
readonly inputs: {};
|
|
1255
|
+
};
|
|
1256
|
+
} | {
|
|
1257
|
+
readonly name: "invalid-root-unicode";
|
|
1258
|
+
readonly validator: "artifact";
|
|
1259
|
+
readonly valid: false;
|
|
1260
|
+
readonly error: "artifact_root_invalid";
|
|
1261
|
+
readonly value: {
|
|
1262
|
+
readonly contract_version: 2;
|
|
1263
|
+
readonly id: "unicode-root";
|
|
1264
|
+
readonly title: "Unicode root";
|
|
1265
|
+
readonly root: "outputs/__KARTA_UNPAIRED_SURROGATE__";
|
|
1266
|
+
readonly run: "python viewer.py";
|
|
1267
|
+
readonly inputs: {};
|
|
1268
|
+
};
|
|
1269
|
+
} | {
|
|
1270
|
+
readonly name: "invalid-input-source-unicode";
|
|
1271
|
+
readonly validator: "artifact";
|
|
1272
|
+
readonly valid: false;
|
|
1273
|
+
readonly error: "artifact_input_source_invalid";
|
|
1274
|
+
readonly value: {
|
|
1275
|
+
readonly contract_version: 2;
|
|
1276
|
+
readonly id: "unicode-input";
|
|
1277
|
+
readonly title: "Unicode input";
|
|
1278
|
+
readonly root: "outputs/unicode-input";
|
|
1279
|
+
readonly run: "python viewer.py";
|
|
1280
|
+
readonly inputs: {
|
|
1281
|
+
readonly data: {
|
|
1282
|
+
readonly source: "workspace:data/__KARTA_UNPAIRED_SURROGATE__";
|
|
1283
|
+
readonly freshness: "pinned";
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
} | {
|
|
1288
|
+
readonly name: "invalid-type-id";
|
|
1289
|
+
readonly validator: "artifact";
|
|
1290
|
+
readonly valid: false;
|
|
1291
|
+
readonly error: "artifact_type_id_invalid";
|
|
1292
|
+
readonly value: {
|
|
1293
|
+
readonly contract_version: 2;
|
|
1294
|
+
readonly id: "bad-type";
|
|
1295
|
+
readonly title: "Bad Type";
|
|
1296
|
+
readonly type_id: "../report";
|
|
1297
|
+
readonly root: "outputs/bad-type";
|
|
1298
|
+
readonly run: "python viewer.py";
|
|
1299
|
+
readonly inputs: {};
|
|
1300
|
+
};
|
|
1301
|
+
} | {
|
|
1302
|
+
readonly name: "implicit-freshness";
|
|
1303
|
+
readonly validator: "artifact";
|
|
1304
|
+
readonly valid: false;
|
|
1305
|
+
readonly error: "artifact_input_freshness_required";
|
|
1306
|
+
readonly value: {
|
|
1307
|
+
readonly contract_version: 2;
|
|
1308
|
+
readonly id: "implicit-freshness";
|
|
1309
|
+
readonly title: "Implicit freshness";
|
|
1310
|
+
readonly root: "outputs/implicit";
|
|
1311
|
+
readonly run: "python viewer.py";
|
|
1312
|
+
readonly inputs: {
|
|
1313
|
+
readonly data: {
|
|
1314
|
+
readonly source: "workspace:data.sqlite";
|
|
1315
|
+
};
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
} | {
|
|
1319
|
+
readonly name: "input-alias-traversal";
|
|
1320
|
+
readonly validator: "artifact";
|
|
1321
|
+
readonly valid: false;
|
|
1322
|
+
readonly error: "artifact_input_alias_invalid";
|
|
1323
|
+
readonly value: {
|
|
1324
|
+
readonly contract_version: 2;
|
|
1325
|
+
readonly id: "bad-alias";
|
|
1326
|
+
readonly title: "Bad alias";
|
|
1327
|
+
readonly root: "outputs/bad-alias";
|
|
1328
|
+
readonly run: "python viewer.py";
|
|
1329
|
+
readonly inputs: {
|
|
1330
|
+
readonly "../data": {
|
|
1331
|
+
readonly source: "workspace:data.sqlite";
|
|
1332
|
+
readonly freshness: "pinned";
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
};
|
|
1336
|
+
} | {
|
|
1337
|
+
readonly name: "workspace-source-traversal";
|
|
1338
|
+
readonly validator: "artifact";
|
|
1339
|
+
readonly valid: false;
|
|
1340
|
+
readonly error: "artifact_input_source_invalid";
|
|
1341
|
+
readonly value: {
|
|
1342
|
+
readonly contract_version: 2;
|
|
1343
|
+
readonly id: "bad-source";
|
|
1344
|
+
readonly title: "Bad source";
|
|
1345
|
+
readonly root: "outputs/bad-source";
|
|
1346
|
+
readonly run: "python viewer.py";
|
|
1347
|
+
readonly inputs: {
|
|
1348
|
+
readonly data: {
|
|
1349
|
+
readonly source: "workspace:../secret";
|
|
1350
|
+
readonly freshness: "pinned";
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
};
|
|
1354
|
+
} | {
|
|
1355
|
+
readonly name: "unsupported-connection-v1";
|
|
1356
|
+
readonly validator: "artifact";
|
|
1357
|
+
readonly valid: false;
|
|
1358
|
+
readonly error: "artifact_input_source_invalid";
|
|
1359
|
+
readonly value: {
|
|
1360
|
+
readonly contract_version: 2;
|
|
1361
|
+
readonly id: "connection-input";
|
|
1362
|
+
readonly title: "Connection input";
|
|
1363
|
+
readonly root: "outputs/connection";
|
|
1364
|
+
readonly run: "python viewer.py";
|
|
1365
|
+
readonly inputs: {
|
|
1366
|
+
readonly market: {
|
|
1367
|
+
readonly source: "connection:market-production";
|
|
1368
|
+
readonly freshness: "follow";
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
} | {
|
|
1373
|
+
readonly name: "escaping-symlink";
|
|
1374
|
+
readonly validator: "tree";
|
|
1375
|
+
readonly valid: false;
|
|
1376
|
+
readonly error: "artifact_tree_symlink_escape";
|
|
1377
|
+
readonly value: {
|
|
1378
|
+
readonly scope: "root";
|
|
1379
|
+
readonly files: 3;
|
|
1380
|
+
readonly bytes: 200;
|
|
1381
|
+
readonly escaping_symlink: true;
|
|
1382
|
+
readonly secret_path: false;
|
|
1383
|
+
readonly reserved_path_collision: false;
|
|
1384
|
+
};
|
|
1385
|
+
} | {
|
|
1386
|
+
readonly name: "malformed-tree-null";
|
|
1387
|
+
readonly validator: "tree";
|
|
1388
|
+
readonly valid: false;
|
|
1389
|
+
readonly error: "artifact_tree_invalid";
|
|
1390
|
+
readonly value: null;
|
|
1391
|
+
} | {
|
|
1392
|
+
readonly name: "invalid-tree-scope";
|
|
1393
|
+
readonly validator: "tree";
|
|
1394
|
+
readonly valid: false;
|
|
1395
|
+
readonly error: "artifact_tree_scope_invalid";
|
|
1396
|
+
readonly value: {
|
|
1397
|
+
readonly scope: "bogus";
|
|
1398
|
+
readonly files: 0;
|
|
1399
|
+
readonly bytes: 0;
|
|
1400
|
+
readonly escaping_symlink: false;
|
|
1401
|
+
readonly secret_path: false;
|
|
1402
|
+
readonly reserved_path_collision: false;
|
|
1403
|
+
};
|
|
1404
|
+
} | {
|
|
1405
|
+
readonly name: "bounded-root-tree";
|
|
1406
|
+
readonly validator: "tree";
|
|
1407
|
+
readonly valid: true;
|
|
1408
|
+
readonly value: {
|
|
1409
|
+
readonly scope: "root";
|
|
1410
|
+
readonly files: 20000;
|
|
1411
|
+
readonly bytes: 1000000000;
|
|
1412
|
+
readonly escaping_symlink: false;
|
|
1413
|
+
readonly secret_path: false;
|
|
1414
|
+
readonly reserved_path_collision: false;
|
|
1415
|
+
};
|
|
1416
|
+
} | {
|
|
1417
|
+
readonly name: "secret-input-path";
|
|
1418
|
+
readonly validator: "tree";
|
|
1419
|
+
readonly valid: false;
|
|
1420
|
+
readonly error: "artifact_tree_secret_path";
|
|
1421
|
+
readonly value: {
|
|
1422
|
+
readonly scope: "input";
|
|
1423
|
+
readonly files: 1;
|
|
1424
|
+
readonly bytes: 100;
|
|
1425
|
+
readonly escaping_symlink: false;
|
|
1426
|
+
readonly secret_path: true;
|
|
1427
|
+
readonly reserved_path_collision: false;
|
|
1428
|
+
};
|
|
1429
|
+
} | {
|
|
1430
|
+
readonly name: "oversized-root-tree";
|
|
1431
|
+
readonly validator: "tree";
|
|
1432
|
+
readonly valid: false;
|
|
1433
|
+
readonly error: "artifact_tree_files_exceeded";
|
|
1434
|
+
readonly value: {
|
|
1435
|
+
readonly scope: "root";
|
|
1436
|
+
readonly files: 20001;
|
|
1437
|
+
readonly bytes: 100;
|
|
1438
|
+
readonly escaping_symlink: false;
|
|
1439
|
+
readonly secret_path: false;
|
|
1440
|
+
readonly reserved_path_collision: false;
|
|
1441
|
+
};
|
|
1442
|
+
} | {
|
|
1443
|
+
readonly name: "oversized-input-tree";
|
|
1444
|
+
readonly validator: "tree";
|
|
1445
|
+
readonly valid: false;
|
|
1446
|
+
readonly error: "artifact_tree_bytes_exceeded";
|
|
1447
|
+
readonly value: {
|
|
1448
|
+
readonly scope: "input";
|
|
1449
|
+
readonly files: 1;
|
|
1450
|
+
readonly bytes: 1000000001;
|
|
1451
|
+
readonly escaping_symlink: false;
|
|
1452
|
+
readonly secret_path: false;
|
|
1453
|
+
readonly reserved_path_collision: false;
|
|
1454
|
+
};
|
|
1455
|
+
} | {
|
|
1456
|
+
readonly name: "oversized-static-share";
|
|
1457
|
+
readonly validator: "tree";
|
|
1458
|
+
readonly valid: false;
|
|
1459
|
+
readonly error: "artifact_tree_files_exceeded";
|
|
1460
|
+
readonly value: {
|
|
1461
|
+
readonly scope: "static_share";
|
|
1462
|
+
readonly files: 20001;
|
|
1463
|
+
readonly bytes: 100;
|
|
1464
|
+
readonly escaping_symlink: false;
|
|
1465
|
+
readonly secret_path: false;
|
|
1466
|
+
readonly reserved_path_collision: false;
|
|
1467
|
+
};
|
|
1468
|
+
} | {
|
|
1469
|
+
readonly name: "oversized-combined-inputs";
|
|
1470
|
+
readonly validator: "tree";
|
|
1471
|
+
readonly valid: false;
|
|
1472
|
+
readonly error: "artifact_tree_bytes_exceeded";
|
|
1473
|
+
readonly value: {
|
|
1474
|
+
readonly scope: "all_inputs";
|
|
1475
|
+
readonly files: 2;
|
|
1476
|
+
readonly bytes: 5000000001;
|
|
1477
|
+
readonly escaping_symlink: false;
|
|
1478
|
+
readonly secret_path: false;
|
|
1479
|
+
readonly reserved_path_collision: false;
|
|
1480
|
+
};
|
|
1481
|
+
} | {
|
|
1482
|
+
readonly name: "reserved-input-mount-collision";
|
|
1483
|
+
readonly validator: "tree";
|
|
1484
|
+
readonly valid: false;
|
|
1485
|
+
readonly error: "artifact_tree_reserved_path_collision";
|
|
1486
|
+
readonly value: {
|
|
1487
|
+
readonly scope: "root";
|
|
1488
|
+
readonly files: 4;
|
|
1489
|
+
readonly bytes: 300;
|
|
1490
|
+
readonly escaping_symlink: false;
|
|
1491
|
+
readonly secret_path: false;
|
|
1492
|
+
readonly reserved_path_collision: true;
|
|
1493
|
+
};
|
|
1494
|
+
} | {
|
|
1495
|
+
readonly name: "html-with-charset";
|
|
1496
|
+
readonly validator: "content_type";
|
|
1497
|
+
readonly valid: true;
|
|
1498
|
+
readonly value: "text/html; charset=utf-8";
|
|
1499
|
+
} | {
|
|
1500
|
+
readonly name: "non-html-root";
|
|
1501
|
+
readonly validator: "content_type";
|
|
1502
|
+
readonly valid: false;
|
|
1503
|
+
readonly error: "artifact_root_media_type_invalid";
|
|
1504
|
+
readonly value: "audio/mpeg";
|
|
1505
|
+
})[];
|
|
1506
|
+
};
|
|
1507
|
+
export type ArtifactInputFreshness = "pinned" | "follow";
|
|
1508
|
+
export interface ArtifactInputV2 {
|
|
1509
|
+
source: string;
|
|
1510
|
+
freshness: "pinned" | "follow";
|
|
1511
|
+
}
|
|
1512
|
+
export interface AgentArtifactActivationRequestV1 {
|
|
1513
|
+
authorities: Array<string>;
|
|
1514
|
+
budget_cents: number;
|
|
1515
|
+
lifetime_seconds: number;
|
|
1516
|
+
descendant_ceiling: number;
|
|
1517
|
+
activation_mode: "resume" | "new";
|
|
1518
|
+
visibility: "headless" | "inspectable" | "user-facing";
|
|
1519
|
+
}
|
|
1520
|
+
export interface ArtifactDeclarationV1 {
|
|
1521
|
+
contract_version: 1;
|
|
1522
|
+
key: string;
|
|
1523
|
+
kind: string;
|
|
1524
|
+
title: string;
|
|
1525
|
+
entrypoint: string;
|
|
1526
|
+
dependencies: Array<Record<string, unknown>>;
|
|
1527
|
+
suggested_surface?: string;
|
|
1528
|
+
[key: string]: unknown;
|
|
1529
|
+
}
|
|
1530
|
+
export interface ArtifactDeclarationV2 {
|
|
1531
|
+
contract_version: 2;
|
|
1532
|
+
id: string;
|
|
1533
|
+
title: string;
|
|
1534
|
+
type_id?: string;
|
|
1535
|
+
root: string;
|
|
1536
|
+
entry?: string;
|
|
1537
|
+
run?: string;
|
|
1538
|
+
agent_activation?: AgentArtifactActivationRequestV1;
|
|
1539
|
+
inputs: Record<string, ArtifactInputV2>;
|
|
1540
|
+
}
|
|
1541
|
+
export interface ArtifactSummaryInputV2 {
|
|
1542
|
+
alias: string;
|
|
1543
|
+
source: string;
|
|
1544
|
+
freshness: "pinned" | "follow";
|
|
1545
|
+
snapshot_id: string;
|
|
1546
|
+
kind: "file" | "directory";
|
|
1547
|
+
files: number;
|
|
1548
|
+
total_bytes: number;
|
|
1549
|
+
}
|
|
1550
|
+
export interface ArtifactSummaryV1 {
|
|
1551
|
+
contract_version: 1;
|
|
1552
|
+
artifact_id: string;
|
|
1553
|
+
artifact_version_id: string;
|
|
1554
|
+
key: string;
|
|
1555
|
+
kind: string;
|
|
1556
|
+
title: string;
|
|
1557
|
+
entrypoint: string;
|
|
1558
|
+
renderer: string;
|
|
1559
|
+
schema_version: number;
|
|
1560
|
+
portability: "static" | "explainable" | "forkable";
|
|
1561
|
+
snapshot_id: string;
|
|
1562
|
+
member_count: number;
|
|
1563
|
+
total_bytes: number;
|
|
1564
|
+
publish_audiences: Array<"public" | "link" | "organization" | "named">;
|
|
1565
|
+
}
|
|
1566
|
+
export interface ArtifactSummaryV2 {
|
|
1567
|
+
contract_version: 2;
|
|
1568
|
+
artifact_id: string;
|
|
1569
|
+
artifact_version_id: string;
|
|
1570
|
+
id: string;
|
|
1571
|
+
title: string;
|
|
1572
|
+
root: string;
|
|
1573
|
+
entry?: string;
|
|
1574
|
+
run?: string;
|
|
1575
|
+
agent_activation?: AgentArtifactActivationRequestV1;
|
|
1576
|
+
renderer?: "builtin.text" | "builtin.markdown" | "builtin.code" | "builtin.image" | "builtin.audio" | "builtin.video" | "builtin.csv" | "builtin.pdf" | "builtin.html" | "builtin.download";
|
|
1577
|
+
type_id?: string;
|
|
1578
|
+
snapshot_id: string;
|
|
1579
|
+
member_count: number;
|
|
1580
|
+
total_bytes: number;
|
|
1581
|
+
inputs: Array<ArtifactSummaryInputV2>;
|
|
1582
|
+
presentation_availability?: "available" | "unavailable";
|
|
1583
|
+
presentation_unavailable_reason?: string;
|
|
1584
|
+
execution_availability?: "available" | "unavailable";
|
|
1585
|
+
execution_unavailable_reason?: string;
|
|
1586
|
+
publish_audiences: Array<"public" | "link" | "organization" | "named">;
|
|
1587
|
+
}
|
|
1588
|
+
export interface PortableArtifactInputWire {
|
|
1589
|
+
alias: string;
|
|
1590
|
+
freshness: "pinned" | "follow";
|
|
1591
|
+
kind: "file" | "directory";
|
|
1592
|
+
tree_digest: string;
|
|
1593
|
+
files: number;
|
|
1594
|
+
bytes: number;
|
|
1595
|
+
}
|
|
1596
|
+
export interface PortableArtifactMemberWire {
|
|
1597
|
+
scope: "root" | "input" | "type";
|
|
1598
|
+
alias?: string;
|
|
1599
|
+
path: string;
|
|
1600
|
+
kind: "file" | "symlink" | "directory";
|
|
1601
|
+
digest?: string;
|
|
1602
|
+
size: number;
|
|
1603
|
+
mode: number;
|
|
1604
|
+
target?: string;
|
|
1605
|
+
target_kind?: "file" | "directory";
|
|
1606
|
+
generation?: number;
|
|
1607
|
+
}
|
|
1608
|
+
export interface PortableExecutionCapabilitiesWire {
|
|
1609
|
+
network: "none";
|
|
1610
|
+
workspace: "none";
|
|
1611
|
+
model: false;
|
|
1612
|
+
credentials: Array<unknown>;
|
|
1613
|
+
connections: Array<unknown>;
|
|
1614
|
+
}
|
|
1615
|
+
export interface PortableExecutionPackWire {
|
|
1616
|
+
format: "dharta.portable-artifact-execution-pack.v1";
|
|
1617
|
+
artifact_id: string;
|
|
1618
|
+
artifact_version_id: string;
|
|
1619
|
+
run: string;
|
|
1620
|
+
root: Record<string, unknown>;
|
|
1621
|
+
inputs: Array<PortableArtifactInputWire>;
|
|
1622
|
+
type_id: string | null;
|
|
1623
|
+
type_package_digest: string | null;
|
|
1624
|
+
cost_owner: "publisher" | "viewer" | "organization";
|
|
1625
|
+
capabilities: PortableExecutionCapabilitiesWire;
|
|
1626
|
+
members: Array<PortableArtifactMemberWire>;
|
|
1627
|
+
}
|
|
1628
|
+
export interface PortableExecutionConsentWire {
|
|
1629
|
+
pack_id: string;
|
|
1630
|
+
artifact_version_id: string;
|
|
1631
|
+
run: string;
|
|
1632
|
+
required_live_execution: true;
|
|
1633
|
+
cost_owner: "publisher" | "viewer" | "organization";
|
|
1634
|
+
capabilities: PortableExecutionCapabilitiesWire;
|
|
1635
|
+
root: Record<string, unknown>;
|
|
1636
|
+
inputs: Array<Record<string, unknown>>;
|
|
1637
|
+
type_id: string | null;
|
|
1638
|
+
unique_files: number;
|
|
1639
|
+
unique_bytes: number;
|
|
1640
|
+
consent_digest: string;
|
|
1641
|
+
}
|
|
1642
|
+
export interface ArtifactExecutionSessionWire {
|
|
1643
|
+
id: string;
|
|
1644
|
+
url: string;
|
|
1645
|
+
state: "active" | "hidden";
|
|
1646
|
+
lease_expires_at: string;
|
|
1647
|
+
absolute_expires_at: string;
|
|
1648
|
+
cost_microusd: number;
|
|
1649
|
+
cost_state: "pending" | "final";
|
|
1650
|
+
metered_seconds: number;
|
|
1651
|
+
artifact_version_id: string;
|
|
1652
|
+
renewal_token: string;
|
|
1653
|
+
}
|
|
1654
|
+
export interface ArtifactExecutionRenewalWire {
|
|
1655
|
+
id: string;
|
|
1656
|
+
state: "active" | "hidden";
|
|
1657
|
+
lease_expires_at: string;
|
|
1658
|
+
absolute_expires_at: string;
|
|
1659
|
+
cost_microusd: number;
|
|
1660
|
+
cost_state: "pending" | "final";
|
|
1661
|
+
metered_seconds: number;
|
|
1662
|
+
handoff: string;
|
|
1663
|
+
}
|
|
1664
|
+
export type ArtifactDeclaration = ArtifactDeclarationV1 | ArtifactDeclarationV2;
|
|
1665
|
+
export type ArtifactSummaryWire = ArtifactSummaryV1 | ArtifactSummaryV2;
|
|
1666
|
+
export interface ArtifactManifestDocumentV2 {
|
|
1667
|
+
schema: 2;
|
|
1668
|
+
artifacts: Array<ArtifactDeclarationV1 | ArtifactDeclarationV2>;
|
|
1669
|
+
}
|
|
1670
|
+
//# sourceMappingURL=artifact-runtime.generated.d.ts.map
|