@lucid-agents/taskmarket 1.19.1 → 1.20.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "taskmarket": "1.19.1",
2
+ "taskmarket": "1.20.0",
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-W7JSBEGK.js";
14
+ import "./chunk-SCZPZWRF.js";
15
+ import "./chunk-F7HVOUHY.js";
16
16
  import "./chunk-XJOB4NMV.js";
17
17
  import "./chunk-YM4S6IE4.js";
18
18
  import "./chunk-S7SJMJ2I.js";
@@ -16,7 +16,7 @@ import {
16
16
  readMppTempoChallenge,
17
17
  reconcileX402Payment,
18
18
  withX402FileLock
19
- } from "./chunk-NRKTRQEA.js";
19
+ } from "./chunk-SCZPZWRF.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-F7HVOUHY.js";
42
42
 
43
43
  // src/lib/x402-fee.ts
44
44
  import { randomUUID as randomUUID3 } from "crypto";
@@ -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,7 @@ var UsdcDomainSchema = z17.object({
1873
1879
  });
1874
1880
  var GetWithdrawalAddressOutputSchema = z17.object({
1875
1881
  withdrawalAddress: z17.string().nullable(),
1882
+ chainId: z17.number().int().positive(),
1876
1883
  usdcDomain: UsdcDomainSchema
1877
1884
  });
