@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.
- package/dist/{auth-KQCJ43U2.js → auth-ECQ3IB4E.js} +1 -1
- package/dist/{chunk-G6SVZ4Q5.js → chunk-B55DDP24.js} +17 -3
- package/dist/{chunk-F7OXF7Z3.js → chunk-BZL5H4YQ.js} +1 -1
- package/dist/{ci-QM57ZCBW.js → ci-STSL2LSP.js} +5 -2
- package/dist/{history-NFNA4HE5.js → history-3MOBX4MA.js} +1 -1
- package/dist/index.js +6 -6
- package/dist/{update-WUITQX4Z.js → update-M6IBJNYP.js} +1 -1
- package/dist/{version-checker-SMAYSN7Y.js → version-checker-Q6YTYAGP.js} +1 -1
- package/package.json +1 -1
|
@@ -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:
|
|
65
|
-
//
|
|
78
|
+
maxBuffer: 10 * 1024 * 1024
|
|
79
|
+
// 10MB limit (credentials are tiny)
|
|
66
80
|
}
|
|
67
81
|
);
|
|
68
82
|
return tarOutput.toString("base64");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildPrompt
|
|
3
|
-
} from "./chunk-
|
|
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.
|
|
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-
|
|
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-
|
|
2069
|
+
return (await import("./update-M6IBJNYP.js")).runUpdate(args.slice(1));
|
|
2070
2070
|
case "history":
|
|
2071
|
-
return (await import("./history-
|
|
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-
|
|
2083
|
+
return (await import("./ci-STSL2LSP.js")).runCi(args.slice(1), projectDir);
|
|
2084
2084
|
case "auth":
|
|
2085
|
-
return (await import("./auth-
|
|
2085
|
+
return (await import("./auth-ECQ3IB4E.js")).runAuth(args.slice(1));
|
|
2086
2086
|
case "--version":
|
|
2087
2087
|
case "-v":
|
|
2088
|
-
console.log("0.1.
|
|
2088
|
+
console.log("0.1.4");
|
|
2089
2089
|
return;
|
|
2090
2090
|
case "--help":
|
|
2091
2091
|
case "-h":
|