@lucid-agents/taskmarket 1.26.0 → 1.27.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-H7VPA6C6.js → api-EKGAP2TK.js} +2 -2
  3. package/dist/{channels-4IFPTRDY.js → channels-5V4244GL.js} +4 -4
  4. package/dist/{chunk-GT5TOHOY.js → chunk-6T24AGBE.js} +1 -1
  5. package/dist/{chunk-Q2FZSDFG.js → chunk-7KBQDZWR.js} +1 -1
  6. package/dist/{chunk-2AJZDGEL.js → chunk-CS36JL4J.js} +1 -1
  7. package/dist/{chunk-CNWA5PU3.js → chunk-D26Z36NX.js} +1 -1
  8. package/dist/{chunk-PJAWRHHZ.js → chunk-DTSONVE3.js} +2 -2
  9. package/dist/{chunk-RPGVVVJD.js → chunk-EDW4XCAY.js} +3 -3
  10. package/dist/{chunk-NTLOY7SP.js → chunk-HVI5YS47.js} +1 -1
  11. package/dist/{chunk-YIOZ7W3M.js → chunk-MAIB4J42.js} +3 -3
  12. package/dist/{chunk-YAKNCBUK.js → chunk-PCDHSI5Y.js} +8 -8
  13. package/dist/{chunk-FMK32RJF.js → chunk-QF2AWW7O.js} +5 -5
  14. package/dist/{chunk-XV6DBK4C.js → chunk-RA3GGK5G.js} +3 -3
  15. package/dist/{chunk-VTMYCZLT.js → chunk-ZW6MI2F6.js} +16 -0
  16. package/dist/{doctor-HENBO5YV.js → doctor-3VKAO7ZW.js} +8 -8
  17. package/dist/index.js +42 -28
  18. package/dist/{launch-DMKAPDO4.js → launch-YVKAONR5.js} +11 -11
  19. package/dist/pi-extensions/xgate.cjs +14 -0
  20. package/dist/{read-auth-26D4BRUP.js → read-auth-XZOWQ45P.js} +3 -3
  21. package/dist/{reconcile-6A5U2Q7Q.js → reconcile-YBEASFA3.js} +4 -4
  22. package/dist/{status-GRLQL23D.js → status-NCA4MCIV.js} +8 -8
  23. package/dist/{sync-pull-MSYWP5WU.js → sync-pull-WOKOY65R.js} +4 -4
  24. package/dist/{task-access-grants-54GQX63L.js → task-access-grants-7JUAFFYG.js} +2 -2
  25. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  {
2
- "taskmarket": "1.26.0",
2
+ "taskmarket": "1.27.0",
3
3
  "manifestVersion": 1,
4
4
  "pi": {
5
5
  "package": "@earendil-works/pi-coding-agent",
@@ -14,8 +14,8 @@ import {
14
14
  parseFailureBody,
15
15
  readFailureBody,
16
16
  withErrorContext
17
- } from "./chunk-Q2FZSDFG.js";
18
- import "./chunk-VTMYCZLT.js";
17
+ } from "./chunk-7KBQDZWR.js";
18
+ import "./chunk-ZW6MI2F6.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-YIOZ7W3M.js";
14
- import "./chunk-2AJZDGEL.js";
15
- import "./chunk-Q2FZSDFG.js";
16
- import "./chunk-VTMYCZLT.js";
13
+ } from "./chunk-MAIB4J42.js";
14
+ import "./chunk-CS36JL4J.js";
15
+ import "./chunk-7KBQDZWR.js";
16
+ import "./chunk-ZW6MI2F6.js";
17
17
  import "./chunk-YM4S6IE4.js";
18
18
  import "./chunk-XJOB4NMV.js";
19
19
  import "./chunk-S7SJMJ2I.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-VTMYCZLT.js";
4
+ } from "./chunk-ZW6MI2F6.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-VTMYCZLT.js";
12
+ } from "./chunk-ZW6MI2F6.js";
13
13
 
14
14
  // src/lib/idempotency.ts
15
15
  import { randomUUID } from "crypto";
@@ -8,7 +8,7 @@ import {
8
8
  getTaskmarketHome,
9
9
  mppAttributionMemo,
10
10
  parseMppChallenge
11
- } from "./chunk-VTMYCZLT.js";
11
+ } from "./chunk-ZW6MI2F6.js";
12
12
 
13
13
  // ../../packages/x402-payer/dist/api.js
14
14
  var X402_PAYER_API_VERSION = 1;
