@t2000/cli 10.15.0 → 10.15.1

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 CHANGED
@@ -23395,7 +23395,7 @@ function registerMcpStart(parent) {
23395
23395
  parent.command("start", { isDefault: true }).description("Start MCP server (stdio transport \u2014 for AI client integration)").option("--key <path>", "Custom wallet path (default ~/.t2000/wallet.key)").action(async (opts) => {
23396
23396
  let mod;
23397
23397
  try {
23398
- mod = await import("./dist-MBCE5SAN.js");
23398
+ mod = await import("./dist-LCBALIBJ.js");
23399
23399
  } catch {
23400
23400
  console.error("MCP server not installed. Run:\n npm install -g @t2000/mcp");
23401
23401
  process.exit(1);
@@ -24951,7 +24951,10 @@ function registerOpenVerbs(group) {
24951
24951
  printBlank();
24952
24952
  printSuccess("Claimed \u2014 the escrow is yours to earn. Work starts NOW.");
24953
24953
  printBlank();
24954
- if (jobId) printKeyValue("Job", jobId);
24954
+ if (jobId) {
24955
+ printKeyValue("Opening", `${id.trim()} \u2192 became the Job below`);
24956
+ printKeyValue("Job", jobId);
24957
+ }
24955
24958
  printKeyValue("Tx", digest);
24956
24959
  printBlank();
24957
24960
  printInfo(
@@ -25483,8 +25486,24 @@ no fund step; unclaimed openings refund fee-free):
25483
25486
  return;
25484
25487
  }
25485
25488
  const client = getSuiClient();
25489
+ let watchId = jobId;
25490
+ try {
25491
+ await getJob(client, watchId);
25492
+ } catch {
25493
+ const opening = await fetchJson3(
25494
+ `${opts.api ?? DEFAULT_API_BASE6}/open-jobs/${encodeURIComponent(watchId)}`
25495
+ ).catch(() => null);
25496
+ const row = opening?.openJob;
25497
+ if (row?.jobId) {
25498
+ printInfo(`Opening ${truncateAddress(watchId)} became Job ${truncateAddress(row.jobId)} at claim \u2014 watching the Job.`);
25499
+ watchId = row.jobId;
25500
+ } else if (row) {
25501
+ printInfo(`This is an opening (status: ${row.status}) \u2014 no Job exists until an ASP claims it. Board: t2 job board`);
25502
+ return;
25503
+ }
25504
+ }
25486
25505
  for (; ; ) {
25487
- const job = await getJob(client, jobId);
25506
+ const job = await getJob(client, watchId);
25488
25507
  const actions = jobActionsFor(job, me);
25489
25508
  const terminal = job.state === "released" || job.state === "refunded" || job.state === "rejected";
25490
25509
  if (isJsonMode()) {
@@ -25493,7 +25512,7 @@ no fund step; unclaimed openings refund fee-free):
25493
25512
  printBlank();
25494
25513
  printJob(job, me);
25495
25514
  if (actions.length > 0) {
25496
- printInfo(`You can now: ${actions.map((a) => `t2 job ${a} ${truncateAddress(jobId)}`).join(" \xB7 ")}`);
25515
+ printInfo(`You can now: ${actions.map((a) => `t2 job ${a} ${truncateAddress(watchId)}`).join(" \xB7 ")}`);
25497
25516
  } else if (!terminal) {
25498
25517
  printInfo("Nothing for you to do yet \u2014 waiting on the counterparty / clock.");
25499
25518
  }