@cleocode/caamp 2026.5.45 → 2026.5.50

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/cli.js CHANGED
@@ -1877,7 +1877,7 @@ function registerMcpCommands(program2) {
1877
1877
  import { existsSync as existsSync4 } from "fs";
1878
1878
  import { writeFile } from "fs/promises";
1879
1879
  import { tmpdir as tmpdir3 } from "os";
1880
- import { join as join5 } from "path";
1880
+ import { isAbsolute, join as join5 } from "path";
1881
1881
 
1882
1882
  // src/core/sources/github.ts
1883
1883
  import { mkdtemp, rm } from "fs/promises";
@@ -1991,7 +1991,7 @@ function resolveProjectDir2(tier, explicit) {
1991
1991
 
1992
1992
  // src/commands/pi/cant.ts
1993
1993
  async function resolveCantSource(source) {
1994
- if (source.startsWith("/") || source.startsWith("./") || source.startsWith("../") || source.startsWith("~")) {
1994
+ if (isAbsolute(source) || source.startsWith("./") || source.startsWith("../") || source.startsWith("~")) {
1995
1995
  const expanded = source.startsWith("~/") ? join5(process.env["HOME"] ?? "", source.slice(2)) : source;
1996
1996
  if (!existsSync4(expanded)) {
1997
1997
  throw new LAFSCommandError(
@@ -2238,9 +2238,9 @@ function registerPiCantCommands(parent) {
2238
2238
  import { existsSync as existsSync5 } from "fs";
2239
2239
  import { writeFile as writeFile2 } from "fs/promises";
2240
2240
  import { tmpdir as tmpdir4 } from "os";
2241
- import { join as join6 } from "path";
2241
+ import { isAbsolute as isAbsolute2, join as join6 } from "path";
2242
2242
  async function resolveExtensionSource(source) {
2243
- if (source.startsWith("/") || source.startsWith("./") || source.startsWith("../") || source.startsWith("~")) {
2243
+ if (isAbsolute2(source) || source.startsWith("./") || source.startsWith("../") || source.startsWith("~")) {
2244
2244
  const expanded = source.startsWith("~/") ? join6(process.env["HOME"] ?? "", source.slice(2)) : source;
2245
2245
  if (!existsSync5(expanded)) {
2246
2246
  throw new LAFSCommandError(