@lucid-agents/taskmarket 1.47.0 → 1.49.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-ENHCGR7K.js → api-3AM2K2OD.js} +2 -2
  3. package/dist/{channels-LX2DTMKZ.js → channels-UVUKKHEH.js} +4 -4
  4. package/dist/{chunk-4MAQWPJ2.js → chunk-4PIW55SU.js} +1 -1
  5. package/dist/{chunk-RO5AHGHC.js → chunk-5FEFXZWX.js} +1 -1
  6. package/dist/{chunk-WOPSQ2GZ.js → chunk-BD7EUFMK.js} +1 -1
  7. package/dist/{chunk-AS6EFS2V.js → chunk-E7DQ6PHQ.js} +6 -13
  8. package/dist/{chunk-TUP4MTW6.js → chunk-IPLFBE4Z.js} +318 -88
  9. package/dist/{chunk-XRM455ZG.js → chunk-JJWVZVQL.js} +1 -1
  10. package/dist/{chunk-54J54BK7.js → chunk-JPFNNGT5.js} +5 -5
  11. package/dist/{chunk-V2BCPGOB.js → chunk-KMDMP37P.js} +8 -8
  12. package/dist/{chunk-O53R76N3.js → chunk-QASNNRSL.js} +11236 -10903
  13. package/dist/{chunk-AMT2L4BR.js → chunk-VROY6UJU.js} +3 -3
  14. package/dist/{chunk-PDVDVVVF.js → chunk-ZBIB5Z72.js} +2 -2
  15. package/dist/{chunk-PPJNXEWM.js → chunk-ZI6J2FVP.js} +3 -3
  16. package/dist/{doctor-PEAKIDKS.js → doctor-62ESHY26.js} +9 -8
  17. package/dist/index.js +970 -619
  18. package/dist/{launch-CEJWCOQA.js → launch-QN325T4P.js} +11 -11
  19. package/dist/pi-extensions/xgate.cjs +819 -300
  20. package/dist/{read-auth-524RVF3G.js → read-auth-YVFCEAQN.js} +3 -3
  21. package/dist/{reconcile-GMYKLZTG.js → reconcile-ZQUH7Z7P.js} +4 -4
  22. package/dist/{status-Y6JAL4DR.js → status-BCKUXLAQ.js} +9 -8
  23. package/dist/{sync-pull-YFIWHI4H.js → sync-pull-YDX4D4XW.js} +4 -4
  24. package/dist/{task-access-grants-GXJ6WOQK.js → task-access-grants-Z2P4RHFL.js} +2 -2
  25. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "taskmarket": "1.47.0",
2
+ "taskmarket": "1.49.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-AS6EFS2V.js";
18
- import "./chunk-O53R76N3.js";
17
+ } from "./chunk-E7DQ6PHQ.js";
18
+ import "./chunk-QASNNRSL.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-AMT2L4BR.js";
14
- import "./chunk-XRM455ZG.js";
15
- import "./chunk-AS6EFS2V.js";
16
- import "./chunk-O53R76N3.js";
13
+ } from "./chunk-VROY6UJU.js";
14
+ import "./chunk-JJWVZVQL.js";
15
+ import "./chunk-E7DQ6PHQ.js";
16
+ import "./chunk-QASNNRSL.js";
17
17
  import "./chunk-YM4S6IE4.js";
18
18
  import "./chunk-XJOB4NMV.js";
19
19
  import "./chunk-S7SJMJ2I.js";
@@ -22,7 +22,7 @@ import {
22
22
  unresolvedCount,
23
23
  updateSyncState,
24
24
  uploadWorkspace
25
- } from "./chunk-RO5AHGHC.js";
25
+ } from "./chunk-5FEFXZWX.js";
26
26
  import {
27
27
  AgentLaunchError
28
28
  } from "./chunk-YM4S6IE4.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-O53R76N3.js";
