@lucid-agents/taskmarket 1.19.1 → 1.20.1

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "taskmarket": "1.19.1",
2
+ "taskmarket": "1.20.1",
3
3
  "manifestVersion": 1,
4
4
  "pi": {
5
5
  "package": "@earendil-works/pi-coding-agent",
@@ -10,9 +10,9 @@ import {
10
10
  selectRail,
11
11
  uncertainPurchases,
12
12
  withdrawalHatch
13
- } from "./chunk-MZSOLQZB.js";
14
- import "./chunk-NRKTRQEA.js";
15
- import "./chunk-X7AUWPZV.js";
13
+ } from "./chunk-OIQZWRMS.js";
14
+ import "./chunk-RHDWF7BZ.js";
15
+ import "./chunk-OQ6PFG36.js";
16
16
  import "./chunk-XJOB4NMV.js";
17
17
  import "./chunk-YM4S6IE4.js";
18
18
  import "./chunk-S7SJMJ2I.js";
@@ -8,7 +8,7 @@ import {
8
8
  unsafeHostPath,
9
9
  withFileLock,
10
10
  writeAtomic
11
- } from "./chunk-ATHBKQT4.js";
11
+ } from "./chunk-GAESVHWN.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-M7WD6A2T.js";
19
+ } from "./chunk-GG3D4M74.js";
20
20
  import {
21
21
  getTaskmarketHome
22
- } from "./chunk-X7AUWPZV.js";
22
+ } from "./chunk-OQ6PFG36.js";
23
23
  import {
24
24
  burnRate,
25
25
  computeLow
@@ -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-X7AUWPZV.js";
4
+ } from "./chunk-OQ6PFG36.js";
5
5
  import {
6
6
  AgentLaunchError
7
7
  } from "./chunk-YM4S6IE4.js";
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
2
2
  import {
3
3
  x402FeePost
4
- } from "./chunk-M7WD6A2T.js";
4
+ } from "./chunk-GG3D4M74.js";
5
5
  import {
6
6
  createWalletAccountFromKeystore,
7
7
  signMessage
8
- } from "./chunk-NRKTRQEA.js";
8
+ } from "./chunk-RHDWF7BZ.js";
9
9
  import {
10
10
  READ_AUTH_ADDRESS_HEADER,
11
11
  READ_AUTH_SIGNATURE_HEADER,
@@ -19,7 +19,7 @@ import {
19
19
  getTaskmarketHome,
20
20
  isRecordingPendingResponse,
21
21
  loadKeystore
22
- } from "./chunk-X7AUWPZV.js";
22
+ } from "./chunk-OQ6PFG36.js";
23
23
 
24
24
  // src/lib/read-auth.ts
25
25
  async function signReadAuth() {
@@ -16,7 +16,7 @@ import {
16
16
  readMppTempoChallenge,
17
17
  reconcileX402Payment,
18
18
  withX402FileLock
19
- } from "./chunk-NRKTRQEA.js";
19
+ } from "./chunk-RHDWF7BZ.js";
20
20
  import {
21
21
  ApiError,
22
22
  ComputeCreditBuyOutputSchema,
@@ -38,7 +38,7 @@ import {
38
38
  resolveIdempotencyKey,
39
39
  selectedNetwork,
40
40
  withIdempotentWrite
41
- } from "./chunk-X7AUWPZV.js";
41
+ } from "./chunk-OQ6PFG36.js";
42
42
 
43
43
  // src/lib/x402-fee.ts
44
44
  import { randomUUID as randomUUID3 } from "crypto";
