@lucid-agents/taskmarket 1.51.0 → 1.52.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.
Files changed (25) hide show
  1. package/dist/agent-compatibility.json +1 -1
  2. package/dist/{api-YDCOGL5P.js → api-Z62WOOLX.js} +2 -2
  3. package/dist/{channels-K4AKXBRM.js → channels-GBQLRNED.js} +4 -4
  4. package/dist/{chunk-O56EUZVG.js → chunk-523X35HE.js} +4 -4
  5. package/dist/{chunk-CBLGBZ67.js → chunk-6UDGOZHP.js} +3 -3
  6. package/dist/{chunk-5EUSU7QA.js → chunk-G4MAYAZW.js} +13 -25
  7. package/dist/{chunk-LC5VE4EQ.js → chunk-JAFX6DHV.js} +1313 -1252
  8. package/dist/{chunk-VQ6X6FME.js → chunk-K3Y73YWH.js} +2 -2
  9. package/dist/{chunk-7OC73WUN.js → chunk-KU66VTU6.js} +1 -1
  10. package/dist/{chunk-YCWWBCXW.js → chunk-LZ2P3FIL.js} +5 -5
  11. package/dist/{chunk-LL2SVODK.js → chunk-N5L4URHF.js} +1 -1
  12. package/dist/{chunk-JPAOL63U.js → chunk-PXQP62WF.js} +3 -3
  13. package/dist/{chunk-HZ6KGGNX.js → chunk-QSOEZINA.js} +8 -8
  14. package/dist/{chunk-CCK7JYVX.js → chunk-RMK5EAPR.js} +1 -1
  15. package/dist/{chunk-DE5YYAHJ.js → chunk-XREEFYEQ.js} +6 -2
  16. package/dist/{doctor-UA5ST7KE.js → doctor-3LW4N6KW.js} +9 -9
  17. package/dist/index.js +46 -21
  18. package/dist/{launch-TMSW4WPX.js → launch-2YOUARKA.js} +11 -11
  19. package/dist/pi-extensions/xgate.cjs +19 -10
  20. package/dist/{read-auth-PN6FJNKK.js → read-auth-IBCYKPKD.js} +3 -3
  21. package/dist/{reconcile-VVNRBYY7.js → reconcile-7DVTUPJ6.js} +4 -4
  22. package/dist/{status-VQ7V3CIS.js → status-3GNXUWOL.js} +9 -9
  23. package/dist/{sync-pull-UKSVJFMY.js → sync-pull-MIEB5XAF.js} +4 -4
  24. package/dist/{task-access-grants-QBORD7RL.js → task-access-grants-5B3CSCP4.js} +2 -2
  25. package/package.json +2 -2
@@ -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-DE5YYAHJ.js";
5
+ } from "./chunk-XREEFYEQ.js";
6
6
  import {
7
7
  READ_AUTH_ADDRESS_HEADER,
8
8
  READ_AUTH_SIGNATURE_HEADER,
9
9
  buildReadAuthMessage
10
- } from "./chunk-LC5VE4EQ.js";
10
+ } from "./chunk-JAFX6DHV.js";
11
11
 
12
12
  // src/lib/read-auth.ts
13
13
  async function signReadAuth(signal) {
@@ -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-LC5VE4EQ.js";
5
+ } from "./chunk-JAFX6DHV.js";
6
6
 
7
7
  // src/lib/task-access-grants.ts
8
8
  import { promises as fs } from "fs";
@@ -6,14 +6,14 @@ import {
6
6
  loadDeliverableRecord,
7
7
  readComputeView,
8
8
  taskStage
9
- } from "./chunk-CBLGBZ67.js";
9
+ } from "./chunk-6UDGOZHP.js";
10
10
  import {
11
11
  activeClaim,
12
12
  captureProblem,
13
13
  killedSession,
14
14
  loadSyncState,
15
15
  orphanOf
16
- } from "./chunk-CCK7JYVX.js";
16
+ } from "./chunk-RMK5EAPR.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-JPAOL63U.js";
24
+ } from "./chunk-PXQP62WF.js";
25
25
  import {
26
26
  apiUrl,
27
27
  selectedNetwork
28
- } from "./chunk-DE5YYAHJ.js";
28
+ } from "./chunk-XREEFYEQ.js";
29
29
  import {
30
30
  SandboxListOutputSchema
31
- } from "./chunk-LC5VE4EQ.js";
31
+ } from "./chunk-JAFX6DHV.js";
32
32
  import {
33
33
  AgentLaunchError
34
34
  } from "./chunk-YM4S6IE4.js";
