@ulpi/cli 0.1.3 → 0.1.4

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.
@@ -2,7 +2,7 @@ import {
2
2
  extractCredentials,
3
3
  getCredentialExpiry,
4
4
  validateCredentials
5
- } from "./chunk-G6SVZ4Q5.js";
5
+ } from "./chunk-B55DDP24.js";
6
6
  import "./chunk-4VNS5WPM.js";
7
7
 
8
8
  // src/commands/auth.ts
@@ -48,6 +48,12 @@ function buildPrompt(config, context) {
48
48
  sections.push("");
49
49
  return sections.join("\n");
50
50
  }
51
+ var CREDENTIAL_FILES = [
52
+ "oauth_token",
53
+ ".credentials.json",
54
+ "credentials.json",
55
+ "auth.json"
56
+ ];
51
57
  function extractCredentials(claudeConfigDir) {
52
58
  const configDir = claudeConfigDir ?? path3.join(process.env.HOME ?? "", ".claude");
53
59
  if (!fs4.existsSync(configDir)) {
@@ -55,14 +61,22 @@ function extractCredentials(claudeConfigDir) {
55
61
  `Claude config directory not found: ${configDir}`
56
62
  );
57
63
  }
64
+ const existingFiles = CREDENTIAL_FILES.filter(
65
+ (f) => fs4.existsSync(path3.join(configDir, f))
66
+ );
67
+ if (existingFiles.length === 0) {
68
+ throw new Error(
69
+ `No credential files found in ${configDir}. Run 'claude login' first.`
70
+ );
71
+ }
58
72
  const tarOutput = execFileSync2(
59
73
  "tar",
60
- ["-czf", "-", "-C", configDir, "."],
74
+ ["-czf", "-", "-C", configDir, ...existingFiles],
61
75
  {
62
76
  encoding: "buffer",
63
77
  timeout: 3e4,
64
- maxBuffer: 50 * 1024 * 1024
65
- // 50MB limit
78
+ maxBuffer: 10 * 1024 * 1024
79
+ // 10MB limit (credentials are tiny)
66
80
  }
67
81
  );
68
82
  return tarOutput.toString("base64");
@@ -13,7 +13,7 @@ var REGISTRY_URL = CLI_REGISTRY_URL;
13
13
  var FETCH_TIMEOUT_MS = 5e3;
14
14
  function getCurrentVersion() {
15
15
  try {
16
- return "0.1.3";
16
+ return "0.1.4";
17
17
  } catch {
18
18
  return "0.0.0";
19
19
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildPrompt
3
- } from "./chunk-G6SVZ4Q5.js";
3
+ } from "./chunk-B55DDP24.js";
4
4
  import {
5
5
  external_exports
6
6
  } from "./chunk-KIKPIH6N.js";
@@ -95,7 +95,10 @@ var DockerConfigSchema = external_exports.object({
95
95
  // e.g. "4g"
96
96
  cpuLimit: external_exports.number().positive().optional(),
97
97
  // e.g. 2.0
98
- volumeBaseDir: external_exports.string()
98
+ volumeBaseDir: external_exports.string(),
99
+ // Host path — used for Docker bind mounts
100
+ localVolumeBaseDir: external_exports.string().optional()
101
+ // Container-local path — used for fs ops (defaults to volumeBaseDir)
99
102
  });
100
103
  var SecurityConfigSchema = external_exports.object({
101
104
  requireWriteAccess: external_exports.boolean().default(true),
@@ -416,7 +416,7 @@ async function initSubcommand(projectDir) {
416
416
  }
417
417
  const projectName = path2.basename(projectDir);
418
418
  try {
419
- initHistoryBranch(projectDir, projectName, "0.1.3");
419
+ initHistoryBranch(projectDir, projectName, "0.1.4");
420
420
  } catch (err) {
421
421
  const message = err instanceof Error ? err.message : String(err);
422
422
  console.log(chalk.red(`Error: ${message}`));
package/dist/index.js CHANGED
@@ -138,7 +138,7 @@ async function handleSessionStart(ctx) {
138
138
  if (shouldPromptForGeneration(projectDir2)) {
139
139
  outputGenerationPrompt();
140
140
  }
141
- import("./version-checker-SMAYSN7Y.js").then((m) => m.checkForUpdates()).catch(() => {
141
+ import("./version-checker-Q6YTYAGP.js").then((m) => m.checkForUpdates()).catch(() => {
142
142
  });
143
143
  try {
144
144
  const { isMemoryEnabled, loadMemoryConfig, getTopMemories, formatMemoriesForAgent } = await import("./dist-GJYT2OQV.js");
@@ -2066,9 +2066,9 @@ async function main() {
2066
2066
  case "ui":
2067
2067
  return (await import("./ui-OWXZ3YSR.js")).runUI(args.slice(1), projectDir);
2068
2068
  case "update":
2069
- return (await import("./update-WUITQX4Z.js")).runUpdate(args.slice(1));
2069
+ return (await import("./update-M6IBJNYP.js")).runUpdate(args.slice(1));
2070
2070
  case "history":
2071
- return (await import("./history-NFNA4HE5.js")).runHistory(args.slice(1), projectDir);
2071
+ return (await import("./history-3MOBX4MA.js")).runHistory(args.slice(1), projectDir);
2072
2072
  case "review":
2073
2073
  return (await import("./review-ADUPV3PN.js")).runReview(args.slice(1), projectDir);
2074
2074
  case "config":
@@ -2080,12 +2080,12 @@ async function main() {
2080
2080
  case "projects":
2081
2081
  return (await import("./projects-ATHDD3D6.js")).runProjects(args.slice(1));
2082
2082
  case "ci":
2083
- return (await import("./ci-QM57ZCBW.js")).runCi(args.slice(1), projectDir);
2083
+ return (await import("./ci-STSL2LSP.js")).runCi(args.slice(1), projectDir);
2084
2084
  case "auth":
2085
- return (await import("./auth-KQCJ43U2.js")).runAuth(args.slice(1));
2085
+ return (await import("./auth-ECQ3IB4E.js")).runAuth(args.slice(1));
2086
2086
  case "--version":
2087
2087
  case "-v":
2088
- console.log("0.1.3");
2088
+ console.log("0.1.4");
2089
2089
  return;
2090
2090
  case "--help":
2091
2091
  case "-h":
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  checkForUpdates
3
- } from "./chunk-F7OXF7Z3.js";
3
+ } from "./chunk-BZL5H4YQ.js";
4
4
  import {
5
5
  CLI_BIN_NAME,
6
6
  CLI_NPM_PACKAGE
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  checkForUpdates,
3
3
  getCurrentVersion
4
- } from "./chunk-F7OXF7Z3.js";
4
+ } from "./chunk-BZL5H4YQ.js";
5
5
  import "./chunk-7LXY5UVC.js";
6
6
  import "./chunk-4VNS5WPM.js";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulpi/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ulpi": "./dist/index.js"