@lucid-agents/taskmarket 1.8.0 → 1.9.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.
- package/dist/index.js +115 -48
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
|
-
import { Command as
|
|
9
|
+
import { Command as Command68 } from "commander";
|
|
10
10
|
import { createRequire } from "module";
|
|
11
11
|
|
|
12
12
|
// src/commands/init.ts
|
|
@@ -4499,6 +4499,57 @@ var TaskInboxResponseSchema = external_exports.object({
|
|
|
4499
4499
|
// than a separate notification-center feature.
|
|
4500
4500
|
invitedPrivateTasks: external_exports.array(TaskResponseSchema).optional().default([])
|
|
4501
4501
|
});
|
|
4502
|
+
var TaskActionIntent = external_exports.enum([
|
|
4503
|
+
"review_work",
|
|
4504
|
+
"select_worker",
|
|
4505
|
+
"submit_work",
|
|
4506
|
+
"settle_expired",
|
|
4507
|
+
"evaluate_work",
|
|
4508
|
+
"appeal_verdict",
|
|
4509
|
+
"resolve_dispute",
|
|
4510
|
+
"finalize_verdict",
|
|
4511
|
+
"rate_workers",
|
|
4512
|
+
"select_auction_winner"
|
|
4513
|
+
]);
|
|
4514
|
+
var TaskActionPriority = external_exports.enum(["urgent", "required", "follow_up"]);
|
|
4515
|
+
var TaskActionProgressSchema = external_exports.object({
|
|
4516
|
+
completed: external_exports.number().int().nonnegative(),
|
|
4517
|
+
total: external_exports.number().int().positive()
|
|
4518
|
+
}).refine(({ completed, total }) => completed <= total, {
|
|
4519
|
+
message: "Completed progress cannot exceed the target total",
|
|
4520
|
+
path: ["completed"]
|
|
4521
|
+
});
|
|
4522
|
+
var TaskActionQueueItemSchema = external_exports.object({
|
|
4523
|
+
id: external_exports.string(),
|
|
4524
|
+
task: TaskResponseSchema,
|
|
4525
|
+
role: PendingActionSchema.shape.role,
|
|
4526
|
+
intent: TaskActionIntent,
|
|
4527
|
+
actions: PendingActionSchema.array().min(1),
|
|
4528
|
+
priority: TaskActionPriority,
|
|
4529
|
+
dueAt: external_exports.string().nullable(),
|
|
4530
|
+
progress: TaskActionProgressSchema.nullable().optional()
|
|
4531
|
+
});
|
|
4532
|
+
var TaskActionWaitingReason = external_exports.enum([
|
|
4533
|
+
"waiting_for_submissions",
|
|
4534
|
+
"waiting_for_worker",
|
|
4535
|
+
"waiting_for_review",
|
|
4536
|
+
"waiting_for_evaluator",
|
|
4537
|
+
"waiting_for_appeal_window",
|
|
4538
|
+
"waiting_for_settlement"
|
|
4539
|
+
]);
|
|
4540
|
+
var TaskActionWaitingItemSchema = external_exports.object({
|
|
4541
|
+
id: external_exports.string(),
|
|
4542
|
+
task: TaskResponseSchema,
|
|
4543
|
+
role: PendingActionSchema.shape.role,
|
|
4544
|
+
reason: TaskActionWaitingReason,
|
|
4545
|
+
dueAt: external_exports.string().nullable()
|
|
4546
|
+
});
|
|
4547
|
+
var TaskActionQueueResponseSchema = external_exports.object({
|
|
4548
|
+
items: TaskActionQueueItemSchema.array(),
|
|
4549
|
+
total: external_exports.number().int().nonnegative(),
|
|
4550
|
+
urgentTotal: external_exports.number().int().nonnegative(),
|
|
4551
|
+
waiting: TaskActionWaitingItemSchema.array()
|
|
4552
|
+
});
|
|
4502
4553
|
var TaskDetailResponseSchema = TaskResponseSchema.extend({
|
|
4503
4554
|
pendingActions: PendingActionSchema.array(),
|
|
4504
4555
|
awards: TaskAwardSchema.array().optional(),
|
|
@@ -8529,9 +8580,24 @@ var inboxCommand = new Command43("inbox").description("Show tasks you created an
|
|
|
8529
8580
|
printResult({ ...taskResult, pendingBids });
|
|
8530
8581
|
});
|
|
8531
8582
|
|
|
8532
|
-
// src/commands/
|
|
8583
|
+
// src/commands/actions.ts
|
|
8533
8584
|
import { Command as Command44 } from "commander";
|
|
8534
|
-
var
|
|
8585
|
+
var actionsCommand = new Command44("actions").description("Show lifecycle actions awaiting you, grouped and prioritized by the server").action(async () => {
|
|
8586
|
+
const auth = await signReadAuth();
|
|
8587
|
+
if (!auth) {
|
|
8588
|
+
printError("No keystore found. Run `taskmarket init` first.");
|
|
8589
|
+
return;
|
|
8590
|
+
}
|
|
8591
|
+
const params = new URLSearchParams({ address: auth.walletAddress });
|
|
8592
|
+
const queue = await apiGet(`/api/agents/action-queue?${params.toString()}`, {
|
|
8593
|
+
headers: auth.headers
|
|
8594
|
+
});
|
|
8595
|
+
printResult(queue);
|
|
8596
|
+
});
|
|
8597
|
+
|
|
8598
|
+
// src/commands/deposit.ts
|
|
8599
|
+
import { Command as Command45 } from "commander";
|
|
8600
|
+
var depositCommand = new Command45("deposit").description("Show wallet address and network info for funding").action(async () => {
|
|
8535
8601
|
let address;
|
|
8536
8602
|
try {
|
|
8537
8603
|
address = await getWalletAddress();
|
|
@@ -8558,11 +8624,11 @@ var depositCommand = new Command44("deposit").description("Show wallet address a
|
|
|
8558
8624
|
});
|
|
8559
8625
|
|
|
8560
8626
|
// src/commands/wallet/index.ts
|
|
8561
|
-
import { Command as
|
|
8627
|
+
import { Command as Command51 } from "commander";
|
|
8562
8628
|
|
|
8563
8629
|
// src/commands/wallet/balance.ts
|
|
8564
|
-
import { Command as
|
|
8565
|
-
var walletBalanceCommand = new
|
|
8630
|
+
import { Command as Command46 } from "commander";
|
|
8631
|
+
var walletBalanceCommand = new Command46("balance").description("Show USDC balance").option("--address <addr>", "Address to check (defaults to own wallet)").action(async (opts) => {
|
|
8566
8632
|
let address = opts.address;
|
|
8567
8633
|
if (!address) {
|
|
8568
8634
|
const keystore = await loadKeystore();
|
|
@@ -8573,7 +8639,7 @@ var walletBalanceCommand = new Command45("balance").description("Show USDC balan
|
|
|
8573
8639
|
});
|
|
8574
8640
|
|
|
8575
8641
|
// src/commands/wallet/import.ts
|
|
8576
|
-
import { Command as
|
|
8642
|
+
import { Command as Command47 } from "commander";
|
|
8577
8643
|
import { createInterface as createInterface2 } from "readline";
|
|
8578
8644
|
import { privateKeyToAccount as privateKeyToAccount4 } from "viem/accounts";
|
|
8579
8645
|
function normalizePrivateKey(raw) {
|
|
@@ -8608,7 +8674,7 @@ function promptHiddenInput(prompt) {
|
|
|
8608
8674
|
});
|
|
8609
8675
|
});
|
|
8610
8676
|
}
|
|
8611
|
-
var walletImportCommand = new
|
|
8677
|
+
var walletImportCommand = new Command47("import").description("Import an existing private key as the agent wallet").option("--key <privateKey>", "Private key to import (64 hex chars, with or without 0x prefix)").option(
|
|
8612
8678
|
"--yes",
|
|
8613
8679
|
"Confirm legal acceptance non-interactively after reviewing every current policy"
|
|
8614
8680
|
).action(async (opts) => {
|
|
@@ -8687,11 +8753,11 @@ var walletImportCommand = new Command46("import").description("Import an existin
|
|
|
8687
8753
|
});
|
|
8688
8754
|
|
|
8689
8755
|
// src/commands/wallet/set-withdrawal-address.ts
|
|
8690
|
-
import { Command as
|
|
8756
|
+
import { Command as Command48 } from "commander";
|
|
8691
8757
|
function isValidAddress(addr) {
|
|
8692
8758
|
return /^0x[a-fA-F0-9]{40}$/.test(addr);
|
|
8693
8759
|
}
|
|
8694
|
-
var setWithdrawalAddressCommand = new
|
|
8760
|
+
var setWithdrawalAddressCommand = new Command48("set-withdrawal-address").description("Set a withdrawal address for USDC withdrawals (one-time, free)").argument("<address>", "Ethereum address to receive withdrawals").action(async (address) => {
|
|
8695
8761
|
if (!isValidAddress(address)) {
|
|
8696
8762
|
printError("Invalid Ethereum address: must be 0x followed by 40 hex characters");
|
|
8697
8763
|
return;
|
|
@@ -8718,8 +8784,8 @@ var setWithdrawalAddressCommand = new Command47("set-withdrawal-address").descri
|
|
|
8718
8784
|
});
|
|
8719
8785
|
|
|
8720
8786
|
// src/commands/wallet/publish-key.ts
|
|
8721
|
-
import { Command as
|
|
8722
|
-
var publishKeyCommand = new
|
|
8787
|
+
import { Command as Command49 } from "commander";
|
|
8788
|
+
var publishKeyCommand = new Command49("publish-key").description("Publish your secp256k1 public key so others can encrypt files for you").action(async () => {
|
|
8723
8789
|
let keystore;
|
|
8724
8790
|
try {
|
|
8725
8791
|
keystore = await loadKeystore();
|
|
@@ -8739,13 +8805,13 @@ var publishKeyCommand = new Command48("publish-key").description("Publish your s
|
|
|
8739
8805
|
});
|
|
8740
8806
|
|
|
8741
8807
|
// src/commands/wallet/withdraw-dreams.ts
|
|
8742
|
-
import { Command as
|
|
8808
|
+
import { Command as Command50 } from "commander";
|
|
8743
8809
|
import { toHex as toHex2 } from "viem";
|
|
8744
8810
|
var AUTHORIZATION_VALIDITY_SECONDS = 300;
|
|
8745
8811
|
function isValidAddress2(addr) {
|
|
8746
8812
|
return /^0x[a-fA-F0-9]{40}$/.test(addr);
|
|
8747
8813
|
}
|
|
8748
|
-
var withdrawDreamsCommand = new
|
|
8814
|
+
var withdrawDreamsCommand = new Command50("withdraw-dreams").description("Withdraw accumulated DREAMS rewards to the withdrawal address").option("--destination <addr>", "Destination address (defaults to registered withdrawal address)").action(async (opts) => {
|
|
8749
8815
|
let keystore;
|
|
8750
8816
|
try {
|
|
8751
8817
|
keystore = await loadKeystore();
|
|
@@ -8799,7 +8865,7 @@ var withdrawDreamsCommand = new Command49("withdraw-dreams").description("Withdr
|
|
|
8799
8865
|
});
|
|
8800
8866
|
|
|
8801
8867
|
// src/commands/wallet/index.ts
|
|
8802
|
-
var walletCommand = new
|
|
8868
|
+
var walletCommand = new Command51("wallet").description("Wallet management commands");
|
|
8803
8869
|
walletCommand.addCommand(walletBalanceCommand);
|
|
8804
8870
|
walletCommand.addCommand(walletImportCommand);
|
|
8805
8871
|
walletCommand.addCommand(setWithdrawalAddressCommand);
|
|
@@ -8807,7 +8873,7 @@ walletCommand.addCommand(publishKeyCommand);
|
|
|
8807
8873
|
walletCommand.addCommand(withdrawDreamsCommand);
|
|
8808
8874
|
|
|
8809
8875
|
// src/commands/withdraw.ts
|
|
8810
|
-
import { Command as
|
|
8876
|
+
import { Command as Command52 } from "commander";
|
|
8811
8877
|
import { toHex as toHex3 } from "viem";
|
|
8812
8878
|
var USDC_TYPES = {
|
|
8813
8879
|
TransferWithAuthorization: [
|
|
@@ -8819,7 +8885,7 @@ var USDC_TYPES = {
|
|
|
8819
8885
|
{ name: "nonce", type: "bytes32" }
|
|
8820
8886
|
]
|
|
8821
8887
|
};
|
|
8822
|
-
var withdrawCommand = new
|
|
8888
|
+
var withdrawCommand = new Command52("withdraw").description("Withdraw USDC to the registered withdrawal address").argument("<amount>", "Amount in USDC (e.g. 5 for 5 USDC)").action(async (amount) => {
|
|
8823
8889
|
const parsed = parseFloat(amount);
|
|
8824
8890
|
if (isNaN(parsed) || parsed <= 0) {
|
|
8825
8891
|
printError("Invalid amount: must be a positive number (e.g. 5 for 5 USDC)");
|
|
@@ -8878,9 +8944,9 @@ var withdrawCommand = new Command51("withdraw").description("Withdraw USDC to th
|
|
|
8878
8944
|
});
|
|
8879
8945
|
|
|
8880
8946
|
// src/commands/encrypt.ts
|
|
8881
|
-
import { Command as
|
|
8947
|
+
import { Command as Command53 } from "commander";
|
|
8882
8948
|
import { promises as fs3 } from "fs";
|
|
8883
|
-
var encryptCommand = new
|
|
8949
|
+
var encryptCommand = new Command53("encrypt").description("Encrypt a file with ECIES using wallet keys").argument("<file>", "Path to the file to encrypt").option("--recipient <address>", "Recipient wallet address (default: self)").option("--output <path>", "Output path (default: <file>.enc)").action(async (file, opts) => {
|
|
8884
8950
|
let plaintext;
|
|
8885
8951
|
try {
|
|
8886
8952
|
plaintext = await fs3.readFile(file);
|
|
@@ -8928,9 +8994,9 @@ var encryptCommand = new Command52("encrypt").description("Encrypt a file with E
|
|
|
8928
8994
|
});
|
|
8929
8995
|
|
|
8930
8996
|
// src/commands/decrypt.ts
|
|
8931
|
-
import { Command as
|
|
8997
|
+
import { Command as Command54 } from "commander";
|
|
8932
8998
|
import { promises as fs4 } from "fs";
|
|
8933
|
-
var decryptCommand = new
|
|
8999
|
+
var decryptCommand = new Command54("decrypt").description("Decrypt a file using your wallet key").argument("<file>", "Path to the encrypted file").option("--output <path>", "Output path (default: strips .enc, otherwise appends .dec)").action(async (file, opts) => {
|
|
8934
9000
|
let ciphertext;
|
|
8935
9001
|
try {
|
|
8936
9002
|
ciphertext = await fs4.readFile(file);
|
|
@@ -8970,7 +9036,7 @@ var decryptCommand = new Command53("decrypt").description("Decrypt a file using
|
|
|
8970
9036
|
});
|
|
8971
9037
|
|
|
8972
9038
|
// src/commands/xmtp.ts
|
|
8973
|
-
import { Command as
|
|
9039
|
+
import { Command as Command55 } from "commander";
|
|
8974
9040
|
|
|
8975
9041
|
// src/lib/xmtp-client.ts
|
|
8976
9042
|
import os3 from "os";
|
|
@@ -9734,7 +9800,7 @@ function getDefaultQueryTimeoutMs() {
|
|
|
9734
9800
|
}
|
|
9735
9801
|
return Math.floor(parsed);
|
|
9736
9802
|
}
|
|
9737
|
-
var xmtpCommand = new
|
|
9803
|
+
var xmtpCommand = new Command55("xmtp").description("Manage XMTP messaging for this agent");
|
|
9738
9804
|
xmtpCommand.command("init").description("Initialize XMTP client and register installation metadata with backend").action(async () => {
|
|
9739
9805
|
const keystore = await loadKeystore();
|
|
9740
9806
|
const client = await createXmtpClient({
|
|
@@ -9971,7 +10037,7 @@ xmtpCommand.command("purge").description("Revoke stale XMTP installations that h
|
|
|
9971
10037
|
});
|
|
9972
10038
|
|
|
9973
10039
|
// src/commands/daemon.ts
|
|
9974
|
-
import { Command as
|
|
10040
|
+
import { Command as Command56 } from "commander";
|
|
9975
10041
|
function diffTaskStatuses(prev, next) {
|
|
9976
10042
|
const changes = [];
|
|
9977
10043
|
for (const [taskId, newStatus] of next) {
|
|
@@ -9999,7 +10065,7 @@ function sleepOrAbort(ms, signal) {
|
|
|
9999
10065
|
});
|
|
10000
10066
|
}
|
|
10001
10067
|
var MAX_SEEN_TASK_IDS = 2e3;
|
|
10002
|
-
var daemonCommand = new
|
|
10068
|
+
var daemonCommand = new Command56("daemon").description("Long-running agent daemon: XMTP stream, heartbeats, and task polling").option("--heartbeat-interval <ms>", "Heartbeat interval in milliseconds", "1800000").option("--inbox-interval <ms>", "Inbox poll interval in milliseconds", "15000").option("--task-interval <ms>", "New task poll interval in milliseconds", "15000").option(
|
|
10003
10069
|
"--auction-poll-interval <ms>",
|
|
10004
10070
|
"Poll interval for clock-based auction tasks (dutch/reverse_dutch) in milliseconds",
|
|
10005
10071
|
"15000"
|
|
@@ -10323,11 +10389,11 @@ var daemonCommand = new Command55("daemon").description("Long-running agent daem
|
|
|
10323
10389
|
);
|
|
10324
10390
|
|
|
10325
10391
|
// src/commands/email/index.ts
|
|
10326
|
-
import { Command as
|
|
10392
|
+
import { Command as Command65 } from "commander";
|
|
10327
10393
|
|
|
10328
10394
|
// src/commands/email/register.ts
|
|
10329
|
-
import { Command as
|
|
10330
|
-
var registerCommand = new
|
|
10395
|
+
import { Command as Command57 } from "commander";
|
|
10396
|
+
var registerCommand = new Command57("register").description("Register an email address for this agent").requiredOption("--username <name>", "Desired username (e.g. myagent)").action(async (opts) => {
|
|
10331
10397
|
const check = await apiGet(
|
|
10332
10398
|
`/api/emails/check-username?username=${encodeURIComponent(opts.username)}`
|
|
10333
10399
|
);
|
|
@@ -10348,8 +10414,8 @@ var registerCommand = new Command56("register").description("Register an email a
|
|
|
10348
10414
|
});
|
|
10349
10415
|
|
|
10350
10416
|
// src/commands/email/inbox.ts
|
|
10351
|
-
import { Command as
|
|
10352
|
-
var inboxCommand2 = new
|
|
10417
|
+
import { Command as Command58 } from "commander";
|
|
10418
|
+
var inboxCommand2 = new Command58("inbox").description("List emails in your inbox").option("--limit <n>", "Number of emails to return", "20").option("--unread", "Show only unread emails").action(async (opts) => {
|
|
10353
10419
|
const keystore = await loadKeystore();
|
|
10354
10420
|
const params = new URLSearchParams({
|
|
10355
10421
|
deviceId: keystore.deviceId,
|
|
@@ -10364,8 +10430,8 @@ var inboxCommand2 = new Command57("inbox").description("List emails in your inbo
|
|
|
10364
10430
|
});
|
|
10365
10431
|
|
|
10366
10432
|
// src/commands/email/read.ts
|
|
10367
|
-
import { Command as
|
|
10368
|
-
var readCommand = new
|
|
10433
|
+
import { Command as Command59 } from "commander";
|
|
10434
|
+
var readCommand = new Command59("read").description("Read an email by ID (marks it as read)").argument("<id>", "Email ID").action(async (id) => {
|
|
10369
10435
|
const keystore = await loadKeystore();
|
|
10370
10436
|
const params = new URLSearchParams({
|
|
10371
10437
|
deviceId: keystore.deviceId,
|
|
@@ -10377,8 +10443,8 @@ var readCommand = new Command58("read").description("Read an email by ID (marks
|
|
|
10377
10443
|
});
|
|
10378
10444
|
|
|
10379
10445
|
// src/commands/email/send.ts
|
|
10380
|
-
import { Command as
|
|
10381
|
-
var sendCommand = new
|
|
10446
|
+
import { Command as Command60 } from "commander";
|
|
10447
|
+
var sendCommand = new Command60("send").description("Send an email").requiredOption("--to <address>", "Recipient email address").requiredOption("--subject <subject>", "Email subject").requiredOption("--body <text>", "Email body text").action(async (opts) => {
|
|
10382
10448
|
const keystore = await loadKeystore();
|
|
10383
10449
|
const { data: result, idempotencyKey } = await apiPost("/api/emails/send", {
|
|
10384
10450
|
deviceId: keystore.deviceId,
|
|
@@ -10391,8 +10457,8 @@ var sendCommand = new Command59("send").description("Send an email").requiredOpt
|
|
|
10391
10457
|
});
|
|
10392
10458
|
|
|
10393
10459
|
// src/commands/email/reply.ts
|
|
10394
|
-
import { Command as
|
|
10395
|
-
var replyCommand = new
|
|
10460
|
+
import { Command as Command61 } from "commander";
|
|
10461
|
+
var replyCommand = new Command61("reply").description("Reply to an email").argument("<id>", "Email ID to reply to").requiredOption("--body <text>", "Reply body text").action(async (id, opts) => {
|
|
10396
10462
|
const keystore = await loadKeystore();
|
|
10397
10463
|
const params = new URLSearchParams({
|
|
10398
10464
|
deviceId: keystore.deviceId,
|
|
@@ -10414,8 +10480,8 @@ var replyCommand = new Command60("reply").description("Reply to an email").argum
|
|
|
10414
10480
|
});
|
|
10415
10481
|
|
|
10416
10482
|
// src/commands/email/delete.ts
|
|
10417
|
-
import { Command as
|
|
10418
|
-
var deleteCommand = new
|
|
10483
|
+
import { Command as Command62 } from "commander";
|
|
10484
|
+
var deleteCommand = new Command62("delete").description("Delete an email by ID").argument("<id>", "Email ID").action(async (id) => {
|
|
10419
10485
|
const keystore = await loadKeystore();
|
|
10420
10486
|
const { data: result, idempotencyKey } = await apiPost(
|
|
10421
10487
|
"/api/emails/delete",
|
|
@@ -10429,15 +10495,15 @@ var deleteCommand = new Command61("delete").description("Delete an email by ID")
|
|
|
10429
10495
|
});
|
|
10430
10496
|
|
|
10431
10497
|
// src/commands/email/address.ts
|
|
10432
|
-
import { Command as
|
|
10433
|
-
var addressCommand2 = new
|
|
10498
|
+
import { Command as Command63 } from "commander";
|
|
10499
|
+
var addressCommand2 = new Command63("address").description("Show your registered email address").action(async () => {
|
|
10434
10500
|
const keystore = await loadKeystore();
|
|
10435
10501
|
const result = await apiGet(`/api/agents/stats?address=${keystore.walletAddress}`);
|
|
10436
10502
|
printResult({ emailAddress: result.emailAddress ?? null });
|
|
10437
10503
|
});
|
|
10438
10504
|
|
|
10439
10505
|
// src/commands/email/mark-read.ts
|
|
10440
|
-
import { Command as
|
|
10506
|
+
import { Command as Command64 } from "commander";
|
|
10441
10507
|
async function setReadStatus(id, read) {
|
|
10442
10508
|
const keystore = await loadKeystore();
|
|
10443
10509
|
const { data: result, idempotencyKey } = await apiPost(
|
|
@@ -10451,12 +10517,12 @@ async function setReadStatus(id, read) {
|
|
|
10451
10517
|
);
|
|
10452
10518
|
printResult({ id: result.id, isRead: result.isRead }, { idempotencyKey });
|
|
10453
10519
|
}
|
|
10454
|
-
var markReadCommand = new
|
|
10520
|
+
var markReadCommand = new Command64("mark-read").description("Mark an email as read or unread").argument("<id>", "Email ID").option("--unread", "Mark as unread instead of read").action(async (id, opts) => {
|
|
10455
10521
|
await setReadStatus(id, !opts.unread);
|
|
10456
10522
|
});
|
|
10457
10523
|
|
|
10458
10524
|
// src/commands/email/index.ts
|
|
10459
|
-
var emailCommand = new
|
|
10525
|
+
var emailCommand = new Command65("email").description("Email management commands");
|
|
10460
10526
|
emailCommand.addCommand(registerCommand);
|
|
10461
10527
|
emailCommand.addCommand(inboxCommand2);
|
|
10462
10528
|
emailCommand.addCommand(readCommand);
|
|
@@ -10467,11 +10533,11 @@ emailCommand.addCommand(addressCommand2);
|
|
|
10467
10533
|
emailCommand.addCommand(markReadCommand);
|
|
10468
10534
|
|
|
10469
10535
|
// src/commands/requester/index.ts
|
|
10470
|
-
import { Command as
|
|
10536
|
+
import { Command as Command67 } from "commander";
|
|
10471
10537
|
|
|
10472
10538
|
// src/commands/requester/stats.ts
|
|
10473
|
-
import { Command as
|
|
10474
|
-
var requesterStatsCmd = new
|
|
10539
|
+
import { Command as Command66 } from "commander";
|
|
10540
|
+
var requesterStatsCmd = new Command66("stats").description("Get requester reputation stats for an address").argument("<address>", "Wallet address of the requester").action(async (address) => {
|
|
10475
10541
|
if (!/^0x[0-9a-fA-F]{40}$/.test(address)) {
|
|
10476
10542
|
printError("Address must be a 0x-prefixed 20-byte hex string");
|
|
10477
10543
|
return;
|
|
@@ -10485,12 +10551,12 @@ var requesterStatsCmd = new Command65("stats").description("Get requester reputa
|
|
|
10485
10551
|
});
|
|
10486
10552
|
|
|
10487
10553
|
// src/commands/requester/index.ts
|
|
10488
|
-
var requesterCmd = new
|
|
10554
|
+
var requesterCmd = new Command67("requester").description("Requester reputation commands").addCommand(requesterStatsCmd);
|
|
10489
10555
|
|
|
10490
10556
|
// src/index.ts
|
|
10491
10557
|
var require2 = createRequire(import.meta.url);
|
|
10492
10558
|
var { version } = require2("../package.json");
|
|
10493
|
-
var program = new
|
|
10559
|
+
var program = new Command68();
|
|
10494
10560
|
program.name("taskmarket").description("Taskmarket CLI for AI agents").version(version);
|
|
10495
10561
|
program.addCommand(initCommand);
|
|
10496
10562
|
program.addCommand(walletCommand);
|
|
@@ -10500,6 +10566,7 @@ program.addCommand(statsCommand);
|
|
|
10500
10566
|
program.addCommand(taskCommand);
|
|
10501
10567
|
program.addCommand(agentsCommand);
|
|
10502
10568
|
program.addCommand(inboxCommand);
|
|
10569
|
+
program.addCommand(actionsCommand);
|
|
10503
10570
|
program.addCommand(depositCommand);
|
|
10504
10571
|
program.addCommand(withdrawCommand);
|
|
10505
10572
|
program.addCommand(encryptCommand);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-agents/taskmarket",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"taskmarket": "./dist/index.js"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"typescript": "^5.3.3",
|
|
19
19
|
"vitest": "^2.0.0",
|
|
20
20
|
"@taskmarket/prettier-config": "0.0.0",
|
|
21
|
-
"@taskmarket/
|
|
22
|
-
"@taskmarket/
|
|
21
|
+
"@taskmarket/shared": "2.0.0",
|
|
22
|
+
"@taskmarket/eslint-config": "0.0.0"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|