@lucid-agents/taskmarket 1.21.0 → 1.22.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/agent-compatibility.json +1 -1
- package/dist/{channels-OBJUNCZX.js → channels-NUZWFG26.js} +3 -3
- package/dist/{chunk-VVAUDP3D.js → chunk-3USQNOEQ.js} +4 -4
- package/dist/{chunk-ZU33L5X5.js → chunk-5AFK4Q3X.js} +1 -1
- package/dist/{chunk-5N25NATR.js → chunk-7MXTPGES.js} +3 -3
- package/dist/{chunk-HE2N4GEO.js → chunk-BO3XPXQ6.js} +1 -1
- package/dist/{chunk-ZZTCFKR3.js → chunk-BUFBA2JX.js} +3 -3
- package/dist/{chunk-3IIVNF5F.js → chunk-H2HOWIJ6.js} +70 -5
- package/dist/{chunk-TAMXCFLT.js → chunk-RSSJD6JU.js} +2 -2
- package/dist/{chunk-UD5Z752S.js → chunk-S5H4MWF5.js} +1 -1
- package/dist/{chunk-OCQKVV4A.js → chunk-TS75XZ3U.js} +2 -2
- package/dist/{doctor-26YOWQOH.js → doctor-MZUDBF4B.js} +7 -7
- package/dist/index.js +663 -86
- package/dist/{launch-QDCWAIKE.js → launch-UUW34PHS.js} +9 -9
- package/dist/pi-extensions/xgate.cjs +26 -3
- package/dist/{reconcile-MALCM3NB.js → reconcile-NDPFPJEB.js} +3 -3
- package/dist/{status-FTTQWS5P.js → status-5AVXIFQJ.js} +7 -7
- package/dist/{sync-pull-N6OTHBWR.js → sync-pull-FHKF7A44.js} +3 -3
- package/package.json +3 -3
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
selectRail,
|
|
11
11
|
uncertainPurchases,
|
|
12
12
|
withdrawalHatch
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-TS75XZ3U.js";
|
|
14
|
+
import "./chunk-BO3XPXQ6.js";
|
|
15
|
+
import "./chunk-H2HOWIJ6.js";
|
|
16
16
|
import "./chunk-XJOB4NMV.js";
|
|
17
17
|
import "./chunk-YM4S6IE4.js";
|
|
18
18
|
import "./chunk-S7SJMJ2I.js";
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadDeliverableRecord,
|
|
7
7
|
readComputeView,
|
|
8
8
|
taskStage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BUFBA2JX.js";
|
|
10
10
|
import {
|
|
11
11
|
activeClaim,
|
|
12
12
|
captureProblem,
|
|
13
13
|
killedSession,
|
|
14
14
|
loadSyncState,
|
|
15
15
|
orphanOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5AFK4Q3X.js";
|
|
17
17
|
import {
|
|
18
18
|
allocationViews,
|
|
19
19
|
channelView,
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
openAgentChannels,
|
|
22
22
|
uncertainPurchases,
|
|
23
23
|
withdrawalHatch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TS75XZ3U.js";
|
|
25
25
|
import {
|
|
26
26
|
SandboxListOutputSchema,
|
|
27
27
|
apiUrl,
|
|
28
28
|
selectedNetwork
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-H2HOWIJ6.js";
|
|
30
30
|
import {
|
|
31
31
|
AGENT_VIEW_VERSION,
|
|
32
32
|
blockingPurchases,
|
|
@@ -1,7 +1,7 @@
|
|
|
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
2
|
import {
|
|
3
3
|
getTaskmarketHome
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H2HOWIJ6.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentLaunchError
|
|
7
7
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
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
2
|
import {
|
|
3
3
|
x402FeePost
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RSSJD6JU.js";
|
|
5
5
|
import {
|
|
6
6
|
createWalletAccountFromKeystore,
|
|
7
7
|
signMessage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BO3XPXQ6.js";
|
|
9
9
|
import {
|
|
10
10
|
READ_AUTH_ADDRESS_HEADER,
|
|
11
11
|
READ_AUTH_SIGNATURE_HEADER,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
getTaskmarketHome,
|
|
20
20
|
isRecordingPendingResponse,
|
|
21
21
|
loadKeystore
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-H2HOWIJ6.js";
|
|
23
23
|
|
|
24
24
|
// src/lib/read-auth.ts
|
|
25
25
|
async function signReadAuth() {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
unsafeHostPath,
|
|
9
9
|
withFileLock,
|
|
10
10
|
writeAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5AFK4Q3X.js";
|
|
12
12
|
import {
|
|
13
13
|
buyComputeCredit,
|
|
14
14
|
fetchComputePricing,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
loadComputeCreditConfig,
|
|
17
17
|
onComputeBalanceObserved,
|
|
18
18
|
readComputeCreditStatus
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RSSJD6JU.js";
|
|
20
20
|
import {
|
|
21
21
|
getTaskmarketHome
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-H2HOWIJ6.js";
|
|
23
23
|
import {
|
|
24
24
|
burnRate,
|
|
25
25
|
computeLow
|
|
@@ -1462,10 +1462,20 @@ var AgentStatsSchema = z10.object({
|
|
|
1462
1462
|
totalStars: z10.number().nullable(),
|
|
1463
1463
|
averageRating: z10.number().nullable(),
|
|
1464
1464
|
/**
|
|
1465
|
-
* Net
|
|
1466
|
-
* across every Taskmarket contract
|
|
1465
|
+
* Net base units of the viewed chain's payment token (USDC or OUSD) paid to this address as
|
|
1466
|
+
* a worker on that chain, summed from settlement records across every Taskmarket contract
|
|
1467
|
+
* generation on that chain. Null when no chain was named.
|
|
1467
1468
|
*/
|
|
1468
1469
|
totalEarnings: z10.string().nullable(),
|
|
1470
|
+
/**
|
|
1471
|
+
* Earnings on every served chain where this address earned anything, one entry per chain in
|
|
1472
|
+
* that chain's token. A breakdown: amounts in different tokens are never summed.
|
|
1473
|
+
*/
|
|
1474
|
+
earningsByChain: z10.array(z10.object({
|
|
1475
|
+
chainId: z10.number().int().positive(),
|
|
1476
|
+
tokenSymbol: z10.enum(["USDC", "OUSD"]),
|
|
1477
|
+
amount: z10.string()
|
|
1478
|
+
})).optional(),
|
|
1469
1479
|
skills: z10.array(z10.string()).optional(),
|
|
1470
1480
|
emailAddress: z10.string().nullable().optional(),
|
|
1471
1481
|
credibility: z10.number().int().min(0).max(1e3).optional(),
|
|
@@ -4239,7 +4249,9 @@ var API_ERROR_REASONS = [
|
|
|
4239
4249
|
"sponsorship_rate_limited",
|
|
4240
4250
|
/**
|
|
4241
4251
|
* This client asked for too many payment challenges (unpaid `402` responses) in the current
|
|
4242
|
-
* window
|
|
4252
|
+
* window, or too many free platform-sponsored identity mints (per client IP per chain per hour,
|
|
4253
|
+
* or the chain's daily cap). Nothing was charged or minted; wait for `Retry-After` seconds, then
|
|
4254
|
+
* retry. A request that carries
|
|
4243
4255
|
* a payment credential is not counted.
|
|
4244
4256
|
*/
|
|
4245
4257
|
"rate_limited",
|
|
@@ -4264,6 +4276,17 @@ var API_ERROR_REASONS = [
|
|
|
4264
4276
|
"invalid_input",
|
|
4265
4277
|
/** This advisory start attempt was refused before enqueue; earlier ambiguous attempts may still exist. */
|
|
4266
4278
|
"submission_review_start_refused",
|
|
4279
|
+
/**
|
|
4280
|
+
* The platform-sponsored identity mint for this wallet on this chain already failed, so asking
|
|
4281
|
+
* again would not start a new one. Nothing was charged; contact support with the intent id.
|
|
4282
|
+
*/
|
|
4283
|
+
"identity_mint_failed",
|
|
4284
|
+
/**
|
|
4285
|
+
* This wallet's sponsored identity mint on this chain was started against a different identity
|
|
4286
|
+
* registry than the chain uses now, so it cannot be joined or repeated. Nothing was charged;
|
|
4287
|
+
* contact support with the intent id.
|
|
4288
|
+
*/
|
|
4289
|
+
"identity_registry_changed",
|
|
4267
4290
|
/**
|
|
4268
4291
|
* No API route matches the request's method and path, or the resource it names does not
|
|
4269
4292
|
* exist. Nothing was written or charged.
|
|
@@ -5120,6 +5143,9 @@ var RELAY_BRIDGE_ROUTES = Object.freeze({
|
|
|
5120
5143
|
destination: TEMPO_OUSD
|
|
5121
5144
|
})
|
|
5122
5145
|
});
|
|
5146
|
+
function relayBridgeRoute(id4) {
|
|
5147
|
+
return RELAY_BRIDGE_ROUTES[RelayBridgeRouteIdSchema.parse(id4)];
|
|
5148
|
+
}
|
|
5123
5149
|
var RelayBridgeFundingConfigOutputSchema = z38.object({
|
|
5124
5150
|
enabled: z38.boolean(),
|
|
5125
5151
|
routes: z38.array(RelayBridgeRouteIdSchema)
|
|
@@ -10984,6 +11010,26 @@ async function saveKeystore(keystore, keystorePath) {
|
|
|
10984
11010
|
await fs.writeFile(p, JSON.stringify(keystore, null, 2), { encoding: "utf8", mode: 384 });
|
|
10985
11011
|
await fs.chmod(p, 384);
|
|
10986
11012
|
}
|
|
11013
|
+
var KeystoreExistsError = class extends Error {
|
|
11014
|
+
constructor(keystorePath) {
|
|
11015
|
+
super(`A keystore already exists at ${keystorePath}.`);
|
|
11016
|
+
this.name = "KeystoreExistsError";
|
|
11017
|
+
}
|
|
11018
|
+
};
|
|
11019
|
+
async function createKeystore(keystore, keystorePath) {
|
|
11020
|
+
const p = keystorePath ?? getKeystorePath();
|
|
11021
|
+
await fs.mkdir(path3.dirname(p), { recursive: true });
|
|
11022
|
+
try {
|
|
11023
|
+
await fs.writeFile(p, JSON.stringify(keystore, null, 2), {
|
|
11024
|
+
encoding: "utf8",
|
|
11025
|
+
mode: 384,
|
|
11026
|
+
flag: "wx"
|
|
11027
|
+
});
|
|
11028
|
+
} catch (error) {
|
|
11029
|
+
if (error.code === "EEXIST") throw new KeystoreExistsError(p);
|
|
11030
|
+
throw error;
|
|
11031
|
+
}
|
|
11032
|
+
}
|
|
10987
11033
|
async function loadKeystore(keystorePath) {
|
|
10988
11034
|
const p = keystorePath ?? getKeystorePath();
|
|
10989
11035
|
let data;
|
|
@@ -11030,8 +11076,7 @@ var NETWORKS = {
|
|
|
11030
11076
|
name: "tempo",
|
|
11031
11077
|
apiUrl: PRODUCTION_API_URL,
|
|
11032
11078
|
chainId: 4217,
|
|
11033
|
-
available:
|
|
11034
|
-
unavailableMessage: "Tempo mainnet is not live yet."
|
|
11079
|
+
available: true
|
|
11035
11080
|
},
|
|
11036
11081
|
"tempo-testnet": {
|
|
11037
11082
|
name: "tempo-testnet",
|
|
@@ -11332,9 +11377,18 @@ export {
|
|
|
11332
11377
|
evaluationWindowError,
|
|
11333
11378
|
TaskTermsError,
|
|
11334
11379
|
resolveTaskTerms,
|
|
11380
|
+
TaskDropSubscribeInputSchema,
|
|
11381
|
+
TaskDropOfficialSubscribeInputSchema,
|
|
11382
|
+
TaskDropStatusInputSchema,
|
|
11383
|
+
TaskDropOfficialStatusInputSchema,
|
|
11384
|
+
TaskDropGetInputSchema,
|
|
11385
|
+
TaskDropDirectoryInputSchema,
|
|
11386
|
+
HookIndexInputSchema,
|
|
11387
|
+
HookGetInputSchema,
|
|
11335
11388
|
SponsoredTaskRewardStateSchema,
|
|
11336
11389
|
SponsoredTaskWorkerRewardClaimStatusSchema,
|
|
11337
11390
|
TaskAwardSchema,
|
|
11391
|
+
ActorType,
|
|
11338
11392
|
MppTempoChargeRequestSchema,
|
|
11339
11393
|
decodeMppJson,
|
|
11340
11394
|
parseMppChallenge,
|
|
@@ -11346,6 +11400,10 @@ export {
|
|
|
11346
11400
|
ComputeCreditStatusOutputSchema,
|
|
11347
11401
|
ComputeCreditPricingSchema,
|
|
11348
11402
|
SandboxListOutputSchema,
|
|
11403
|
+
PlatformTimeSeriesInputSchema,
|
|
11404
|
+
AgentTimeSeriesInputSchema,
|
|
11405
|
+
ActivityFeedInputSchema,
|
|
11406
|
+
ActivityHeatmapInputSchema,
|
|
11349
11407
|
LegalBundleSchema,
|
|
11350
11408
|
LegalStatusResponseSchema,
|
|
11351
11409
|
LegalChallengeResponseSchema,
|
|
@@ -11354,11 +11412,16 @@ export {
|
|
|
11354
11412
|
apiErrorEnvelopeOf,
|
|
11355
11413
|
IntentStatusResponseSchema,
|
|
11356
11414
|
isRecordingPendingResponse,
|
|
11415
|
+
CrossChainFundingConfigOutputSchema,
|
|
11357
11416
|
TEMPO_MAX_VALIDITY_WINDOW_SECONDS,
|
|
11358
11417
|
clampValidityWindowSeconds,
|
|
11359
11418
|
isTaskmarketChainId,
|
|
11360
11419
|
taskmarketChain,
|
|
11361
11420
|
clientValidityWindowSeconds,
|
|
11421
|
+
RelayBridgeRouteIdSchema,
|
|
11422
|
+
RELAY_BRIDGE_ROUTES,
|
|
11423
|
+
relayBridgeRoute,
|
|
11424
|
+
RelayBridgeFundingConfigOutputSchema,
|
|
11362
11425
|
WALLET_BRIDGE_ORIGIN_CHAIN_ID,
|
|
11363
11426
|
WALLET_BRIDGE_TEMPO_CHAIN_ID,
|
|
11364
11427
|
isTerminalWalletBridgeStatus,
|
|
@@ -11422,6 +11485,8 @@ export {
|
|
|
11422
11485
|
encryptPrivateKey,
|
|
11423
11486
|
decryptPrivateKey,
|
|
11424
11487
|
saveKeystore,
|
|
11488
|
+
KeystoreExistsError,
|
|
11489
|
+
createKeystore,
|
|
11425
11490
|
loadKeystore,
|
|
11426
11491
|
keystoreExists,
|
|
11427
11492
|
readKeystoreNetwork,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
readMppTempoChallenge,
|
|
17
17
|
reconcileX402Payment,
|
|
18
18
|
withX402FileLock
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BO3XPXQ6.js";
|
|
20
20
|
import {
|
|
21
21
|
ApiError,
|
|
22
22
|
ComputeCreditBuyOutputSchema,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
selectedNetwork,
|
|
40
40
|
withChainId,
|
|
41
41
|
withIdempotentWrite
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-H2HOWIJ6.js";
|
|
43
43
|
|
|
44
44
|
// src/lib/x402-fee.ts
|
|
45
45
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
listX402Payments,
|
|
12
12
|
loadX402Policy,
|
|
13
13
|
rpcUrlForNetwork
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BO3XPXQ6.js";
|
|
15
15
|
import {
|
|
16
16
|
getTaskmarketHome,
|
|
17
17
|
keystoreExists,
|
|
18
18
|
loadKeystore
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-H2HOWIJ6.js";
|
|
20
20
|
import {
|
|
21
21
|
failureDetail,
|
|
22
22
|
failureDetailOf,
|
|
@@ -6,26 +6,26 @@ import {
|
|
|
6
6
|
} from "./chunk-4ZC6SH7H.js";
|
|
7
7
|
import {
|
|
8
8
|
listSandboxes
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-3USQNOEQ.js";
|
|
10
|
+
import "./chunk-BUFBA2JX.js";
|
|
11
|
+
import "./chunk-5AFK4Q3X.js";
|
|
12
|
+
import "./chunk-RSSJD6JU.js";
|
|
13
13
|
import {
|
|
14
14
|
channelView,
|
|
15
15
|
loadAgentPolicy,
|
|
16
16
|
openAgentChannels
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TS75XZ3U.js";
|
|
18
18
|
import {
|
|
19
19
|
getX402PolicyPath,
|
|
20
20
|
loadX402Policy,
|
|
21
21
|
rpcUrlForNetwork
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BO3XPXQ6.js";
|
|
23
23
|
import {
|
|
24
24
|
apiUrl,
|
|
25
25
|
keystoreExists,
|
|
26
26
|
loadKeystore,
|
|
27
27
|
withChainId
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-H2HOWIJ6.js";
|
|
29
29
|
import {
|
|
30
30
|
AGENT_VIEW_VERSION
|
|
31
31
|
} from "./chunk-XJOB4NMV.js";
|