@itpay/cli 2.0.17 → 2.0.19

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.
@@ -40,7 +40,11 @@ export function runSkillShow(name, options = {}) {
40
40
  }
41
41
  function findSkillPath() {
42
42
  if (process.env.ITPAY_CLI_SKILLS_DIR) {
43
- return resolve(process.env.ITPAY_CLI_SKILLS_DIR, ITPAY_SKILL, "SKILL.md");
43
+ const configuredRoot = resolve(process.env.ITPAY_CLI_SKILLS_DIR);
44
+ const directPath = resolve(configuredRoot, "SKILL.md");
45
+ if (existsSync(directPath))
46
+ return directPath;
47
+ return resolve(configuredRoot, ITPAY_SKILL, "SKILL.md");
44
48
  }
45
49
  const packagePath = resolve(commandDir, "..", "..", "..", "skills", ITPAY_SKILL, "SKILL.md");
46
50
  if (existsSync(packagePath))
@@ -12,7 +12,7 @@ import { DeviceAuthority } from "./device_authority.js";
12
12
  import { OperationJournal } from "./operation_journal.js";
13
13
  export const DEFAULT_BASE_URL = "https://app.itpay.ai";
14
14
  export const DEV_BASE_URL = "https://dev.itpay.ai";
15
- export const CLI_VERSION = "2.0.17";
15
+ export const CLI_VERSION = "2.0.19";
16
16
  export const API_CONTRACT_REVISION = "sha256:7f4c40b082292bf823631bcd37d452f4a8537153e30636d5eb3a2b24a77ce602";
17
17
  const CART_SESSION_DEFAULT_DIR = ".itpay-v3";
18
18
  const CART_SESSION_FILENAME = "cart.json";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itpay/cli",
3
- "version": "2.0.17",
3
+ "version": "2.0.19",
4
4
  "description": "The single ItPay CLI entry point for buy workflows and future sell workflows.",
5
5
  "type": "module",
6
6
  "bin": {