4
+ } from "./chunk-QASNNRSL.js";
5
5
  import {
6
6
  AgentLaunchError
7
7
  } 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-O53R76N3.js";
5
+ } from "./chunk-QASNNRSL.js";
6
6
 
7
7
  // src/lib/task-access-grants.ts
8
8
  import { promises as fs } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  paymentProtocolFor,
10
10
  taskmarketChain,
11
11
  verifierProviderId
12
- } from "./chunk-O53R76N3.js";
12
+ } from "./chunk-QASNNRSL.js";
13
13
 
14
14
  // src/lib/idempotency.ts
15
15
  import { randomUUID } from "crypto";
@@ -465,13 +465,7 @@ function validateTapSignatureAgent(value) {
465
465
  }
466
466
  return trimmed;
467
467
  }
468
- function simulatedTapSignatureAgent(apiBase, chainId) {
469
- return `${new URL(apiBase).origin}/api/tap/simulated/${chainId}`;
470
- }
471
- function tapSignatureAgentFor(stored, apiBase = apiUrl) {
472
- if (stored.simulated === true && stored.chainId !== void 0) {
473
- return simulatedTapSignatureAgent(apiBase(), stored.chainId);
474
- }
468
+ function tapSignatureAgentFor(stored) {
475
469
  return stored.signatureAgent;
476
470
  }
477
471
  var TAP_CREATE_ALGORITHMS = ["ecdsa-p256-sha256", "ed25519"];
@@ -503,18 +497,16 @@ function tapKeySummary(stored) {
503
497
  importedAt: stored.importedAt,
504
498
  /** The chain the CLI enrolled the key on, or null when it did not enrol it. */
505
499
  chainId: stored.chainId ?? null,
506
- /** True for a key id from the simulated directory, null when the CLI did not enrol it. */
507
- simulated: stored.simulated ?? null,
508
500
  /** The directory URL given at import for `Signature-Agent`, or null when none was. */
509
501
  signatureAgent: stored.signatureAgent ?? null
510
502
  };
511
503
  }
512
- async function loadTapSigningKey(keystore, deviceKey, taskId, apiBase = apiUrl) {
504
+ async function loadTapSigningKey(keystore, deviceKey, taskId) {
513
505
  const stored = keystore.tapKey;
514
506
  if (!stored) return void 0;
515
507
  if (stored.keyId === null) throw new TapKeyNotEnrolledError(taskId);
516
508
  const dek = deviceKey ? await deviceKey() : await fetchDeviceKey(keystore.deviceId, keystore.apiToken, keystore.keyServerUrl);
517
- const signatureAgent = tapSignatureAgentFor(stored, apiBase);
509
+ const signatureAgent = tapSignatureAgentFor(stored);
518
510
  return {
519
511
  keyId: stored.keyId,
520
512
  alg: stored.alg,
@@ -678,7 +670,7 @@ var TapKeyNotEnrolledError = class extends Error {
678
670
  code = "tap_key_not_enrolled";
679
671
  constructor(taskId) {
680
672
  super(
681
- `${taskId ? `Task ${taskId} requires TAP verification and the` : "The"} TAP key is not enrolled: it has no key id. Enrol it with 'taskmarket tap enrol' on a chain that uses the simulated directory; enrolment with the verifier is not available from the CLI yet. Nothing was sent.`
673
+ `${taskId ? `Task ${taskId} requires TAP verification and the` : "The"} TAP key is not enrolled: it has no key id. Enrol it with 'taskmarket tap enrol', or import a key the verifier issued with 'taskmarket tap import'. Nothing was sent.`
682
674
  );
683
675
  this.name = "TapKeyNotEnrolledError";
684
676
  }
@@ -913,6 +905,7 @@ async function apiPut(path2, body, options) {
913
905
  }
914
906
 
915
907
  export {
908
+ getKeystorePath,
916
909
  generateKeypair,
917
910
  encryptPrivateKey,
918
911
  decryptPrivateKey,