@@ -22,7 +22,7 @@ import {
22
22
  unresolvedCount,
23
23
  updateSyncState,
24
24
  uploadWorkspace
25
- } from "./chunk-CCK7JYVX.js";
25
+ } from "./chunk-RMK5EAPR.js";
26
26
  import {
27
27
  AgentLaunchError
28
28
  } from "./chunk-YM4S6IE4.js";
@@ -10,16 +10,16 @@ import {
10
10
  listX402Payments,
11
11
  loadX402Policy,
12
12
  rpcUrlForNetwork
13
- } from "./chunk-5EUSU7QA.js";
13
+ } from "./chunk-G4MAYAZW.js";
14
14
  import {
15
15
  createWalletAccountFromKeystore,
16
16
  keystoreExists,
17
17
  loadKeystore
18
- } from "./chunk-DE5YYAHJ.js";
18
+ } from "./chunk-XREEFYEQ.js";
19
19
  import {
20
20
  getTaskmarketHome,
21
21
  taskmarketChain
22
- } from "./chunk-LC5VE4EQ.js";
22
+ } from "./chunk-JAFX6DHV.js";
23
23
  import {
24
24
  AgentLaunchError
25
25
  } from "./chunk-YM4S6IE4.js";
@@ -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-O56EUZVG.js";
4
+ } from "./chunk-523X35HE.js";
5
5
  import {
6
6
  signReadAuth
7
- } from "./chunk-VQ6X6FME.js";
7
+ } from "./chunk-K3Y73YWH.js";
8
8
  import {
9
9
  taskAccessGrantHeaders
10
- } from "./chunk-7OC73WUN.js";
10
+ } from "./chunk-KU66VTU6.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-DE5YYAHJ.js";
18
+ } from "./chunk-XREEFYEQ.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-LC5VE4EQ.js";
26
+ } from "./chunk-JAFX6DHV.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-YDCOGL5P.js");
119
- const { signReadAuth: signReadAuth2 } = await import("./read-auth-PN6FJNKK.js");
120
- const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-QBORD7RL.js");
118
+ const { apiGet: apiGet2 } = await import("./api-Z62WOOLX.js");
119
+ const { signReadAuth: signReadAuth2 } = await import("./read-auth-IBCYKPKD.js");
120
+ const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-5B3CSCP4.js");
121
121
  const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
122
122
  return apiGet2(path, {
123
123
  headers: {
@@ -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-LC5VE4EQ.js";
4
+ } from "./chunk-JAFX6DHV.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-LC5VE4EQ.js";
12
+ } from "./chunk-JAFX6DHV.js";
13
13
 
14
14
  // src/lib/idempotency.ts
15
15
  import { randomUUID } from "crypto";
@@ -651,7 +651,11 @@ function tapSigningFetch(base, tap) {
651
651
  ...headerRecord(init?.headers)
652
652
  };
653
653
  const body = await fetchBody(input, init);
654
- return base(input, { ...init, headers: withTapSignature({ method, url, headers, body }, tap) });
654
+ return base(input, {
655
+ ...init,
656
+ headers: withTapSignature({ method, url, headers, body }, tap),
657
+ body
658
+ });
655
659
  });
656
660
  }
657
661
  function taskRequiresTap(task) {
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
2
2
  import {
3
3
  listSandboxes
4
- } from "./chunk-YCWWBCXW.js";
5
- import "./chunk-CBLGBZ67.js";
6
- import "./chunk-CCK7JYVX.js";
7
- import "./chunk-O56EUZVG.js";
8
- import "./chunk-VQ6X6FME.js";
4
+ } from "./chunk-LZ2P3FIL.js";
5
+ import "./chunk-6UDGOZHP.js";
6
+ import "./chunk-RMK5EAPR.js";
7
+ import "./chunk-523X35HE.js";
8
+ import "./chunk-K3Y73YWH.js";
9
9
  import {
10
10
  AGENT_COMPATIBILITY,
11
11
  assertAgentCompatibility,
@@ -17,19 +17,19 @@ import {
17
17
  loadAgentPolicy,
18
18
  openAgentChannels,
19
19
  railChainIdHex
20
- } from "./chunk-JPAOL63U.js";
20
+ } from "./chunk-PXQP62WF.js";
21
21
  import {
22
22
  getX402PolicyPath,
23
23
  loadX402Policy,
24
24
  rpcUrlForNetwork
25
- } from "./chunk-5EUSU7QA.js";
25
+ } from "./chunk-G4MAYAZW.js";
26
26
  import {
27
27
  apiUrl,
28
28
  keystoreExists,
29
29
  loadKeystore,
30
30
  withChainId
31
- } from "./chunk-DE5YYAHJ.js";
32
- import "./chunk-LC5VE4EQ.js";
31
+ } from "./chunk-XREEFYEQ.js";
32
+ import "./chunk-JAFX6DHV.js";
33
33
  import "./chunk-YM4S6IE4.js";