@@ -22,7 +22,7 @@ import {
22
22
  unresolvedCount,
23
23
  updateSyncState,
24
24
  uploadWorkspace
25
- } from "./chunk-GT5TOHOY.js";
25
+ } from "./chunk-6T24AGBE.js";
26
26
  import {
27
27
  AgentLaunchError
28
28
  } from "./chunk-YM4S6IE4.js";
@@ -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-Q2FZSDFG.js";
5
+ } from "./chunk-7KBQDZWR.js";
6
6
  import {
7
7
  READ_AUTH_ADDRESS_HEADER,
8
8
  READ_AUTH_SIGNATURE_HEADER,
9
9
  buildReadAuthMessage
10
- } from "./chunk-VTMYCZLT.js";
10
+ } from "./chunk-ZW6MI2F6.js";
11
11
 
12
12
  // src/lib/read-auth.ts
13
13
  async function signReadAuth() {
@@ -8,7 +8,7 @@ import {
8
8
  unsafeHostPath,
9
9
  withFileLock,
10
10
  writeAtomic
11
- } from "./chunk-GT5TOHOY.js";
11
+ } from "./chunk-6T24AGBE.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-XV6DBK4C.js";
19
+ } from "./chunk-RA3GGK5G.js";
20
20
  import {
21
21
  getTaskmarketHome
22
- } from "./chunk-VTMYCZLT.js";
22
+ } from "./chunk-ZW6MI2F6.js";
23
23
  import {
24
24
  AgentLaunchError
25
25
  } from "./chunk-YM4S6IE4.js";
@@ -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-VTMYCZLT.js";
5
+ } from "./chunk-ZW6MI2F6.js";
6
6
 
7
7
  // src/lib/task-access-grants.ts
8
8
  import { promises as fs } from "fs";
@@ -10,15 +10,15 @@ import {
10
10
  listX402Payments,
11
11
  loadX402Policy,
12
12
  rpcUrlForNetwork
13
- } from "./chunk-2AJZDGEL.js";
13
+ } from "./chunk-CS36JL4J.js";
14
14
  import {
15
15
  createWalletAccountFromKeystore,
16
16
  keystoreExists,
17
17
  loadKeystore
18
- } from "./chunk-Q2FZSDFG.js";
18
+ } from "./chunk-7KBQDZWR.js";
19
19
  import {
20
20
  getTaskmarketHome
21
- } from "./chunk-VTMYCZLT.js";
21
+ } from "./chunk-ZW6MI2F6.js";
22
22
  import {
23
23
  AgentLaunchError
24
24
  } 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-XV6DBK4C.js";
4
+ } from "./chunk-RA3GGK5G.js";
5
5
  import {
6
6
  signReadAuth
7
- } from "./chunk-PJAWRHHZ.js";
7
+ } from "./chunk-DTSONVE3.js";
8
8
  import {
9
9
  taskAccessGrantHeaders
10
- } from "./chunk-NTLOY7SP.js";
10
+ } from "./chunk-HVI5YS47.js";
11
11
  import {
12
12
  apiGet,
13
13
  apiPost,
@@ -15,13 +15,13 @@ import {
15
15
  runWorkerAction,
16
16
  signMessage,
17
17
  taskRequiresTap
18
- } from "./chunk-Q2FZSDFG.js";
18
+ } from "./chunk-7KBQDZWR.js";
19
19
  import {
20
20
  TaskAwardSchema,
21
21
  buildClaimMessage,
22
22
  buildSubmitMessage,
23
23
  isRecordingPendingResponse
24
- } from "./chunk-VTMYCZLT.js";
24
+ } from "./chunk-ZW6MI2F6.js";
25
25
 
26
26
  // src/sdk/artifact-upload.ts
27
27
  import { extname } from "path";
@@ -108,9 +108,9 @@ function putArtifactBytes(uploadUrl, data, mimeType, onProgress) {
108
108
  // src/lib/worker-attestation.ts
109
109
  var requirementCache = /* @__PURE__ */ new Map();
110
110
  async function defaultGet(path) {
111
- const { apiGet: apiGet2 } = await import("./api-H7VPA6C6.js");
112
- const { signReadAuth: signReadAuth2 } = await import("./read-auth-26D4BRUP.js");
113
- const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-54GQX63L.js");
111
+ const { apiGet: apiGet2 } = await import("./api-EKGAP2TK.js");
112
+ const { signReadAuth: signReadAuth2 } = await import("./read-auth-XZOWQ45P.js");
113
+ const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-7JUAFFYG.js");
114
114
  const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
115
115
  return apiGet2(path, {
116
116
  headers: {
@@ -6,14 +6,14 @@ import {
6
6
  loadDeliverableRecord,
7
7
  readComputeView,
8
8
  taskStage
9
- } from "./chunk-RPGVVVJD.js";
9
+ } from "./chunk-EDW4XCAY.js";
10
10
  import {
11
11
  activeClaim,
12
12
  captureProblem,
13
13
  killedSession,
14
14
  loadSyncState,
15
15
  orphanOf
16
- } from "./chunk-GT5TOHOY.js";
16
+ } from "./chunk-6T24AGBE.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-YIOZ7W3M.js";
24
+ } from "./chunk-MAIB4J42.js";
25
25
  import {
26
26
  apiUrl,
27
27
  selectedNetwork
28
- } from "./chunk-Q2FZSDFG.js";
28
+ } from "./chunk-7KBQDZWR.js";
29
29
  import {
30
30
  SandboxListOutputSchema
31
- } from "./chunk-VTMYCZLT.js";
31
+ } from "./chunk-ZW6MI2F6.js";
32
32
  import {
33
33
  AgentLaunchError
34
34
  } from "./chunk-YM4S6IE4.js";
