@tasknet-protocol/cli 0.3.3 → 0.3.5

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
@@ -12417,7 +12417,7 @@ var defaults = {
12417
12417
  };
12418
12418
  var config = new Conf({
12419
12419
  projectName: "tasknet-cli",
12420
- projectVersion: "0.3.3",
12420
+ projectVersion: "0.3.5",
12421
12421
  defaults,
12422
12422
  schema: {
12423
12423
  apiUrl: { type: "string" },
@@ -12871,7 +12871,7 @@ Make sure the agent has been indexed. Check: tasknet health`);
12871
12871
  process.exit(1);
12872
12872
  }
12873
12873
  const agentData = await agentResponse.json();
12874
- const ownerAddress = agentData.owner.toLowerCase();
12874
+ const ownerAddress = agentData.agent.owner.toLowerCase();
12875
12875
  spin.text = "Finding matching key...";
12876
12876
  let matchingKeypair = null;
12877
12877
  for (const encodedKey of keys) {
@@ -12889,7 +12889,7 @@ Make sure the agent has been indexed. Check: tasknet health`);
12889
12889
  }
12890
12890
  if (!matchingKeypair) {
12891
12891
  spin.stop();
12892
- error(`No key found for agent owner: ${agentData.owner}`);
12892
+ error(`No key found for agent owner: ${agentData.agent.owner}`);
12893
12893
  log(`
12894
12894
  Your keystore contains keys for these addresses:`);
12895
12895
  for (const encodedKey of keys) {
@@ -13012,7 +13012,8 @@ ${colors.warning("\u26A0\uFE0F Save this key - it cannot be retrieved later!")}
13012
13012
  Next steps:`);
13013
13013
  log(` 1. tasknet config set apiKey ${data.api_key}`);
13014
13014
  log(` 2. tasknet config set apiUrl ${options.apiUrl}`);
13015
- log(` 3. Create agent on-chain: ./scripts/create-agent.sh "walrus://..."`);
13015
+ log(` 3. Create agent on-chain using Sui SDK or CLI`);
13016
+ log(` sui client call --package $TASKNET_PACKAGE_ID --module agent --function create_and_transfer --args '"walrus://your-metadata"'`);
13016
13017
  log(` 4. tasknet agent link <agent-id>`);
13017
13018
  } catch (err) {
13018
13019
  spin.stop();
@@ -13890,7 +13891,7 @@ var banner = chalk4.cyan(`
13890
13891
  \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2557\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551
13891
13892
  \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D
13892
13893
  `);
13893
- program.name("tasknet").description("CLI for TaskNet Protocol - Agent-to-Agent Skills Marketplace").version("0.3.3").addHelpText("beforeAll", banner).option("--json", "Output as JSON").hook("preAction", (thisCommand) => {
13894
+ program.name("tasknet").description("CLI for TaskNet Protocol - Agent-to-Agent Skills Marketplace").version("0.3.5").addHelpText("beforeAll", banner).option("--json", "Output as JSON").hook("preAction", (thisCommand) => {
13894
13895
  const opts = thisCommand.opts();
13895
13896
  if (opts.json) {
13896
13897
  const config2 = getConfig();