@lucid-agents/taskmarket 1.25.1 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_NOTICES.md +224 -122
- package/dist/agent-compatibility.json +1 -1
- package/dist/api-H7VPA6C6.js +35 -0
- package/dist/{channels-LEYAANE5.js → channels-4IFPTRDY.js} +5 -4
- package/dist/{chunk-6KBTN3WM.js → chunk-2AJZDGEL.js} +1 -45
- package/dist/{chunk-ULPTFH3G.js → chunk-CNWA5PU3.js} +1 -1
- package/dist/{chunk-4E76UNBE.js → chunk-FMK32RJF.js} +11 -127
- package/dist/{chunk-RFRSTYDB.js → chunk-GT5TOHOY.js} +5 -5
- package/dist/chunk-NTLOY7SP.js +46 -0
- package/dist/chunk-PJAWRHHZ.js +39 -0
- package/dist/chunk-Q2FZSDFG.js +933 -0
- package/dist/{chunk-CGUYPUG3.js → chunk-RPGVVVJD.js} +6 -6
- package/dist/chunk-VTMYCZLT.js +17003 -0
- package/dist/{chunk-73SUBS7U.js → chunk-XV6DBK4C.js} +42 -18
- package/dist/{chunk-PE72DL5T.js → chunk-YAKNCBUK.js} +90 -84
- package/dist/{chunk-XBTNZTXE.js → chunk-YIOZ7W3M.js} +9 -7
- package/dist/{doctor-K2JOWQF4.js → doctor-HENBO5YV.js} +11 -19
- package/dist/index.js +19290 -7979
- package/dist/{launch-O72WIBHY.js → launch-DMKAPDO4.js} +73 -46
- package/dist/pi-extensions/remote-tools.cjs +4 -4
- package/dist/pi-extensions/xgate.cjs +4234 -308
- package/dist/read-auth-26D4BRUP.js +10 -0
- package/dist/{reconcile-FZTOX3PZ.js → reconcile-6A5U2Q7Q.js} +7 -6
- package/dist/{status-CC5L5YUU.js → status-GRLQL23D.js} +11 -16
- package/dist/{sync-pull-DZGTSKZU.js → sync-pull-MSYWP5WU.js} +4 -3
- package/dist/task-access-grants-54GQX63L.js +13 -0
- package/package.json +10 -6
- package/dist/chunk-L3A7JOO5.js +0 -11727
|
@@ -1,34 +1,4 @@
|
|
|
1
1
|
import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
|
|
2
|
-
import {
|
|
3
|
-
SessionSync,
|
|
4
|
-
emptyBase,
|
|
5
|
-
leftOutNote,
|
|
6
|
-
prepareWorkspaceSync,
|
|
7
|
-
recordSessionEnd,
|
|
8
|
-
recordSessionStart,
|
|
9
|
-
uploadPlan
|
|
10
|
-
} from "./chunk-ULPTFH3G.js";
|
|
11
|
-
import {
|
|
12
|
-
TaskOperationError,
|
|
13
|
-
authorizeUploads,
|
|
14
|
-
claimTask,
|
|
15
|
-
cliTaskTransport,
|
|
16
|
-
getAgentStats,
|
|
17
|
-
getTask,
|
|
18
|
-
getWorkerInbox,
|
|
19
|
-
keystoreTaskSigner,
|
|
20
|
-
listTaskSubmissions,
|
|
21
|
-
listTasks,
|
|
22
|
-
listWorkerSubmissions,
|
|
23
|
-
mimeTypeForPath,
|
|
24
|
-
putArtifactBytes,
|
|
25
|
-
readArtifactFile,
|
|
26
|
-
requestArtifactUpload,
|
|
27
|
-
signReadAuth,
|
|
28
|
-
submitUploadedArtifacts,
|
|
29
|
-
taskAccessGrantHeaders,
|
|
30
|
-
taskAwardsOf
|
|
31
|
-
} from "./chunk-PE72DL5T.js";
|
|
32
2
|
import {
|
|
33
3
|
terminalPrompter
|
|
34
4
|
} from "./chunk-ZIC2YCLV.js";
|
|
@@ -68,7 +38,16 @@ import {
|
|
|
68
38
|
sha256Hex,
|
|
69
39
|
specHash,
|
|
70
40
|
taskStage
|
|
71
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RPGVVVJD.js";
|
|
42
|
+
import {
|
|
43
|
+
SessionSync,
|
|
44
|
+
emptyBase,
|
|
45
|
+
leftOutNote,
|
|
46
|
+
prepareWorkspaceSync,
|
|
47
|
+
recordSessionEnd,
|
|
48
|
+
recordSessionStart,
|
|
49
|
+
uploadPlan
|
|
50
|
+
} from "./chunk-CNWA5PU3.js";
|
|
72
51
|
import {
|
|
73
52
|
BrokerConnector,
|
|
74
53
|
OutputLimitError,
|
|
@@ -80,7 +59,26 @@ import {
|
|
|
80
59
|
serveSandboxChannel,
|
|
81
60
|
withFileLock,
|
|
82
61
|
writeAtomic
|
|
83
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-GT5TOHOY.js";
|
|
63
|
+
import {
|
|
64
|
+
TaskOperationError,
|
|
65
|
+
authorizeUploads,
|
|
66
|
+
claimTask,
|
|
67
|
+
cliTaskTransport,
|
|
68
|
+
getAgentStats,
|
|
69
|
+
getTask,
|
|
70
|
+
getWorkerInbox,
|
|
71
|
+
keystoreTaskSigner,
|
|
72
|
+
listTaskSubmissions,
|
|
73
|
+
listTasks,
|
|
74
|
+
listWorkerSubmissions,
|
|
75
|
+
mimeTypeForPath,
|
|
76
|
+
putArtifactBytes,
|
|
77
|
+
readArtifactFile,
|
|
78
|
+
requestArtifactUpload,
|
|
79
|
+
submitUploadedArtifacts,
|
|
80
|
+
taskAwardsOf
|
|
81
|
+
} from "./chunk-YAKNCBUK.js";
|
|
84
82
|
import {
|
|
85
83
|
applyComputeCreditSetup,
|
|
86
84
|
atomicToUsd,
|
|
@@ -90,7 +88,13 @@ import {
|
|
|
90
88
|
planComputeCreditSetup,
|
|
91
89
|
readComputeCreditBalance,
|
|
92
90
|
usdToAtomic
|
|
93
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-XV6DBK4C.js";
|
|
92
|
+
import {
|
|
93
|
+
signReadAuth
|
|
94
|
+
} from "./chunk-PJAWRHHZ.js";
|
|
95
|
+
import {
|
|
96
|
+
taskAccessGrantHeaders
|
|
97
|
+
} from "./chunk-NTLOY7SP.js";
|
|
94
98
|
import {
|
|
95
99
|
MAX_RETIRED_RAILS,
|
|
96
100
|
WORKSPACE_CONSENT_VERSION,
|
|
@@ -110,7 +114,7 @@ import {
|
|
|
110
114
|
routeOfCatalogRow,
|
|
111
115
|
saveAgentPolicy,
|
|
112
116
|
settledRetiredRails
|
|
113
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-YIOZ7W3M.js";
|
|
114
118
|
import {
|
|
115
119
|
BASE_CHANNEL_RAIL_ID,
|
|
116
120
|
createBaseChannelPayer,
|
|
@@ -124,29 +128,31 @@ import {
|
|
|
124
128
|
rpcUrlForNetwork,
|
|
125
129
|
saveX402Policy,
|
|
126
130
|
x402SpendWindowAvailability
|
|
127
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-2AJZDGEL.js";
|
|
132
|
+
import {
|
|
133
|
+
apiUrl,
|
|
134
|
+
keystoreExists,
|
|
135
|
+
loadKeystore,
|
|
136
|
+
selectedNetwork
|
|
137
|
+
} from "./chunk-Q2FZSDFG.js";
|
|
128
138
|
import {
|
|
129
139
|
IntentStatusResponseSchema,
|
|
130
140
|
NetworkChainInfoSchema,
|
|
131
|
-
apiUrl,
|
|
132
141
|
getTaskmarketHome,
|
|
133
142
|
isInFlightApiError,
|
|
134
143
|
isRecordingPendingResponse,
|
|
135
|
-
keystoreExists,
|
|
136
|
-
loadKeystore,
|
|
137
144
|
piCodingAgentTools,
|
|
138
|
-
selectedNetwork,
|
|
139
145
|
taskmarketChain
|
|
140
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-VTMYCZLT.js";
|
|
147
|
+
import {
|
|
148
|
+
AgentLaunchError
|
|
149
|
+
} from "./chunk-YM4S6IE4.js";
|
|
141
150
|
import {
|
|
142
151
|
AGENT_VIEW_VERSION,
|
|
143
152
|
describeFailureDetail,
|
|
144
153
|
failureDetailOf,
|
|
145
154
|
formatUsdc
|
|
146
155
|
} from "./chunk-XJOB4NMV.js";
|
|
147
|
-
import {
|
|
148
|
-
AgentLaunchError
|
|
149
|
-
} from "./chunk-YM4S6IE4.js";
|
|
150
156
|
import "./chunk-S7SJMJ2I.js";
|
|
151
157
|
|
|
152
158
|
// src/lib/agent/launch.ts
|
|
@@ -1088,7 +1094,8 @@ var FORBIDDEN_WRITE_SEGMENTS = /* @__PURE__ */ new Set([
|
|
|
1088
1094
|
"pitch",
|
|
1089
1095
|
"auction-accept",
|
|
1090
1096
|
"cancel",
|
|
1091
|
-
"evaluator-timeout"
|
|
1097
|
+
"evaluator-timeout",
|
|
1098
|
+
"requester-timeout"
|
|
1092
1099
|
]);
|
|
1093
1100
|
function forbiddenWriteSegment(path10) {
|
|
1094
1101
|
const pathname = path10.split(/[?#]/, 1)[0];
|
|
@@ -4568,7 +4575,15 @@ var HASH = /^0x[0-9a-fA-F]{1,128}$/;
|
|
|
4568
4575
|
var CURSOR = /^[A-Za-z0-9._:=+/-]{1,200}$/;
|
|
4569
4576
|
var SEARCH_STATUSES = ["open", "claimed", "worker_selected", "completed", "ALL"];
|
|
4570
4577
|
var SEARCH_MODES = ["bounty", "claim", "pitch", "benchmark", "auction"];
|
|
4571
|
-
var SEARCH_SORTS = [
|
|
4578
|
+
var SEARCH_SORTS = [
|
|
4579
|
+
"newest",
|
|
4580
|
+
"reward_desc",
|
|
4581
|
+
"reward_asc",
|
|
4582
|
+
"total_reward_desc",
|
|
4583
|
+
"total_reward_asc",
|
|
4584
|
+
"deadline_asc",
|
|
4585
|
+
"relevance"
|
|
4586
|
+
];
|
|
4572
4587
|
function str(value, pattern) {
|
|
4573
4588
|
return typeof value === "string" && pattern.test(value) ? value : null;
|
|
4574
4589
|
}
|
|
@@ -4689,6 +4704,8 @@ function taskSummary(task, wallet, now) {
|
|
|
4689
4704
|
claimed: address(task.claimedBy) !== null,
|
|
4690
4705
|
claimedByYou: sameAddress8(task.claimedBy, wallet),
|
|
4691
4706
|
submissionCount: integer(task.submissionCount),
|
|
4707
|
+
// Entries in the last 24 hours (RFC-0052 section 5a); null from an API that predates it.
|
|
4708
|
+
recentActivityCount: integer(task.recentActivityCount),
|
|
4692
4709
|
stakeRequired: task.stakeRequired === true,
|
|
4693
4710
|
hasEvaluator: address(task.evaluator) !== null
|
|
4694
4711
|
};
|
|
@@ -4808,6 +4825,7 @@ function createMarketReader(options) {
|
|
|
4808
4825
|
bidDeadline: time(task.bidDeadline),
|
|
4809
4826
|
submissionWindowOpen: typeof task.submissionWindowOpen === "boolean" ? task.submissionWindowOpen : null,
|
|
4810
4827
|
submissionCount: integer(task.submissionCount),
|
|
4828
|
+
recentActivityCount: integer(task.recentActivityCount),
|
|
4811
4829
|
claim: {
|
|
4812
4830
|
claimedBy: address(task.claimedBy),
|
|
4813
4831
|
claimedByYou: sameAddress8(task.claimedBy, wallet),
|
|
@@ -6594,7 +6612,7 @@ async function runSession(options, signals, keystore, workspace) {
|
|
|
6594
6612
|
checkInterrupted();
|
|
6595
6613
|
piStarted = true;
|
|
6596
6614
|
return await runPiSession(launch, {
|
|
6597
|
-
secrets:
|
|
6615
|
+
secrets: controllerSecrets(keystore, broker.toolKey.privateKey),
|
|
6598
6616
|
broker,
|
|
6599
6617
|
budget,
|
|
6600
6618
|
signals,
|
|
@@ -6712,6 +6730,14 @@ function sessionMarket(keystore, budget, sandbox) {
|
|
|
6712
6730
|
})
|
|
6713
6731
|
};
|
|
6714
6732
|
}
|
|
6733
|
+
function controllerSecrets(keystore, toolKey) {
|
|
6734
|
+
return [
|
|
6735
|
+
toolKey,
|
|
6736
|
+
keystore.apiToken,
|
|
6737
|
+
keystore.encryptedKey,
|
|
6738
|
+
...keystore.solanaEncryptedKey ? [keystore.solanaEncryptedKey] : []
|
|
6739
|
+
];
|
|
6740
|
+
}
|
|
6715
6741
|
function keptSandboxNote(sandboxId, reason) {
|
|
6716
6742
|
log(`The changes left in the sandbox could not be saved on this computer: ${reason}.`);
|
|
6717
6743
|
log(
|
|
@@ -6843,5 +6869,6 @@ function signalNumber(signal) {
|
|
|
6843
6869
|
return { SIGHUP: 1, SIGINT: 2, SIGKILL: 9, SIGTERM: 15 }[signal];
|
|
6844
6870
|
}
|
|
6845
6871
|
export {
|
|
6872
|
+
controllerSecrets,
|
|
6846
6873
|
runAgent
|
|
6847
6874
|
};
|
|
@@ -22225,8 +22225,8 @@ var SshSandboxBackend = class {
|
|
|
22225
22225
|
get isConnected() {
|
|
22226
22226
|
return !!this.conn && !this.conn.closed;
|
|
22227
22227
|
}
|
|
22228
|
-
log(message) {
|
|
22229
|
-
this.options.log?.(message);
|
|
22228
|
+
log(message, level = "error") {
|
|
22229
|
+
this.options.log?.(message, level);
|
|
22230
22230
|
}
|
|
22231
22231
|
async connect(signal) {
|
|
22232
22232
|
await this.ensure(signal);
|
|
@@ -22279,13 +22279,13 @@ var SshSandboxBackend = class {
|
|
|
22279
22279
|
this.info = { label: `${this.user}@${endpoint.host} (${this.root})` };
|
|
22280
22280
|
this.failure = void 0;
|
|
22281
22281
|
this.lastHeartbeat = Date.now();
|
|
22282
|
-
this.log(`${this.dialed ? "Reconnected" : "Connected"} to the sandbox at ${endpoint.host}
|
|
22282
|
+
this.log(`${this.dialed ? "Reconnected" : "Connected"} to the sandbox at ${endpoint.host}`, "info");
|
|
22283
22283
|
this.dialed = true;
|
|
22284
22284
|
conn.onClose(() => {
|
|
22285
22285
|
if (this.conn === conn) {
|
|
22286
22286
|
this.conn = void 0;
|
|
22287
22287
|
this.files = void 0;
|
|
22288
|
-
this.log("The sandbox connection closed; the next tool call reconnects");
|
|
22288
|
+
this.log("The sandbox connection closed; the next tool call reconnects", "info");
|
|
22289
22289
|
}
|
|
22290
22290
|
});
|
|
22291
22291
|
return { conn, files };
|