supertag-ai 0.2.0-alpha.8 → 0.2.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{chunk-OZT4E44I.js → chunk-2TIOIPHK.js} +70 -20
- package/dist/chunk-2TIOIPHK.js.map +1 -0
- package/dist/{chunk-ZOTROJBZ.js → chunk-3L6EOR7H.js} +18 -4
- package/dist/chunk-3L6EOR7H.js.map +1 -0
- package/dist/{chunk-33O7DOK7.js → chunk-42JFLS2Z.js} +5 -5
- package/dist/{chunk-33O7DOK7.js.map → chunk-42JFLS2Z.js.map} +1 -1
- package/dist/{chunk-SFRSKH5U.js → chunk-BMAH7OPW.js} +4 -4
- package/dist/{chunk-SFRSKH5U.js.map → chunk-BMAH7OPW.js.map} +1 -1
- package/dist/{chunk-5QR74ALK.js → chunk-BVEGRZSW.js} +53 -24
- package/dist/chunk-BVEGRZSW.js.map +1 -0
- package/dist/{chunk-RAX2CL2V.js → chunk-ENOLPSQJ.js} +3 -3
- package/dist/chunk-ENOLPSQJ.js.map +1 -0
- package/dist/{chunk-LPFJFY74.js → chunk-EWVEN2VN.js} +26 -6
- package/dist/chunk-EWVEN2VN.js.map +1 -0
- package/dist/{chunk-6DMXRHJZ.js → chunk-IJARBUW6.js} +4 -4
- package/dist/{chunk-6DMXRHJZ.js.map → chunk-IJARBUW6.js.map} +1 -1
- package/dist/{chunk-SDL2OFWW.js → chunk-KYJZDU5X.js} +9 -9
- package/dist/{chunk-SDL2OFWW.js.map → chunk-KYJZDU5X.js.map} +1 -1
- package/dist/{chunk-HE5RHTEL.js → chunk-NMNZPBEC.js} +3 -3
- package/dist/{chunk-HE5RHTEL.js.map → chunk-NMNZPBEC.js.map} +1 -1
- package/dist/{chunk-WFZQ5WVV.js → chunk-RE2LUNL7.js} +4 -4
- package/dist/{chunk-WFZQ5WVV.js.map → chunk-RE2LUNL7.js.map} +1 -1
- package/dist/{chunk-T4A67FX2.js → chunk-TVFNWGDL.js} +3 -3
- package/dist/{chunk-T4A67FX2.js.map → chunk-TVFNWGDL.js.map} +1 -1
- package/dist/{chunk-UBXNK3SD.js → chunk-UXUMRFHY.js} +4 -4
- package/dist/{chunk-UBXNK3SD.js.map → chunk-UXUMRFHY.js.map} +1 -1
- package/dist/{chunk-GJ2AQ32I.js → chunk-X7OT2DY4.js} +119 -22
- package/dist/chunk-X7OT2DY4.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/control-plane.d.ts +29 -8
- package/dist/control-plane.js +3 -3
- package/dist/coordination.js +2 -2
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/{cursor-sign-in-GV7WY6UU.js → cursor-sign-in-QZNESCIK.js} +4 -4
- package/dist/{cursor-sign-in-GV7WY6UU.js.map → cursor-sign-in-QZNESCIK.js.map} +1 -1
- package/dist/docs/README.md +1 -0
- package/dist/docs/concepts/persistence.md +5 -5
- package/dist/docs/guides/deploy-fly.md +9 -5
- package/dist/docs/guides/deploy-modal.md +5 -0
- package/dist/docs/guides/modal-workers.md +88 -24
- package/dist/docs/guides/objective-overview.md +1 -0
- package/dist/docs/guides/objectives.md +12 -0
- package/dist/docs/guides/python-workers.md +9 -9
- package/dist/docs/guides/tag-messaging.md +14 -0
- package/dist/docs/operations/install.md +9 -10
- package/dist/docs/reference/control-plane-api.md +2 -2
- package/dist/docs/reference/coordination.md +16 -2
- package/dist/docs/reference/iam.md +5 -0
- package/dist/docs/reference/operator-api/objective.md +14 -0
- package/dist/docs/reference/supertag-yaml.md +1 -1
- package/dist/{durable-worklet-X2jOtHnI.d.ts → durable-worklet-BN51DsXG.d.ts} +2 -2
- package/dist/environments/e2b.d.ts +3 -3
- package/dist/environments/e2b.js +3 -3
- package/dist/environments/modal.d.ts +4 -3
- package/dist/environments/modal.js +3 -3
- package/dist/environments/shared-execution.d.ts +2 -2
- package/dist/environments/shared-execution.js +2 -2
- package/dist/harnesses/claude-code.d.ts +2 -2
- package/dist/harnesses/claude-code.js +3 -3
- package/dist/harnesses/codex.d.ts +6 -4
- package/dist/harnesses/codex.js +3 -3
- package/dist/harnesses/cursor.d.ts +3 -3
- package/dist/harnesses/cursor.js +4 -4
- package/dist/harnesses/opencode.d.ts +2 -2
- package/dist/harnesses/opencode.js +3 -3
- package/dist/{harnesses-Y5QI4UJ3.js → harnesses-EFEACUZM.js} +3 -3
- package/dist/{harnesses-Y5QI4UJ3.js.map → harnesses-EFEACUZM.js.map} +1 -1
- package/dist/{index-C6zG_I92.d.ts → index-5G-1R7uM.d.ts} +36 -2
- package/dist/{index-CFBNCXJz.d.ts → index-BS7hoEqj.d.ts} +3 -3
- package/dist/{index-BeBLHuh3.d.ts → index-Cc-Cx_Wf.d.ts} +13 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/{mcp-custom-tools-MHX4nTIP.d.ts → mcp-custom-tools-BND99DWZ.d.ts} +1 -1
- package/dist/{opencode-sign-in-P6U5AJR3.js → opencode-sign-in-23JNPKLZ.js} +4 -4
- package/dist/{opencode-sign-in-P6U5AJR3.js.map → opencode-sign-in-23JNPKLZ.js.map} +1 -1
- package/dist/resources/github.d.ts +2 -2
- package/dist/resources/github.js +3 -3
- package/dist/runner.d.ts +3 -3
- package/dist/runner.js +3 -3
- package/dist/{sandbox-workspace-environment-CqcdVtLO.d.ts → sandbox-workspace-environment-DgcGEy4v.d.ts} +4 -2
- package/dist/spec/objectives.md +5 -0
- package/dist/spec/proto/supertag/operator/v1/objective.proto +18 -0
- package/dist/{src-LMX5XPBY.js → src-63ZSFZ4C.js} +5 -5
- package/dist/src-63ZSFZ4C.js.map +1 -0
- package/dist/{src-HCHSVNHI.js → src-7BTXTRKI.js} +6 -6
- package/dist/src-7BTXTRKI.js.map +1 -0
- package/dist/src-DCQ22HEA.js +6 -0
- package/dist/src-DCQ22HEA.js.map +1 -0
- package/dist/{src-5ZBXLPT2.js → src-PL6HXN4U.js} +5 -5
- package/dist/src-PL6HXN4U.js.map +1 -0
- package/dist/{src-ZBSHU4TU.js → src-VOMXRMGL.js} +128 -22
- package/dist/src-VOMXRMGL.js.map +1 -0
- package/dist/{src-VKJJEDV5.js → src-ZCWK5Q6C.js} +5 -5
- package/dist/src-ZCWK5Q6C.js.map +1 -0
- package/dist/surfaces.d.ts +1 -1
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +5 -4
- package/dist/testing.js.map +1 -1
- package/dist/transport.d.ts +5 -5
- package/dist/transport.js +3 -3
- package/dist/worker.d.ts +6 -6
- package/dist/worker.js +2 -2
- package/drizzle/postgresql/0035_right_maddog.sql +2 -0
- package/drizzle/postgresql/meta/0035_snapshot.json +7259 -0
- package/drizzle/postgresql/meta/_journal.json +7 -0
- package/drizzle/sqlite/0035_reflective_titanium_man.sql +2 -0
- package/drizzle/sqlite/meta/0035_snapshot.json +5845 -0
- package/drizzle/sqlite/meta/_journal.json +7 -0
- package/install.sh +1 -1
- package/package.json +1 -1
- package/tui/SHA256SUMS +4 -4
- package/tui/supertag-tui-darwin-amd64 +0 -0
- package/tui/supertag-tui-darwin-arm64 +0 -0
- package/tui/supertag-tui-linux-amd64 +0 -0
- package/tui/supertag-tui-linux-arm64 +0 -0
- package/dist/chunk-5QR74ALK.js.map +0 -1
- package/dist/chunk-GJ2AQ32I.js.map +0 -1
- package/dist/chunk-LPFJFY74.js.map +0 -1
- package/dist/chunk-OZT4E44I.js.map +0 -1
- package/dist/chunk-RAX2CL2V.js.map +0 -1
- package/dist/chunk-ZOTROJBZ.js.map +0 -1
- package/dist/src-5ZBXLPT2.js.map +0 -1
- package/dist/src-HCHSVNHI.js.map +0 -1
- package/dist/src-J5NTM3XF.js +0 -6
- package/dist/src-J5NTM3XF.js.map +0 -1
- package/dist/src-LMX5XPBY.js.map +0 -1
- package/dist/src-VKJJEDV5.js.map +0 -1
- package/dist/src-ZBSHU4TU.js.map +0 -1
package/README.md
CHANGED
|
@@ -162,7 +162,7 @@ To find bundled collaboration surface guides and manifests, run `supertag setup
|
|
|
162
162
|
The matching Python SDK is published separately as `supertag` on PyPI:
|
|
163
163
|
|
|
164
164
|
```sh
|
|
165
|
-
python -m pip install 'supertag==0.2.
|
|
165
|
+
python -m pip install 'supertag==0.2.0a9'
|
|
166
166
|
```
|
|
167
167
|
|
|
168
168
|
Pin the prerelease explicitly so pip selects the matching SDK. Python applications can compose
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMMANDS_EXECUTE_CAPABILITY_ID, UNSANDBOXED_COMMANDS_CAPABILITY_ID, WORKSPACE_CLONE_CAPABILITY_ID, WORKSPACE_ENVIRONMENT_CAPABILITY_ID, validateArtifactHarnessSession, validateArtifactPath, DEFAULT_WORKSPACE_REF, gitRefComponent, assertWorkspaceMountPaths, parseMountOutputManifests, parseMountManifests, parseLiveMounts, recordTaskFindings, isValidGitRef, parseWorkspaceMounts, parseVolumeSource, artifactUnavailableMessage, mcpServersOfGrants, MCP_SERVER_NAME, isReservedMcpServerName, MCP_TOOL_NAME, mcpGrantsFor, SKILL_CONTEXT_TYPE, ARTIFACT_CONTEXT_TYPE, mcpApprovalRequirementCovers, sanitizeApprovalText, canonicalJson, approvalArgumentsDigest, parseWorkerHostLabels, automaticWorkerHostLabels, parseModalVolumeCredential, pathsOverlap, isSensitiveWorkspaceMountPath, computeMountUploadChangeSet, DEFAULT_MOUNT_MAX_BYTES, MAX_TASK_FINDING_TEXT, protectedVolumePaths, parseTaskOutputPolicy, workspacePullRequestReference, MAX_TASK_FINDINGS, MAX_MOUNT_OBJECTS, MAX_MOUNT_MAX_BYTES, MAX_MOUNT_MANIFEST_BYTES, mountManifestDigest, WORKSPACE_DELIVERY_PROGRESS_IDS, plainCommandText, objectiveIdOfSessionKey, isInboxSessionKey } from './chunk-
|
|
1
|
+
import { COMMANDS_EXECUTE_CAPABILITY_ID, UNSANDBOXED_COMMANDS_CAPABILITY_ID, WORKSPACE_CLONE_CAPABILITY_ID, WORKSPACE_ENVIRONMENT_CAPABILITY_ID, validateArtifactHarnessSession, validateArtifactPath, DEFAULT_WORKSPACE_REF, gitRefComponent, assertWorkspaceMountPaths, parseMountOutputManifests, parseMountManifests, parseLiveMounts, recordTaskFindings, isValidGitRef, parseWorkspaceMounts, parseVolumeSource, artifactUnavailableMessage, mcpServersOfGrants, MCP_SERVER_NAME, isReservedMcpServerName, MCP_TOOL_NAME, mcpGrantsFor, SKILL_CONTEXT_TYPE, ARTIFACT_CONTEXT_TYPE, mcpApprovalRequirementCovers, sanitizeApprovalText, canonicalJson, approvalArgumentsDigest, parseWorkerHostLabels, automaticWorkerHostLabels, parseModalVolumeCredential, pathsOverlap, isSensitiveWorkspaceMountPath, computeMountUploadChangeSet, DEFAULT_MOUNT_MAX_BYTES, MAX_TASK_FINDING_TEXT, protectedVolumePaths, parseTaskOutputPolicy, workspacePullRequestReference, MAX_TASK_FINDINGS, MAX_MOUNT_OBJECTS, MAX_MOUNT_MAX_BYTES, MAX_MOUNT_MANIFEST_BYTES, mountManifestDigest, WORKSPACE_DELIVERY_PROGRESS_IDS, plainCommandText, objectiveIdOfSessionKey, isInboxSessionKey } from './chunk-3L6EOR7H.js';
|
|
2
2
|
import { resolve, dirname, basename, sep, join, relative, isAbsolute, posix } from 'path';
|
|
3
3
|
import { createHash, randomUUID, randomBytes, sign, verify, timingSafeEqual } from 'crypto';
|
|
4
4
|
import { constants as constants$1, createWriteStream, realpathSync, readFileSync } from 'fs';
|
|
@@ -706,6 +706,10 @@ var WORKSPACE_COPY_MOUNT_CAPABILITY = {
|
|
|
706
706
|
id: "supertag.workspace.mount.copy",
|
|
707
707
|
version: 1
|
|
708
708
|
};
|
|
709
|
+
var WORKSPACE_COPY_MOUNT_WRITE_CAPABILITY = {
|
|
710
|
+
id: "supertag.workspace.mount.copy.write",
|
|
711
|
+
version: 1
|
|
712
|
+
};
|
|
709
713
|
var COMMANDS_EXECUTE_CAPABILITY = {
|
|
710
714
|
id: COMMANDS_EXECUTE_CAPABILITY_ID,
|
|
711
715
|
version: 1
|
|
@@ -730,6 +734,10 @@ var WORKSPACE_NATIVE_MOUNT_CAPABILITY = {
|
|
|
730
734
|
id: "supertag.workspace.mount.native",
|
|
731
735
|
version: 1
|
|
732
736
|
};
|
|
737
|
+
var WORKSPACE_NATIVE_MOUNT_WRITE_CAPABILITY = {
|
|
738
|
+
id: "supertag.workspace.mount.native.write",
|
|
739
|
+
version: 1
|
|
740
|
+
};
|
|
733
741
|
var MAX_ARTIFACT_BYTES = 32 * 1024 * 1024;
|
|
734
742
|
function missingArtifactError() {
|
|
735
743
|
return Object.assign(new Error("Artifact is not stored"), { code: "ENOENT" });
|
|
@@ -10399,12 +10407,16 @@ function hasControlCharacters(value) {
|
|
|
10399
10407
|
|
|
10400
10408
|
// ../runtime/sdk/src/sandbox-workspace-environment.ts
|
|
10401
10409
|
var FULL_COMMIT = /^[0-9a-f]{40}([0-9a-f]{24})?$/u;
|
|
10402
|
-
async function assertSandboxWorkspaceMountPaths(environment, mounts, checkout, stagedFiles, protectedDirectories) {
|
|
10410
|
+
async function assertSandboxWorkspaceMountPaths(environment, mounts, checkout, stagedFiles, protectedDirectories, nativeMountSymlinkTargets) {
|
|
10403
10411
|
if (mounts.length === 0) return;
|
|
10404
|
-
const canonical5 = async (path) => {
|
|
10412
|
+
const canonical5 = async (path, expectedLink = "") => {
|
|
10405
10413
|
const script = [
|
|
10406
10414
|
'probe=$1; suffix=""',
|
|
10407
|
-
'if [ -L "$probe" ]; then
|
|
10415
|
+
'if [ -L "$probe" ]; then',
|
|
10416
|
+
' parent=$(dirname "$probe")',
|
|
10417
|
+
' if [ -z "$2" ] || [ "$(readlink "$probe")" != "$2" ] ||',
|
|
10418
|
+
' [ "$(cd -P "$parent" && pwd -P)" != "$parent" ]; then printf "SYMLINK\\n"; exit 0; fi',
|
|
10419
|
+
"fi",
|
|
10408
10420
|
'while [ ! -d "$probe" ]; do',
|
|
10409
10421
|
' if [ -L "$probe" ]; then printf "SYMLINK\\n"; exit 0; fi',
|
|
10410
10422
|
' suffix="/${probe##*/}$suffix"; probe=${probe%/*}',
|
|
@@ -10413,7 +10425,10 @@ async function assertSandboxWorkspaceMountPaths(environment, mounts, checkout, s
|
|
|
10413
10425
|
'cd -P "$probe" || exit 1',
|
|
10414
10426
|
'printf "PATH:%s%s\\n" "$(pwd -P)" "$suffix"'
|
|
10415
10427
|
].join("\n");
|
|
10416
|
-
const process2 = await environment.spawn({
|
|
10428
|
+
const process2 = await environment.spawn({
|
|
10429
|
+
command: "sh",
|
|
10430
|
+
args: ["-c", script, "sh", path, expectedLink]
|
|
10431
|
+
});
|
|
10417
10432
|
const result2 = await process2.wait();
|
|
10418
10433
|
if (result2.exitCode !== 0 || !result2.stdout.startsWith("PATH:")) {
|
|
10419
10434
|
if (result2.stdout.startsWith("SYMLINK"))
|
|
@@ -10425,13 +10440,16 @@ async function assertSandboxWorkspaceMountPaths(environment, mounts, checkout, s
|
|
|
10425
10440
|
const checked = await Promise.all(
|
|
10426
10441
|
mounts.map(async (mount) => ({
|
|
10427
10442
|
...mount,
|
|
10428
|
-
path: await canonical5(
|
|
10443
|
+
path: await canonical5(
|
|
10444
|
+
mount.path,
|
|
10445
|
+
mount.strategy === "mount" ? nativeMountSymlinkTargets?.[mount.path] : void 0
|
|
10446
|
+
)
|
|
10429
10447
|
}))
|
|
10430
10448
|
);
|
|
10431
10449
|
assertWorkspaceMountPaths(
|
|
10432
10450
|
checked,
|
|
10433
10451
|
await canonical5(checkout),
|
|
10434
|
-
await Promise.all(stagedFiles.map(canonical5))
|
|
10452
|
+
await Promise.all(stagedFiles.map((path) => canonical5(path)))
|
|
10435
10453
|
);
|
|
10436
10454
|
const protectedPaths = await Promise.all(
|
|
10437
10455
|
protectedDirectories.map(async ([kind, path]) => [kind, await canonical5(path)])
|
|
@@ -10482,7 +10500,7 @@ var SandboxWorkspaceEnvironment = class {
|
|
|
10482
10500
|
...this.capabilities,
|
|
10483
10501
|
mounts: {
|
|
10484
10502
|
strategies: options.driver.mounts.strategies,
|
|
10485
|
-
access:
|
|
10503
|
+
access: options.driver.mounts.access
|
|
10486
10504
|
}
|
|
10487
10505
|
};
|
|
10488
10506
|
this.provider = options.driver.provider;
|
|
@@ -10747,7 +10765,8 @@ var SandboxWorkspaceEnvironment = class {
|
|
|
10747
10765
|
[
|
|
10748
10766
|
["bundle transfer directory", driver.transferDirectory],
|
|
10749
10767
|
["trusted MCP copy", this.mcpDirectory]
|
|
10750
|
-
]
|
|
10768
|
+
],
|
|
10769
|
+
sandbox.nativeMountSymlinkTargets
|
|
10751
10770
|
);
|
|
10752
10771
|
this.#checkouts.set(environment, {
|
|
10753
10772
|
sandbox,
|
|
@@ -10795,7 +10814,8 @@ var SandboxWorkspaceEnvironment = class {
|
|
|
10795
10814
|
[
|
|
10796
10815
|
["bundle transfer directory", driver.transferDirectory],
|
|
10797
10816
|
["trusted MCP copy", this.mcpDirectory]
|
|
10798
|
-
]
|
|
10817
|
+
],
|
|
10818
|
+
state.sandbox.nativeMountSymlinkTargets
|
|
10799
10819
|
);
|
|
10800
10820
|
this.#views.set(started, view);
|
|
10801
10821
|
return view;
|
|
@@ -10960,12 +10980,13 @@ var SandboxWorkspaceCheckout = class {
|
|
|
10960
10980
|
}
|
|
10961
10981
|
};
|
|
10962
10982
|
var SandboxWorkspaceRuntime = class {
|
|
10963
|
-
constructor(inner, checkout, checkoutDirectory, workspaceMounts, protectedDirectories) {
|
|
10983
|
+
constructor(inner, checkout, checkoutDirectory, workspaceMounts, protectedDirectories, nativeMountSymlinkTargets) {
|
|
10964
10984
|
this.inner = inner;
|
|
10965
10985
|
this.checkout = checkout;
|
|
10966
10986
|
this.checkoutDirectory = checkoutDirectory;
|
|
10967
10987
|
this.workspaceMounts = workspaceMounts;
|
|
10968
10988
|
this.protectedDirectories = protectedDirectories;
|
|
10989
|
+
this.nativeMountSymlinkTargets = nativeMountSymlinkTargets;
|
|
10969
10990
|
this.id = inner.id;
|
|
10970
10991
|
this.rootDirectory = inner.rootDirectory;
|
|
10971
10992
|
this.provenance = { ...checkout.provenance ?? {} };
|
|
@@ -11018,7 +11039,8 @@ var SandboxWorkspaceRuntime = class {
|
|
|
11018
11039
|
this.workspaceMounts,
|
|
11019
11040
|
this.checkoutDirectory,
|
|
11020
11041
|
staged,
|
|
11021
|
-
this.protectedDirectories
|
|
11042
|
+
this.protectedDirectories,
|
|
11043
|
+
this.nativeMountSymlinkTargets
|
|
11022
11044
|
);
|
|
11023
11045
|
for (const file of plan.files) this.#outsideCheckout(file.path, "staged file");
|
|
11024
11046
|
for (const mount of plan.mounts) this.#outsideCheckout(mount.destination, "mount");
|
|
@@ -14747,6 +14769,16 @@ var WorkspaceResolverRegistry = class {
|
|
|
14747
14769
|
supportsCopyMounts(providerId) {
|
|
14748
14770
|
return this.#resolvers.some((resolver) => resolver.supportsCopyMounts?.(providerId) === true);
|
|
14749
14771
|
}
|
|
14772
|
+
supportsCopyMountWrites(providerId) {
|
|
14773
|
+
return this.#resolvers.some(
|
|
14774
|
+
(resolver) => resolver.supportsCopyMountWrites?.(providerId) === true
|
|
14775
|
+
);
|
|
14776
|
+
}
|
|
14777
|
+
supportsNativeMountWrites(providerId) {
|
|
14778
|
+
return this.#resolvers.some(
|
|
14779
|
+
(resolver) => resolver.supportsNativeMountWrites?.(providerId) === true
|
|
14780
|
+
);
|
|
14781
|
+
}
|
|
14750
14782
|
refuseProfile(profile, execution) {
|
|
14751
14783
|
for (const resolver of this.#resolvers) {
|
|
14752
14784
|
const reason = resolver.refuseProfile?.(profile, execution);
|
|
@@ -16475,7 +16507,9 @@ var ConfiguredWorker = class {
|
|
|
16475
16507
|
WORKSPACE_CLONE_CAPABILITY.id,
|
|
16476
16508
|
WORKSPACE_ENVIRONMENT_CAPABILITY.id,
|
|
16477
16509
|
WORKSPACE_COPY_MOUNT_CAPABILITY.id,
|
|
16510
|
+
WORKSPACE_COPY_MOUNT_WRITE_CAPABILITY.id,
|
|
16478
16511
|
WORKSPACE_NATIVE_MOUNT_CAPABILITY.id,
|
|
16512
|
+
WORKSPACE_NATIVE_MOUNT_WRITE_CAPABILITY.id,
|
|
16479
16513
|
COMMANDS_EXECUTE_CAPABILITY.id,
|
|
16480
16514
|
UNSANDBOXED_COMMANDS_CAPABILITY.id
|
|
16481
16515
|
]);
|
|
@@ -16518,6 +16552,10 @@ var ConfiguredWorker = class {
|
|
|
16518
16552
|
capabilities2.push(WORKSPACE_COPY_MOUNT_CAPABILITY);
|
|
16519
16553
|
if (workspaceRefusal === void 0 && this.#options.workspaceResolvers?.supportsNativeMounts(execution.id))
|
|
16520
16554
|
capabilities2.push(WORKSPACE_NATIVE_MOUNT_CAPABILITY);
|
|
16555
|
+
if (workspaceRefusal === void 0 && this.#options.workspaceResolvers?.supportsCopyMountWrites(execution.id))
|
|
16556
|
+
capabilities2.push(WORKSPACE_COPY_MOUNT_WRITE_CAPABILITY);
|
|
16557
|
+
if (workspaceRefusal === void 0 && this.#options.workspaceResolvers?.supportsNativeMountWrites(execution.id))
|
|
16558
|
+
capabilities2.push(WORKSPACE_NATIVE_MOUNT_WRITE_CAPABILITY);
|
|
16521
16559
|
return {
|
|
16522
16560
|
profile: profile.ref,
|
|
16523
16561
|
harness: harness.id,
|
|
@@ -16690,6 +16728,7 @@ var ConfiguredWorker = class {
|
|
|
16690
16728
|
let reason = "failed";
|
|
16691
16729
|
let workspacePrepared = false;
|
|
16692
16730
|
let workspaceSandbox;
|
|
16731
|
+
let disposeWorkspaceSandbox = false;
|
|
16693
16732
|
const boundedCleanup = async (operation) => {
|
|
16694
16733
|
let timer;
|
|
16695
16734
|
try {
|
|
@@ -16752,7 +16791,7 @@ var ConfiguredWorker = class {
|
|
|
16752
16791
|
}
|
|
16753
16792
|
await closeHarness(currentExecution, errors);
|
|
16754
16793
|
try {
|
|
16755
|
-
if (currentExecutionEnvironment && currentExecutionEnvironment !== workspaceSandbox)
|
|
16794
|
+
if (currentExecutionEnvironment && (currentExecutionEnvironment !== workspaceSandbox || disposeWorkspaceSandbox))
|
|
16756
16795
|
await boundedCleanup(() => currentExecutionEnvironment.dispose(reason));
|
|
16757
16796
|
} catch (error) {
|
|
16758
16797
|
errors.push(new Error("Execution environment cleanup failed", { cause: error }));
|
|
@@ -17256,6 +17295,7 @@ var ConfiguredWorker = class {
|
|
|
17256
17295
|
}
|
|
17257
17296
|
if (workspacePrepared) {
|
|
17258
17297
|
workspacePrepared = false;
|
|
17298
|
+
disposeWorkspaceSandbox = workspaceSandbox !== void 0;
|
|
17259
17299
|
const summary = pendingResult?.summary ?? finalOutput;
|
|
17260
17300
|
for (const delivery of await this.#options.workspaceResolvers?.finalize(
|
|
17261
17301
|
spec,
|
|
@@ -17266,7 +17306,8 @@ var ConfiguredWorker = class {
|
|
|
17266
17306
|
...(pendingResult?.changes ?? []).map((change) => change.summary),
|
|
17267
17307
|
...(pendingResult?.decisions ?? []).map((decision) => decision.text)
|
|
17268
17308
|
].slice(0, 20),
|
|
17269
|
-
...finishSignal === void 0 ? {} : { signal: finishSignal }
|
|
17309
|
+
...finishSignal === void 0 ? {} : { signal: finishSignal },
|
|
17310
|
+
...disposeWorkspaceSandbox ? { keepSandboxOpen: true } : {}
|
|
17270
17311
|
}
|
|
17271
17312
|
) ?? []) {
|
|
17272
17313
|
yield workspaceDeliveryProgress(identity, at(), delivery);
|
|
@@ -19654,6 +19695,14 @@ var WorkspaceEnvironmentResolver = class {
|
|
|
19654
19695
|
const mounts = this.#environments.get(providerId)?.capabilities.mounts;
|
|
19655
19696
|
return mounts?.strategies.includes("mount") === true && mounts.access.includes("read-only");
|
|
19656
19697
|
}
|
|
19698
|
+
supportsCopyMountWrites(providerId) {
|
|
19699
|
+
const mounts = this.#environments.get(providerId)?.capabilities.mounts;
|
|
19700
|
+
return mounts?.strategies.includes("copy") === true && mounts.access.includes("read-write");
|
|
19701
|
+
}
|
|
19702
|
+
supportsNativeMountWrites(providerId) {
|
|
19703
|
+
const mounts = this.#environments.get(providerId)?.capabilities.mounts;
|
|
19704
|
+
return mounts?.strategies.includes("mount") === true && mounts.access.includes("read-write");
|
|
19705
|
+
}
|
|
19657
19706
|
/** Why placement refuses a Workspace Task on this profile and provider. */
|
|
19658
19707
|
refuseProfile(profile, execution) {
|
|
19659
19708
|
return this.#profileRefusal(profile, execution.id);
|
|
@@ -20210,8 +20259,9 @@ SuperTag-Task: ${task.taskId}`,
|
|
|
20210
20259
|
}
|
|
20211
20260
|
/**
|
|
20212
20261
|
* Commits a remote Attempt's work inside its sandbox, imports the returned commits into the
|
|
20213
|
-
* host-managed clone through {@link deliverWorkspace}, then disposes the sandbox
|
|
20214
|
-
* whose sandbox never started has nothing
|
|
20262
|
+
* host-managed clone through {@link deliverWorkspace}, then disposes the sandbox unless the
|
|
20263
|
+
* Worker retains it for output collection. An Attempt whose sandbox never started has nothing
|
|
20264
|
+
* to deliver.
|
|
20215
20265
|
*/
|
|
20216
20266
|
async #finalizeRemote(task, plan, remote, outcome, details) {
|
|
20217
20267
|
const sandbox = remote.sandbox;
|
|
@@ -20257,7 +20307,7 @@ SuperTag-Task: ${task.taskId}`,
|
|
|
20257
20307
|
);
|
|
20258
20308
|
return { ...delivery, worktreeRemoved: false, branchRemoved: false };
|
|
20259
20309
|
} finally {
|
|
20260
|
-
await sandbox.dispose(outcome).catch(() => void 0);
|
|
20310
|
+
if (!details.keepSandboxOpen) await sandbox.dispose(outcome).catch(() => void 0);
|
|
20261
20311
|
}
|
|
20262
20312
|
}
|
|
20263
20313
|
/**
|
|
@@ -20408,6 +20458,6 @@ function namedPlan(plan) {
|
|
|
20408
20458
|
return plan?.status === "workspace" ? plan : void 0;
|
|
20409
20459
|
}
|
|
20410
20460
|
|
|
20411
|
-
export { ArtifactClient, ArtifactContextResolver, ArtifactRequestError, AttemptJournalOwnedError, CHANGE_SUMMARY_INSTRUCTION, COMMANDS_EXECUTE_CAPABILITY, COORDINATION_CAPABILITY, ContextResolverRegistry, DurableLocalWorklet, EXECUTION_WARNING_SUMMARY, ExecutionBudgetExceededError, ExecutionCleanupError, FINDINGS_INSTRUCTION, FileArtifactStore, FileAttemptJournal, FileSessionStateStore, FileSkillResolver, FileToolEffectJournal, HARNESS_EFFORTS, HarnessProviderError, HttpMcpToolProvider, HttpSessionStateStore, InMemorySessionStateStore, LOCAL_PROCESS_CAPABILITY, LocalExecutionEnvironmentProvider, LocalHarnessExecutionControl, LocalHarnessRuntimeProvider, LocalWorklet, LocalWorkspaceCheckout, LocalWorkspaceEnvironment, MAX_ARTIFACT_BYTES, MAX_WORKSPACE_BUNDLE_BYTES, McpToolAdapter, PREPARED_WORKSPACE_LIMITS, PROCESS_INPUT_STREAMING_CAPABILITY, PROCESS_OUTPUT_STREAMING_CAPABILITY, PermissionDeniedError, PreparedWorkspaceCache, ReliableToolInvokerRegistry, RpcTelemetry, RuntimeInputProviderRegistry, S3ArtifactStore, STANDARD_RUNTIME_ACTIONS, SURFACE_COORDINATION_CAPABILITY, SandboxExecutionEnvironmentProvider, SandboxWorkspaceEnvironment, StaticWorker, TASK_ATTEMPT_CANCELLATION_CAPABILITY, TASK_ATTEMPT_EVENT_STREAM_CAPABILITY, TASK_OUTPUT_POLICY_CAPABILITY, ToolAdapterRegistry, ToolEffectInDoubtError, ToolInvokerRegistry, ToolProviderRegistry, UNSANDBOXED_COMMANDS_CAPABILITY, VolumeCopyError, WORKLET_ARTIFACT_TRANSFER_PATH, WORKSPACE_BUNDLE_LIMITS, WORKSPACE_CLONE_CAPABILITY, WORKSPACE_COPY_MOUNT_CAPABILITY, WORKSPACE_ENVIRONMENT_CAPABILITY, WORKSPACE_IN_PLACE_CAPABILITY, WORKSPACE_MCP_VARIABLE_PREFIX, WORKSPACE_NATIVE_MOUNT_CAPABILITY, WorkletAdmissionRejectedError, WorkletArtifactStore, WorkletArtifactTransferClient, WorkletArtifactTransferServer, WorkspaceEnvironmentResolver, WorkspaceHost, WorkspaceIntegrityError, WorkspaceResolverRegistry, artifactInputPath, assertHarnessMcpPolicyEnforceable, assertTagActionAllowed, assertTagContextItemEligible, attemptModel, bundleTaskObjects, bundleTrustedCommit, checkReturnedBundle, childPath, collectTaskAttemptEvents, compatibleDescriptorWorkers, connectExecutionEnvironmentMcpClient, connectWorkerMcpClient, createSplitExecutionBridge, createWorker, decodeTaskAttemptEvent, decodeTaskAttemptSpec, defaultTaskResult, deliverWorkspace, describeToolCall, descriptorForProfile, descriptorSupportsCoordination, descriptorSupportsExecution, descriptorSupportsRequiredContext, descriptorSupportsSurfaceCoordination, devcontainerImageUser, evaluateTagAction, executeToTerminalOutput, executionPreferenceScore, executionRootCheckoutPath, executionRootWorkspace, executionWarningProgress, harnessArtifactRestoreDestination, harnessModels, inPlaceWorkspacePath, isControlPlaneCoordinationTool, isTagActionAllowed, isTagContextItemEligible, listSandboxOutputFiles, localResourceFilter, materializeSandboxArtifactFiles, materializeTrustedBuildContext, minimalProcessEnvironment, missingArtifactError, modalDevcontainerBase, normalizeTaskProgress, openEnvironmentMcpBridge, parseGitBundleHeader, permitsRuntimeAction, prepareSandboxOutputDirectory, preparedWorkspaceDigest, preparedWorkspaceKey, preparedWorkspaceWarmKey, profileAppliesEffort, profileDefaultModel, readMcpServerConfiguration, requestSurfaceActionApproval, resolveHarnessContinuity, resolveLocalMountRoot, resolveSkillPackages, resolvedDevcontainerEnv, runtimeInputs, selectDescriptorExecution, selectWorkletPlacement, signArtifactTransferGrant, startMcpPolicyProxy, terminalOutputText, terminalTaskResult, terminateSandbox, toolCallOutcomeFromText, validateHarnessControlCapabilities, validateHarnessControlCommand, validateHarnessExecutionLimitCapabilities, validateHarnessResolution, validateHarnessSessionCapabilities, validatedDevcontainerDockerfile, withoutProviderCredentials, workerSlots, workspaceDefinition, workspaceHarnessRequirement };
|
|
20412
|
-
//# sourceMappingURL=chunk-
|
|
20413
|
-
//# sourceMappingURL=chunk-
|
|
20461
|
+
export { ArtifactClient, ArtifactContextResolver, ArtifactRequestError, AttemptJournalOwnedError, CHANGE_SUMMARY_INSTRUCTION, COMMANDS_EXECUTE_CAPABILITY, COORDINATION_CAPABILITY, ContextResolverRegistry, DurableLocalWorklet, EXECUTION_WARNING_SUMMARY, ExecutionBudgetExceededError, ExecutionCleanupError, FINDINGS_INSTRUCTION, FileArtifactStore, FileAttemptJournal, FileSessionStateStore, FileSkillResolver, FileToolEffectJournal, HARNESS_EFFORTS, HarnessProviderError, HttpMcpToolProvider, HttpSessionStateStore, InMemorySessionStateStore, LOCAL_PROCESS_CAPABILITY, LocalExecutionEnvironmentProvider, LocalHarnessExecutionControl, LocalHarnessRuntimeProvider, LocalWorklet, LocalWorkspaceCheckout, LocalWorkspaceEnvironment, MAX_ARTIFACT_BYTES, MAX_WORKSPACE_BUNDLE_BYTES, McpToolAdapter, PREPARED_WORKSPACE_LIMITS, PROCESS_INPUT_STREAMING_CAPABILITY, PROCESS_OUTPUT_STREAMING_CAPABILITY, PermissionDeniedError, PreparedWorkspaceCache, ReliableToolInvokerRegistry, RpcTelemetry, RuntimeInputProviderRegistry, S3ArtifactStore, STANDARD_RUNTIME_ACTIONS, SURFACE_COORDINATION_CAPABILITY, SandboxExecutionEnvironmentProvider, SandboxWorkspaceEnvironment, StaticWorker, TASK_ATTEMPT_CANCELLATION_CAPABILITY, TASK_ATTEMPT_EVENT_STREAM_CAPABILITY, TASK_OUTPUT_POLICY_CAPABILITY, ToolAdapterRegistry, ToolEffectInDoubtError, ToolInvokerRegistry, ToolProviderRegistry, UNSANDBOXED_COMMANDS_CAPABILITY, VolumeCopyError, WORKLET_ARTIFACT_TRANSFER_PATH, WORKSPACE_BUNDLE_LIMITS, WORKSPACE_CLONE_CAPABILITY, WORKSPACE_COPY_MOUNT_CAPABILITY, WORKSPACE_COPY_MOUNT_WRITE_CAPABILITY, WORKSPACE_ENVIRONMENT_CAPABILITY, WORKSPACE_IN_PLACE_CAPABILITY, WORKSPACE_MCP_VARIABLE_PREFIX, WORKSPACE_NATIVE_MOUNT_CAPABILITY, WORKSPACE_NATIVE_MOUNT_WRITE_CAPABILITY, WorkletAdmissionRejectedError, WorkletArtifactStore, WorkletArtifactTransferClient, WorkletArtifactTransferServer, WorkspaceEnvironmentResolver, WorkspaceHost, WorkspaceIntegrityError, WorkspaceResolverRegistry, artifactInputPath, assertHarnessMcpPolicyEnforceable, assertTagActionAllowed, assertTagContextItemEligible, attemptModel, bundleTaskObjects, bundleTrustedCommit, checkReturnedBundle, childPath, collectTaskAttemptEvents, compatibleDescriptorWorkers, connectExecutionEnvironmentMcpClient, connectWorkerMcpClient, createSplitExecutionBridge, createWorker, decodeTaskAttemptEvent, decodeTaskAttemptSpec, defaultTaskResult, deliverWorkspace, describeToolCall, descriptorForProfile, descriptorSupportsCoordination, descriptorSupportsExecution, descriptorSupportsRequiredContext, descriptorSupportsSurfaceCoordination, devcontainerImageUser, evaluateTagAction, executeToTerminalOutput, executionPreferenceScore, executionRootCheckoutPath, executionRootWorkspace, executionWarningProgress, harnessArtifactRestoreDestination, harnessModels, inPlaceWorkspacePath, isControlPlaneCoordinationTool, isTagActionAllowed, isTagContextItemEligible, listSandboxOutputFiles, localResourceFilter, materializeSandboxArtifactFiles, materializeTrustedBuildContext, minimalProcessEnvironment, missingArtifactError, modalDevcontainerBase, normalizeTaskProgress, openEnvironmentMcpBridge, parseGitBundleHeader, permitsRuntimeAction, prepareSandboxOutputDirectory, preparedWorkspaceDigest, preparedWorkspaceKey, preparedWorkspaceWarmKey, profileAppliesEffort, profileDefaultModel, readMcpServerConfiguration, requestSurfaceActionApproval, resolveHarnessContinuity, resolveLocalMountRoot, resolveSkillPackages, resolvedDevcontainerEnv, runtimeInputs, selectDescriptorExecution, selectWorkletPlacement, signArtifactTransferGrant, startMcpPolicyProxy, terminalOutputText, terminalTaskResult, terminateSandbox, toolCallOutcomeFromText, validateHarnessControlCapabilities, validateHarnessControlCommand, validateHarnessExecutionLimitCapabilities, validateHarnessResolution, validateHarnessSessionCapabilities, validatedDevcontainerDockerfile, withoutProviderCredentials, workerSlots, workspaceDefinition, workspaceHarnessRequirement };
|
|
20462
|
+
//# sourceMappingURL=chunk-2TIOIPHK.js.map
|
|
20463
|
+
//# sourceMappingURL=chunk-2TIOIPHK.js.map
|