@@ -15,7 +15,7 @@ import {
15
15
  readMppTempoChallenge,
16
16
  reconcileX402Payment,
17
17
  withX402FileLock
18
- } from "./chunk-2AJZDGEL.js";
18
+ } from "./chunk-CS36JL4J.js";
19
19
  import {
20
20
  ApiError,
21
21
  apiGet,
@@ -36,14 +36,14 @@ import {
36
36
  withChainId,
37
37
  withIdempotentWrite,
38
38
  withTapSignature
39
- } from "./chunk-Q2FZSDFG.js";
39
+ } from "./chunk-7KBQDZWR.js";
40
40
  import {
41
41
  ComputeCreditBuyOutputSchema,
42
42
  ComputeCreditPricingSchema,
43
43
  ComputeCreditStatusOutputSchema,
44
44
  apiErrorEnvelopeOf,
45
45
  getTaskmarketHome
46
- } from "./chunk-VTMYCZLT.js";
46
+ } from "./chunk-ZW6MI2F6.js";
47
47
 
48
48
  // src/lib/x402-fee.ts
49
49
  import { randomUUID as randomUUID3 } from "crypto";
@@ -8603,8 +8603,20 @@ var ChainIdSchema2 = z48.number().int().positive().describe("The chain the proje
8603
8603
  var ProjectIdSchema = z48.coerce.number().int().positive();
8604
8604
  var PROJECT_MAX_TASK_GRACE_SECS = 90 * 24 * 60 * 60;
8605
8605
  var PROJECT_DEFAULT_TASK_GRACE_SECS = 30 * 24 * 60 * 60;
8606
+ var PROJECT_NAME_MAX_LENGTH = 80;
8607
+ var PROJECT_GOAL_MAX_LENGTH = 500;
8608
+ var CONTROL_CHARACTERS = /[\u0000-\u001F\u007F-\u009F]/;
8609
+ function plainText(max, noun) {
8610
+ return z48.string().trim().min(1, `The ${noun} cannot be empty`).max(max, `The ${noun} can be at most ${max} characters`).refine((value) => !CONTROL_CHARACTERS.test(value), {
8611
+ message: `The ${noun} cannot contain control characters or line breaks`
8612
+ });
8613
+ }
8614
+ var ProjectNameSchema = plainText(PROJECT_NAME_MAX_LENGTH, "project name").describe(`A short plain-text name, 1 to ${PROJECT_NAME_MAX_LENGTH} characters after trimming; kept by Taskmarket, not on the chain`);
8615
+ var ProjectGoalSchema = plainText(PROJECT_GOAL_MAX_LENGTH, "project goal").describe(`What the project is for, plain text, up to ${PROJECT_GOAL_MAX_LENGTH} characters after trimming; kept by Taskmarket, not on the chain`);
8606
8616
  var ProjectCreateSchema = z48.object({
8607
8617
  chainId: ChainIdSchema2.optional(),
8618
+ name: ProjectNameSchema.optional(),
8619
+ goal: ProjectGoalSchema.optional(),
8608
8620
  budget: PositiveUsdcBaseUnitsSchema.describe("The opening budget, in base units of the task payment stablecoin; paid with this request"),
8609
8621
  endsAt: z48.string().datetime({ offset: true }).describe("When the project stops funding new tasks (ISO 8601); must be in the future and at most 365 days away"),
8610
8622
  taskGraceSecs: z48.number().int().min(0).max(PROJECT_MAX_TASK_GRACE_SECS).default(PROJECT_DEFAULT_TASK_GRACE_SECS).describe("How long after endsAt the project's tasks may run, in seconds: 0 to 90 days, 30 days when omitted. Fixed at creation. Every project task must end by endsAt plus this, so backers can claim once the last task ends.")
@@ -8660,6 +8672,8 @@ var ProjectSummarySchema = z48.object({
8660
8672
  chainId: z48.number(),
8661
8673
  projectId: z48.number(),
8662
8674
  owner: z48.string(),
8675
+ name: z48.string().nullable().optional().describe("The name its owner gave it; null for a project opened without one"),
8676
+ goal: z48.string().nullable().optional().describe("What the project is for, in its owner's words; null when none was given"),
8663
8677
  endsAt: z48.string(),
8664
8678
  taskGraceSecs: z48.number().describe("How long after endsAt the project's tasks may run, in seconds; fixed at creation. Every project task ends by endsAt plus this"),
8665
8679
  closed: z48.boolean(),
@@ -16912,6 +16926,8 @@ export {
16912
16926
  isTerminalWalletBridgeStatus,
16913
16927
  AGENT_AVATAR_MAX_BYTES,
16914
16928
  buildAgentAvatarWriteMessage,
16929
+ ProjectNameSchema,
16930
+ ProjectGoalSchema,
16915
16931
  parseIsoDurationSeconds,
16916
16932
  parseScheduleCadence,
16917
16933
  WORKFLOW_STEP_LIMIT_MIN,
@@ -1,10 +1,10 @@
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-FMK32RJF.js";
5
- import "./chunk-RPGVVVJD.js";
6
- import "./chunk-GT5TOHOY.js";
7
- import "./chunk-XV6DBK4C.js";
4
+ } from "./chunk-QF2AWW7O.js";
5
+ import "./chunk-EDW4XCAY.js";
6
+ import "./chunk-6T24AGBE.js";
7
+ import "./chunk-RA3GGK5G.js";
8
8
  import {
9
9
  AGENT_COMPATIBILITY,
10
10
  assertAgentCompatibility,
@@ -14,19 +14,19 @@ import {
14
14
  channelView,
15
15
  loadAgentPolicy,
16
16
  openAgentChannels
17
- } from "./chunk-YIOZ7W3M.js";
17
+ } from "./chunk-MAIB4J42.js";
18
18
  import {
19
19
  getX402PolicyPath,
20
20
  loadX402Policy,
21
21
  rpcUrlForNetwork
22
- } from "./chunk-2AJZDGEL.js";
22
+ } from "./chunk-CS36JL4J.js";
23
23
  import {
24
24
  apiUrl,
25
25
  keystoreExists,
26
26
  loadKeystore,
27
27
  withChainId
28
- } from "./chunk-Q2FZSDFG.js";
29
- import "./chunk-VTMYCZLT.js";
28
+ } from "./chunk-7KBQDZWR.js";
29
+ import "./chunk-ZW6MI2F6.js";
30
30
  import "./chunk-YM4S6IE4.js";
31
31
  import {
32
32
  AGENT_VIEW_VERSION
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  listWorkerSubmissions,
14
14
  submitTaskFiles,
15
15
  taskRequirementsOf
16
- } from "./chunk-YAKNCBUK.js";
16
+ } from "./chunk-PCDHSI5Y.js";
17
17
  import {
18
18
  ComputeCreditError,
19
19
  applyComputeCreditSetup,
@@ -35,14 +35,14 @@ import {
35
35
  refusedPaidWrite,
36
36
  releasePendingComputePurchase,
37
37
  resolvePendingComputePurchases
38
- } from "./chunk-XV6DBK4C.js";
38
+ } from "./chunk-RA3GGK5G.js";
39
39
  import {
40
40
  signReadAuth
41
- } from "./chunk-PJAWRHHZ.js";
41
+ } from "./chunk-DTSONVE3.js";
42
42
  import {
43
43
  saveTaskAccessGrant,
44
44
  taskAccessGrantHeaders
45
- } from "./chunk-NTLOY7SP.js";
45
+ } from "./chunk-HVI5YS47.js";
46
46
  import {
47
47
  MPP_TEMPO_DEFAULT_VALIDITY_SECONDS,
48
48
  X402PayError,
@@ -60,7 +60,7 @@ import {
60
60
  setX402PolicyRuleEnabled,
61
61
  signSponsoredTempoTransfer,
62
62
  signTaskmarketFeePayment
63
- } from "./chunk-2AJZDGEL.js";
63
+ } from "./chunk-CS36JL4J.js";
64
64
  import {
65
65
  ApiError,
66
66
  KeystoreExistsError,
@@ -116,7 +116,7 @@ import {
116
116
  withErrorContext,
117
117
  withIdempotentWrite,
118
118
  withTapSignature
119
- } from "./chunk-Q2FZSDFG.js";
119
+ } from "./chunk-7KBQDZWR.js";
120
120
  import {
121
121
  AGENT_AVATAR_MAX_BYTES,
122
122
  AGENT_HIRES_ROLES,
@@ -172,6 +172,8 @@ import {
172
172
  PenaltyTo,
173
173
  PlatformTimeSeriesInputSchema,
174
174
  PostBugReportMessageInputSchema,
175
+ ProjectGoalSchema,
176
+ ProjectNameSchema,
175
177
  READ_AUTH_ADDRESS_HEADER,
176
178
  READ_AUTH_SIGNATURE_HEADER,
177
179
  REDACTED,
@@ -294,7 +296,7 @@ import {
294
296
  vaultCallGasLimit7702,
295
297
  verifierProviderId,
296
298
  verifiersUnsupportedOnChain
297
- } from "./chunk-VTMYCZLT.js";
299
+ } from "./chunk-ZW6MI2F6.js";
298
300
  import "./chunk-S7SJMJ2I.js";
299
301
 
300
302
  // src/index.ts
@@ -10347,7 +10349,7 @@ async function runAgentCommand(options) {
10347
10349
  try {
10348
10350
  const { assertAgentCompatibility } = await import("./compatibility-636WJOEX.js");
10349
10351
  const pi = assertAgentCompatibility();
10350
- const { runAgent } = await import("./launch-DMKAPDO4.js");
10352
+ const { runAgent } = await import("./launch-YVKAONR5.js");
10351
10353
  result = await runAgent({
10352
10354
  model: options.model,
10353
10355
  pi,
@@ -10772,13 +10774,13 @@ function agentManagementCommands() {
10772
10774
  const status = new Command53("status").description(
10773
10775
  "Show the agent channels (locked, charged, refundable), purchases with an unknown outcome, the sandbox and compute credit. Reads only."
10774
10776
  ).action(async () => {
10775
- const { collectAgentStatus } = await import("./status-GRLQL23D.js");
10777
+ const { collectAgentStatus } = await import("./status-NCA4MCIV.js");
10776
10778
  await run(() => collectAgentStatus());
10777
10779
  });
10778
10780
  const doctor = new Command53("doctor").description(
10779
10781
  "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."
10780
10782
  ).action(async () => {
10781
- const { runDoctor } = await import("./doctor-HENBO5YV.js");
10783
+ const { runDoctor } = await import("./doctor-3VKAO7ZW.js");
10782
10784
  const report = await run(() => runDoctor());
10783
10785
  if (report && !report.ok) process.exitCode = 1;
10784
10786
  });
@@ -10789,7 +10791,7 @@ function agentManagementCommands() {
10789
10791
  "Reconcile the open purchases of this channel, as status lists it; also reaches retired channels"
10790
10792
  ).action(
10791
10793
  async (invocationId, options) => {
10792
- const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-6A5U2Q7Q.js");
10794
+ const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-YBEASFA3.js");
10793
10795
  const choice = { rail: options.rail, channel: options.channel };
10794
10796
  if (invocationId !== void 0) {
10795
10797
  await run(() => reconcileInvocation(invocationId, { choice }));
@@ -10821,7 +10823,7 @@ function agentManagementCommands() {
10821
10823
  `Not a USDC amount: ${options.amount} (digits, at most 6 decimals)`
10822
10824
  );
10823
10825
  }
10824
- const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-4IFPTRDY.js");
10826
+ const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-5V4244GL.js");
10825
10827
  const { rails } = await openAgentChannels();
10826
10828
  const result = await requestTopUp(selectRail(rails, options.rail), amount);
10827
10829
  return {
@@ -10841,8 +10843,8 @@ function agentManagementCommands() {
10841
10843
  await run(async () => {
10842
10844
  await requireExperimental();
10843
10845
  const { AGENT_VIEW_VERSION } = await import("./budget-view-J6L7X6EY.js");
10844
- const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-4IFPTRDY.js");
10845
- const { reconcileLeasedPurchase } = await import("./reconcile-6A5U2Q7Q.js");
10846
+ const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-5V4244GL.js");
10847
+ const { reconcileLeasedPurchase } = await import("./reconcile-YBEASFA3.js");
10846
10848
  const opened = await openAgentChannels();
10847
10849
  const { rail, retired } = selectChannel(opened, options);
10848
10850
  const result = await closeChannel(
@@ -10896,7 +10898,7 @@ function agentManagementCommands() {
10896
10898
  async (options) => {
10897
10899
  await run(async () => {
10898
10900
  await requireExperimental();
10899
- const { runPull } = await import("./sync-pull-MSYWP5WU.js");
10901
+ const { runPull } = await import("./sync-pull-WOKOY65R.js");
10900
10902
  const { terminalPrompter } = await import("./prompter-LSICEYSQ.js");
10901
10903
  return runPull(options, {
10902
10904
  interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
@@ -21742,19 +21744,31 @@ var projectCreateCommand = new Command124("create").description(
21742
21744
  ).option(
21743
21745
  "--task-grace <duration>",
21744
21746
  "How long after the end date the project's tasks may run, fixed at creation: 0, or up to 90d (default 30d). Every project task must end by then, and backers can claim once the last one ends"
21745
- ).action(async (opts) => {
21746
- const budget = parseAmount(opts.budget, "--budget");
21747
- if (typeof budget !== "string") return void printError(budget.error);
21748
- const endsAt = parseEndsAt(opts.endsAt);
21749
- if (typeof endsAt !== "string") return void printError(endsAt.error);
21750
- const taskGraceSecs = opts.taskGrace === void 0 ? void 0 : parseTaskGrace(opts.taskGrace);
21751
- if (typeof taskGraceSecs === "object") return void printError(taskGraceSecs.error);
21752
- await postProjectWrite(
21753
- "/api/projects",
21754
- { budget, endsAt, ...taskGraceSecs === void 0 ? {} : { taskGraceSecs } },
21755
- { maxAmount: budget }
21756
- );
21757
- });
21747
+ ).option("--name <text>", "A short name for the project: 1 to 80 characters of plain text").option("--goal <text>", "What the project is for: up to 500 characters of plain text").action(
21748
+ async (opts) => {
21749
+ const name = opts.name === void 0 ? void 0 : ProjectNameSchema.safeParse(opts.name);
21750
+ if (name && !name.success) return void printError(`--name: ${name.error.issues[0].message}`);
21751
+ const goal = opts.goal === void 0 ? void 0 : ProjectGoalSchema.safeParse(opts.goal);
21752
+ if (goal && !goal.success) return void printError(`--goal: ${goal.error.issues[0].message}`);
21753
+ const budget = parseAmount(opts.budget, "--budget");
21754
+ if (typeof budget !== "string") return void printError(budget.error);
21755
+ const endsAt = parseEndsAt(opts.endsAt);
21756
+ if (typeof endsAt !== "string") return void printError(endsAt.error);
21757
+ const taskGraceSecs = opts.taskGrace === void 0 ? void 0 : parseTaskGrace(opts.taskGrace);
21758
+ if (typeof taskGraceSecs === "object") return void printError(taskGraceSecs.error);
21759
+ await postProjectWrite(
21760
+ "/api/projects",
21761
+ {
21762
+ budget,
21763
+ endsAt,
21764
+ ...taskGraceSecs === void 0 ? {} : { taskGraceSecs },
21765
+ ...name?.success ? { name: name.data } : {},
21766
+ ...goal?.success ? { goal: goal.data } : {}
21767
+ },
21768
+ { maxAmount: budget }
21769
+ );
21770
+ }
21771
+ );
21758
21772
 
21759
21773
  // src/commands/project/fund.ts
21760
21774
  import { Command as Command125 } from "commander";
@@ -38,7 +38,7 @@ import {
38
38
  sha256Hex,
39
39
  specHash,
40
40
  taskStage
41
- } from "./chunk-RPGVVVJD.js";
41
+ } from "./chunk-EDW4XCAY.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-CNWA5PU3.js";
50
+ } from "./chunk-D26Z36NX.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-GT5TOHOY.js";
62
+ } from "./chunk-6T24AGBE.js";
63
63
  import {
64
64
  TaskOperationError,
65
65
  authorizeUploads,
@@ -78,7 +78,7 @@ import {
78
78
  requestArtifactUpload,
79
79
  submitUploadedArtifacts,
80
80
  taskAwardsOf
81
- } from "./chunk-YAKNCBUK.js";
81
+ } from "./chunk-PCDHSI5Y.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-XV6DBK4C.js";
91
+ } from "./chunk-RA3GGK5G.js";
92
92
  import {
93
93
  signReadAuth
94
- } from "./chunk-PJAWRHHZ.js";
94
+ } from "./chunk-DTSONVE3.js";
95
95
  import {
96
96
  taskAccessGrantHeaders
97
- } from "./chunk-NTLOY7SP.js";
97
+ } from "./chunk-HVI5YS47.js";
98
98
  import {
99
99
  MAX_RETIRED_RAILS,
100
100
  WORKSPACE_CONSENT_VERSION,
@@ -114,7 +114,7 @@ import {
114
114
  routeOfCatalogRow,
115
115
  saveAgentPolicy,
116
116
  settledRetiredRails
117
- } from "./chunk-YIOZ7W3M.js";
117
+ } from "./chunk-MAIB4J42.js";
118
118
  import {
119
119
  BASE_CHANNEL_RAIL_ID,
120
120
  createBaseChannelPayer,
@@ -128,13 +128,13 @@ import {
128
128
  rpcUrlForNetwork,
129
129
  saveX402Policy,
130
130
  x402SpendWindowAvailability
131
- } from "./chunk-2AJZDGEL.js";
131
+ } from "./chunk-CS36JL4J.js";
132
132
  import {
133
133
  apiUrl,
134
134
  keystoreExists,
135
135
  loadKeystore,
136
136
  selectedNetwork
137
- } from "./chunk-Q2FZSDFG.js";
137
+ } from "./chunk-7KBQDZWR.js";
138
138
  import {
139
139
  IntentStatusResponseSchema,
140
140
  NetworkChainInfoSchema,
@@ -143,7 +143,7 @@ import {
143
143
  isRecordingPendingResponse,
144
144
  piCodingAgentTools,
145
145
  taskmarketChain
146
- } from "./chunk-VTMYCZLT.js";
146
+ } from "./chunk-ZW6MI2F6.js";
147
147
  import {
148
148
  AgentLaunchError
149
149
  } from "./chunk-YM4S6IE4.js";
@@ -53198,8 +53198,20 @@ var ChainIdSchema2 = external_exports.number().int().positive().describe("The ch
53198
53198
  var ProjectIdSchema = external_exports.coerce.number().int().positive();
53199
53199
  var PROJECT_MAX_TASK_GRACE_SECS = 90 * 24 * 60 * 60;
53200
53200
  var PROJECT_DEFAULT_TASK_GRACE_SECS = 30 * 24 * 60 * 60;
53201
+ var PROJECT_NAME_MAX_LENGTH = 80;
53202
+ var PROJECT_GOAL_MAX_LENGTH = 500;
53203
+ var CONTROL_CHARACTERS = /[\u0000-\u001F\u007F-\u009F]/;
53204
+ function plainText(max, noun) {
53205
+ return external_exports.string().trim().min(1, `The ${noun} cannot be empty`).max(max, `The ${noun} can be at most ${max} characters`).refine((value) => !CONTROL_CHARACTERS.test(value), {
53206
+ message: `The ${noun} cannot contain control characters or line breaks`
53207
+ });
53208
+ }
53209
+ var ProjectNameSchema = plainText(PROJECT_NAME_MAX_LENGTH, "project name").describe(`A short plain-text name, 1 to ${PROJECT_NAME_MAX_LENGTH} characters after trimming; kept by Taskmarket, not on the chain`);
53210
+ var ProjectGoalSchema = plainText(PROJECT_GOAL_MAX_LENGTH, "project goal").describe(`What the project is for, plain text, up to ${PROJECT_GOAL_MAX_LENGTH} characters after trimming; kept by Taskmarket, not on the chain`);
53201
53211
  var ProjectCreateSchema = external_exports.object({
53202
53212
  chainId: ChainIdSchema2.optional(),
53213
+ name: ProjectNameSchema.optional(),
53214
+ goal: ProjectGoalSchema.optional(),
53203
53215
  budget: PositiveUsdcBaseUnitsSchema.describe("The opening budget, in base units of the task payment stablecoin; paid with this request"),
53204
53216
  endsAt: external_exports.string().datetime({ offset: true }).describe("When the project stops funding new tasks (ISO 8601); must be in the future and at most 365 days away"),
53205
53217
  taskGraceSecs: external_exports.number().int().min(0).max(PROJECT_MAX_TASK_GRACE_SECS).default(PROJECT_DEFAULT_TASK_GRACE_SECS).describe("How long after endsAt the project's tasks may run, in seconds: 0 to 90 days, 30 days when omitted. Fixed at creation. Every project task must end by endsAt plus this, so backers can claim once the last task ends.")
@@ -53255,6 +53267,8 @@ var ProjectSummarySchema = external_exports.object({
53255
53267
  chainId: external_exports.number(),
53256
53268
  projectId: external_exports.number(),
53257
53269
  owner: external_exports.string(),
53270
+ name: external_exports.string().nullable().optional().describe("The name its owner gave it; null for a project opened without one"),
53271
+ goal: external_exports.string().nullable().optional().describe("What the project is for, in its owner's words; null when none was given"),
53258
53272
  endsAt: external_exports.string(),
53259
53273
  taskGraceSecs: external_exports.number().describe("How long after endsAt the project's tasks may run, in seconds; fixed at creation. Every project task ends by endsAt plus this"),
53260
53274
  closed: external_exports.boolean(),
@@ -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-PJAWRHHZ.js";
5
- import "./chunk-Q2FZSDFG.js";
6
- import "./chunk-VTMYCZLT.js";
4
+ } from "./chunk-DTSONVE3.js";
5
+ import "./chunk-7KBQDZWR.js";
6
+ import "./chunk-ZW6MI2F6.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-YIOZ7W3M.js";
6
+ } from "./chunk-MAIB4J42.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-2AJZDGEL.js";
13
- import "./chunk-Q2FZSDFG.js";
14
- import "./chunk-VTMYCZLT.js";
12
+ } from "./chunk-CS36JL4J.js";
13
+ import "./chunk-7KBQDZWR.js";
14
+ import "./chunk-ZW6MI2F6.js";
15
15
  import {
16
16
  AgentLaunchError
17
17
  } from "./chunk-YM4S6IE4.js";
@@ -4,14 +4,14 @@ import {
4
4
  listSandboxes,
5
5
  readSyncStatus,
6
6
  readTaskStatus
7
- } from "./chunk-FMK32RJF.js";
8
- import "./chunk-RPGVVVJD.js";
9
- import "./chunk-GT5TOHOY.js";
10
- import "./chunk-XV6DBK4C.js";
11
- import "./chunk-YIOZ7W3M.js";
12
- import "./chunk-2AJZDGEL.js";
13
- import "./chunk-Q2FZSDFG.js";
14
- import "./chunk-VTMYCZLT.js";
7
+ } from "./chunk-QF2AWW7O.js";
8
+ import "./chunk-EDW4XCAY.js";
9
+ import "./chunk-6T24AGBE.js";
10
+ import "./chunk-RA3GGK5G.js";
11
+ import "./chunk-MAIB4J42.js";
12
+ import "./chunk-CS36JL4J.js";
13
+ import "./chunk-7KBQDZWR.js";
14
+ import "./chunk-ZW6MI2F6.js";
15
15
  import "./chunk-YM4S6IE4.js";
16
16
  import "./chunk-XJOB4NMV.js";
17
17
  import "./chunk-S7SJMJ2I.js";
@@ -11,7 +11,7 @@ import {
11
11
  savedWorkspace,
12
12
  summarize,
13
13
  unsavedPaths
14
- } from "./chunk-CNWA5PU3.js";
14
+ } from "./chunk-D26Z36NX.js";
15
15
  import {
16
16
  BrokerConnector,
17
17
  SandboxUnavailableError,
@@ -27,12 +27,12 @@ import {
27
27
  releaseClaim,
28
28
  unresolvedCount,
29
29
  updateSyncState
30
- } from "./chunk-GT5TOHOY.js";
30
+ } from "./chunk-6T24AGBE.js";
31
31
  import {
32
32
  apiUrl,
33
33
  loadKeystore
34
- } from "./chunk-Q2FZSDFG.js";
35
- import "./chunk-VTMYCZLT.js";
34
+ } from "./chunk-7KBQDZWR.js";
35
+ import "./chunk-ZW6MI2F6.js";
36
36
  import {
37
37
  AgentLaunchError
38
38
  } from "./chunk-YM4S6IE4.js";
@@ -3,8 +3,8 @@ import {
3
3
  loadTaskAccessGrant,
4
4
  saveTaskAccessGrant,
5
5
  taskAccessGrantHeaders
6
- } from "./chunk-NTLOY7SP.js";
7
- import "./chunk-VTMYCZLT.js";
6
+ } from "./chunk-HVI5YS47.js";
7
+ import "./chunk-ZW6MI2F6.js";
8
8
  import "./chunk-S7SJMJ2I.js";
9
9
  export {
10
10
  loadTaskAccessGrant,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucid-agents/taskmarket",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "taskmarket": "./dist/index.js"
@@ -30,12 +30,12 @@
30
30
  "tsx": "^4.7.0",
31
31
  "typescript": "^5.3.3",
32
32
  "vitest": "^2.0.0",
33
- "@taskmarket/agent-host": "0.0.1",
34
33
  "@taskmarket/contracts": "0.0.0",
34
+ "@taskmarket/agent-host": "0.0.1",
35
35
  "@taskmarket/eslint-config": "0.0.0",
36
+ "@taskmarket/prettier-config": "0.0.0",
36
37
  "@taskmarket/remote-tools": "0.0.1",
37
38
  "@taskmarket/shared": "2.0.0",
38
- "@taskmarket/prettier-config": "0.0.0",
39
39
  "@taskmarket/solana-sponsored-client": "0.1.0",
40
40
  "@taskmarket/x402-payer": "0.1.0"
41
41
  },