1878
1885
  var AuthorizationSchema = z17.object({
@@ -5715,8 +5722,9 @@ function buildSetWithdrawalAddressMessage(input2) {
5715
5722
  ].join("\n");
5716
5723
  }
5717
5724
  var SET_WITHDRAWAL_ADDRESS_MAX_TTL_SECONDS = 15 * 60;
5718
- function buildRevealAccountRecoveryCodeMessage(address2) {
5719
- return `taskmarket:reveal-account-recovery-code:${address2.toLowerCase()}`;
5725
+ function buildRevealAccountRecoveryCodeMessage(address2, chainId) {
5726
+ const base2 = `taskmarket:reveal-account-recovery-code:${address2.toLowerCase()}`;
5727
+ return chainId === void 0 ? base2 : `${base2}:chain:${chainId}`;
5720
5728
  }
5721
5729
  function buildWithdrawDreamsMessage(input2) {
5722
5730
  return [
@@ -9857,6 +9865,8 @@ var BUG_REPORT_STATUSES = [
9857
9865
  "wont-fix"
9858
9866
  ];
9859
9867
  var BugReportStatusSchema = z77.enum(BUG_REPORT_STATUSES);
9868
+ var BUG_REPORT_VISIBILITIES = ["public", "private"];
9869
+ var BugReportVisibilitySchema = z77.enum(BUG_REPORT_VISIBILITIES);
9860
9870
  var BUG_REPORT_TITLE_MAX_CHARS = 200;
9861
9871
  var BUG_REPORT_DESCRIPTION_MAX_BYTES = 10 * 1024;
9862
9872
  var BUG_REPORT_CONTEXT_MAX_BYTES = 32 * 1024;
@@ -9886,7 +9896,8 @@ var SubmitBugReportInputSchema = z77.object({
9886
9896
  severity: BugReportSeveritySchema.default("medium"),
9887
9897
  source: BugReportSourceSchema,
9888
9898
  agentId: z77.string().max(128).optional(),
9889
- context: BugReportContextSchema.default({})
9899
+ context: BugReportContextSchema.default({}),
9900
+ visibility: BugReportVisibilitySchema.default("public")
9890
9901
  }).strict();
9891
9902
  var SubmitBugReportOutputSchema = z77.object({
9892
9903
  id: z77.string().uuid(),
@@ -9894,6 +9905,9 @@ var SubmitBugReportOutputSchema = z77.object({
9894
9905
  });
9895
9906
  var BugReportSchema = z77.object({
9896
9907
  id: z77.string().uuid(),
9908
+ /** The public report number, shown as #N (ADR-0321). */
9909
+ number: z77.number().int(),
9910
+ visibility: BugReportVisibilitySchema,
9897
9911
  title: z77.string(),
9898
9912
  description: z77.string(),
9899
9913
  severity: BugReportSeveritySchema,
@@ -9902,6 +9916,8 @@ var BugReportSchema = z77.object({
9902
9916
  duplicateOfId: z77.string().uuid().nullable(),
9903
9917
  githubIssueNumber: z77.number().int().nullable(),
9904
9918
  githubIssueUrl: z77.string().url().nullable(),
9919
+ /** The other side has posted since the viewer last read the thread (ADR-0318 decision 5). */
9920
+ unread: z77.boolean(),
9905
9921
  context: z77.record(z77.unknown()),
9906
9922
  createdAt: z77.string(),
9907
9923
  updatedAt: z77.string()
@@ -9925,6 +9941,8 @@ var ListStaffBugReportsInputSchema = z77.object({
9925
9941
  severity: BugReportSeveritySchema.optional(),
9926
9942
  createdFrom: z77.string().datetime().optional(),
9927
9943
  createdTo: z77.string().datetime().optional(),
9944
+ /** Only reports with a reporter reply staff have not read. */
9945
+ unread: z77.boolean().optional(),
9928
9946
  limit: z77.number().int().min(1).max(200).default(50),
9929
9947
  offset: z77.number().int().min(0).default(0)
9930
9948
  }).default({});
@@ -9949,6 +9967,95 @@ var UpdateBugReportInputSchema = z77.object({
9949
9967
  }).refine((v) => v.status !== void 0 || v.staffNote !== void 0, {
9950
9968
  message: "Nothing to update"
9951
9969
  });
9970
+ var BUG_REPORT_MESSAGE_AUTHOR_KINDS = ["staff", "reporter"];
9971
+ var BugReportMessageAuthorKindSchema = z77.enum(BUG_REPORT_MESSAGE_AUTHOR_KINDS);
9972
+ var BugReportMessageBodySchema = z77.string().trim().min(1).refine((value) => utf8Bytes(value) <= BUG_REPORT_DESCRIPTION_MAX_BYTES, {
9973
+ message: `body must be at most ${BUG_REPORT_DESCRIPTION_MAX_BYTES} bytes`
9974
+ });
9975
+ var BugReportMessageSchema = z77.object({
9976
+ id: z77.string().uuid(),
9977
+ authorKind: BugReportMessageAuthorKindSchema,
9978
+ /** "Taskmarket staff" for staff, "Reporter" for the reporter. */
9979
+ author: z77.string(),
9980
+ body: z77.string(),
9981
+ createdAt: z77.string(),
9982
+ /** Posted by the other side since the viewer last read the thread. */
9983
+ isNew: z77.boolean()
9984
+ });
9985
+ var BugReportDetailSchema = BugReportSchema.extend({
9986
+ messages: z77.array(BugReportMessageSchema)
9987
+ });
9988
+ var BugReportStaffDetailSchema = BugReportStaffViewSchema.extend({
9989
+ messages: z77.array(BugReportMessageSchema)
9990
+ });
9991
+ var PostBugReportMessageInputSchema = z77.object({ id: z77.string().uuid(), body: BugReportMessageBodySchema }).strict();
9992
+ var PublicBugReportSchema = z77.object({
9993
+ id: z77.string().uuid(),
9994
+ number: z77.number().int(),
9995
+ title: z77.string(),
9996
+ description: z77.string(),
9997
+ severity: BugReportSeveritySchema,
9998
+ source: BugReportSourceSchema,
9999
+ status: BugReportStatusSchema,
10000
+ duplicateOfId: z77.string().uuid().nullable(),
10001
+ reporterAddress: z77.string(),
10002
+ reporterAgentId: z77.string().nullable(),
10003
+ context: z77.record(z77.unknown()),
10004
+ /** Wallets that said "I have this too". */
10005
+ affectedCount: z77.number().int(),
10006
+ commentCount: z77.number().int(),
10007
+ createdAt: z77.string(),
10008
+ updatedAt: z77.string()
10009
+ });
10010
+ var PUBLIC_BUG_REPORT_SORTS = ["newest", "most-affected"];
10011
+ var ListPublicBugReportsInputSchema = z77.object({
10012
+ status: BugReportStatusSchema.optional(),
10013
+ /** Matched case-insensitively against the title and description. */
10014
+ query: z77.string().trim().min(1).max(200).optional(),
10015
+ sort: z77.enum(PUBLIC_BUG_REPORT_SORTS).default("newest"),
10016
+ // Coerced: the REST route reads these from the query string.
10017
+ limit: z77.coerce.number().int().min(1).max(100).default(50),
10018
+ offset: z77.coerce.number().int().min(0).default(0)
10019
+ }).default({});
10020
+ var ListPublicBugReportsOutputSchema = z77.object({
10021
+ reports: z77.array(PublicBugReportSchema),
10022
+ total: z77.number().int()
10023
+ });
10024
+ var BugReportCommentSchema = z77.object({
10025
+ id: z77.string().uuid(),
10026
+ authorAddress: z77.string(),
10027
+ authorAgentId: z77.string().nullable(),
10028
+ /** The comment is by the report's reporter. */
10029
+ isReporter: z77.boolean(),
10030
+ body: z77.string(),
10031
+ createdAt: z77.string()
10032
+ });
10033
+ var BugReportStaffCommentSchema = BugReportCommentSchema.extend({
10034
+ hiddenAt: z77.string().nullable(),
10035
+ hiddenBy: z77.string().nullable(),
10036
+ /** Staff have blocked the comment's author from commenting on any report. */
10037
+ authorBlocked: z77.boolean()
10038
+ });
10039
+ var PublicBugReportDetailSchema = PublicBugReportSchema.extend({
10040
+ comments: z77.array(BugReportCommentSchema),
10041
+ /** The public number of the report this one duplicates; null when none, or it is private. */
10042
+ duplicateOfNumber: z77.number().int().nullable(),
10043
+ /** The signed-in viewer said "I have this too"; false when signed out. */
10044
+ viewerAffected: z77.boolean()
10045
+ });
10046
+ var GetPublicBugReportInputSchema = z77.object({
10047
+ number: z77.coerce.number().int().positive()
10048
+ });
10049
+ var MarkBugReportAffectedOutputSchema = z77.object({ affectedCount: z77.number().int() });
10050
+ var PostBugReportCommentInputSchema = z77.object({
10051
+ id: z77.string().uuid(),
10052
+ body: BugReportMessageBodySchema,
10053
+ agentId: z77.string().max(128).optional()
10054
+ }).strict();
10055
+ var SetBugReportVisibilityInputSchema = z77.object({ id: z77.string().uuid(), visibility: BugReportVisibilitySchema }).strict();
10056
+ var HideBugReportCommentInputSchema = z77.object({ commentId: z77.string().uuid() }).strict();
10057
+ var BlockBugReportCommenterInputSchema = z77.object({ wallet: z77.string().min(1).max(128), reason: z77.string().max(500).optional() }).strict();
10058
+ var UnblockBugReportCommenterInputSchema = z77.object({ wallet: z77.string().min(1).max(128) }).strict();
9952
10059
 
9953
10060
  // ../../packages/shared/dist/lib/redact-secrets.js
9954
10061
  import { english as english2 } from "viem/accounts";
@@ -10111,6 +10218,13 @@ var NETWORKS = {
10111
10218
  available: true
10112
10219
  }
10113
10220
  };
10221
+ function networkNameForChain(chainId) {
10222
+ return NETWORK_NAMES.find((name) => NETWORKS[name].chainId === chainId);
10223
+ }
10224
+ function taskmarketCommandFor(chainId) {
10225
+ const name = networkNameForChain(chainId);
10226
+ return name ? `taskmarket --network ${name}` : "taskmarket";
10227
+ }
10114
10228
  var DEFAULT_NETWORK = "base";
10115
10229
  function isNetworkName(value) {
10116
10230
  return NETWORK_NAMES.includes(value);
@@ -10397,6 +10511,7 @@ export {
10397
10511
  isRecordingPendingResponse,
10398
10512
  TEMPO_MAX_VALIDITY_WINDOW_SECONDS,
10399
10513
  clampValidityWindowSeconds,
10514
+ isTaskmarketChainId,
10400
10515
  taskmarketChain,
10401
10516
  clientValidityWindowSeconds,
10402
10517
  WALLET_BRIDGE_ORIGIN_CHAIN_ID,
@@ -10449,8 +10564,11 @@ export {
10449
10564
  claimStakeToPost,
10450
10565
  BUG_REPORT_SEVERITIES,
10451
10566
  BUG_REPORT_STATUSES,
10567
+ BUG_REPORT_VISIBILITIES,
10452
10568
  SubmitBugReportInputSchema,
10453
- GetBugReportInputSchema,
10569
+ BugReportMessageBodySchema,
10570
+ PostBugReportMessageInputSchema,
10571
+ PUBLIC_BUG_REPORT_SORTS,
10454
10572
  REDACTED,
10455
10573
  redactSecrets,
10456
10574
  getTaskmarketHome,
@@ -10467,6 +10585,7 @@ export {
10467
10585
  idempotencyHeaders,
10468
10586
  NETWORK_NAMES,
10469
10587
  NETWORKS,
10588
+ taskmarketCommandFor,
10470
10589
  resolveNetwork,
10471
10590
  setSelectedNetwork,
10472
10591
  selectedNetwork,
@@ -6,14 +6,14 @@ import {
6
6
  loadDeliverableRecord,
7
7
  readComputeView,
8
8
  taskStage
9
- } from "./chunk-OTXEK6VM.js";
9
+ } from "./chunk-S62UQAAF.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-RA6EZSII.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-W7JSBEGK.js";
25
25
  import {
26
26
  SandboxListOutputSchema,
27
27
  apiUrl,
28
28
  selectedNetwork
29
- } from "./chunk-X7AUWPZV.js";
29
+ } from "./chunk-F7HVOUHY.js";
30
30
  import {
31
31
  AGENT_VIEW_VERSION,
32
32
  blockingPurchases,
@@ -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-F7HVOUHY.js";
5
5
  import {
6
6
  AgentLaunchError
7
7
  } from "./chunk-YM4S6IE4.js";
@@ -8,7 +8,7 @@ import {
8
8
  unsafeHostPath,
9
9
  withFileLock,
10
10
  writeAtomic
11
- } from "./chunk-ATHBKQT4.js";
11
+ } from "./chunk-RA6EZSII.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-2YFJNXXA.js";
20
20
  import {
21
21
  getTaskmarketHome
22
- } from "./chunk-X7AUWPZV.js";
22
+ } from "./chunk-F7HVOUHY.js";
23
23
  import {
24
24
  burnRate,
25
25
  computeLow
@@ -11,7 +11,7 @@ import {
11
11
  loadKeystore,
12
12
  mppAttributionMemo,
13
13
  parseMppChallenge
14
- } from "./chunk-X7AUWPZV.js";
14
+ } from "./chunk-F7HVOUHY.js";
15
15
 
16
16
  // ../../packages/x402-payer/dist/api.js
17
17
  var X402_PAYER_API_VERSION = 1;
@@ -22,7 +22,7 @@ import {
22
22
  unresolvedCount,
23
23
  updateSyncState,
24
24
  uploadWorkspace
25
- } from "./chunk-ATHBKQT4.js";
25
+ } from "./chunk-RA6EZSII.js";
26
26
  import {
27
27
  AgentLaunchError
28
28
  } 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-2YFJNXXA.js";
5
5
  import {
6
6
  createWalletAccountFromKeystore,
7
7
  signMessage
8
- } from "./chunk-NRKTRQEA.js";
8
+ } from "./chunk-SCZPZWRF.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-F7HVOUHY.js";
23
23
 
24
24
  // src/lib/read-auth.ts
25
25
  async function signReadAuth() {
@@ -11,12 +11,12 @@ import {
11
11
  listX402Payments,
12
12
  loadX402Policy,
13
13
  rpcUrlForNetwork
14
- } from "./chunk-NRKTRQEA.js";
14
+ } from "./chunk-SCZPZWRF.js";
15
15
  import {
16
16
  getTaskmarketHome,
17
17
  keystoreExists,
18
18
  loadKeystore
19
- } from "./chunk-X7AUWPZV.js";
19
+ } from "./chunk-F7HVOUHY.js";
20
20
  import {
21
21
  failureDetail,
22
22
  failureDetailOf,
@@ -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-LKO25UQ7.js";
10
+ import "./chunk-S62UQAAF.js";
11
+ import "./chunk-RA6EZSII.js";
12
+ import "./chunk-2YFJNXXA.js";
13
13
  import {
14
14
  channelView,
15
15
  loadAgentPolicy,
16
16
  openAgentChannels
17
- } from "./chunk-MZSOLQZB.js";
17
+ } from "./chunk-W7JSBEGK.js";
18
18
  import {
19
19
  getX402PolicyPath,
20
20
  loadX402Policy,
21
21
  rpcUrlForNetwork
22
- } from "./chunk-NRKTRQEA.js";
22
+ } from "./chunk-SCZPZWRF.js";
23
23
  import {
24
24
  apiUrl,
25
25
  keystoreExists,
26
26
  loadKeystore
27
- } from "./chunk-X7AUWPZV.js";
27
+ } from "./chunk-F7HVOUHY.js";
28
28
  import {
29
29
  AGENT_VIEW_VERSION
30
30
  } from "./chunk-XJOB4NMV.js";