@lucid-agents/taskmarket 1.46.0 → 1.47.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-56KWZFR4.js → api-ENHCGR7K.js} +2 -2
- package/dist/{channels-YKCZU2Q7.js → channels-LX2DTMKZ.js} +4 -4
- package/dist/{chunk-MMODVSSS.js → chunk-4MAQWPJ2.js} +1 -1
- package/dist/{chunk-O5C2CWWL.js → chunk-54J54BK7.js} +5 -5
- package/dist/{chunk-3MITXF2F.js → chunk-AMT2L4BR.js} +3 -3
- package/dist/{chunk-MUFEOBRQ.js → chunk-AS6EFS2V.js} +2 -1
- package/dist/{chunk-HFG7TSVD.js → chunk-O53R76N3.js} +109 -18
- package/dist/{chunk-AS3N5L25.js → chunk-PDVDVVVF.js} +2 -2
- package/dist/{chunk-66HELSIU.js → chunk-PPJNXEWM.js} +3 -3
- package/dist/{chunk-64NUUQBC.js → chunk-RO5AHGHC.js} +1 -1
- package/dist/{chunk-DPJIDICA.js → chunk-TUP4MTW6.js} +3 -3
- package/dist/{chunk-E3J2J3PZ.js → chunk-V2BCPGOB.js} +8 -8
- package/dist/{chunk-7KZOHF7R.js → chunk-WOPSQ2GZ.js} +1 -1
- package/dist/{chunk-Y3B7POF2.js → chunk-XRM455ZG.js} +41 -5
- package/dist/{doctor-TA3AZMPJ.js → doctor-PEAKIDKS.js} +8 -8
- package/dist/index.js +287 -47
- package/dist/{launch-2RINYQTU.js → launch-CEJWCOQA.js} +11 -11
- package/dist/pi-extensions/xgate.cjs +7 -1
- package/dist/{read-auth-FFCZKAFN.js → read-auth-524RVF3G.js} +3 -3
- package/dist/{reconcile-O6LVP2Z3.js → reconcile-GMYKLZTG.js} +4 -4
- package/dist/{status-FRMTSDIG.js → status-Y6JAL4DR.js} +8 -8
- package/dist/{sync-pull-OUXRL6A2.js → sync-pull-YFIWHI4H.js} +4 -4
- package/dist/{task-access-grants-WV3HVN5V.js → task-access-grants-GXJ6WOQK.js} +2 -2
- package/package.json +2 -2
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
parseFailureBody,
|
|
15
15
|
readFailureBody,
|
|
16
16
|
withErrorContext
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-AS6EFS2V.js";
|
|
18
|
+
import "./chunk-O53R76N3.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-AMT2L4BR.js";
|
|
14
|
+
import "./chunk-XRM455ZG.js";
|
|
15
|
+
import "./chunk-AS6EFS2V.js";
|
|
16
|
+
import "./chunk-O53R76N3.js";
|
|
17
17
|
import "./chunk-YM4S6IE4.js";
|
|
18
18
|
import "./chunk-XJOB4NMV.js";
|
|
19
19
|
import "./chunk-S7SJMJ2I.js";
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadDeliverableRecord,
|
|
7
7
|
readComputeView,
|
|
8
8
|
taskStage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PPJNXEWM.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-RO5AHGHC.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-AMT2L4BR.js";
|
|
25
25
|
import {
|
|
26
26
|
apiUrl,
|
|
27
27
|
selectedNetwork
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AS6EFS2V.js";
|
|
29
29
|
import {
|
|
30
30
|
SandboxListOutputSchema
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-O53R76N3.js";
|
|
32
32
|
import {
|
|
33
33
|
AgentLaunchError
|
|
34
34
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
listX402Payments,
|
|
11
11
|
loadX402Policy,
|
|
12
12
|
rpcUrlForNetwork
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XRM455ZG.js";
|
|
14
14
|
import {
|
|
15
15
|
createWalletAccountFromKeystore,
|
|
16
16
|
keystoreExists,
|
|
17
17
|
loadKeystore
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AS6EFS2V.js";
|
|
19
19
|
import {
|
|
20
20
|
getTaskmarketHome,
|
|
21
21
|
taskmarketChain
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-O53R76N3.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentLaunchError
|
|
25
25
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
paymentProtocolFor,
|
|
10
10
|
taskmarketChain,
|
|
11
11
|
verifierProviderId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-O53R76N3.js";
|
|
13
13
|
|
|
14
14
|
// src/lib/idempotency.ts
|
|
15
15
|
import { randomUUID } from "crypto";
|
|
@@ -924,6 +924,7 @@ export {
|
|
|
924
924
|
keystoreExists,
|
|
925
925
|
readKeystoreNetwork,
|
|
926
926
|
idempotencyKeyForError,
|
|
927
|
+
newIdempotencyKey,
|
|
927
928
|
resolveIdempotencyKey,
|
|
928
929
|
withIdempotentWrite,
|
|
929
930
|
idempotencyHeaders,
|
|
@@ -3573,11 +3573,16 @@ var AGENT_LISTING_LIMITS = {
|
|
|
3573
3573
|
};
|
|
3574
3574
|
var UNSAFE_TEXT = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F--]/;
|
|
3575
3575
|
var LINE_BREAK = /[\t\n\r]/;
|
|
3576
|
+
var INVISIBLE_TEXT = /[\u115F\u1160\u180E\u200B\u200E\u200F\u2060-\u2064\u2800\u3164\uFEFF\uFFA0]/;
|
|
3577
|
+
var VISIBLE_CHAR = /[^\s\p{Cf}\p{M}\p{Z}]/u;
|
|
3578
|
+
function isSafeText(value) {
|
|
3579
|
+
return !UNSAFE_TEXT.test(value) && !INVISIBLE_TEXT.test(value);
|
|
3580
|
+
}
|
|
3576
3581
|
function singleLineText(max) {
|
|
3577
|
-
return z16.string().min(1).max(max).refine((value) => value.trim() === value, "Remove leading and trailing spaces").refine((value) =>
|
|
3582
|
+
return z16.string().min(1).max(max).refine((value) => value.trim() === value, "Remove leading and trailing spaces").refine((value) => isSafeText(value) && !LINE_BREAK.test(value), "Invalid characters").refine((value) => VISIBLE_CHAR.test(value), "Must have a visible character");
|
|
3578
3583
|
}
|
|
3579
3584
|
function multiLineText(max) {
|
|
3580
|
-
return z16.string().min(1).max(max).refine((value) =>
|
|
3585
|
+
return z16.string().min(1).max(max).refine((value) => VISIBLE_CHAR.test(value), "Must not be blank").refine(isSafeText, "Invalid characters");
|
|
3581
3586
|
}
|
|
3582
3587
|
var CAPABILITY_LIMIT_MESSAGE = `A listing declares at most ${AGENT_LISTING_LIMITS.capabilitiesPerListingMax} capabilities. Remove some to continue.`;
|
|
3583
3588
|
function uniqueList2(item, max, min = 0, maxMessage) {
|
|
@@ -4240,6 +4245,10 @@ var HireAvailabilitySchema = z18.object({
|
|
|
4240
4245
|
});
|
|
4241
4246
|
var HIRE_AGENT_UNAVAILABLE = "HIRE_AGENT_UNAVAILABLE";
|
|
4242
4247
|
var HIRE_AGENT_AT_CAPACITY = "HIRE_AGENT_AT_CAPACITY";
|
|
4248
|
+
var HIRE_LISTING_HIDDEN = "HIRE_LISTING_HIDDEN";
|
|
4249
|
+
function hireListingHiddenMessage() {
|
|
4250
|
+
return "This worker is not taking hires: their listing has been hidden, so they cannot be hired.";
|
|
4251
|
+
}
|
|
4243
4252
|
function hireAcceptAtCapacity(availability) {
|
|
4244
4253
|
const { capacity, hiresInProgress } = availability;
|
|
4245
4254
|
return capacity != null && hiresInProgress != null && hiresInProgress >= capacity;
|
|
@@ -5326,13 +5335,34 @@ var AgentMessageEnvelopeSchema = z23.object({
|
|
|
5326
5335
|
deadlineMs: z23.number().int().positive().optional(),
|
|
5327
5336
|
payload: z23.record(z23.string(), z23.unknown())
|
|
5328
5337
|
});
|
|
5338
|
+
var XmtpNetworkInstallationIdSchema = z23.string().regex(/^[0-9a-f]{64}$/, "An XMTP installation id is 64 lowercase hex characters");
|
|
5339
|
+
var XmtpInstallationChallengeInputSchema = z23.object({
|
|
5340
|
+
deviceId: z23.string().min(1),
|
|
5341
|
+
apiToken: z23.string().min(1),
|
|
5342
|
+
installationId: XmtpNetworkInstallationIdSchema
|
|
5343
|
+
});
|
|
5344
|
+
var XmtpInstallationChallengeOutputSchema = z23.object({
|
|
5345
|
+
challengeId: z23.string().uuid(),
|
|
5346
|
+
/** The exact text to sign with the installation key (`signWithInstallationKey`). */
|
|
5347
|
+
challenge: z23.string(),
|
|
5348
|
+
expiresAt: z23.string().datetime()
|
|
5349
|
+
});
|
|
5350
|
+
var XmtpInstallationProofSchema = z23.object({
|
|
5351
|
+
challengeId: z23.string().uuid(),
|
|
5352
|
+
signature: z23.string().regex(/^[0-9a-fA-F]{128}$/, "An installation signature is 128 hex characters")
|
|
5353
|
+
});
|
|
5329
5354
|
var XmtpBootstrapInputSchema = z23.object({
|
|
5330
5355
|
deviceId: z23.string().min(1),
|
|
5331
5356
|
apiToken: z23.string().min(1),
|
|
5332
5357
|
inboxId: z23.string().min(1),
|
|
5333
5358
|
installationId: z23.string().min(1),
|
|
5334
5359
|
dbPath: z23.string().min(1).optional(),
|
|
5335
|
-
clientVersion: z23.string().min(1).optional()
|
|
5360
|
+
clientVersion: z23.string().min(1).optional(),
|
|
5361
|
+
/**
|
|
5362
|
+
* Optional while older CLIs that send none are still supported. Without it the installation id
|
|
5363
|
+
* is registered only when no other wallet or device holds it.
|
|
5364
|
+
*/
|
|
5365
|
+
installationProof: XmtpInstallationProofSchema.optional()
|
|
5336
5366
|
});
|
|
5337
5367
|
var XmtpBootstrapOutputSchema = z23.object({
|
|
5338
5368
|
inboxId: z23.string(),
|
|
@@ -5400,7 +5430,13 @@ import { z as z25 } from "zod";
|
|
|
5400
5430
|
|
|
5401
5431
|
// ../../packages/shared/dist/schemas/account-email.schemas.js
|
|
5402
5432
|
import { z as z24 } from "zod";
|
|
5403
|
-
var ACCOUNT_EMAIL_SENDER_VERIFICATIONS = [
|
|
5433
|
+
var ACCOUNT_EMAIL_SENDER_VERIFICATIONS = [
|
|
5434
|
+
"pass",
|
|
5435
|
+
"fail",
|
|
5436
|
+
"unverified",
|
|
5437
|
+
"platform"
|
|
5438
|
+
];
|
|
5439
|
+
var EMAIL_SOURCES = ["external_email", "platform", "agent"];
|
|
5404
5440
|
var walletAddress = z24.string().regex(/^0x[0-9a-f]{40}$/);
|
|
5405
5441
|
var AccountEmailStateSchema = z24.discriminatedUnion("status", [
|
|
5406
5442
|
// The deployment has the feature switched off; nothing about the account was read.
|
|
@@ -5428,7 +5464,7 @@ var AccountEmailSummarySchema = z24.object({
|
|
|
5428
5464
|
senderVerification: z24.enum(ACCOUNT_EMAIL_SENDER_VERIFICATIONS),
|
|
5429
5465
|
isRead: z24.boolean(),
|
|
5430
5466
|
receivedAt: z24.string().datetime(),
|
|
5431
|
-
source: z24.
|
|
5467
|
+
source: z24.enum(EMAIL_SOURCES)
|
|
5432
5468
|
});
|
|
5433
5469
|
var AccountEmailListSchema = z24.object({
|
|
5434
5470
|
emailAddress: z24.string().email(),
|
|
@@ -5454,12 +5490,17 @@ var EmailSchema = z25.object({
|
|
|
5454
5490
|
bodyText: z25.string().nullable(),
|
|
5455
5491
|
bodyHtml: z25.string().nullable(),
|
|
5456
5492
|
// Declared so the API keeps them: an undeclared key is stripped from the response. The mail is
|
|
5457
|
-
// written by whoever sent it
|
|
5458
|
-
source
|
|
5493
|
+
// written by whoever sent it; senderVerification says whether DKIM/DMARC backed `fromAddress`,
|
|
5494
|
+
// or `platform` when Taskmarket delivered the mail itself (source `platform` or `agent`).
|
|
5495
|
+
// An unknown value reads as outside mail, the least trusted, as an unknown verification does.
|
|
5496
|
+
source: z25.enum(EMAIL_SOURCES).catch("external_email"),
|
|
5459
5497
|
senderVerification: z25.enum(ACCOUNT_EMAIL_SENDER_VERIFICATIONS).catch("unverified"),
|
|
5460
5498
|
isRead: z25.boolean(),
|
|
5461
5499
|
receivedAt: z25.string()
|
|
5462
5500
|
});
|
|
5501
|
+
var EmailListItemSchema = EmailSchema.omit({ bodyText: true, bodyHtml: true }).extend({
|
|
5502
|
+
bodyPreview: z25.string().nullable()
|
|
5503
|
+
});
|
|
5463
5504
|
var EMAIL_SEND_SUBJECT_MAX_LENGTH = 998;
|
|
5464
5505
|
var EMAIL_SEND_BODY_MAX_LENGTH = 5e4;
|
|
5465
5506
|
var SendEmailInputSchema = z25.object({
|
|
@@ -5470,7 +5511,10 @@ var SendEmailInputSchema = z25.object({
|
|
|
5470
5511
|
var EmailInboundHeadersSchema = z25.object({
|
|
5471
5512
|
"x-webhook-secret": z25.string(),
|
|
5472
5513
|
"x-email-from": z25.string(),
|
|
5473
|
-
"x-email-to": z25.string().email()
|
|
5514
|
+
"x-email-to": z25.string().email(),
|
|
5515
|
+
// Cloudflare's prepended Authentication-Results, read by the email worker and passed here,
|
|
5516
|
+
// outside the message, so the backend never believes a header the sender wrote.
|
|
5517
|
+
"x-email-authentication-results": z25.string().max(2048).optional()
|
|
5474
5518
|
});
|
|
5475
5519
|
var BroadcastInputSchema = z25.object({
|
|
5476
5520
|
// The chain whose completed-task counts `filters.minTasks` reads. Required with minTasks
|
|
@@ -6383,10 +6427,12 @@ var AllowanceRateCardSchema = z28.object({
|
|
|
6383
6427
|
var TASKMARKET_CUSTOMER_RATE_CARD_VERSION = "taskmarket-customer/2026-09-19";
|
|
6384
6428
|
var HOSTED_CREDIT_RATE_CARD_VERSION_2026_09_28 = "taskmarket-credits/2026-09-28";
|
|
6385
6429
|
var HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_17 = "taskmarket-credits/2026-10-17";
|
|
6386
|
-
var
|
|
6430
|
+
var HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_24 = "taskmarket-credits/2026-10-24";
|
|
6431
|
+
var HOSTED_CREDIT_RATE_CARD_VERSION = "taskmarket-credits/2026-11-15";
|
|
6387
6432
|
var HOSTED_CREDIT_PLAN_CARD_VERSIONS = Object.freeze([
|
|
6388
6433
|
HOSTED_CREDIT_RATE_CARD_VERSION_2026_09_28,
|
|
6389
6434
|
HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_17,
|
|
6435
|
+
HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_24,
|
|
6390
6436
|
HOSTED_CREDIT_RATE_CARD_VERSION
|
|
6391
6437
|
]);
|
|
6392
6438
|
var HOSTED_CREDIT_MODEL_CARDS = Object.freeze({
|
|
@@ -6422,6 +6468,20 @@ function repricedCreditCard(version2, basis, input2, cachedInput, output) {
|
|
|
6422
6468
|
derivation: `${basis} ${REPRICE_APPROVAL_2026_10_24}`
|
|
6423
6469
|
});
|
|
6424
6470
|
}
|
|
6471
|
+
var SUPPLIER_MULTIPLE_APPROVAL_2026_11_15 = "Approved for live sales by the product owner on 2026-11-15, recorded in ADR-0565. Rule: five times the supplier list price of the model the default tier mapping tiers/2026-10-24 serves, rounded. Light and medium serve z-ai/glm-5.3 at 0.179 / 0.178 / 1.40 USD per million tokens (input / cached input / output); heavy serves moonshotai/kimi-k3.1-pro at 2 / 0.20 / 10. The margin is provisional until the first supplier invoice reconciliation. Re-pricing ships as a new card version. Rates cover token meters only, not unmetered compute/tools; managed billing limits and reserves bound those. No supplier invoice dollar amount is used in customer billing.";
|
|
6472
|
+
function supplierMultipleCreditCard(version2, basis, input2, cachedInput, output) {
|
|
6473
|
+
return Object.freeze({
|
|
6474
|
+
unit: "credits",
|
|
6475
|
+
rateCardVersion: version2,
|
|
6476
|
+
serviceUnitsPerMillionTokens: { input: input2, cachedInput, output, reasoning: output },
|
|
6477
|
+
unitValuation: { currency: "USD", usdPerServiceUnit: "0.05" },
|
|
6478
|
+
salesApproval: "approved",
|
|
6479
|
+
publishedOn: "2026-11-15",
|
|
6480
|
+
effectiveFrom: "2026-11-15T00:00:00.000Z",
|
|
6481
|
+
effectiveUntil: null,
|
|
6482
|
+
derivation: `${basis} ${SUPPLIER_MULTIPLE_APPROVAL_2026_11_15}`
|
|
6483
|
+
});
|
|
6484
|
+
}
|
|
6425
6485
|
function candidateCreditCard(version2, input2, cachedInput, output) {
|
|
6426
6486
|
return Object.freeze({
|
|
6427
6487
|
unit: "credits",
|
|
@@ -6447,7 +6507,13 @@ var HOSTED_CREDIT_TIER_CARDS_2026_10_17 = Object.freeze({
|
|
|
6447
6507
|
medium: `${HOSTED_CREDIT_TIER_CARD_VERSION_2026_10_17}/medium`,
|
|
6448
6508
|
heavy: `${HOSTED_CREDIT_TIER_CARD_VERSION_2026_10_17}/heavy`
|
|
6449
6509
|
});
|
|
6450
|
-
var
|
|
6510
|
+
var HOSTED_CREDIT_TIER_CARD_VERSION_2026_10_24 = "taskmarket-credits/2026-10-24";
|
|
6511
|
+
var HOSTED_CREDIT_TIER_CARDS_2026_10_24 = Object.freeze({
|
|
6512
|
+
light: `${HOSTED_CREDIT_TIER_CARD_VERSION_2026_10_24}/light`,
|
|
6513
|
+
medium: `${HOSTED_CREDIT_TIER_CARD_VERSION_2026_10_24}/medium`,
|
|
6514
|
+
heavy: `${HOSTED_CREDIT_TIER_CARD_VERSION_2026_10_24}/heavy`
|
|
6515
|
+
});
|
|
6516
|
+
var HOSTED_CREDIT_TIER_CARD_VERSION = "taskmarket-credits/2026-11-15";
|
|
6451
6517
|
var HOSTED_CREDIT_TIER_CARDS = Object.freeze({
|
|
6452
6518
|
light: `${HOSTED_CREDIT_TIER_CARD_VERSION}/light`,
|
|
6453
6519
|
medium: `${HOSTED_CREDIT_TIER_CARD_VERSION}/medium`,
|
|
@@ -6494,10 +6560,14 @@ var TASKMARKET_CUSTOMER_RATE_CARDS = Object.freeze({
|
|
|
6494
6560
|
[HOSTED_CREDIT_TIER_CARDS_2026_10_17.light]: approvedCreditCard(HOSTED_CREDIT_TIER_CARDS_2026_10_17.light, HOSTED_CREDIT_TIER_CARDS_2026_09_29.light, "68.75", "5.50", "247.50"),
|
|
6495
6561
|
[HOSTED_CREDIT_TIER_CARDS_2026_10_17.medium]: approvedCreditCard(HOSTED_CREDIT_TIER_CARDS_2026_10_17.medium, HOSTED_CREDIT_TIER_CARDS_2026_09_29.medium, "1375.00", "110.00", "4125.00"),
|
|
6496
6562
|
[HOSTED_CREDIT_TIER_CARDS_2026_10_17.heavy]: approvedCreditCard(HOSTED_CREDIT_TIER_CARDS_2026_10_17.heavy, HOSTED_CREDIT_TIER_CARDS_2026_09_29.heavy, "3437.50", "275.00", "10312.50"),
|
|
6497
|
-
[
|
|
6498
|
-
[
|
|
6499
|
-
[
|
|
6500
|
-
[
|
|
6563
|
+
[HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_24]: repricedCreditCard(HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_24, `Plan-level card priced exactly as ${HOSTED_CREDIT_TIER_CARDS_2026_10_24.heavy}; succeeds ${HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_17}.`, "206.25", "16.50", "742.50"),
|
|
6564
|
+
[HOSTED_CREDIT_TIER_CARDS_2026_10_24.light]: repricedCreditCard(HOSTED_CREDIT_TIER_CARDS_2026_10_24.light, `Prices copied exactly from ${HOSTED_CREDIT_TIER_CARDS_2026_10_17.light}.`, "68.75", "5.50", "247.50"),
|
|
6565
|
+
[HOSTED_CREDIT_TIER_CARDS_2026_10_24.medium]: repricedCreditCard(HOSTED_CREDIT_TIER_CARDS_2026_10_24.medium, `Repriced from ${HOSTED_CREDIT_TIER_CARDS_2026_10_17.medium} to the light rates.`, "68.75", "5.50", "247.50"),
|
|
6566
|
+
[HOSTED_CREDIT_TIER_CARDS_2026_10_24.heavy]: repricedCreditCard(HOSTED_CREDIT_TIER_CARDS_2026_10_24.heavy, `Repriced from ${HOSTED_CREDIT_TIER_CARDS_2026_10_17.heavy} to three times the light rates.`, "206.25", "16.50", "742.50"),
|
|
6567
|
+
[HOSTED_CREDIT_RATE_CARD_VERSION]: supplierMultipleCreditCard(HOSTED_CREDIT_RATE_CARD_VERSION, `Plan-level card priced exactly as ${HOSTED_CREDIT_TIER_CARDS.heavy}; succeeds ${HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_24}.`, "200", "20", "1000"),
|
|
6568
|
+
[HOSTED_CREDIT_TIER_CARDS.light]: supplierMultipleCreditCard(HOSTED_CREDIT_TIER_CARDS.light, `Repriced from ${HOSTED_CREDIT_TIER_CARDS_2026_10_24.light}.`, "18", "18", "140"),
|
|
6569
|
+
[HOSTED_CREDIT_TIER_CARDS.medium]: supplierMultipleCreditCard(HOSTED_CREDIT_TIER_CARDS.medium, `Repriced from ${HOSTED_CREDIT_TIER_CARDS_2026_10_24.medium} to the light rates, which serve the same model.`, "18", "18", "140"),
|
|
6570
|
+
[HOSTED_CREDIT_TIER_CARDS.heavy]: supplierMultipleCreditCard(HOSTED_CREDIT_TIER_CARDS.heavy, `Repriced from ${HOSTED_CREDIT_TIER_CARDS_2026_10_24.heavy}.`, "200", "20", "1000"),
|
|
6501
6571
|
[TASKMARKET_CUSTOMER_RATE_CARD_VERSION]: Object.freeze({
|
|
6502
6572
|
rateCardVersion: TASKMARKET_CUSTOMER_RATE_CARD_VERSION,
|
|
6503
6573
|
serviceUnitsPerMillionTokens: {
|
|
@@ -6662,7 +6732,8 @@ var ComputeRateCardSchema = z29.object({
|
|
|
6662
6732
|
publishedOn: z29.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
6663
6733
|
effectiveFrom: z29.string().datetime()
|
|
6664
6734
|
}).strict();
|
|
6665
|
-
var TASKMARKET_COMPUTE_DEFAULT_MARKUP = "
|
|
6735
|
+
var TASKMARKET_COMPUTE_DEFAULT_MARKUP = "2";
|
|
6736
|
+
var TASKMARKET_COMPUTE_PREVIOUS_MARKUP = "1.2";
|
|
6666
6737
|
var TASKMARKET_COMPUTE_RATE_CARD_VERSION = "taskmarket-compute/2026-10-11";
|
|
6667
6738
|
var TASKMARKET_COMPUTE_COST_BASES = Object.freeze({
|
|
6668
6739
|
[TASKMARKET_COMPUTE_RATE_CARD_VERSION]: Object.freeze({
|
|
@@ -6674,10 +6745,16 @@ var TASKMARKET_COMPUTE_COST_BASES = Object.freeze({
|
|
|
6674
6745
|
effectiveFrom: "2026-10-11T00:00:00.000Z",
|
|
6675
6746
|
approvals: Object.freeze([
|
|
6676
6747
|
Object.freeze({
|
|
6677
|
-
markup:
|
|
6748
|
+
markup: TASKMARKET_COMPUTE_PREVIOUS_MARKUP,
|
|
6678
6749
|
approvedBy: "ponderingdemocritus",
|
|
6679
6750
|
approvedOn: "2026-10-12",
|
|
6680
6751
|
record: "developer decision in the epic #1131 thread"
|
|
6752
|
+
}),
|
|
6753
|
+
Object.freeze({
|
|
6754
|
+
markup: TASKMARKET_COMPUTE_DEFAULT_MARKUP,
|
|
6755
|
+
approvedBy: "ponderingdemocritus",
|
|
6756
|
+
approvedOn: "2026-11-15",
|
|
6757
|
+
record: "ADR-0245 amendment of 2026-11-15"
|
|
6681
6758
|
})
|
|
6682
6759
|
])
|
|
6683
6760
|
})
|
|
@@ -13535,7 +13612,8 @@ var AGENT_PLATFORM_COMPONENTS = [
|
|
|
13535
13612
|
"spending",
|
|
13536
13613
|
"connectors",
|
|
13537
13614
|
"session-reset",
|
|
13538
|
-
"memory"
|
|
13615
|
+
"memory",
|
|
13616
|
+
"coordination"
|
|
13539
13617
|
];
|
|
13540
13618
|
var AgentPlatformComponentSchema = z52.enum(AGENT_PLATFORM_COMPONENTS);
|
|
13541
13619
|
var AGENT_REPLY_SUGGESTION_MAX = 3;
|
|
@@ -14219,6 +14297,11 @@ var LauncherAccountSchema = z54.object({
|
|
|
14219
14297
|
initialTokens: z54.number().int().nonnegative(),
|
|
14220
14298
|
agentCount: z54.number().int().nonnegative(),
|
|
14221
14299
|
maxAgents: z54.number().int().positive(),
|
|
14300
|
+
/**
|
|
14301
|
+
* Whether the owner can grant an agent coordination permissions (create other agents, hand them
|
|
14302
|
+
* work, wait for results) in this environment. Absent from an older server: treat as false.
|
|
14303
|
+
*/
|
|
14304
|
+
coordinationAvailable: z54.boolean().optional(),
|
|
14222
14305
|
/**
|
|
14223
14306
|
* @deprecated Kept for one release so a web bundle built before its removal, which reads
|
|
14224
14307
|
* `account.usage.available` without a guard, does not crash during a deploy or in a stale tab.
|
|
@@ -15518,7 +15601,7 @@ var isoDate = z58.string().regex(/^\d{4}-\d{2}-\d{2}$/, "Expected an ISO date (Y
|
|
|
15518
15601
|
var atomicAmount = z58.string().regex(/^(?:0|[1-9][0-9]*)$/, "Expected an integer atomic amount");
|
|
15519
15602
|
var CatalogEndpointSchema = z58.object({
|
|
15520
15603
|
method: z58.enum(["GET", "POST"]),
|
|
15521
|
-
path: z58.string().min(1).max(512).regex(/^\//, "Endpoint paths start with /"),
|
|
15604
|
+
path: z58.string().min(1).max(512).regex(/^\//, "Endpoint paths start with /").refine((path3) => !path3.startsWith("//") && !path3.startsWith("/\\"), "Endpoint paths must not start with a double slash or slash-backslash, which name another host"),
|
|
15522
15605
|
summary: z58.string().min(1).max(200)
|
|
15523
15606
|
}).strict();
|
|
15524
15607
|
var CatalogProviderSchema = z58.object({
|
|
@@ -15884,6 +15967,12 @@ var MARKET_EVENT_TYPE_INFO = {
|
|
|
15884
15967
|
roles: ["requester"],
|
|
15885
15968
|
summary: "A suggestions schedule declined suggestions that never reached the project's thresholds."
|
|
15886
15969
|
},
|
|
15970
|
+
// A transferred project's review default was cleared; written when no schedule notice carries it.
|
|
15971
|
+
"project.review_default_cleared": {
|
|
15972
|
+
family: "automation",
|
|
15973
|
+
roles: ["requester"],
|
|
15974
|
+
summary: "The project's review default was cleared when ownership moved to you."
|
|
15975
|
+
},
|
|
15887
15976
|
"reminder.submission_due": {
|
|
15888
15977
|
family: "reminder",
|
|
15889
15978
|
roles: ["worker"],
|
|
@@ -19788,6 +19877,8 @@ export {
|
|
|
19788
19877
|
HireAvailabilitySchema,
|
|
19789
19878
|
HIRE_AGENT_UNAVAILABLE,
|
|
19790
19879
|
HIRE_AGENT_AT_CAPACITY,
|
|
19880
|
+
HIRE_LISTING_HIDDEN,
|
|
19881
|
+
hireListingHiddenMessage,
|
|
19791
19882
|
hireAcceptAtCapacity,
|
|
19792
19883
|
hireAcceptAtCapacityMessage,
|
|
19793
19884
|
hireSelectAtCapacityMessage,
|
|
@@ -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-AS6EFS2V.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-O53R76N3.js";
|
|
11
11
|
|
|
12
12
|
// src/lib/read-auth.ts
|
|
13
13
|
async function signReadAuth(signal) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
unsafeHostPath,
|
|
9
9
|
withFileLock,
|
|
10
10
|
writeAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RO5AHGHC.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-TUP4MTW6.js";
|
|
20
20
|
import {
|
|
21
21
|
getTaskmarketHome
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-O53R76N3.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-O53R76N3.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentLaunchError
|
|
7
7
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
readMppTempoChallenge,
|
|
18
18
|
reconcileX402Payment,
|
|
19
19
|
withX402FileLock
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XRM455ZG.js";
|
|
21
21
|
import {
|
|
22
22
|
ApiError,
|
|
23
23
|
apiGet,
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
withChainId,
|
|
39
39
|
withIdempotentWrite,
|
|
40
40
|
withTapSignature
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-AS6EFS2V.js";
|
|
42
42
|
import {
|
|
43
43
|
ComputeCreditBuyOutputSchema,
|
|
44
44
|
ComputeCreditPricingSchema,
|
|
45
45
|
ComputeCreditStatusOutputSchema,
|
|
46
46
|
apiErrorEnvelopeOf,
|
|
47
47
|
getTaskmarketHome
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-O53R76N3.js";
|
|
49
49
|
|
|
50
50
|
// src/lib/x402-fee.ts
|
|
51
51
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
@@ -1,13 +1,13 @@
|
|
|
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-TUP4MTW6.js";
|
|
5
5
|
import {
|
|
6
6
|
signReadAuth
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PDVDVVVF.js";
|
|
8
8
|
import {
|
|
9
9
|
taskAccessGrantHeaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WOPSQ2GZ.js";
|
|
11
11
|
import {
|
|
12
12
|
apiGet,
|
|
13
13
|
apiPost,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
runWorkerAction,
|
|
16
16
|
signMessage,
|
|
17
17
|
taskRequiresTap
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AS6EFS2V.js";
|
|
19
19
|
import {
|
|
20
20
|
TaskAwardSchema,
|
|
21
21
|
buildClaimMessage,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
buildSubmitUploadMessage,
|
|
24
24
|
isRecordingPendingResponse,
|
|
25
25
|
submitUploadExpiresAt
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-O53R76N3.js";
|
|
27
27
|
|
|
28
28
|
// src/sdk/artifact-upload.ts
|
|
29
29
|
import { extname } from "path";
|
|
@@ -115,9 +115,9 @@ function putArtifactBytes(uploadUrl, data, mimeType, onProgress, idleTimeoutMs =
|
|
|
115
115
|
// src/lib/worker-attestation.ts
|
|
116
116
|
var requirementCache = /* @__PURE__ */ new Map();
|
|
117
117
|
async function defaultGet(path) {
|
|
118
|
-
const { apiGet: apiGet2 } = await import("./api-
|
|
119
|
-
const { signReadAuth: signReadAuth2 } = await import("./read-auth-
|
|
120
|
-
const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-
|
|
118
|
+
const { apiGet: apiGet2 } = await import("./api-ENHCGR7K.js");
|
|
119
|
+
const { signReadAuth: signReadAuth2 } = await import("./read-auth-524RVF3G.js");
|
|
120
|
+
const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-GXJ6WOQK.js");
|
|
121
121
|
const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
|
|
122
122
|
return apiGet2(path, {
|
|
123
123
|
headers: {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __tmCreateRequire } from 'node:module'; import { fileU
|
|
|
2
2
|
import {
|
|
3
3
|
TASK_ACCESS_GRANT_HEADER,
|
|
4
4
|
getTaskmarketHome
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-O53R76N3.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/task-access-grants.ts
|
|
8
8
|
import { promises as fs } from "fs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getTaskmarketHome,
|
|
12
12
|
mppAttributionMemo,
|
|
13
13
|
parseMppChallenge
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O53R76N3.js";
|
|
15
15
|
|
|
16
16
|
// ../../packages/x402-payer/dist/api.js
|
|
17
17
|
var X402_PAYER_API_VERSION = 1;
|
|
@@ -4113,7 +4113,7 @@ function firstPartyAuthorization(input) {
|
|
|
4113
4113
|
windowStartedAt: new Date(now.getTime() - spendWindow.seconds * 1e3).toISOString()
|
|
4114
4114
|
};
|
|
4115
4115
|
}
|
|
4116
|
-
function selectX402Payment(input) {
|
|
4116
|
+
async function selectX402Payment(input) {
|
|
4117
4117
|
const offered = input.firstParty ? [
|
|
4118
4118
|
...input.rails.filter((rail) => rail.firstPartyOnly === true),
|
|
4119
4119
|
...input.rails.filter((rail) => rail.firstPartyOnly !== true)
|
|
@@ -4200,7 +4200,20 @@ function selectX402Payment(input) {
|
|
|
4200
4200
|
continue;
|
|
4201
4201
|
}
|
|
4202
4202
|
}
|
|
4203
|
-
authorized.
|
|
4203
|
+
const bestPriority = authorized.reduce((best, option) => Math.max(best, option.authorization.rule.priority), Number.NEGATIVE_INFINITY);
|
|
4204
|
+
const top = authorized.filter((option) => option.authorization.rule.priority === bestPriority);
|
|
4205
|
+
const affordable = /* @__PURE__ */ new Map();
|
|
4206
|
+
if (top.length > 1 && input.canAfford) {
|
|
4207
|
+
for (const option of top) {
|
|
4208
|
+
affordable.set(option, option.rail.canAfford ? await input.canAfford(option).catch(() => true) : true);
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
const funded = (option) => affordable.get(option) === false ? 1 : 0;
|
|
4212
|
+
top.sort((left, right) => {
|
|
4213
|
+
const cost = BigInt(left.maxAmount) - BigInt(right.maxAmount);
|
|
4214
|
+
return funded(left) - funded(right) || (cost < 0n ? -1 : cost > 0n ? 1 : 0) || left.paymentIndex - right.paymentIndex || left.index - right.index;
|
|
4215
|
+
});
|
|
4216
|
+
authorized.splice(0, authorized.length, ...top);
|
|
4204
4217
|
if (authorized[0])
|
|
4205
4218
|
return authorized[0];
|
|
4206
4219
|
const denied = new X402PayError("No advertised x402 payment option is authorized by policy", {
|
|
@@ -4523,7 +4536,8 @@ async function runX402Exchange(runtime, input, options, context) {
|
|
|
4523
4536
|
throw fail("challenge_invalid", protocol === "mpp" ? "The response carries no Payment challenge" : "Invalid x402 payment challenge", { status: 402 });
|
|
4524
4537
|
}
|
|
4525
4538
|
}
|
|
4526
|
-
|
|
4539
|
+
let payerAddress;
|
|
4540
|
+
const selection = await selectX402Payment({
|
|
4527
4541
|
rails,
|
|
4528
4542
|
paymentRequired,
|
|
4529
4543
|
policy,
|
|
@@ -4533,6 +4547,11 @@ async function runX402Exchange(runtime, input, options, context) {
|
|
|
4533
4547
|
invocationId,
|
|
4534
4548
|
now: runtime.now(),
|
|
4535
4549
|
firstParty,
|
|
4550
|
+
// The wallet is asked only when the policy leaves several options of equal standing.
|
|
4551
|
+
canAfford: async ({ requirement: requirement2, rail: rail2 }) => {
|
|
4552
|
+
payerAddress ??= getAccount().then((account2) => account2.address);
|
|
4553
|
+
return await rail2.canAfford?.({ requirement: requirement2, payer: await payerAddress, policy, signal }) ?? true;
|
|
4554
|
+
},
|
|
4536
4555
|
...allocation ? {
|
|
4537
4556
|
allocation: {
|
|
4538
4557
|
allocationId: allocation.id,
|
|
@@ -7710,6 +7729,7 @@ var FEE_UNITS_PER_BASE_UNIT = 10n ** 12n;
|
|
|
7710
7729
|
var SPONSORED_MIN_REMAINING_SECONDS = 15;
|
|
7711
7730
|
var VALIDITY_SECONDS = 25;
|
|
7712
7731
|
var MAX_LOG_RANGE = 100000n;
|
|
7732
|
+
var UNSPENT_CONFIRMATION_BLOCKS = 30n;
|
|
7713
7733
|
var MAX_LOG_RANGES = 16;
|
|
7714
7734
|
var AUTHORIZATION_KIND = "tempo-transfer-with-memo";
|
|
7715
7735
|
var TRANSFER_WITH_MEMO = parseAbiItem2("event TransferWithMemo(address indexed from, address indexed to, uint256 amount, bytes32 indexed memo)");
|
|
@@ -7855,6 +7875,16 @@ function createMppTempoChargeRail(options = {}) {
|
|
|
7855
7875
|
const charge = readCharge(requirement);
|
|
7856
7876
|
return { maxAmount: (charge.amount + (charge.sponsored ? 0n : feeUnits)).toString() };
|
|
7857
7877
|
},
|
|
7878
|
+
async canAfford({ requirement, payer, policy }) {
|
|
7879
|
+
const charge = readCharge(requirement);
|
|
7880
|
+
try {
|
|
7881
|
+
const chain = await reader(requirement.network, policy);
|
|
7882
|
+
const balance = await chain.tokenBalance(charge.token, getAddress8(payer));
|
|
7883
|
+
return balance >= charge.amount + (charge.sponsored ? 0n : feeUnits);
|
|
7884
|
+
} catch {
|
|
7885
|
+
return true;
|
|
7886
|
+
}
|
|
7887
|
+
},
|
|
7858
7888
|
feeTerms(requirement) {
|
|
7859
7889
|
const charge = readCharge(requirement);
|
|
7860
7890
|
return {
|
|
@@ -8021,6 +8051,9 @@ function createMppTempoChargeRail(options = {}) {
|
|
|
8021
8051
|
}
|
|
8022
8052
|
end = low;
|
|
8023
8053
|
}
|
|
8054
|
+
const confirmed = end + UNSPENT_CONFIRMATION_BLOCKS;
|
|
8055
|
+
if (past)
|
|
8056
|
+
end = confirmed < latest.number ? confirmed : latest.number;
|
|
8024
8057
|
let from = start;
|
|
8025
8058
|
for (let range = 0; from <= end; range += 1) {
|
|
8026
8059
|
if (range === MAX_LOG_RANGES)
|
|
@@ -8043,7 +8076,10 @@ function createMppTempoChargeRail(options = {}) {
|
|
|
8043
8076
|
};
|
|
8044
8077
|
from = to + 1n;
|
|
8045
8078
|
}
|
|
8046
|
-
if (!past || !data.sponsored && data.txHash === null)
|
|
8079
|
+
if (!past || !data.sponsored && data.txHash === null || end < confirmed)
|
|
8080
|
+
return { outcome: "pending" };
|
|
8081
|
+
const after = await chain.latestBlock();
|
|
8082
|
+
if (after.number < end || after.number < latest.number || after.timestamp <= data.validBefore)
|
|
8047
8083
|
return { outcome: "pending" };
|
|
8048
8084
|
return { outcome: "unspent" };
|
|
8049
8085
|
} catch (error) {
|