34
34
  import {
35
35
  AGENT_VIEW_VERSION
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  listWorkerSubmissions,
15
15
  submitTaskFiles,
16
16
  taskRequirementsOf
17
- } from "./chunk-HZ6KGGNX.js";
17
+ } from "./chunk-QSOEZINA.js";
18
18
  import {
19
19
  ComputeCreditError,
20
20
  applyComputeCreditSetup,
@@ -43,14 +43,14 @@ import {
43
43
  withSelectedChain,
44
44
  x402FeePost,
45
45
  x402PaymentProtocol
46
- } from "./chunk-O56EUZVG.js";
46
+ } from "./chunk-523X35HE.js";
47
47
  import {
48
48
  signReadAuth
49
- } from "./chunk-VQ6X6FME.js";
49
+ } from "./chunk-K3Y73YWH.js";
50
50
  import {
51
51
  saveTaskAccessGrant,
52
52
  taskAccessGrantHeaders
53
- } from "./chunk-7OC73WUN.js";
53
+ } from "./chunk-KU66VTU6.js";
54
54
  import {
55
55
  MPP_TEMPO_DEFAULT_VALIDITY_SECONDS,
56
56
  X402PayError,
@@ -69,7 +69,7 @@ import {
69
69
  setX402PolicyRuleEnabled,
70
70
  signSponsoredTempoTransfer,
71
71
  signTaskmarketFeePayment
72
- } from "./chunk-5EUSU7QA.js";
72
+ } from "./chunk-G4MAYAZW.js";
73
73
  import {
74
74
  ALL_NETWORKS,
75
75
  ApiError,
@@ -135,7 +135,7 @@ import {
135
135
  withErrorContext,
136
136
  withIdempotentWrite,
137
137
  withTapSignature
138
- } from "./chunk-DE5YYAHJ.js";
138
+ } from "./chunk-XREEFYEQ.js";
139
139
  import {
140
140
  AGENT_AVATAR_MAX_BYTES,
141
141
  AGENT_HIRES_ROLES,
@@ -184,6 +184,7 @@ import {
184
184
  HIRE_LISTING_HIDDEN,
185
185
  HIRE_MAX_ACCEPT_WINDOW_SECS,
186
186
  HIRE_MIN_ACCEPT_WINDOW_SECS,
187
+ HIRE_OWNER_CONFIRMS_NOTICE,
187
188
  HIRE_SERVICE_ID_MAX_LENGTH,
188
189
  HOOK_BIT_FEE,
189
190
  HOOK_BIT_ON_CALL,
@@ -377,6 +378,7 @@ import {
377
378
  normalizeReferenceCode,
378
379
  normalizeShopHandle,
379
380
  normalizeWorkflowTemplateTags,
381
+ ownerConfirmsHire,
380
382
  parseIsoDurationSeconds,
381
383
  parseScheduleCadence,
382
384
  paymentTokenSymbol,
@@ -415,7 +417,7 @@ import {
415
417
  vaultCallGasLimit7702,
416
418
  verifiersUnsupportedOnChain,
417
419
  viemChainFor
418
- } from "./chunk-LC5VE4EQ.js";
420
+ } from "./chunk-JAFX6DHV.js";
419
421
  import "./chunk-S7SJMJ2I.js";
420
422
 
421
423
  // src/index.ts
@@ -13953,7 +13955,7 @@ async function runAgentCommand(options) {
13953
13955
  try {
13954
13956
  const { assertAgentCompatibility } = await import("./compatibility-636WJOEX.js");
13955
13957
  const pi = assertAgentCompatibility();
13956
- const { runAgent } = await import("./launch-TMSW4WPX.js");
13958
+ const { runAgent } = await import("./launch-2YOUARKA.js");
13957
13959
  result = await runAgent({
13958
13960
  model: options.model,
13959
13961
  pi,
@@ -14402,13 +14404,13 @@ function agentManagementCommands() {
14402
14404
  const status = new Command59("status").description(
14403
14405
  "Show the agent channels (locked, charged, refundable), purchases with an unknown outcome, the sandbox and compute credit. Reads only."
14404
14406
  ).action(async () => {
14405
- const { collectAgentStatus } = await import("./status-VQ7V3CIS.js");
14407
+ const { collectAgentStatus } = await import("./status-3GNXUWOL.js");
14406
14408
  await run(() => collectAgentStatus());
14407
14409
  });
14408
14410
  const doctor = new Command59("doctor").description(
14409
14411
  "Check that the agent can start: Node and the bundled runtime, wallet and policy, channels, API, sandbox broker, host keys, xgate and RPC. Reads only."
14410
14412
  ).action(async () => {
14411
- const { runDoctor } = await import("./doctor-UA5ST7KE.js");
14413
+ const { runDoctor } = await import("./doctor-3LW4N6KW.js");
14412
14414
  const report = await run(() => runDoctor());
14413
14415
  if (report && !report.ok) process.exitCode = 1;
14414
14416
  });
@@ -14419,7 +14421,7 @@ function agentManagementCommands() {
14419
14421
  "Reconcile the open purchases of this channel, as status lists it; also reaches retired channels"
14420
14422
  ).action(
14421
14423
  async (invocationId, options) => {
14422
- const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-VVNRBYY7.js");
14424
+ const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-7DVTUPJ6.js");
14423
14425
  const choice = { rail: options.rail, channel: options.channel };
14424
14426
  if (invocationId !== void 0) {
14425
14427
  await run(() => reconcileInvocation(invocationId, { choice }));
@@ -14451,7 +14453,7 @@ function agentManagementCommands() {
14451
14453
  `Not a USDC amount: ${options.amount} (digits, at most 6 decimals)`
14452
14454
  );
14453
14455
  }
14454
- const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-K4AKXBRM.js");
14456
+ const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-GBQLRNED.js");
14455
14457
  const { rails } = await openAgentChannels();
14456
14458
  const result = await requestTopUp(selectRail(rails, options.rail), amount2);
14457
14459
  return {
@@ -14471,8 +14473,8 @@ function agentManagementCommands() {
14471
14473
  await run(async () => {
14472
14474
  await requireExperimental();
14473
14475
  const { AGENT_VIEW_VERSION } = await import("./budget-view-J6L7X6EY.js");
14474
- const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-K4AKXBRM.js");
14475
- const { reconcileLeasedPurchase } = await import("./reconcile-VVNRBYY7.js");
14476
+ const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-GBQLRNED.js");
14477
+ const { reconcileLeasedPurchase } = await import("./reconcile-7DVTUPJ6.js");
14476
14478
  const opened = await openAgentChannels();
14477
14479
  const { rail, retired } = selectChannel(opened, options);
14478
14480
  const result = await closeChannel(
@@ -14526,7 +14528,7 @@ function agentManagementCommands() {
14526
14528
  async (options) => {
14527
14529
  await run(async () => {
14528
14530
  await requireExperimental();
14529
- const { runPull } = await import("./sync-pull-UKSVJFMY.js");
14531
+ const { runPull } = await import("./sync-pull-MIEB5XAF.js");
14530
14532
  const { terminalPrompter } = await import("./prompter-LSICEYSQ.js");
14531
14533
  return runPull(options, {
14532
14534
  interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
@@ -14609,7 +14611,7 @@ var agentsCommand = new Command61("agents").description("Browse the worker direc
14609
14611
  "Only agents this verifier passed within the last 30 days: tap:identity:verified (TAP Verified: any agent whose key the verifier lists)"
14610
14612
  ).option(
14611
14613
  "--availability <availability>",
14612
- "available (open and under capacity), unavailable (paused or fully booked) or any",
14614
+ "available (open and under capacity), unavailable (paused, fully booked, at the daily hire limit, or a hosted shop that is not ready for hires) or any",
14613
14615
  DEFAULT_AVAILABILITY
14614
14616
  ).action(
14615
14617
  async (opts) => {
@@ -14672,8 +14674,17 @@ async function installedSkillsFor(wallet) {
14672
14674
  try {
14673
14675
  const parsed = AgentListingSchema.safeParse(await apiGet(`/api/agents/${wallet}/listing`));
14674
14676
  if (!parsed.success) return {};
14675
- const { hosted, installedSkills } = parsed.data;
14676
- return { hosted, installedSkills: hosted ? installedSkills : [] };
14677
+ const { hosted, installedSkills, services } = parsed.data;
14678
+ return {
14679
+ hosted,
14680
+ installedSkills: hosted ? installedSkills : [],
14681
+ services: parsed.data.hidden ? [] : services.filter((service) => !service.hidden).map(({ id, kind, hireAcceptPolicy }) => ({
14682
+ id,
14683
+ kind,
14684
+ hireAcceptPolicy,
14685
+ hireNotice: ownerConfirmsHire({ hosted }, { kind, hireAcceptPolicy }) ? HIRE_OWNER_CONFIRMS_NOTICE : null
14686
+ }))
14687
+ };
14677
14688
  } catch {
14678
14689
  return {};
14679
14690
  }
@@ -30903,7 +30914,7 @@ async function lookupListedService(worker, serviceId) {
30903
30914
  if (!service || service.hidden) {
30904
30915
  return { service: null, error: `Service ${serviceId} is not on this worker's listing` };
30905
30916
  }
30906
- return { service };
30917
+ return { service, hosted: listing.hosted === true };
30907
30918
  }
30908
30919
  async function lookupWorkerKind(worker) {
30909
30920
  try {
@@ -30921,7 +30932,10 @@ function hireEvaluatorError(opts, requiresEvaluator) {
30921
30932
  }
30922
30933
  var hireCommand = new Command157("hire").description(
30923
30934
  "Hire a worker, a human or an agent: create a claim task only that worker may accept or decline before the accept window ends (costs the reward, in the payment token). Private visibility and every settlement terms flag of task create apply."
30924
- ).argument("<worker>", "The worker's wallet address (a human or an agent)").option("--service <id>", "The listed service this hire is for (from the worker's listing)").option(
30935
+ ).argument("<worker>", "The worker's wallet address (a human or an agent)").option(
30936
+ "--service <id>",
30937
+ "The listed service this hire is for (from the worker's listing). Check `agents get <worker>` first: a service with a hireNotice is accepted only after its owner approves"
30938
+ ).option(
30925
30939
  "--requires-evaluator",
30926
30940
  "The service requires an evaluator, when this backend cannot read the listing (needs --evaluator)"
30927
30941
  );
@@ -30934,6 +30948,7 @@ hireCommand.action(async (worker, opts) => {
30934
30948
  let requiresEvaluator = Boolean(opts.requiresEvaluator);
30935
30949
  let acceptWindow = opts.acceptWindow;
30936
30950
  let serviceTitle = null;
30951
+ let hireAcceptPolicy = null;
30937
30952
  if (/^0x[0-9a-fA-F]{40}$/.test(worker)) {
30938
30953
  const lookup = await lookupListedService(worker, opts.service);
30939
30954
  if (lookup.error) {
@@ -30946,6 +30961,16 @@ hireCommand.action(async (worker, opts) => {
30946
30961
  if (lookup.service) {
30947
30962
  requiresEvaluator ||= Boolean(lookup.service.requiresEvaluator);
30948
30963
  serviceTitle = lookup.service.title ?? null;
30964
+ hireAcceptPolicy = lookup.service.hireAcceptPolicy === "ask" ? "ask" : "auto";
30965
+ if (ownerConfirmsHire(lookup, lookup.service)) {
30966
+ warnings.push(
30967
+ cliWarning(
30968
+ "owner_confirms_hire",
30969
+ `${HIRE_OWNER_CONFIRMS_NOTICE}: the worker accepts this hire only after its owner approves, so the answer can take longer.`,
30970
+ { serviceId: opts.service }
30971
+ )
30972
+ );
30973
+ }
30949
30974
  if (acceptWindow === void 0 && lookup.service.acceptBySecs) {
30950
30975
  acceptWindow = String(lookup.service.acceptBySecs / 3600);
30951
30976
  }
@@ -30976,7 +31001,7 @@ hireCommand.action(async (worker, opts) => {
30976
31001
  {
30977
31002
  warnings,
30978
31003
  hiredWorker: { address: worker, kind: await lookupWorkerKind(worker) },
30979
- ...opts.service ? { hiredService: { serviceId: opts.service, serviceTitle } } : {}
31004
+ ...opts.service ? { hiredService: { serviceId: opts.service, serviceTitle, hireAcceptPolicy } } : {}
30980
31005
  }
30981
31006
  );
30982
31007
  } catch (err) {
@@ -38,7 +38,7 @@ import {
38
38
  sha256Hex,
39
39
  specHash,
40
40
  taskStage
41
- } from "./chunk-CBLGBZ67.js";
41
+ } from "./chunk-6UDGOZHP.js";
42
42
  import {
43
43
  SessionSync,
44
44
  emptyBase,
@@ -47,7 +47,7 @@ import {
47
47
  recordSessionEnd,
48
48
  recordSessionStart,
49
49
  uploadPlan
50
- } from "./chunk-LL2SVODK.js";
50
+ } from "./chunk-N5L4URHF.js";
51
51
  import {
52
52
  BrokerConnector,
53
53
  OutputLimitError,
@@ -59,7 +59,7 @@ import {
59
59
  serveSandboxChannel,
60
60
  withFileLock,
61
61
  writeAtomic
62
- } from "./chunk-CCK7JYVX.js";
62
+ } from "./chunk-RMK5EAPR.js";
63
63
  import {
64
64
  TaskOperationError,
65
65
  claimTask,
@@ -78,7 +78,7 @@ import {
78
78
  requestArtifactUpload,
79
79
  submitUploadedArtifacts,
80
80
  taskAwardsOf
81
- } from "./chunk-HZ6KGGNX.js";
81
+ } from "./chunk-QSOEZINA.js";
82
82
  import {
83
83
  applyComputeCreditSetup,
84
84
  atomicToUsd,
@@ -88,13 +88,13 @@ import {
88
88
  planComputeCreditSetup,
89
89
  readComputeCreditBalance,
90
90
  usdToAtomic
91
- } from "./chunk-O56EUZVG.js";
91
+ } from "./chunk-523X35HE.js";
92
92
  import {
93
93
  signReadAuth
94
- } from "./chunk-VQ6X6FME.js";
94
+ } from "./chunk-K3Y73YWH.js";
95
95
  import {
96
96
  taskAccessGrantHeaders
97
- } from "./chunk-7OC73WUN.js";
97
+ } from "./chunk-KU66VTU6.js";
98
98
  import {
99
99
  MAX_RETIRED_RAILS,
100
100
  NETWORK_NAMES,
@@ -118,7 +118,7 @@ import {
118
118
  routeOfCatalogRow,
119
119
  saveAgentPolicy,
120
120
  settledRetiredRails
121
- } from "./chunk-JPAOL63U.js";
121
+ } from "./chunk-PXQP62WF.js";
122
122
  import {
123
123
  BASE_CHANNEL_RAIL_ID,
124
124
  createBaseChannelPayer,
@@ -132,13 +132,13 @@ import {
132
132
  rpcUrlForNetwork,
133
133
  saveX402Policy,
134
134
  x402SpendWindowAvailability
135
- } from "./chunk-5EUSU7QA.js";
135
+ } from "./chunk-G4MAYAZW.js";
136
136
  import {
137
137
  apiUrl,
138
138
  keystoreExists,
139
139
  loadKeystore,
140
140
  selectedNetwork
141
- } from "./chunk-DE5YYAHJ.js";
141
+ } from "./chunk-XREEFYEQ.js";
142
142
  import {
143
143
  IntentStatusResponseSchema,
144
144
  NetworkChainInfoSchema,
@@ -147,7 +147,7 @@ import {
147
147
  isRecordingPendingResponse,
148
148
  piCodingAgentTools,
149
149
  taskmarketChain
150
- } from "./chunk-LC5VE4EQ.js";
150
+ } from "./chunk-JAFX6DHV.js";
151
151
  import {
152
152
  AgentLaunchError
153
153
  } from "./chunk-YM4S6IE4.js";
@@ -7869,7 +7869,7 @@ var OPENAI_PUBLISHED_RATES = {
7869
7869
  usdPerMillionTokens: { input: "0.20", cachedInput: "0.02", cacheWrite: "0.25", output: "1.20" },
7870
7870
  source: "https://developers.openai.com/api/docs/pricing",
7871
7871
  checkedOn: "2026-09-18",
7872
- recheckedOn: ["2026-10-03", "2026-10-28"],
7872
+ recheckedOn: ["2026-10-03", "2026-10-28", "2026-11-22"],
7873
7873
  promotionalUntil: null
7874
7874
  },
7875
7875
  "gpt-5.6-sol": {
@@ -7896,7 +7896,7 @@ var OPENAI_PUBLISHED_RATES = {
7896
7896
  },
7897
7897
  source: "https://developers.openai.com/api/docs/pricing",
7898
7898
  checkedOn: "2026-09-18",
7899
- recheckedOn: ["2026-10-03", "2026-10-28"],
7899
+ recheckedOn: ["2026-10-03", "2026-10-28", "2026-11-22"],
7900
7900
  promotionalUntil: null
7901
7901
  },
7902
7902
  // The GPT-6 generation, read from the same page on 2026-10-03. Each entry carries its own check
@@ -7911,7 +7911,7 @@ var OPENAI_PUBLISHED_RATES = {
7911
7911
  },
7912
7912
  source: "https://developers.openai.com/api/docs/pricing",
7913
7913
  checkedOn: "2026-10-03",
7914
- recheckedOn: ["2026-10-28"],
7914
+ recheckedOn: ["2026-10-28", "2026-11-22"],
7915
7915
  promotionalUntil: null
7916
7916
  },
7917
7917
  "gpt-6-sol": {
@@ -7924,7 +7924,7 @@ var OPENAI_PUBLISHED_RATES = {
7924
7924
  },
7925
7925
  source: "https://developers.openai.com/api/docs/pricing",
7926
7926
  checkedOn: "2026-10-03",
7927
- recheckedOn: ["2026-10-28"],
7927
+ recheckedOn: ["2026-10-28", "2026-11-22"],
7928
7928
  promotionalUntil: null
7929
7929
  },
7930
7930
  "gpt-6.1-sol": {
@@ -7937,7 +7937,7 @@ var OPENAI_PUBLISHED_RATES = {
7937
7937
  },
7938
7938
  source: "https://developers.openai.com/api/docs/pricing",
7939
7939
  checkedOn: "2026-10-03",
7940
- recheckedOn: ["2026-10-28"],
7940
+ recheckedOn: ["2026-10-28", "2026-11-22"],
7941
7941
  promotionalUntil: null
7942
7942
  }
7943
7943
  };
@@ -7963,20 +7963,27 @@ var ROUTING_OPENROUTER_PUBLISHED_RATES = {
7963
7963
  // Google Vertex, Modal and others at 0.3 input and 1.2 output, Mancer fp8 at 0.05 cached.
7964
7964
  "deepseek/deepseek-v4.1-flash": openRouterRate("deepseek/deepseek-v4.1-flash", "0.3", "0.05", "1.2", "2026-11-20"),
7965
7965
  // Medium candidates. Featherless fp8 is the dearest on every meter.
7966
- "minimax/minimax-m3": openRouterRate("minimax/minimax-m3", "0.55", "0.06", "2.2", "2026-11-20"),
7966
+ // Re-checked unchanged on 2026-11-22 against the same endpoints.
7967
+ "minimax/minimax-m3": openRouterRate("minimax/minimax-m3", "0.55", "0.06", "2.2", "2026-11-20", [
7968
+ "2026-11-22"
7969
+ ]),
7967
7970
  // Priced at the provider the published mapping allowlists, not at the standard hosts (#2685):
7968
7971
  // tiers/2026-10-21 pins Wafer, whose two glm-5.3 endpoints list 0.079 and 0.179 input, 0.078 and
7969
7972
  // 0.178 cached, 1.40 output. The card takes the dearer endpoint so holds never undercharge.
7970
7973
  // Re-checked unchanged on 2026-10-29 against the zero-data-retention endpoints
7971
7974
  // (/api/v1/endpoints/zdr): Wafer wafer/fp4 0.179 / 0.178 / 1.4 is still the dearest per meter.
7972
- // Re-checked unchanged on 2026-11-20 against the same endpoints.
7975
+ // Re-checked unchanged on 2026-11-20 and 2026-11-22 against the same endpoints.
7973
7976
  "z-ai/glm-5.3": openRouterRate("z-ai/glm-5.3", "0.179", "0.178", "1.4", "2026-10-21", [
7974
7977
  "2026-10-29",
7975
- "2026-11-20"
7978
+ "2026-11-20",
7979
+ "2026-11-22"
7976
7980
  ]),
7977
7981
  // Heavy candidates.
7978
7982
  // Fireworks, Moonshot and others at 3 input, Makora fp4 at 0.5 cached and 18 output.
7979
- "moonshotai/kimi-k3": openRouterRate("moonshotai/kimi-k3", "3", "0.5", "18", "2026-11-20"),
7983
+ // Re-checked unchanged on 2026-11-22 against the same endpoints.
7984
+ "moonshotai/kimi-k3": openRouterRate("moonshotai/kimi-k3", "3", "0.5", "18", "2026-11-20", [
7985
+ "2026-11-22"
7986
+ ]),
7980
7987
  // Standard Moonshot endpoint moonshotai/mxfp4, not the twice-priced highspeed endpoint.
7981
7988
  // Recorded qualification calls matched these rates, including cached input, without a write fee.
7982
7989
  // Re-checked unchanged on 2026-10-29 and 2026-11-20 at the zero-data-retention mxfp4 endpoint.
@@ -7986,9 +7993,11 @@ var ROUTING_OPENROUTER_PUBLISHED_RATES = {
7986
7993
  // 2026-10-29 against the zero-data-retention endpoints; the newer, cheaper Wafer wafer/us and
7987
7994
  // DeepInfra flex endpoints do not raise any meter. Re-checked unchanged on 2026-11-20; the
7988
7995
  // DeepInfra fp4/priority service-tier endpoint is out of scope, like Moonshot highspeed.
7996
+ // Re-checked unchanged on 2026-11-22.
7989
7997
  "z-ai/glm-5.2": openRouterRate("z-ai/glm-5.2", "0.5625", "0.18", "8", "2026-10-21", [
7990
7998
  "2026-10-29",
7991
- "2026-11-20"
7999
+ "2026-11-20",
8000
+ "2026-11-22"
7992
8001
  ])
7993
8002
  };
7994
8003
  var ROUTING_PUBLISHED_RATES = {
@@ -1,9 +1,9 @@
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
  signReadAuth
4
- } from "./chunk-VQ6X6FME.js";
5
- import "./chunk-DE5YYAHJ.js";
6
- import "./chunk-LC5VE4EQ.js";
4
+ } from "./chunk-K3Y73YWH.js";
5
+ import "./chunk-XREEFYEQ.js";
6
+ import "./chunk-JAFX6DHV.js";
7
7
  import "./chunk-S7SJMJ2I.js";
8
8
  export {
9
9
  signReadAuth
@@ -3,15 +3,15 @@ import {
3
3
  channelView,
4
4
  openAgentChannels,
5
5
  selectChannel
6
- } from "./chunk-JPAOL63U.js";
6
+ } from "./chunk-PXQP62WF.js";
7
7
  import {
8
8
  BASE_CHANNEL_RAIL_ID,
9
9
  X402_INVOCATION_ID_PATTERN,
10
10
  getX402JournalPath,
11
11
  listX402Payments
12
- } from "./chunk-5EUSU7QA.js";
13
- import "./chunk-DE5YYAHJ.js";
14
- import "./chunk-LC5VE4EQ.js";
12
+ } from "./chunk-G4MAYAZW.js";
13
+ import "./chunk-XREEFYEQ.js";
14
+ import "./chunk-JAFX6DHV.js";
15
15
  import {
16
16
  AgentLaunchError
17
17
  } from "./chunk-YM4S6IE4.js";
@@ -4,15 +4,15 @@ import {
4
4
  listSandboxes,
5
5
  readSyncStatus,
6
6
  readTaskStatus
7
- } from "./chunk-YCWWBCXW.js";
8
- import "./chunk-CBLGBZ67.js";
9
- import "./chunk-CCK7JYVX.js";
10
- import "./chunk-O56EUZVG.js";
11
- import "./chunk-VQ6X6FME.js";
12
- import "./chunk-JPAOL63U.js";
13
- import "./chunk-5EUSU7QA.js";
14
- import "./chunk-DE5YYAHJ.js";
15
- import "./chunk-LC5VE4EQ.js";
7
+ } from "./chunk-LZ2P3FIL.js";
8
+ import "./chunk-6UDGOZHP.js";
9
+ import "./chunk-RMK5EAPR.js";
10
+ import "./chunk-523X35HE.js";
11
+ import "./chunk-K3Y73YWH.js";
12
+ import "./chunk-PXQP62WF.js";
13
+ import "./chunk-G4MAYAZW.js";
14
+ import "./chunk-XREEFYEQ.js";
15
+ import "./chunk-JAFX6DHV.js";
16
16
  import "./chunk-YM4S6IE4.js";
17
17
  import "./chunk-XJOB4NMV.js";
18
18
  import "./chunk-S7SJMJ2I.js";