@lucid-agents/taskmarket 1.45.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-PZVGK3VQ.js → api-ENHCGR7K.js} +2 -2
- package/dist/{channels-LDMZ3OEM.js → channels-LX2DTMKZ.js} +4 -4
- package/dist/{chunk-PRYNO5S7.js → chunk-4MAQWPJ2.js} +1 -1
- package/dist/{chunk-QYXBVFVX.js → chunk-54J54BK7.js} +5 -5
- package/dist/{chunk-THIC75V5.js → chunk-AMT2L4BR.js} +3 -3
- package/dist/{chunk-5NILW5UT.js → chunk-AS6EFS2V.js} +2 -1
- package/dist/{chunk-6YFLKQ4Q.js → chunk-O53R76N3.js} +121 -18
- package/dist/{chunk-QUY6764O.js → chunk-PDVDVVVF.js} +2 -2
- package/dist/{chunk-JPVBWX3Q.js → chunk-PPJNXEWM.js} +3 -3
- package/dist/{chunk-XLJRCGOJ.js → chunk-RO5AHGHC.js} +1 -1
- package/dist/{chunk-KY4JM6NG.js → chunk-TUP4MTW6.js} +31 -13
- package/dist/{chunk-TPCXOWSC.js → chunk-V2BCPGOB.js} +8 -8
- package/dist/{chunk-FHDTYW6C.js → chunk-WOPSQ2GZ.js} +1 -1
- package/dist/{chunk-GIVPCMJ3.js → chunk-XRM455ZG.js} +670 -43
- package/dist/{doctor-HV5QQDGU.js → doctor-PEAKIDKS.js} +8 -8
- package/dist/index.js +345 -62
- package/dist/{launch-56RHQCWT.js → launch-CEJWCOQA.js} +11 -11
- package/dist/pi-extensions/xgate.cjs +7 -1
- package/dist/{read-auth-ZJBQQVGO.js → read-auth-524RVF3G.js} +3 -3
- package/dist/{reconcile-PQXSATCK.js → reconcile-GMYKLZTG.js} +4 -4
- package/dist/{status-EBMZGDFS.js → status-Y6JAL4DR.js} +8 -8
- package/dist/{sync-pull-423LBSPO.js → sync-pull-YFIWHI4H.js} +4 -4
- package/dist/{task-access-grants-KWTKM3NP.js → task-access-grants-GXJ6WOQK.js} +2 -2
- package/package.json +4 -4
|
@@ -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;
|
|
@@ -5220,6 +5229,15 @@ function base64UrlToBytes(value) {
|
|
|
5220
5229
|
const binary = atob(padded + "=".repeat((4 - padded.length % 4) % 4));
|
|
5221
5230
|
return Uint8Array.from(binary, (char) => char.charCodeAt(0));
|
|
5222
5231
|
}
|
|
5232
|
+
function canonicalJson(value) {
|
|
5233
|
+
if (Array.isArray(value))
|
|
5234
|
+
return `[${value.map(canonicalJson).join(",")}]`;
|
|
5235
|
+
if (value !== null && typeof value === "object") {
|
|
5236
|
+
const entries = Object.entries(value).filter(([, entry]) => entry !== void 0).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
|
5237
|
+
return `{${entries.map(([key, entry]) => `${JSON.stringify(key)}:${canonicalJson(entry)}`).join(",")}}`;
|
|
5238
|
+
}
|
|
5239
|
+
return JSON.stringify(value);
|
|
5240
|
+
}
|
|
5223
5241
|
function encodeMppJson(value) {
|
|
5224
5242
|
return bytesToBase64Url(new TextEncoder().encode(JSON.stringify(value)));
|
|
5225
5243
|
}
|
|
@@ -5317,13 +5335,34 @@ var AgentMessageEnvelopeSchema = z23.object({
|
|
|
5317
5335
|
deadlineMs: z23.number().int().positive().optional(),
|
|
5318
5336
|
payload: z23.record(z23.string(), z23.unknown())
|
|
5319
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
|
+
});
|
|
5320
5354
|
var XmtpBootstrapInputSchema = z23.object({
|
|
5321
5355
|
deviceId: z23.string().min(1),
|
|
5322
5356
|
apiToken: z23.string().min(1),
|
|
5323
5357
|
inboxId: z23.string().min(1),
|
|
5324
5358
|
installationId: z23.string().min(1),
|
|
5325
5359
|
dbPath: z23.string().min(1).optional(),
|
|
5326
|
-
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()
|
|
5327
5366
|
});
|
|
5328
5367
|
var XmtpBootstrapOutputSchema = z23.object({
|
|
5329
5368
|
inboxId: z23.string(),
|
|
@@ -5391,7 +5430,13 @@ import { z as z25 } from "zod";
|
|
|
5391
5430
|
|
|
5392
5431
|
// ../../packages/shared/dist/schemas/account-email.schemas.js
|
|
5393
5432
|
import { z as z24 } from "zod";
|
|
5394
|
-
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"];
|
|
5395
5440
|
var walletAddress = z24.string().regex(/^0x[0-9a-f]{40}$/);
|
|
5396
5441
|
var AccountEmailStateSchema = z24.discriminatedUnion("status", [
|
|
5397
5442
|
// The deployment has the feature switched off; nothing about the account was read.
|
|
@@ -5419,7 +5464,7 @@ var AccountEmailSummarySchema = z24.object({
|
|
|
5419
5464
|
senderVerification: z24.enum(ACCOUNT_EMAIL_SENDER_VERIFICATIONS),
|
|
5420
5465
|
isRead: z24.boolean(),
|
|
5421
5466
|
receivedAt: z24.string().datetime(),
|
|
5422
|
-
source: z24.
|
|
5467
|
+
source: z24.enum(EMAIL_SOURCES)
|
|
5423
5468
|
});
|
|
5424
5469
|
var AccountEmailListSchema = z24.object({
|
|
5425
5470
|
emailAddress: z24.string().email(),
|
|
@@ -5445,12 +5490,17 @@ var EmailSchema = z25.object({
|
|
|
5445
5490
|
bodyText: z25.string().nullable(),
|
|
5446
5491
|
bodyHtml: z25.string().nullable(),
|
|
5447
5492
|
// Declared so the API keeps them: an undeclared key is stripped from the response. The mail is
|
|
5448
|
-
// written by whoever sent it
|
|
5449
|
-
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"),
|
|
5450
5497
|
senderVerification: z25.enum(ACCOUNT_EMAIL_SENDER_VERIFICATIONS).catch("unverified"),
|
|
5451
5498
|
isRead: z25.boolean(),
|
|
5452
5499
|
receivedAt: z25.string()
|
|
5453
5500
|
});
|
|
5501
|
+
var EmailListItemSchema = EmailSchema.omit({ bodyText: true, bodyHtml: true }).extend({
|
|
5502
|
+
bodyPreview: z25.string().nullable()
|
|
5503
|
+
});
|
|
5454
5504
|
var EMAIL_SEND_SUBJECT_MAX_LENGTH = 998;
|
|
5455
5505
|
var EMAIL_SEND_BODY_MAX_LENGTH = 5e4;
|
|
5456
5506
|
var SendEmailInputSchema = z25.object({
|
|
@@ -5461,7 +5511,10 @@ var SendEmailInputSchema = z25.object({
|
|
|
5461
5511
|
var EmailInboundHeadersSchema = z25.object({
|
|
5462
5512
|
"x-webhook-secret": z25.string(),
|
|
5463
5513
|
"x-email-from": z25.string(),
|
|
5464
|
-
"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()
|
|
5465
5518
|
});
|
|
5466
5519
|
var BroadcastInputSchema = z25.object({
|
|
5467
5520
|
// The chain whose completed-task counts `filters.minTasks` reads. Required with minTasks
|
|
@@ -6374,10 +6427,12 @@ var AllowanceRateCardSchema = z28.object({
|
|
|
6374
6427
|
var TASKMARKET_CUSTOMER_RATE_CARD_VERSION = "taskmarket-customer/2026-09-19";
|
|
6375
6428
|
var HOSTED_CREDIT_RATE_CARD_VERSION_2026_09_28 = "taskmarket-credits/2026-09-28";
|
|
6376
6429
|
var HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_17 = "taskmarket-credits/2026-10-17";
|
|
6377
|
-
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";
|
|
6378
6432
|
var HOSTED_CREDIT_PLAN_CARD_VERSIONS = Object.freeze([
|
|
6379
6433
|
HOSTED_CREDIT_RATE_CARD_VERSION_2026_09_28,
|
|
6380
6434
|
HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_17,
|
|
6435
|
+
HOSTED_CREDIT_RATE_CARD_VERSION_2026_10_24,
|
|
6381
6436
|
HOSTED_CREDIT_RATE_CARD_VERSION
|
|
6382
6437
|
]);
|
|
6383
6438
|
var HOSTED_CREDIT_MODEL_CARDS = Object.freeze({
|
|
@@ -6413,6 +6468,20 @@ function repricedCreditCard(version2, basis, input2, cachedInput, output) {
|
|
|
6413
6468
|
derivation: `${basis} ${REPRICE_APPROVAL_2026_10_24}`
|
|
6414
6469
|
});
|
|
6415
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
|
+
}
|
|
6416
6485
|
function candidateCreditCard(version2, input2, cachedInput, output) {
|
|
6417
6486
|
return Object.freeze({
|
|
6418
6487
|
unit: "credits",
|
|
@@ -6438,7 +6507,13 @@ var HOSTED_CREDIT_TIER_CARDS_2026_10_17 = Object.freeze({
|
|
|
6438
6507
|
medium: `${HOSTED_CREDIT_TIER_CARD_VERSION_2026_10_17}/medium`,
|
|
6439
6508
|
heavy: `${HOSTED_CREDIT_TIER_CARD_VERSION_2026_10_17}/heavy`
|
|
6440
6509
|
});
|
|
6441
|
-
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";
|
|
6442
6517
|
var HOSTED_CREDIT_TIER_CARDS = Object.freeze({
|
|
6443
6518
|
light: `${HOSTED_CREDIT_TIER_CARD_VERSION}/light`,
|
|
6444
6519
|
medium: `${HOSTED_CREDIT_TIER_CARD_VERSION}/medium`,
|
|
@@ -6485,10 +6560,14 @@ var TASKMARKET_CUSTOMER_RATE_CARDS = Object.freeze({
|
|
|
6485
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"),
|
|
6486
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"),
|
|
6487
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"),
|
|
6488
|
-
[
|
|
6489
|
-
[
|
|
6490
|
-
[
|
|
6491
|
-
[
|
|
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"),
|
|
6492
6571
|
[TASKMARKET_CUSTOMER_RATE_CARD_VERSION]: Object.freeze({
|
|
6493
6572
|
rateCardVersion: TASKMARKET_CUSTOMER_RATE_CARD_VERSION,
|
|
6494
6573
|
serviceUnitsPerMillionTokens: {
|
|
@@ -6653,7 +6732,8 @@ var ComputeRateCardSchema = z29.object({
|
|
|
6653
6732
|
publishedOn: z29.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
6654
6733
|
effectiveFrom: z29.string().datetime()
|
|
6655
6734
|
}).strict();
|
|
6656
|
-
var TASKMARKET_COMPUTE_DEFAULT_MARKUP = "
|
|
6735
|
+
var TASKMARKET_COMPUTE_DEFAULT_MARKUP = "2";
|
|
6736
|
+
var TASKMARKET_COMPUTE_PREVIOUS_MARKUP = "1.2";
|
|
6657
6737
|
var TASKMARKET_COMPUTE_RATE_CARD_VERSION = "taskmarket-compute/2026-10-11";
|
|
6658
6738
|
var TASKMARKET_COMPUTE_COST_BASES = Object.freeze({
|
|
6659
6739
|
[TASKMARKET_COMPUTE_RATE_CARD_VERSION]: Object.freeze({
|
|
@@ -6665,10 +6745,16 @@ var TASKMARKET_COMPUTE_COST_BASES = Object.freeze({
|
|
|
6665
6745
|
effectiveFrom: "2026-10-11T00:00:00.000Z",
|
|
6666
6746
|
approvals: Object.freeze([
|
|
6667
6747
|
Object.freeze({
|
|
6668
|
-
markup:
|
|
6748
|
+
markup: TASKMARKET_COMPUTE_PREVIOUS_MARKUP,
|
|
6669
6749
|
approvedBy: "ponderingdemocritus",
|
|
6670
6750
|
approvedOn: "2026-10-12",
|
|
6671
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"
|
|
6672
6758
|
})
|
|
6673
6759
|
])
|
|
6674
6760
|
})
|
|
@@ -13526,7 +13612,8 @@ var AGENT_PLATFORM_COMPONENTS = [
|
|
|
13526
13612
|
"spending",
|
|
13527
13613
|
"connectors",
|
|
13528
13614
|
"session-reset",
|
|
13529
|
-
"memory"
|
|
13615
|
+
"memory",
|
|
13616
|
+
"coordination"
|
|
13530
13617
|
];
|
|
13531
13618
|
var AgentPlatformComponentSchema = z52.enum(AGENT_PLATFORM_COMPONENTS);
|
|
13532
13619
|
var AGENT_REPLY_SUGGESTION_MAX = 3;
|
|
@@ -14210,6 +14297,11 @@ var LauncherAccountSchema = z54.object({
|
|
|
14210
14297
|
initialTokens: z54.number().int().nonnegative(),
|
|
14211
14298
|
agentCount: z54.number().int().nonnegative(),
|
|
14212
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(),
|
|
14213
14305
|
/**
|
|
14214
14306
|
* @deprecated Kept for one release so a web bundle built before its removal, which reads
|
|
14215
14307
|
* `account.usage.available` without a guard, does not crash during a deploy or in a stale tab.
|
|
@@ -15509,7 +15601,7 @@ var isoDate = z58.string().regex(/^\d{4}-\d{2}-\d{2}$/, "Expected an ISO date (Y
|
|
|
15509
15601
|
var atomicAmount = z58.string().regex(/^(?:0|[1-9][0-9]*)$/, "Expected an integer atomic amount");
|
|
15510
15602
|
var CatalogEndpointSchema = z58.object({
|
|
15511
15603
|
method: z58.enum(["GET", "POST"]),
|
|
15512
|
-
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"),
|
|
15513
15605
|
summary: z58.string().min(1).max(200)
|
|
15514
15606
|
}).strict();
|
|
15515
15607
|
var CatalogProviderSchema = z58.object({
|
|
@@ -15875,6 +15967,12 @@ var MARKET_EVENT_TYPE_INFO = {
|
|
|
15875
15967
|
roles: ["requester"],
|
|
15876
15968
|
summary: "A suggestions schedule declined suggestions that never reached the project's thresholds."
|
|
15877
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
|
+
},
|
|
15878
15976
|
"reminder.submission_due": {
|
|
15879
15977
|
family: "reminder",
|
|
15880
15978
|
roles: ["worker"],
|
|
@@ -19779,6 +19877,8 @@ export {
|
|
|
19779
19877
|
HireAvailabilitySchema,
|
|
19780
19878
|
HIRE_AGENT_UNAVAILABLE,
|
|
19781
19879
|
HIRE_AGENT_AT_CAPACITY,
|
|
19880
|
+
HIRE_LISTING_HIDDEN,
|
|
19881
|
+
hireListingHiddenMessage,
|
|
19782
19882
|
hireAcceptAtCapacity,
|
|
19783
19883
|
hireAcceptAtCapacityMessage,
|
|
19784
19884
|
hireSelectAtCapacityMessage,
|
|
@@ -19793,6 +19893,9 @@ export {
|
|
|
19793
19893
|
AgentHiresInputSchema,
|
|
19794
19894
|
AgentServiceRecordsResponseSchema,
|
|
19795
19895
|
MppTempoChargeRequestSchema,
|
|
19896
|
+
MppReceiptSchema,
|
|
19897
|
+
canonicalJson,
|
|
19898
|
+
encodeMppJson,
|
|
19796
19899
|
decodeMppJson,
|
|
19797
19900
|
parseMppChallenge,
|
|
19798
19901
|
formatMppCredential,
|
|
@@ -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";
|
|
@@ -1,9 +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
|
+
MPP_TEMPO_CHARGE_SCHEME,
|
|
3
4
|
X402PayError,
|
|
4
5
|
assertX402HeaderName,
|
|
5
6
|
assertX402HeaderValue,
|
|
6
7
|
createEvmPerRequestRail,
|
|
8
|
+
createMppTempoChargeRail,
|
|
7
9
|
createMppTempoCredential,
|
|
8
10
|
createTaskmarketFeeRail,
|
|
9
11
|
createX402Allocations,
|
|
@@ -15,7 +17,7 @@ import {
|
|
|
15
17
|
readMppTempoChallenge,
|
|
16
18
|
reconcileX402Payment,
|
|
17
19
|
withX402FileLock
|
|
18
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XRM455ZG.js";
|
|
19
21
|
import {
|
|
20
22
|
ApiError,
|
|
21
23
|
apiGet,
|
|
@@ -36,14 +38,14 @@ import {
|
|
|
36
38
|
withChainId,
|
|
37
39
|
withIdempotentWrite,
|
|
38
40
|
withTapSignature
|
|
39
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-AS6EFS2V.js";
|
|
40
42
|
import {
|
|
41
43
|
ComputeCreditBuyOutputSchema,
|
|
42
44
|
ComputeCreditPricingSchema,
|
|
43
45
|
ComputeCreditStatusOutputSchema,
|
|
44
46
|
apiErrorEnvelopeOf,
|
|
45
47
|
getTaskmarketHome
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-O53R76N3.js";
|
|
47
49
|
|
|
48
50
|
// src/lib/x402-fee.ts
|
|
49
51
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
@@ -337,9 +339,19 @@ async function externalResponseData(response, options = {}) {
|
|
|
337
339
|
}
|
|
338
340
|
|
|
339
341
|
// src/lib/x402-pay-client.ts
|
|
342
|
+
function x402PaymentProtocol(payment) {
|
|
343
|
+
return payment.scheme === MPP_TEMPO_CHARGE_SCHEME ? "mpp" : "x402";
|
|
344
|
+
}
|
|
345
|
+
function withPaymentProtocol(payment) {
|
|
346
|
+
return { ...payment, protocol: x402PaymentProtocol(payment) };
|
|
347
|
+
}
|
|
340
348
|
var X402_CLI_BODY_LIMIT_BYTES = 64 * 1024 * 1024;
|
|
341
|
-
function cliX402Rails() {
|
|
342
|
-
return [
|
|
349
|
+
function cliX402Rails(options = {}) {
|
|
350
|
+
return [
|
|
351
|
+
createEvmPerRequestRail(),
|
|
352
|
+
createTaskmarketFeeRail(),
|
|
353
|
+
...options.firstParty ? [] : [createMppTempoChargeRail()]
|
|
354
|
+
];
|
|
343
355
|
}
|
|
344
356
|
function createCliX402Payer(options = {}) {
|
|
345
357
|
const policyPath = getX402PolicyPath();
|
|
@@ -347,7 +359,7 @@ function createCliX402Payer(options = {}) {
|
|
|
347
359
|
journalPath: getX402JournalPath(),
|
|
348
360
|
loadPolicy: (loadOptions) => loadX402Policy(policyPath, loadOptions),
|
|
349
361
|
getAccount: async () => options.account ?? await createWalletAccountFromKeystore(await loadKeystore()),
|
|
350
|
-
rails: cliX402Rails(),
|
|
362
|
+
rails: cliX402Rails({ firstParty: options.firstParty }),
|
|
351
363
|
fetch: options.fetchImpl,
|
|
352
364
|
limits: {
|
|
353
365
|
maxRequestBodyBytes: X402_CLI_BODY_LIMIT_BYTES,
|
|
@@ -374,6 +386,7 @@ async function executeX402PayRequest(options) {
|
|
|
374
386
|
headers: options.headers,
|
|
375
387
|
body,
|
|
376
388
|
policyRuleId: options.policyRuleId,
|
|
389
|
+
...options.protocol ? { protocol: options.protocol } : {},
|
|
377
390
|
nonInteractive: Boolean(options.nonInteractive)
|
|
378
391
|
},
|
|
379
392
|
{
|
|
@@ -381,7 +394,8 @@ async function executeX402PayRequest(options) {
|
|
|
381
394
|
confirmDirectApproval: options.confirmDirectApproval
|
|
382
395
|
}
|
|
383
396
|
);
|
|
384
|
-
const
|
|
397
|
+
const record = result.payment ? await getX402Payment(result.payment.paymentId, getX402JournalPath()) : void 0;
|
|
398
|
+
const payment = record ? withPaymentProtocol(record) : void 0;
|
|
385
399
|
let responseData;
|
|
386
400
|
try {
|
|
387
401
|
responseData = await externalResponseData(result.response, {
|
|
@@ -416,12 +430,14 @@ async function executeX402PayRequest(options) {
|
|
|
416
430
|
}
|
|
417
431
|
async function reconcileX402PaymentById(paymentId) {
|
|
418
432
|
const policyPath = getX402PolicyPath();
|
|
419
|
-
return
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
433
|
+
return withPaymentProtocol(
|
|
434
|
+
await reconcileX402Payment({
|
|
435
|
+
journalPath: getX402JournalPath(),
|
|
436
|
+
paymentId,
|
|
437
|
+
loadPolicy: () => loadX402Policy(policyPath),
|
|
438
|
+
rails: cliX402Rails()
|
|
439
|
+
})
|
|
440
|
+
);
|
|
425
441
|
}
|
|
426
442
|
|
|
427
443
|
// src/lib/x402-fee.ts
|
|
@@ -1113,6 +1129,8 @@ export {
|
|
|
1113
1129
|
failedAfterPayment,
|
|
1114
1130
|
mppPost,
|
|
1115
1131
|
loadExternalHeaders,
|
|
1132
|
+
x402PaymentProtocol,
|
|
1133
|
+
withPaymentProtocol,
|
|
1116
1134
|
executeX402PayRequest,
|
|
1117
1135
|
reconcileX402PaymentById,
|
|
1118
1136
|
x402FeePost,
|
|
@@ -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";
|