@@ -11,12 +11,12 @@ import {
11
11
  listX402Payments,
12
12
  loadX402Policy,
13
13
  rpcUrlForNetwork
14
- } from "./chunk-NRKTRQEA.js";
14
+ } from "./chunk-RHDWF7BZ.js";
15
15
  import {
16
16
  getTaskmarketHome,
17
17
  keystoreExists,
18
18
  loadKeystore
19
- } from "./chunk-X7AUWPZV.js";
19
+ } from "./chunk-OQ6PFG36.js";
20
20
  import {
21
21
  failureDetail,
22
22
  failureDetailOf,
@@ -1845,25 +1845,31 @@ var AccountRecoveryCodeSchema = z17.string().regex(/^\d{8}$/);
1845
1845
  var SetWithdrawalAddressOutputSchema = z17.object({
1846
1846
  withdrawalAddress: z17.string(),
1847
1847
  // Returned exactly once, in this same response -- there is no other way to see it again.
1848
- accountRecoveryCode: AccountRecoveryCodeSchema
1848
+ accountRecoveryCode: AccountRecoveryCodeSchema,
1849
+ chainId: z17.number().int().positive()
1849
1850
  });
1850
1851
  var ChangeWithdrawalAddressInputSchema = z17.object({
1851
1852
  address: EthAddressSchema,
1852
1853
  accountRecoveryCode: AccountRecoveryCodeSchema,
1853
- newWithdrawalAddress: EthAddressSchema
1854
+ newWithdrawalAddress: EthAddressSchema,
1855
+ chainId: z17.number().int().positive().optional()
1854
1856
  });
1855
1857
  var ChangeWithdrawalAddressOutputSchema = z17.object({
1856
1858
  withdrawalAddress: z17.string(),
1857
1859
  // A fresh code, minted the same way, immediately: using a code invalidates it and
1858
1860
  // replaces it, so the operator always holds exactly one current, unused code.
1859
- accountRecoveryCode: AccountRecoveryCodeSchema
1861
+ accountRecoveryCode: AccountRecoveryCodeSchema,
1862
+ chainId: z17.number().int().positive()
1860
1863
  });
1861
1864
  var RevealBackfilledRecoveryCodeInputSchema = z17.object({
1862
1865
  address: EthAddressSchema,
1863
- signature: z17.string().min(1)
1866
+ signature: z17.string().min(1),
1867
+ // Named, the signed message binds it (buildRevealAccountRecoveryCodeMessage).
1868
+ chainId: z17.number().int().positive().optional()
1864
1869
  });
1865
1870
  var RevealBackfilledRecoveryCodeOutputSchema = z17.object({
1866
- accountRecoveryCode: AccountRecoveryCodeSchema
1871
+ accountRecoveryCode: AccountRecoveryCodeSchema,
1872
+ chainId: z17.number().int().positive()
1867
1873
  });
1868
1874
  var UsdcDomainSchema = z17.object({
1869
1875
  name: z17.string(),
@@ -1873,6 +1879,10 @@ var UsdcDomainSchema = z17.object({
1873
1879
  });
1874
1880
  var GetWithdrawalAddressOutputSchema = z17.object({
1875
1881
  withdrawalAddress: z17.string().nullable(),
1882
+ chainId: z17.number().int().positive(),
1883
+ // ADR-0323: true when this chain has an address but no recovery code yet (a backfilled
1884
+ // address), so revealBackfilledRecoveryCode would mint one. Revealing still needs a signature.
1885
+ recoveryCodeAvailable: z17.boolean(),
1876
1886
  usdcDomain: UsdcDomainSchema
1877
1887
  });
1878
1888
  var AuthorizationSchema = z17.object({
@@ -5715,8 +5725,9 @@ function buildSetWithdrawalAddressMessage(input2) {
5715
5725
  ].join("\n");
5716
5726
  }
5717
5727
  var SET_WITHDRAWAL_ADDRESS_MAX_TTL_SECONDS = 15 * 60;
5718
- function buildRevealAccountRecoveryCodeMessage(address2) {
5719
- return `taskmarket:reveal-account-recovery-code:${address2.toLowerCase()}`;
5728
+ function buildRevealAccountRecoveryCodeMessage(address2, chainId) {
5729
+ const base2 = `taskmarket:reveal-account-recovery-code:${address2.toLowerCase()}`;
5730
+ return chainId === void 0 ? base2 : `${base2}:chain:${chainId}`;
5720
5731
  }
5721
5732
  function buildWithdrawDreamsMessage(input2) {
5722
5733
  return [
@@ -9857,6 +9868,8 @@ var BUG_REPORT_STATUSES = [
9857
9868
  "wont-fix"
9858
9869
  ];
9859
9870
  var BugReportStatusSchema = z77.enum(BUG_REPORT_STATUSES);
9871
+ var BUG_REPORT_VISIBILITIES = ["public", "private"];
9872
+ var BugReportVisibilitySchema = z77.enum(BUG_REPORT_VISIBILITIES);
9860
9873
  var BUG_REPORT_TITLE_MAX_CHARS = 200;
9861
9874
  var BUG_REPORT_DESCRIPTION_MAX_BYTES = 10 * 1024;
9862
9875
  var BUG_REPORT_CONTEXT_MAX_BYTES = 32 * 1024;
@@ -9886,7 +9899,8 @@ var SubmitBugReportInputSchema = z77.object({
9886
9899
  severity: BugReportSeveritySchema.default("medium"),
9887
9900
  source: BugReportSourceSchema,
9888
9901
  agentId: z77.string().max(128).optional(),
9889
- context: BugReportContextSchema.default({})
9902
+ context: BugReportContextSchema.default({}),
9903
+ visibility: BugReportVisibilitySchema.default("public")
9890
9904
  }).strict();
9891
9905
  var SubmitBugReportOutputSchema = z77.object({
9892
9906
  id: z77.string().uuid(),
@@ -9894,6 +9908,9 @@ var SubmitBugReportOutputSchema = z77.object({
9894
9908
  });
9895
9909
  var BugReportSchema = z77.object({
9896
9910
  id: z77.string().uuid(),
9911
+ /** The public report number, shown as #N (ADR-0321). */
9912
+ number: z77.number().int(),
9913
+ visibility: BugReportVisibilitySchema,
9897
9914
  title: z77.string(),
9898
9915
  description: z77.string(),
9899
9916
  severity: BugReportSeveritySchema,
@@ -9902,6 +9919,8 @@ var BugReportSchema = z77.object({
9902
9919
  duplicateOfId: z77.string().uuid().nullable(),
9903
9920
  githubIssueNumber: z77.number().int().nullable(),
9904
9921
  githubIssueUrl: z77.string().url().nullable(),
9922
+ /** The other side has posted since the viewer last read the thread (ADR-0318 decision 5). */
9923
+ unread: z77.boolean(),
9905
9924
  context: z77.record(z77.unknown()),
9906
9925
  createdAt: z77.string(),
9907
9926
  updatedAt: z77.string()
@@ -9925,6 +9944,8 @@ var ListStaffBugReportsInputSchema = z77.object({
9925
9944
  severity: BugReportSeveritySchema.optional(),
9926
9945
  createdFrom: z77.string().datetime().optional(),
9927
9946
  createdTo: z77.string().datetime().optional(),
9947
+ /** Only reports with a reporter reply staff have not read. */
9948
+ unread: z77.boolean().optional(),
9928
9949
  limit: z77.number().int().min(1).max(200).default(50),
9929
9950
  offset: z77.number().int().min(0).default(0)
9930
9951
  }).default({});
@@ -9949,6 +9970,95 @@ var UpdateBugReportInputSchema = z77.object({
9949
9970
  }).refine((v) => v.status !== void 0 || v.staffNote !== void 0, {
9950
9971
  message: "Nothing to update"
9951
9972
  });
9973
+ var BUG_REPORT_MESSAGE_AUTHOR_KINDS = ["staff", "reporter"];
9974
+ var BugReportMessageAuthorKindSchema = z77.enum(BUG_REPORT_MESSAGE_AUTHOR_KINDS);
9975
+ var BugReportMessageBodySchema = z77.string().trim().min(1).refine((value) => utf8Bytes(value) <= BUG_REPORT_DESCRIPTION_MAX_BYTES, {
9976
+ message: `body must be at most ${BUG_REPORT_DESCRIPTION_MAX_BYTES} bytes`
9977
+ });
9978
+ var BugReportMessageSchema = z77.object({
9979
+ id: z77.string().uuid(),
9980
+ authorKind: BugReportMessageAuthorKindSchema,
9981
+ /** "Taskmarket staff" for staff, "Reporter" for the reporter. */
9982
+ author: z77.string(),
9983
+ body: z77.string(),
9984
+ createdAt: z77.string(),
9985
+ /** Posted by the other side since the viewer last read the thread. */
9986
+ isNew: z77.boolean()
9987
+ });
9988
+ var BugReportDetailSchema = BugReportSchema.extend({
9989
+ messages: z77.array(BugReportMessageSchema)
9990
+ });
9991
+ var BugReportStaffDetailSchema = BugReportStaffViewSchema.extend({
9992
+ messages: z77.array(BugReportMessageSchema)
9993
+ });
9994
+ var PostBugReportMessageInputSchema = z77.object({ id: z77.string().uuid(), body: BugReportMessageBodySchema }).strict();
9995
+ var PublicBugReportSchema = z77.object({
9996
+ id: z77.string().uuid(),
9997
+ number: z77.number().int(),
9998
+ title: z77.string(),
9999
+ description: z77.string(),
10000
+ severity: BugReportSeveritySchema,
10001
+ source: BugReportSourceSchema,
10002
+ status: BugReportStatusSchema,
10003
+ duplicateOfId: z77.string().uuid().nullable(),
10004
+ reporterAddress: z77.string(),
10005
+ reporterAgentId: z77.string().nullable(),
10006
+ context: z77.record(z77.unknown()),
10007
+ /** Wallets that said "I have this too". */
10008
+ affectedCount: z77.number().int(),
10009
+ commentCount: z77.number().int(),
10010
+ createdAt: z77.string(),
10011
+ updatedAt: z77.string()
10012
+ });
10013
+ var PUBLIC_BUG_REPORT_SORTS = ["newest", "most-affected"];
10014
+ var ListPublicBugReportsInputSchema = z77.object({
10015
+ status: BugReportStatusSchema.optional(),
10016
+ /** Matched case-insensitively against the title and description. */
10017
+ query: z77.string().trim().min(1).max(200).optional(),
10018
+ sort: z77.enum(PUBLIC_BUG_REPORT_SORTS).default("newest"),
10019
+ // Coerced: the REST route reads these from the query string.
10020
+ limit: z77.coerce.number().int().min(1).max(100).default(50),
10021
+ offset: z77.coerce.number().int().min(0).default(0)
10022
+ }).default({});
10023
+ var ListPublicBugReportsOutputSchema = z77.object({
10024
+ reports: z77.array(PublicBugReportSchema),
10025
+ total: z77.number().int()
10026
+ });
10027
+ var BugReportCommentSchema = z77.object({
10028
+ id: z77.string().uuid(),
10029
+ authorAddress: z77.string(),
10030
+ authorAgentId: z77.string().nullable(),
10031
+ /** The comment is by the report's reporter. */
10032
+ isReporter: z77.boolean(),
10033
+ body: z77.string(),
10034
+ createdAt: z77.string()
10035
+ });
10036
+ var BugReportStaffCommentSchema = BugReportCommentSchema.extend({
10037
+ hiddenAt: z77.string().nullable(),
10038
+ hiddenBy: z77.string().nullable(),
10039
+ /** Staff have blocked the comment's author from commenting on any report. */
10040
+ authorBlocked: z77.boolean()
10041
+ });
10042
+ var PublicBugReportDetailSchema = PublicBugReportSchema.extend({
10043
+ comments: z77.array(BugReportCommentSchema),
10044
+ /** The public number of the report this one duplicates; null when none, or it is private. */
10045
+ duplicateOfNumber: z77.number().int().nullable(),
10046
+ /** The signed-in viewer said "I have this too"; false when signed out. */
10047
+ viewerAffected: z77.boolean()
10048
+ });
10049
+ var GetPublicBugReportInputSchema = z77.object({
10050
+ number: z77.coerce.number().int().positive()
10051
+ });
10052
+ var MarkBugReportAffectedOutputSchema = z77.object({ affectedCount: z77.number().int() });
10053
+ var PostBugReportCommentInputSchema = z77.object({
10054
+ id: z77.string().uuid(),
10055
+ body: BugReportMessageBodySchema,
10056
+ agentId: z77.string().max(128).optional()
10057
+ }).strict();
10058
+ var SetBugReportVisibilityInputSchema = z77.object({ id: z77.string().uuid(), visibility: BugReportVisibilitySchema }).strict();
10059
+ var HideBugReportCommentInputSchema = z77.object({ commentId: z77.string().uuid() }).strict();
10060
+ var BlockBugReportCommenterInputSchema = z77.object({ wallet: z77.string().min(1).max(128), reason: z77.string().max(500).optional() }).strict();
10061
+ var UnblockBugReportCommenterInputSchema = z77.object({ wallet: z77.string().min(1).max(128) }).strict();
9952
10062
 
9953
10063
  // ../../packages/shared/dist/lib/redact-secrets.js
9954
10064
  import { english as english2 } from "viem/accounts";
@@ -10111,6 +10221,13 @@ var NETWORKS = {
10111
10221
  available: true
10112
10222
  }
10113
10223
  };
10224
+ function networkNameForChain(chainId) {
10225
+ return NETWORK_NAMES.find((name) => NETWORKS[name].chainId === chainId);
10226
+ }
10227
+ function taskmarketCommandFor(chainId) {
10228
+ const name = networkNameForChain(chainId);
10229
+ return name ? `taskmarket --network ${name}` : "taskmarket";
10230
+ }
10114
10231
  var DEFAULT_NETWORK = "base";
10115
10232
  function isNetworkName(value) {
10116
10233
  return NETWORK_NAMES.includes(value);
@@ -10397,6 +10514,7 @@ export {
10397
10514
  isRecordingPendingResponse,
10398
10515
  TEMPO_MAX_VALIDITY_WINDOW_SECONDS,
10399
10516
  clampValidityWindowSeconds,
10517
+ isTaskmarketChainId,
10400
10518
  taskmarketChain,
10401
10519
  clientValidityWindowSeconds,
10402
10520
  WALLET_BRIDGE_ORIGIN_CHAIN_ID,
@@ -10449,8 +10567,11 @@ export {
10449
10567
  claimStakeToPost,
10450
10568
  BUG_REPORT_SEVERITIES,
10451
10569
  BUG_REPORT_STATUSES,
10570
+ BUG_REPORT_VISIBILITIES,
10452
10571
  SubmitBugReportInputSchema,
10453
- GetBugReportInputSchema,
10572
+ BugReportMessageBodySchema,
10573
+ PostBugReportMessageInputSchema,
10574
+ PUBLIC_BUG_REPORT_SORTS,
10454
10575
  REDACTED,
10455
10576
  redactSecrets,
10456
10577
  getTaskmarketHome,
@@ -10467,6 +10588,7 @@ export {
10467
10588
  idempotencyHeaders,
10468
10589
  NETWORK_NAMES,
10469
10590
  NETWORKS,
10591
+ taskmarketCommandFor,
10470
10592
  resolveNetwork,
10471
10593
  setSelectedNetwork,
10472
10594
  selectedNetwork,
@@ -11,7 +11,7 @@ import {
11
11
  loadKeystore,
12
12
  mppAttributionMemo,
13
13
  parseMppChallenge
14
- } from "./chunk-X7AUWPZV.js";
14
+ } from "./chunk-OQ6PFG36.js";
15
15
 
16
16
  // ../../packages/x402-payer/dist/api.js
17
17
  var X402_PAYER_API_VERSION = 1;
@@ -6,14 +6,14 @@ import {
6
6
  loadDeliverableRecord,
7
7
  readComputeView,
8
8
  taskStage
9
- } from "./chunk-OTXEK6VM.js";
9
+ } from "./chunk-7NH3EVI7.js";
10
10
  import {
11
11
  activeClaim,
12
12
  captureProblem,
13
13
  killedSession,
14
14
  loadSyncState,
15
15
  orphanOf
16
- } from "./chunk-ATHBKQT4.js";
16
+ } from "./chunk-GAESVHWN.js";
17
17
  import {
18
18
  allocationViews,
19
19
  channelView,
@@ -21,12 +21,12 @@ import {
21
21
  openAgentChannels,
22
22
  uncertainPurchases,
23
23
  withdrawalHatch
24
- } from "./chunk-MZSOLQZB.js";
24
+ } from "./chunk-OIQZWRMS.js";
25
25
  import {
26
26
  SandboxListOutputSchema,
27
27
  apiUrl,
28
28
  selectedNetwork
29
- } from "./chunk-X7AUWPZV.js";
29
+ } from "./chunk-OQ6PFG36.js";
30
30
  import {
31
31
  AGENT_VIEW_VERSION,
32
32
  blockingPurchases,
@@ -22,7 +22,7 @@ import {
22
22
  unresolvedCount,
23
23
  updateSyncState,
24
24
  uploadWorkspace
25
- } from "./chunk-ATHBKQT4.js";
25
+ } from "./chunk-GAESVHWN.js";
26
26
  import {
27
27
  AgentLaunchError
28
28
  } from "./chunk-YM4S6IE4.js";
@@ -6,25 +6,25 @@ import {
6
6
  } from "./chunk-4ZC6SH7H.js";
7
7
  import {
8
8
  listSandboxes
9
- } from "./chunk-IWZNOYQE.js";
10
- import "./chunk-OTXEK6VM.js";
11
- import "./chunk-ATHBKQT4.js";
12
- import "./chunk-M7WD6A2T.js";
9
+ } from "./chunk-YLNOLUYO.js";
10
+ import "./chunk-7NH3EVI7.js";
11
+ import "./chunk-GAESVHWN.js";
12
+ import "./chunk-GG3D4M74.js";
13
13
  import {
14
14
  channelView,
15
15
  loadAgentPolicy,
16
16
  openAgentChannels
17
- } from "./chunk-MZSOLQZB.js";
17
+ } from "./chunk-OIQZWRMS.js";
18
18
  import {
19
19
  getX402PolicyPath,
20
20
  loadX402Policy,
21
21
  rpcUrlForNetwork
22
- } from "./chunk-NRKTRQEA.js";
22
+ } from "./chunk-RHDWF7BZ.js";
23
23
  import {
24
24
  apiUrl,
25
25
  keystoreExists,
26
26
  loadKeystore
27
- } from "./chunk-X7AUWPZV.js";
27
+ } from "./chunk-OQ6PFG36.js";
28
28
  import {
29
29
  AGENT_VIEW_VERSION
30
30
  } from "./chunk-XJOB4NMV.js";