@lucid-agents/taskmarket 1.44.0 → 1.45.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-QATTK6I6.js → api-PZVGK3VQ.js} +2 -2
  3. package/dist/{channels-AH2WHLMC.js → channels-LDMZ3OEM.js} +4 -4
  4. package/dist/{chunk-AZMCG2LI.js → chunk-5NILW5UT.js} +1 -1
  5. package/dist/{chunk-IVCJPX7J.js → chunk-6YFLKQ4Q.js} +4648 -3747
  6. package/dist/{chunk-NLHDU4CH.js → chunk-FHDTYW6C.js} +1 -1
  7. package/dist/{chunk-FUHULPDT.js → chunk-GIVPCMJ3.js} +1 -1
  8. package/dist/{chunk-YENJWEM7.js → chunk-JPVBWX3Q.js} +3 -3
  9. package/dist/{chunk-ZPQLJAG4.js → chunk-KY4JM6NG.js} +3 -3
  10. package/dist/{chunk-XBPINLPI.js → chunk-PRYNO5S7.js} +1 -1
  11. package/dist/{chunk-CH3GXKIO.js → chunk-QUY6764O.js} +2 -2
  12. package/dist/{chunk-J2TAHVUS.js → chunk-QYXBVFVX.js} +5 -5
  13. package/dist/{chunk-3HR7XRLE.js → chunk-THIC75V5.js} +3 -3
  14. package/dist/{chunk-LETSESYQ.js → chunk-TPCXOWSC.js} +8 -8
  15. package/dist/{chunk-3NPMVKNZ.js → chunk-XLJRCGOJ.js} +1 -1
  16. package/dist/{doctor-WW54ZCQR.js → doctor-HV5QQDGU.js} +8 -8
  17. package/dist/index.js +582 -182
  18. package/dist/{launch-FQFOZYIN.js → launch-56RHQCWT.js} +11 -11
  19. package/dist/pi-extensions/xgate.cjs +32 -1
  20. package/dist/{read-auth-B7NFDF6U.js → read-auth-ZJBQQVGO.js} +3 -3
  21. package/dist/{reconcile-KHSXUVR3.js → reconcile-PQXSATCK.js} +4 -4
  22. package/dist/{status-IMWQR4AR.js → status-EBMZGDFS.js} +8 -8
  23. package/dist/{sync-pull-EN7CFU3J.js → sync-pull-423LBSPO.js} +4 -4
  24. package/dist/{task-access-grants-IBD3JFGD.js → task-access-grants-KWTKM3NP.js} +2 -2
  25. package/package.json +4 -4
@@ -38,7 +38,7 @@ import {
38
38
  sha256Hex,
39
39
  specHash,
40
40
  taskStage
41
- } from "./chunk-YENJWEM7.js";
41
+ } from "./chunk-JPVBWX3Q.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-XBPINLPI.js";
50
+ } from "./chunk-PRYNO5S7.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-3NPMVKNZ.js";
62
+ } from "./chunk-XLJRCGOJ.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-LETSESYQ.js";
81
+ } from "./chunk-TPCXOWSC.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-ZPQLJAG4.js";
91
+ } from "./chunk-KY4JM6NG.js";
92
92
  import {
93
93
  signReadAuth
94
- } from "./chunk-CH3GXKIO.js";
94
+ } from "./chunk-QUY6764O.js";
95
95
  import {
96
96
  taskAccessGrantHeaders
97
- } from "./chunk-NLHDU4CH.js";
97
+ } from "./chunk-FHDTYW6C.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-3HR7XRLE.js";
121
+ } from "./chunk-THIC75V5.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-FUHULPDT.js";
135
+ } from "./chunk-GIVPCMJ3.js";
136
136
  import {
137
137
  apiUrl,
138
138
  keystoreExists,
139
139
  loadKeystore,
140
140
  selectedNetwork
141
- } from "./chunk-AZMCG2LI.js";
141
+ } from "./chunk-5NILW5UT.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-IVCJPX7J.js";
150
+ } from "./chunk-6YFLKQ4Q.js";
151
151
  import {
152
152
  AgentLaunchError
153
153
  } from "./chunk-YM4S6IE4.js";
