@base44-preview/cli 0.2.5-pr.683.39ac9ac → 0.2.6-pr.684.c1fb02f
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/index.js +21 -5
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -239384,7 +239384,7 @@ import { join as join13 } from "node:path";
|
|
|
239384
239384
|
// package.json
|
|
239385
239385
|
var package_default = {
|
|
239386
239386
|
name: "base44",
|
|
239387
|
-
version: "0.2.
|
|
239387
|
+
version: "0.2.6",
|
|
239388
239388
|
description: "Base44 CLI - Unified interface for managing Base44 applications",
|
|
239389
239389
|
type: "module",
|
|
239390
239390
|
bin: {
|
|
@@ -265017,7 +265017,8 @@ var SessionImportResponseSchema = object({
|
|
|
265017
265017
|
turn_count: number2(),
|
|
265018
265018
|
branch_url: string2(),
|
|
265019
265019
|
continued: boolean2(),
|
|
265020
|
-
source_ref: string2()
|
|
265020
|
+
source_ref: string2(),
|
|
265021
|
+
reimported: boolean2().default(false)
|
|
265021
265022
|
}).transform((data) => ({
|
|
265022
265023
|
branchId: data.branch_id,
|
|
265023
265024
|
branchName: data.branch_name,
|
|
@@ -265025,7 +265026,8 @@ var SessionImportResponseSchema = object({
|
|
|
265025
265026
|
turnCount: data.turn_count,
|
|
265026
265027
|
branchUrl: data.branch_url,
|
|
265027
265028
|
continued: data.continued,
|
|
265028
|
-
sourceRef: data.source_ref
|
|
265029
|
+
sourceRef: data.source_ref,
|
|
265030
|
+
reimported: data.reimported
|
|
265029
265031
|
}));
|
|
265030
265032
|
var ErrorEnvelopeSchema = object({
|
|
265031
265033
|
error: object({
|
|
@@ -265038,6 +265040,12 @@ function messageFor(status, code, details, viaToken) {
|
|
|
265038
265040
|
if (code === "branch_exists" && details?.branch_url) {
|
|
265039
265041
|
return `Base Code already has ${details.branch_name ?? "a branch for this session"}. Open it: ${new URL(details.branch_url, getBase44ApiUrl())}`;
|
|
265040
265042
|
}
|
|
265043
|
+
if (code === "session_changed" && details?.branch_url) {
|
|
265044
|
+
return `This session changed since it was imported into ${details.branch_name ?? "its branch"}, so its newer messages can't be added there. In Base Code, open Import session and choose Import into a new branch: ${new URL(details.branch_url, getBase44ApiUrl())}`;
|
|
265045
|
+
}
|
|
265046
|
+
if (code === "branch_busy") {
|
|
265047
|
+
return `${details?.branch_name ?? "The session's branch"} is still working in Base Code. Wait for it to finish, then import again.`;
|
|
265048
|
+
}
|
|
265041
265049
|
if (code === "idempotency_key_in_use") {
|
|
265042
265050
|
return "An import of this session is still running. Wait a moment and try again.";
|
|
265043
265051
|
}
|
|
@@ -265537,7 +265545,7 @@ async function importAction(ctx, link, options, command) {
|
|
|
265537
265545
|
const url = `${getBase44ApiUrl()}${imported.branchUrl}`;
|
|
265538
265546
|
return {
|
|
265539
265547
|
outroMessage: [
|
|
265540
|
-
imported
|
|
265548
|
+
outcome(imported),
|
|
265541
265549
|
...note ? [note] : [],
|
|
265542
265550
|
`Open it: ${url}`
|
|
265543
265551
|
].join(`
|
|
@@ -265545,6 +265553,14 @@ async function importAction(ctx, link, options, command) {
|
|
|
265545
265553
|
stdout: ctx.jsonMode ? toJsonStdout({ ...imported, url, ...note ? { note } : {} }) : undefined
|
|
265546
265554
|
};
|
|
265547
265555
|
}
|
|
265556
|
+
function outcome(imported) {
|
|
265557
|
+
const { turnCount, branchName } = imported;
|
|
265558
|
+
const tool = TOOL_LABELS[imported.source];
|
|
265559
|
+
if (imported.reimported) {
|
|
265560
|
+
return turnCount ? `✓ Added ${turnCount} new messages from ${tool} to "${branchName}".` : `✓ Nothing new to import. "${branchName}" already has every message.`;
|
|
265561
|
+
}
|
|
265562
|
+
return imported.continued ? `✓ Imported ${turnCount} messages from ${tool}. Continued on "${branchName}".` : `✓ Imported ${turnCount} messages from ${tool} into branch "${branchName}".`;
|
|
265563
|
+
}
|
|
265548
265564
|
function getSessionsImportCommand() {
|
|
265549
265565
|
return new Base44Command("import", { requireAuth: false }).description("Continue a Claude Code or Codex session in Base Code").argument("[session-link]", "A claude.ai session address (https://claude.ai/code/session_…)").option("--current", "Import the session this command runs inside").option("--file <path>", "Import this session file as is").option("--skip-push-check", "Import even though local changes aren't on GitHub (they won't be included)").option("--token <key>", "One-time import key from Base Code (no login needed)").action(importAction);
|
|
265550
265566
|
}
|
|
@@ -274780,4 +274796,4 @@ export {
|
|
|
274780
274796
|
runCLI
|
|
274781
274797
|
};
|
|
274782
274798
|
|
|
274783
|
-
//# debugId=
|
|
274799
|
+
//# debugId=874BE39039B3832564756E2164756E21
|