@lucid-agents/taskmarket 1.42.0 → 1.44.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/{api-4I33LJ7A.js → api-QATTK6I6.js} +2 -2
- package/dist/{channels-456WXKVT.js → channels-AH2WHLMC.js} +4 -4
- package/dist/{chunk-IN6WPBUK.js → chunk-3HR7XRLE.js} +3 -3
- package/dist/{chunk-HWDFJ5N7.js → chunk-3NPMVKNZ.js} +1 -1
- package/dist/{chunk-3FI5KV44.js → chunk-AZMCG2LI.js} +22 -7
- package/dist/{chunk-ASZ3YR77.js → chunk-CH3GXKIO.js} +2 -2
- package/dist/{chunk-5IOQEQH3.js → chunk-FUHULPDT.js} +1 -1
- package/dist/{chunk-JOVLOWPY.js → chunk-IVCJPX7J.js} +53 -292
- package/dist/{chunk-4Q67KT6T.js → chunk-J2TAHVUS.js} +5 -5
- package/dist/{chunk-I7OL2FMA.js → chunk-LETSESYQ.js} +8 -8
- package/dist/{chunk-L67V45XI.js → chunk-NLHDU4CH.js} +1 -1
- package/dist/{chunk-UTTATTGM.js → chunk-XBPINLPI.js} +1 -1
- package/dist/{chunk-QRMNHEUF.js → chunk-YENJWEM7.js} +3 -3
- package/dist/{chunk-UXZ5ZDBF.js → chunk-ZPQLJAG4.js} +3 -3
- package/dist/{doctor-K4RKUTXL.js → doctor-WW54ZCQR.js} +8 -8
- package/dist/index.js +729 -703
- package/dist/{launch-RL4BS22J.js → launch-FQFOZYIN.js} +11 -11
- package/dist/{read-auth-YC7ZM7J3.js → read-auth-B7NFDF6U.js} +3 -3
- package/dist/{reconcile-ZFFNXOD7.js → reconcile-KHSXUVR3.js} +4 -4
- package/dist/{status-IZ7ZTA5D.js → status-IMWQR4AR.js} +8 -8
- package/dist/{sync-pull-Q7W6IPWN.js → sync-pull-EN7CFU3J.js} +4 -4
- package/dist/{task-access-grants-4T4IPSVF.js → task-access-grants-IBD3JFGD.js} +2 -2
- package/package.json +1 -1
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
parseFailureBody,
|
|
15
15
|
readFailureBody,
|
|
16
16
|
withErrorContext
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-AZMCG2LI.js";
|
|
18
|
+
import "./chunk-IVCJPX7J.js";
|
|
19
19
|
import "./chunk-S7SJMJ2I.js";
|
|
20
20
|
export {
|
|
21
21
|
ApiError,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
selectRail,
|
|
11
11
|
uncertainPurchases,
|
|
12
12
|
withdrawalHatch
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-3HR7XRLE.js";
|
|
14
|
+
import "./chunk-FUHULPDT.js";
|
|
15
|
+
import "./chunk-AZMCG2LI.js";
|
|
16
|
+
import "./chunk-IVCJPX7J.js";
|
|
17
17
|
import "./chunk-YM4S6IE4.js";
|
|
18
18
|
import "./chunk-XJOB4NMV.js";
|
|
19
19
|
import "./chunk-S7SJMJ2I.js";
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
listX402Payments,
|
|
11
11
|
loadX402Policy,
|
|
12
12
|
rpcUrlForNetwork
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FUHULPDT.js";
|
|
14
14
|
import {
|
|
15
15
|
createWalletAccountFromKeystore,
|
|
16
16
|
keystoreExists,
|
|
17
17
|
loadKeystore
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AZMCG2LI.js";
|
|
19
19
|
import {
|
|
20
20
|
getTaskmarketHome,
|
|
21
21
|
taskmarketChain
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IVCJPX7J.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentLaunchError
|
|
25
25
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -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-IVCJPX7J.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentLaunchError
|
|
7
7
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
paymentProtocolFor,
|
|
10
10
|
taskmarketChain,
|
|
11
11
|
verifierProviderId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IVCJPX7J.js";
|
|
13
13
|
|
|
14
14
|
// src/lib/idempotency.ts
|
|
15
15
|
import { randomUUID } from "crypto";
|
|
@@ -380,7 +380,12 @@ async function getWalletAddress() {
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
// src/lib/tap.ts
|
|
383
|
-
var TAP_ALGORITHMS = [
|
|
383
|
+
var TAP_ALGORITHMS = [
|
|
384
|
+
"ed25519",
|
|
385
|
+
"ecdsa-p256-sha256",
|
|
386
|
+
"rsa-pss-sha256",
|
|
387
|
+
"rsa-pss-sha512"
|
|
388
|
+
];
|
|
384
389
|
var TAP_MAX_LIFETIME_SECONDS = 8 * 60;
|
|
385
390
|
var TAP_DEFAULT_LIFETIME_SECONDS = 5 * 60;
|
|
386
391
|
var ED25519_PKCS8_PREFIX = Buffer.from("302e020100300506032b657004220420", "hex");
|
|
@@ -389,6 +394,9 @@ function isTapAlgorithm(value) {
|
|
|
389
394
|
}
|
|
390
395
|
function algorithmsFor(key) {
|
|
391
396
|
if (key.asymmetricKeyType === "ed25519") return ["ed25519"];
|
|
397
|
+
if (key.asymmetricKeyType === "ec" && key.asymmetricKeyDetails?.namedCurve === "prime256v1") {
|
|
398
|
+
return ["ecdsa-p256-sha256"];
|
|
399
|
+
}
|
|
392
400
|
if (key.asymmetricKeyType === "rsa" || key.asymmetricKeyType === "rsa-pss") {
|
|
393
401
|
return ["rsa-pss-sha256", "rsa-pss-sha512"];
|
|
394
402
|
}
|
|
@@ -416,9 +424,8 @@ function parseTapPrivateKey(text, alg) {
|
|
|
416
424
|
}
|
|
417
425
|
const supported = algorithmsFor(privateKey);
|
|
418
426
|
if (supported.length === 0) {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
);
|
|
427
|
+
const found = privateKey.asymmetricKeyType === "ec" ? `an EC key on ${privateKey.asymmetricKeyDetails?.namedCurve ?? "an unknown curve"}` : privateKey.asymmetricKeyType ?? "unknown";
|
|
428
|
+
throw new Error(`TAP keys must be ed25519, ECDSA P-256 or RSA, not ${found}`);
|
|
422
429
|
}
|
|
423
430
|
if (alg !== void 0) {
|
|
424
431
|
if (!isTapAlgorithm(alg)) {
|
|
@@ -467,8 +474,12 @@ function tapSignatureAgentFor(stored, apiBase = apiUrl) {
|
|
|
467
474
|
}
|
|
468
475
|
return stored.signatureAgent;
|
|
469
476
|
}
|
|
470
|
-
|
|
471
|
-
|
|
477
|
+
var TAP_CREATE_ALGORITHMS = ["ecdsa-p256-sha256", "ed25519"];
|
|
478
|
+
function generateTapKey(alg = "ecdsa-p256-sha256") {
|
|
479
|
+
if (alg === "ed25519") {
|
|
480
|
+
return { privateKey: generateKeyPairSync("ed25519").privateKey, alg };
|
|
481
|
+
}
|
|
482
|
+
return { privateKey: generateKeyPairSync("ec", { namedCurve: "prime256v1" }).privateKey, alg };
|
|
472
483
|
}
|
|
473
484
|
function storedTapKey(deviceEncryptionKeyHex, keyId, key, now = /* @__PURE__ */ new Date(), source = "imported") {
|
|
474
485
|
const pem = key.privateKey.export({ type: "pkcs8", format: "pem" }).toString();
|
|
@@ -561,6 +572,9 @@ function tapSignatureBase(components, signatureParams) {
|
|
|
561
572
|
}
|
|
562
573
|
function rawSign(alg, privateKey, data) {
|
|
563
574
|
if (alg === "ed25519") return cryptoSign(null, data, privateKey);
|
|
575
|
+
if (alg === "ecdsa-p256-sha256") {
|
|
576
|
+
return cryptoSign("sha256", data, { key: privateKey, dsaEncoding: "ieee-p1363" });
|
|
577
|
+
}
|
|
564
578
|
return cryptoSign(alg === "rsa-pss-sha256" ? "sha256" : "sha512", data, {
|
|
565
579
|
key: privateKey,
|
|
566
580
|
padding: constants.RSA_PKCS1_PSS_PADDING,
|
|
@@ -945,6 +959,7 @@ export {
|
|
|
945
959
|
parseTapPrivateKey,
|
|
946
960
|
validateTapKeyId,
|
|
947
961
|
validateTapSignatureAgent,
|
|
962
|
+
TAP_CREATE_ALGORITHMS,
|
|
948
963
|
generateTapKey,
|
|
949
964
|
storedTapKey,
|
|
950
965
|
tapKeySummary,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __tmCreateRequire } from 'node:module'; import { fileU
|
|
|
2
2
|
import {
|
|
3
3
|
createWalletAccountFromKeystore,
|
|
4
4
|
loadKeystore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AZMCG2LI.js";
|
|
6
6
|
import {
|
|
7
7
|
READ_AUTH_ADDRESS_HEADER,
|
|
8
8
|
READ_AUTH_SIGNATURE_HEADER,
|
|
9
9
|
buildReadAuthMessage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IVCJPX7J.js";
|
|
11
11
|
|
|
12
12
|
// src/lib/read-auth.ts
|
|
13
13
|
async function signReadAuth(signal) {
|
|
@@ -3258,6 +3258,8 @@ var AgentReputationSchema = z14.object({
|
|
|
3258
3258
|
var AgentStatsSchema = z14.object({
|
|
3259
3259
|
address: z14.string(),
|
|
3260
3260
|
agentId: z14.string().nullable().optional(),
|
|
3261
|
+
/** ADR-0541: the wallet's stored display name; null until the backend has assigned one. */
|
|
3262
|
+
displayName: z14.string().nullable().optional(),
|
|
3261
3263
|
actorType: ActorType.optional(),
|
|
3262
3264
|
completedTasks: z14.number().nullable(),
|
|
3263
3265
|
ratedTasks: z14.number().nullable(),
|
|
@@ -3388,6 +3390,8 @@ var LeaderboardEntrySchema = z14.object({
|
|
|
3388
3390
|
rank: z14.number(),
|
|
3389
3391
|
address: z14.string(),
|
|
3390
3392
|
agentId: z14.string().nullable(),
|
|
3393
|
+
/** ADR-0541: the wallet's stored display name; null until the backend has assigned one. */
|
|
3394
|
+
displayName: z14.string().nullable().optional(),
|
|
3391
3395
|
actorType: ActorType.optional(),
|
|
3392
3396
|
/** ADR-0401: whether the worker is a human or an agent. */
|
|
3393
3397
|
kind: WorkerKind.optional(),
|
|
@@ -4246,6 +4250,8 @@ var PendingActionSchema = z17.object({
|
|
|
4246
4250
|
var TaskAwardSchema = z17.object({
|
|
4247
4251
|
workerAddress: z17.string(),
|
|
4248
4252
|
workerAgentId: z17.string().nullable(),
|
|
4253
|
+
/** ADR-0541: the worker's stored display name; null until one is assigned. */
|
|
4254
|
+
workerDisplayName: z17.string().nullable().optional(),
|
|
4249
4255
|
workerActorType: z17.enum(["agent", "human"]),
|
|
4250
4256
|
rank: z17.number().int().positive(),
|
|
4251
4257
|
isPrimary: z17.boolean(),
|
|
@@ -4626,8 +4632,12 @@ var TaskResponseSchema = z17.object({
|
|
|
4626
4632
|
// a response from an older backend, or from another endpoint, still parses.
|
|
4627
4633
|
recentActivityCount: z17.number().int().nonnegative().optional(),
|
|
4628
4634
|
requesterAgentId: z17.string().nullable().optional(),
|
|
4635
|
+
/** ADR-0541: the requester's stored display name; null until one is assigned. */
|
|
4636
|
+
requesterDisplayName: z17.string().nullable().optional(),
|
|
4629
4637
|
requesterActorType: z17.enum(["agent", "human"]).optional(),
|
|
4630
4638
|
workerAgentId: z17.string().nullable().optional(),
|
|
4639
|
+
/** ADR-0541: the claiming worker's stored display name; null until one is assigned. */
|
|
4640
|
+
workerDisplayName: z17.string().nullable().optional(),
|
|
4631
4641
|
workerActorType: z17.enum(["agent", "human"]).optional(),
|
|
4632
4642
|
auctionType: AuctionType.nullable().optional(),
|
|
4633
4643
|
auctionStartPrice: z17.string().nullable().optional(),
|
|
@@ -4835,6 +4845,8 @@ var TaskActionNoticeSchema = z17.object({
|
|
|
4835
4845
|
reward: z17.string(),
|
|
4836
4846
|
/** The agent that declined. */
|
|
4837
4847
|
worker: z17.string(),
|
|
4848
|
+
/** ADR-0541: the declining agent's stored display name; null until one is assigned. */
|
|
4849
|
+
workerDisplayName: z17.string().nullable().optional(),
|
|
4838
4850
|
serviceId: z17.string().nullable(),
|
|
4839
4851
|
/** When the hire was declined, and the transaction that declined it and refunded the reward. */
|
|
4840
4852
|
at: z17.string(),
|
|
@@ -5000,8 +5012,11 @@ var AgentHireSchema = z19.object({
|
|
|
5000
5012
|
serviceTitle: z19.string().nullable(),
|
|
5001
5013
|
worker: z19.string().nullable(),
|
|
5002
5014
|
workerAgentId: z19.string().nullable(),
|
|
5015
|
+
/** ADR-0541: stored display names; null until one is assigned. */
|
|
5016
|
+
workerDisplayName: z19.string().nullable().optional(),
|
|
5003
5017
|
requester: z19.string(),
|
|
5004
5018
|
requesterAgentId: z19.string().nullable(),
|
|
5019
|
+
requesterDisplayName: z19.string().nullable().optional(),
|
|
5005
5020
|
status: z19.string(),
|
|
5006
5021
|
/** The reward in the chain's payment token base units. */
|
|
5007
5022
|
reward: z19.string(),
|
|
@@ -5307,7 +5322,7 @@ var AccountEmailSuggestionSchema = z23.object({
|
|
|
5307
5322
|
username: z23.string(),
|
|
5308
5323
|
available: z23.boolean()
|
|
5309
5324
|
});
|
|
5310
|
-
var AccountEmailClaimInputSchema = z23.object({ username: z23.string().max(64) });
|
|
5325
|
+
var AccountEmailClaimInputSchema = z23.object({ username: z23.string().max(64).optional() });
|
|
5311
5326
|
var AccountEmailListInputSchema = z23.object({
|
|
5312
5327
|
unread: z23.boolean().optional(),
|
|
5313
5328
|
limit: z23.number().int().min(1).max(20).default(20),
|
|
@@ -6757,6 +6772,8 @@ var EcosystemNodeSchema = z30.object({
|
|
|
6757
6772
|
kind: EcosystemNodeKindEnum,
|
|
6758
6773
|
/** ERC-8004 identity token id, if registered. */
|
|
6759
6774
|
agentId: z30.string().nullable(),
|
|
6775
|
+
/** ADR-0541: the wallet's stored display name; null until the backend has assigned one. */
|
|
6776
|
+
displayName: z30.string().nullable().optional(),
|
|
6760
6777
|
completedTasks: z30.number(),
|
|
6761
6778
|
/** Mean rating on the 0-100 scale ratings are submitted in (see rating.schemas.ts), null when unrated. */
|
|
6762
6779
|
rating: z30.number().nullable(),
|
|
@@ -6917,6 +6934,9 @@ var EcosystemEventSchema = z30.object({
|
|
|
6917
6934
|
* agent_joined.
|
|
6918
6935
|
*/
|
|
6919
6936
|
worker: z30.string().nullable(),
|
|
6937
|
+
/** ADR-0541: stored display names of `requester` and `worker`; null when none is assigned yet. */
|
|
6938
|
+
requesterDisplayName: z30.string().nullable().optional(),
|
|
6939
|
+
workerDisplayName: z30.string().nullable().optional(),
|
|
6920
6940
|
/** Reward for task_created, bid price for bid_placed, payment for task_paid; else null. */
|
|
6921
6941
|
amount: z30.string().nullable(),
|
|
6922
6942
|
/**
|
|
@@ -9822,290 +9842,6 @@ var BriefAgentHandoffSchema = z47.object({
|
|
|
9822
9842
|
var USDC_DECIMALS = 6;
|
|
9823
9843
|
var STANDARD_X402_ACTION_AMOUNT = "1000";
|
|
9824
9844
|
|
|
9825
|
-
// ../../packages/shared/dist/lib/agentName.js
|
|
9826
|
-
var MODIFIERS = [
|
|
9827
|
-
"Neon",
|
|
9828
|
-
"Void",
|
|
9829
|
-
"Glitch",
|
|
9830
|
-
"Chrome",
|
|
9831
|
-
"Cipher",
|
|
9832
|
-
"Null",
|
|
9833
|
-
"Static",
|
|
9834
|
-
"Neural",
|
|
9835
|
-
"Pixel",
|
|
9836
|
-
"Wire",
|
|
9837
|
-
"Nano",
|
|
9838
|
-
"Holo",
|
|
9839
|
-
"Flux",
|
|
9840
|
-
"Byte",
|
|
9841
|
-
"Dark",
|
|
9842
|
-
"Ghost",
|
|
9843
|
-
"Crypto",
|
|
9844
|
-
"Phase",
|
|
9845
|
-
"Zero",
|
|
9846
|
-
"Binary",
|
|
9847
|
-
"Vector",
|
|
9848
|
-
"Quantum",
|
|
9849
|
-
"Photon",
|
|
9850
|
-
"Plasma",
|
|
9851
|
-
"Sonic",
|
|
9852
|
-
"Cyber",
|
|
9853
|
-
"Virtual",
|
|
9854
|
-
"Atomic",
|
|
9855
|
-
"Solar",
|
|
9856
|
-
"Lunar",
|
|
9857
|
-
"Stellar",
|
|
9858
|
-
"Nova",
|
|
9859
|
-
"Proto",
|
|
9860
|
-
"Meta",
|
|
9861
|
-
"Neo",
|
|
9862
|
-
"Trans",
|
|
9863
|
-
"Omni",
|
|
9864
|
-
"Synth",
|
|
9865
|
-
"Code",
|
|
9866
|
-
"Data",
|
|
9867
|
-
"Grid",
|
|
9868
|
-
"Core",
|
|
9869
|
-
"Arc",
|
|
9870
|
-
"Edge",
|
|
9871
|
-
"Sigma",
|
|
9872
|
-
"Omega",
|
|
9873
|
-
"Psi",
|
|
9874
|
-
"Iron",
|
|
9875
|
-
"Steel",
|
|
9876
|
-
"Carbon",
|
|
9877
|
-
"Cobalt",
|
|
9878
|
-
"Indigo",
|
|
9879
|
-
"Azure",
|
|
9880
|
-
"Crimson",
|
|
9881
|
-
"Amber",
|
|
9882
|
-
"Jade",
|
|
9883
|
-
"Obsidian",
|
|
9884
|
-
"Violet",
|
|
9885
|
-
"Scarlet",
|
|
9886
|
-
"Teal",
|
|
9887
|
-
"Onyx",
|
|
9888
|
-
"Silver",
|
|
9889
|
-
"Gold",
|
|
9890
|
-
"Copper",
|
|
9891
|
-
"Ivory",
|
|
9892
|
-
"Ash",
|
|
9893
|
-
"Slate",
|
|
9894
|
-
"Infra",
|
|
9895
|
-
"Sub",
|
|
9896
|
-
"Ultra",
|
|
9897
|
-
"Hyper",
|
|
9898
|
-
"Laser",
|
|
9899
|
-
"Turbo",
|
|
9900
|
-
"Rogue",
|
|
9901
|
-
"Feral",
|
|
9902
|
-
"Stray",
|
|
9903
|
-
"Phantom",
|
|
9904
|
-
"Hollow",
|
|
9905
|
-
"Rusted",
|
|
9906
|
-
"Fractured"
|
|
9907
|
-
];
|
|
9908
|
-
var ATMOSPHERE = [
|
|
9909
|
-
"Dream",
|
|
9910
|
-
"Drift",
|
|
9911
|
-
"Pulse",
|
|
9912
|
-
"Wave",
|
|
9913
|
-
"Tide",
|
|
9914
|
-
"Echo",
|
|
9915
|
-
"Bloom",
|
|
9916
|
-
"Surge",
|
|
9917
|
-
"Dust",
|
|
9918
|
-
"Mist",
|
|
9919
|
-
"Storm",
|
|
9920
|
-
"Ember",
|
|
9921
|
-
"Haze",
|
|
9922
|
-
"Rift",
|
|
9923
|
-
"Veil",
|
|
9924
|
-
"Spark",
|
|
9925
|
-
"Glow",
|
|
9926
|
-
"Blaze",
|
|
9927
|
-
"Flash",
|
|
9928
|
-
"Burst",
|
|
9929
|
-
"Fade",
|
|
9930
|
-
"Shift",
|
|
9931
|
-
"Warp",
|
|
9932
|
-
"Fold",
|
|
9933
|
-
"Loop",
|
|
9934
|
-
"Coil",
|
|
9935
|
-
"Spiral",
|
|
9936
|
-
"Prism",
|
|
9937
|
-
"Mirror",
|
|
9938
|
-
"Shard",
|
|
9939
|
-
"Gleam",
|
|
9940
|
-
"Shimmer",
|
|
9941
|
-
"Dusk",
|
|
9942
|
-
"Dawn",
|
|
9943
|
-
"Daze",
|
|
9944
|
-
"Trance",
|
|
9945
|
-
"Slumber",
|
|
9946
|
-
"Reverie",
|
|
9947
|
-
"Mirage",
|
|
9948
|
-
"Vision",
|
|
9949
|
-
"Aura",
|
|
9950
|
-
"Nimbus",
|
|
9951
|
-
"Halo",
|
|
9952
|
-
"Vortex",
|
|
9953
|
-
"Helix",
|
|
9954
|
-
"Matrix",
|
|
9955
|
-
"Nexus",
|
|
9956
|
-
"Current",
|
|
9957
|
-
"Wake",
|
|
9958
|
-
"Thread",
|
|
9959
|
-
"Weave",
|
|
9960
|
-
"Mesh",
|
|
9961
|
-
"Static",
|
|
9962
|
-
"Noise",
|
|
9963
|
-
"Signal",
|
|
9964
|
-
"Beacon",
|
|
9965
|
-
"Trace",
|
|
9966
|
-
"Glyph",
|
|
9967
|
-
"Rune",
|
|
9968
|
-
"Seal",
|
|
9969
|
-
"Shadow",
|
|
9970
|
-
"Shroud",
|
|
9971
|
-
"Mantle",
|
|
9972
|
-
"Cloak",
|
|
9973
|
-
"Veil",
|
|
9974
|
-
"Wraith",
|
|
9975
|
-
"Specter",
|
|
9976
|
-
"Shade",
|
|
9977
|
-
"Fracture",
|
|
9978
|
-
"Hollow",
|
|
9979
|
-
"Bloom",
|
|
9980
|
-
"Frost",
|
|
9981
|
-
"Ash",
|
|
9982
|
-
"Cinder",
|
|
9983
|
-
"Flux",
|
|
9984
|
-
"Torrent",
|
|
9985
|
-
"Cascade",
|
|
9986
|
-
"Deluge",
|
|
9987
|
-
"Tempest",
|
|
9988
|
-
"Nebula"
|
|
9989
|
-
];
|
|
9990
|
-
var ENTITIES = [
|
|
9991
|
-
"Phantom",
|
|
9992
|
-
"Nomad",
|
|
9993
|
-
"Walker",
|
|
9994
|
-
"Drifter",
|
|
9995
|
-
"Runner",
|
|
9996
|
-
"Seeker",
|
|
9997
|
-
"Mind",
|
|
9998
|
-
"Soul",
|
|
9999
|
-
"Rover",
|
|
10000
|
-
"Hunter",
|
|
10001
|
-
"Raider",
|
|
10002
|
-
"Weaver",
|
|
10003
|
-
"Caster",
|
|
10004
|
-
"Dreamer",
|
|
10005
|
-
"Oracle",
|
|
10006
|
-
"Wraith",
|
|
10007
|
-
"Prophet",
|
|
10008
|
-
"Sage",
|
|
10009
|
-
"Knight",
|
|
10010
|
-
"Warden",
|
|
10011
|
-
"Sentinel",
|
|
10012
|
-
"Scout",
|
|
10013
|
-
"Ranger",
|
|
10014
|
-
"Stalker",
|
|
10015
|
-
"Dancer",
|
|
10016
|
-
"Caller",
|
|
10017
|
-
"Blade",
|
|
10018
|
-
"Arrow",
|
|
10019
|
-
"Shield",
|
|
10020
|
-
"Rune",
|
|
10021
|
-
"Beacon",
|
|
10022
|
-
"Star",
|
|
10023
|
-
"Comet",
|
|
10024
|
-
"Node",
|
|
10025
|
-
"Root",
|
|
10026
|
-
"Seed",
|
|
10027
|
-
"Thread",
|
|
10028
|
-
"Pulse",
|
|
10029
|
-
"Beat",
|
|
10030
|
-
"Chord",
|
|
10031
|
-
"Key",
|
|
10032
|
-
"Lock",
|
|
10033
|
-
"Cipher",
|
|
10034
|
-
"Qubit",
|
|
10035
|
-
"Specter",
|
|
10036
|
-
"Monk",
|
|
10037
|
-
"Guard",
|
|
10038
|
-
"Voice",
|
|
10039
|
-
"Eye",
|
|
10040
|
-
"Hand",
|
|
10041
|
-
"Fist",
|
|
10042
|
-
"Point",
|
|
10043
|
-
"Mark",
|
|
10044
|
-
"Brand",
|
|
10045
|
-
"Signal",
|
|
10046
|
-
"Torch",
|
|
10047
|
-
"Light",
|
|
10048
|
-
"Moon",
|
|
10049
|
-
"Void",
|
|
10050
|
-
"Zero",
|
|
10051
|
-
"Bit",
|
|
10052
|
-
"Core",
|
|
10053
|
-
"Fiber",
|
|
10054
|
-
"Wire",
|
|
10055
|
-
"Cell",
|
|
10056
|
-
"Spore",
|
|
10057
|
-
"Gate",
|
|
10058
|
-
"Portal",
|
|
10059
|
-
"Lens",
|
|
10060
|
-
"Crystal",
|
|
10061
|
-
"Nexus",
|
|
10062
|
-
"Axis",
|
|
10063
|
-
"Vertex",
|
|
10064
|
-
"Apex",
|
|
10065
|
-
"Zenith",
|
|
10066
|
-
"Nadir",
|
|
10067
|
-
"Horizon",
|
|
10068
|
-
"Meridian",
|
|
10069
|
-
"Equinox",
|
|
10070
|
-
"Solstice"
|
|
10071
|
-
];
|
|
10072
|
-
var M = MODIFIERS.length;
|
|
10073
|
-
var A = ATMOSPHERE.length;
|
|
10074
|
-
var E = ENTITIES.length;
|
|
10075
|
-
var N = M * A * E;
|
|
10076
|
-
var MIX_K = 31;
|
|
10077
|
-
function modInverse(a, n) {
|
|
10078
|
-
let t = 0;
|
|
10079
|
-
let nextT = 1;
|
|
10080
|
-
let r = n;
|
|
10081
|
-
let nextR = a;
|
|
10082
|
-
while (nextR !== 0) {
|
|
10083
|
-
const q = Math.floor(r / nextR);
|
|
10084
|
-
[t, nextT] = [nextT, t - q * nextT];
|
|
10085
|
-
[r, nextR] = [nextR, r - q * nextR];
|
|
10086
|
-
}
|
|
10087
|
-
if (r !== 1)
|
|
10088
|
-
return 0;
|
|
10089
|
-
return (t % n + n) % n;
|
|
10090
|
-
}
|
|
10091
|
-
var MIX_K_INV = modInverse(MIX_K, N);
|
|
10092
|
-
function getAgentName(agentId) {
|
|
10093
|
-
if (agentId === null || agentId === void 0)
|
|
10094
|
-
return null;
|
|
10095
|
-
const id3 = Number(agentId);
|
|
10096
|
-
if (!Number.isFinite(id3))
|
|
10097
|
-
return null;
|
|
10098
|
-
const idNorm = (id3 % N + N) % N;
|
|
10099
|
-
const mixed = idNorm * MIX_K % N;
|
|
10100
|
-
const modIdx = mixed % M;
|
|
10101
|
-
const atmIdx = Math.floor(mixed / M) % A;
|
|
10102
|
-
const entIdx = Math.floor(mixed / (M * A)) % E;
|
|
10103
|
-
const mod = MODIFIERS[modIdx];
|
|
10104
|
-
const atm = ATMOSPHERE[atmIdx];
|
|
10105
|
-
const ent = ENTITIES[entIdx];
|
|
10106
|
-
return `${mod}${atm}${ent}`;
|
|
10107
|
-
}
|
|
10108
|
-
|
|
10109
9845
|
// ../../packages/shared/dist/lib/reference-codes.js
|
|
10110
9846
|
var ALPHABET = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
10111
9847
|
var CODE_LENGTH = 8;
|
|
@@ -12321,7 +12057,7 @@ function runDataChecks(spec, input2) {
|
|
|
12321
12057
|
...head,
|
|
12322
12058
|
passed: false,
|
|
12323
12059
|
skipped: true,
|
|
12324
|
-
detail: "runs in the CLI: taskmarket task
|
|
12060
|
+
detail: "runs in the CLI: taskmarket task submit --dry-run --yes"
|
|
12325
12061
|
};
|
|
12326
12062
|
}
|
|
12327
12063
|
if (check.kind === "patch_applies") {
|
|
@@ -12329,7 +12065,7 @@ function runDataChecks(spec, input2) {
|
|
|
12329
12065
|
...head,
|
|
12330
12066
|
passed: false,
|
|
12331
12067
|
skipped: true,
|
|
12332
|
-
detail: "runs in the CLI: taskmarket task
|
|
12068
|
+
detail: "runs in the CLI: taskmarket task submit --dry-run --dir <checkout> --patch <file>"
|
|
12333
12069
|
};
|
|
12334
12070
|
}
|
|
12335
12071
|
if (PATCH_DETECTORS.has(check.kind)) {
|
|
@@ -12337,7 +12073,7 @@ function runDataChecks(spec, input2) {
|
|
|
12337
12073
|
...head,
|
|
12338
12074
|
passed: false,
|
|
12339
12075
|
skipped: true,
|
|
12340
|
-
detail: "needs the patch: taskmarket task
|
|
12076
|
+
detail: "needs the patch: taskmarket task submit --dry-run --dir <checkout> --patch <file>"
|
|
12341
12077
|
};
|
|
12342
12078
|
}
|
|
12343
12079
|
if (deliverable.type !== "file") {
|
|
@@ -12448,8 +12184,28 @@ function hiddenChecksResult(spec) {
|
|
|
12448
12184
|
detail: `${n} hidden check${n === 1 ? "" : "s"}; they cannot be run locally, the verifier runs them`
|
|
12449
12185
|
};
|
|
12450
12186
|
}
|
|
12451
|
-
|
|
12452
|
-
|
|
12187
|
+
var FORMAT_EXTENSIONS = {
|
|
12188
|
+
csv: [".csv"],
|
|
12189
|
+
json: [".json"],
|
|
12190
|
+
jsonl: [".jsonl", ".ndjson"],
|
|
12191
|
+
text: []
|
|
12192
|
+
};
|
|
12193
|
+
var PATCH_EXTENSIONS = [".patch", ".diff"];
|
|
12194
|
+
var hasExtension = (name, extensions) => extensions.some((ext) => name.toLowerCase().endsWith(ext));
|
|
12195
|
+
function taskCheckedFiles(spec, names) {
|
|
12196
|
+
if (spec.deliverable.type !== "file")
|
|
12197
|
+
return [];
|
|
12198
|
+
const extensions = FORMAT_EXTENSIONS[spec.deliverable.format] ?? [];
|
|
12199
|
+
if (extensions.length === 0)
|
|
12200
|
+
return [...names];
|
|
12201
|
+
const matching = names.filter((name) => hasExtension(name, extensions));
|
|
12202
|
+
return matching.length > 0 ? matching : names.length === 1 ? [...names] : [];
|
|
12203
|
+
}
|
|
12204
|
+
function taskCheckedPatch(names) {
|
|
12205
|
+
return names.find((name) => hasExtension(name, PATCH_EXTENSIONS));
|
|
12206
|
+
}
|
|
12207
|
+
function taskChecksFailures(results) {
|
|
12208
|
+
return results.filter((r) => !r.passed && !r.skipped);
|
|
12453
12209
|
}
|
|
12454
12210
|
|
|
12455
12211
|
// ../../packages/shared/dist/lib/dreams.js
|
|
@@ -16476,6 +16232,8 @@ var PublicBugReportSchema = z67.object({
|
|
|
16476
16232
|
duplicateOfId: z67.string().uuid().nullable(),
|
|
16477
16233
|
reporterAddress: z67.string(),
|
|
16478
16234
|
reporterAgentId: z67.string().nullable(),
|
|
16235
|
+
/** ADR-0541: the reporter's stored display name; null until one is assigned. */
|
|
16236
|
+
reporterDisplayName: z67.string().nullable().optional(),
|
|
16479
16237
|
context: z67.record(z67.unknown()),
|
|
16480
16238
|
/** Wallets that said "I have this too". */
|
|
16481
16239
|
affectedCount: z67.number().int(),
|
|
@@ -16501,6 +16259,8 @@ var BugReportCommentSchema = z67.object({
|
|
|
16501
16259
|
id: z67.string().uuid(),
|
|
16502
16260
|
authorAddress: z67.string(),
|
|
16503
16261
|
authorAgentId: z67.string().nullable(),
|
|
16262
|
+
/** ADR-0541: the author's stored display name; null until one is assigned. */
|
|
16263
|
+
authorDisplayName: z67.string().nullable().optional(),
|
|
16504
16264
|
/** The comment is by the report's reporter. */
|
|
16505
16265
|
isReporter: z67.boolean(),
|
|
16506
16266
|
/** Taskmarket staff wrote it; `authorAddress` is then not a wallet. */
|
|
@@ -19231,7 +18991,6 @@ export {
|
|
|
19231
18991
|
isInitialBriefTurnMessage,
|
|
19232
18992
|
BriefSessionViewSchema,
|
|
19233
18993
|
STANDARD_X402_ACTION_AMOUNT,
|
|
19234
|
-
getAgentName,
|
|
19235
18994
|
normalizeReferenceCode,
|
|
19236
18995
|
validateWorkflowDocument,
|
|
19237
18996
|
normalizeWorkflowTemplateTags,
|
|
@@ -19242,7 +19001,9 @@ export {
|
|
|
19242
19001
|
runDataChecks,
|
|
19243
19002
|
runPatchChecks,
|
|
19244
19003
|
hiddenChecksResult,
|
|
19245
|
-
|
|
19004
|
+
taskCheckedFiles,
|
|
19005
|
+
taskCheckedPatch,
|
|
19006
|
+
taskChecksFailures,
|
|
19246
19007
|
dreamsToUsd,
|
|
19247
19008
|
formatDreams,
|
|
19248
19009
|
compareSubmissionVersionsNewestFirst,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadDeliverableRecord,
|
|
7
7
|
readComputeView,
|
|
8
8
|
taskStage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YENJWEM7.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-3NPMVKNZ.js";
|
|
17
17
|
import {
|
|
18
18
|
allocationViews,
|
|
19
19
|
channelView,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
openAgentChannels,
|
|
22
22
|
uncertainPurchases,
|
|
23
23
|
withdrawalHatch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3HR7XRLE.js";
|
|
25
25
|
import {
|
|
26
26
|
apiUrl,
|
|
27
27
|
selectedNetwork
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AZMCG2LI.js";
|
|
29
29
|
import {
|
|
30
30
|
SandboxListOutputSchema
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IVCJPX7J.js";
|
|
32
32
|
import {
|
|
33
33
|
AgentLaunchError
|
|
34
34
|
} from "./chunk-YM4S6IE4.js";
|