@@ -8900,15 +8900,26 @@ var AGENT_PLATFORM_COMPONENTS = [
8900
8900
  "memory"
8901
8901
  ];
8902
8902
  var AgentPlatformComponentSchema = external_exports.enum(AGENT_PLATFORM_COMPONENTS);
8903
+ var AGENT_REPLY_SUGGESTION_MAX = 3;
8904
+ var AGENT_REPLY_SUGGESTION_MAX_LENGTH = 60;
8905
+ var cleanReplySuggestion = (text3) => text3.replace(new RegExp("\\p{Cf}", "gu"), "").replace(/[\p{Cc}\p{Zl}\p{Zp}]/gu, " ").replace(/\s+/g, " ").trim();
8906
+ var ReplySuggestionSchema = external_exports.string().transform(cleanReplySuggestion).pipe(external_exports.string().min(1).max(AGENT_REPLY_SUGGESTION_MAX_LENGTH));
8903
8907
  var AgentPlatformToolInputSchemas = {
8904
8908
  platform_status: external_exports.object({}).strict(),
8905
- ui_show: external_exports.object({ component: AgentPlatformComponentSchema, reason: external_exports.string().trim().min(1).max(500) }).strict()
8909
+ ui_show: external_exports.object({ component: AgentPlatformComponentSchema, reason: external_exports.string().trim().min(1).max(500) }).strict(),
8910
+ suggest_replies: external_exports.object({
8911
+ suggestions: external_exports.array(ReplySuggestionSchema).min(1).max(AGENT_REPLY_SUGGESTION_MAX).transform((items) => items.filter((item, index) => items.indexOf(item) === index))
8912
+ }).strict()
8906
8913
  };
8907
8914
  var AgentUiCardSchema = external_exports.object({
8908
8915
  component: AgentPlatformComponentSchema,
8909
8916
  reason: external_exports.string().max(500),
8910
8917
  tainted: external_exports.boolean()
8911
8918
  });
8919
+ var AgentReplySuggestionsSchema = external_exports.object({
8920
+ suggestions: external_exports.array(external_exports.string()).min(1).max(AGENT_REPLY_SUGGESTION_MAX),
8921
+ tainted: external_exports.boolean()
8922
+ });
8912
8923
  var AgentPlatformStatusSchema = external_exports.object({
8913
8924
  version: external_exports.literal(1),
8914
8925
  identity: external_exports.object({
@@ -9595,6 +9606,8 @@ var LauncherAccountSchema = external_exports.object({
9595
9606
  });
9596
9607
  var LauncherTurnSchema = LauncherJobSchema.extend({
9597
9608
  uiCards: external_exports.array(AgentUiCardSchema).max(3).optional(),
9609
+ /** Next steps the agent offered under this reply; absent when it read outside content. */
9610
+ suggestions: external_exports.array(external_exports.string()).max(AGENT_REPLY_SUGGESTION_MAX).optional(),
9598
9611
  delegations: external_exports.array(AgentDelegationSchema).optional(),
9599
9612
  sequence: external_exports.number().int(),
9600
9613
  requestKey: external_exports.string().uuid(),
@@ -10423,6 +10436,24 @@ var PLATFORM_TOOLS = [
10423
10436
  required: ["component", "reason"],
10424
10437
  additionalProperties: false
10425
10438
  }
10439
+ },
10440
+ {
10441
+ type: "function",
10442
+ name: "suggest_replies",
10443
+ description: `Offer your owner one to ${AGENT_REPLY_SUGGESTION_MAX} short next steps under your reply, as plain text of at most ${AGENT_REPLY_SUGGESTION_MAX_LENGTH} characters each, written as the owner would say it ("Add dates to the plan"). The owner taps one to fill their message box; it is never sent for them. Call at most once per reply, after your answer is written; a second call keeps the first. Not shown when this reply read text another party wrote (market listings, email, web results, another agent's output, an imported skill) or answers a request that did not come from your owner; the call is still accepted.`,
10444
+ parameters: {
10445
+ type: "object",
10446
+ properties: {
10447
+ suggestions: {
10448
+ type: "array",
10449
+ items: { type: "string", maxLength: AGENT_REPLY_SUGGESTION_MAX_LENGTH },
10450
+ minItems: 1,
10451
+ maxItems: AGENT_REPLY_SUGGESTION_MAX
10452
+ }
10453
+ },
10454
+ required: ["suggestions"],
10455
+ additionalProperties: false
10456
+ }
10426
10457
  }
10427
10458
  ];
10428
10459
  var WORKSPACE_TOOLS = [
@@ -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-CH3GXKIO.js";
5
- import "./chunk-AZMCG2LI.js";
6
- import "./chunk-IVCJPX7J.js";
4
+ } from "./chunk-QUY6764O.js";
5
+ import "./chunk-5NILW5UT.js";
6
+ import "./chunk-6YFLKQ4Q.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-3HR7XRLE.js";
6
+ } from "./chunk-THIC75V5.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-FUHULPDT.js";
13
- import "./chunk-AZMCG2LI.js";
14
- import "./chunk-IVCJPX7J.js";
12
+ } from "./chunk-GIVPCMJ3.js";
13
+ import "./chunk-5NILW5UT.js";
14
+ import "./chunk-6YFLKQ4Q.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-J2TAHVUS.js";
8
- import "./chunk-YENJWEM7.js";
9
- import "./chunk-3NPMVKNZ.js";
10
- import "./chunk-ZPQLJAG4.js";
11
- import "./chunk-3HR7XRLE.js";
12
- import "./chunk-FUHULPDT.js";
13
- import "./chunk-AZMCG2LI.js";
14
- import "./chunk-IVCJPX7J.js";
7
+ } from "./chunk-QYXBVFVX.js";
8
+ import "./chunk-JPVBWX3Q.js";
9
+ import "./chunk-XLJRCGOJ.js";
10
+ import "./chunk-KY4JM6NG.js";
11
+ import "./chunk-THIC75V5.js";
12
+ import "./chunk-GIVPCMJ3.js";
13
+ import "./chunk-5NILW5UT.js";
14
+ import "./chunk-6YFLKQ4Q.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-XBPINLPI.js";
14
+ } from "./chunk-PRYNO5S7.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-3NPMVKNZ.js";
30
+ } from "./chunk-XLJRCGOJ.js";
31
31
  import {
32
32
  apiUrl,
33
33
  loadKeystore
34
- } from "./chunk-AZMCG2LI.js";
35
- import "./chunk-IVCJPX7J.js";
34
+ } from "./chunk-5NILW5UT.js";
35
+ import "./chunk-6YFLKQ4Q.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-NLHDU4CH.js";
7
- import "./chunk-IVCJPX7J.js";
6
+ } from "./chunk-FHDTYW6C.js";
7
+ import "./chunk-6YFLKQ4Q.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.44.0",
3
+ "version": "1.45.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "taskmarket": "./dist/index.js"
@@ -31,13 +31,13 @@
31
31
  "typescript": "^5.3.3",
32
32
  "vitest": "^2.0.0",
33
33
  "@taskmarket/agent-host": "0.0.1",
34
- "@taskmarket/contracts": "0.0.0",
35
34
  "@taskmarket/eslint-config": "0.0.0",
35
+ "@taskmarket/contracts": "0.0.0",
36
36
  "@taskmarket/prettier-config": "0.0.0",
37
37
  "@taskmarket/remote-tools": "0.0.1",
38
38
  "@taskmarket/shared": "2.0.0",
39
- "@taskmarket/solana-sponsored-client": "0.1.0",
40
- "@taskmarket/x402-payer": "0.1.0"
39
+ "@taskmarket/x402-payer": "0.1.0",
40
+ "@taskmarket/solana-sponsored-client": "0.1.0"
41
41
  },
42
42
  "files": [
43
43
  "dist",