@chosengeneration/light-code 0.158.0 → 0.161.0
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.cjs +25 -8
- package/dist/server.cjs +23 -6
- package/package.json +1 -1
package/dist/server.cjs
CHANGED
|
@@ -75181,7 +75181,11 @@ async function copySetupFiles(mainCheckout, folder, names) {
|
|
|
75181
75181
|
}
|
|
75182
75182
|
try {
|
|
75183
75183
|
await import_promises25.default.mkdir(import_node_path45.default.dirname(to), { recursive: true });
|
|
75184
|
-
await import_promises25.default.
|
|
75184
|
+
if ((await import_promises25.default.stat(from)).isDirectory()) {
|
|
75185
|
+
await import_promises25.default.cp(from, to, { recursive: true, force: false, errorOnExist: false });
|
|
75186
|
+
} else {
|
|
75187
|
+
await import_promises25.default.copyFile(from, to, import_node_fs7.constants.COPYFILE_EXCL);
|
|
75188
|
+
}
|
|
75185
75189
|
copied.push(name);
|
|
75186
75190
|
} catch (error51) {
|
|
75187
75191
|
const code = error51.code;
|
|
@@ -92189,15 +92193,18 @@ downloaded again, your codebase stays on its own branch, and a commit in any bra
|
|
|
92189
92193
|
repository straight away.
|
|
92190
92194
|
|
|
92191
92195
|
**VS Code**: Light Code: Open Branch in New Window (Command Palette, or the branch button in Source Control)
|
|
92192
|
-
lists local branches, fetched remote branches and those already open, plus New branch\u2026
|
|
92193
|
-
you
|
|
92196
|
+
lists local branches, fetched remote branches and those already open, plus New branch\u2026 - which starts from
|
|
92197
|
+
the repository's main branch (the remote's default, else main or master) unless you pick another. The branch opens in a new VS Code window - running, debugging and terminals there use that
|
|
92194
92198
|
branch's files and its own launch.json, with its own Light Code. Light Code: Branches lists every branch folder
|
|
92195
92199
|
with its state (clean, uncommitted changes, commits not pushed) to open it or close it.
|
|
92196
92200
|
|
|
92197
|
-
**Fire Code**: New chat on a branch\u2026 (the
|
|
92198
|
-
|
|
92201
|
+
**Fire Code**: New chat on a branch\u2026 (the + button, a tab's right-click menu, or the codebase's) lists every
|
|
92202
|
+
branch to pick from, and has a New branch box at the top: type a name and it is made starting from the main
|
|
92203
|
+
branch (main or master) unless you pick another. The branch opens as a chat tab working in its own folder. Each tab shows its chat name with the branch underneath (trimmed when long - a Jira key is kept
|
|
92199
92204
|
whole - full name on hover); renaming the chat never changes the branch. Close branch\u2026 (right-click a branch
|
|
92200
|
-
chat's tab) removes its folder and the chat.
|
|
92205
|
+
chat's tab) removes its folder and the chat. To debug a branch, right-click its tab -> Open this branch in
|
|
92206
|
+
VS Code: that window runs and debugs the branch, and the agent in Fire Code can read the paused session
|
|
92207
|
+
(read_debug_session). Tests run from the chat itself - ask the agent; it runs them in the branch's folder. Fire Code's Commit and push acts on the codebase's own folder; in
|
|
92201
92208
|
a branch chat, commit through the agent or git in that folder.
|
|
92202
92209
|
|
|
92203
92210
|
**Setting a branch up** (once, when its folder is first opened): config:branches (copyFiles) - files git does
|
|
@@ -92206,6 +92213,12 @@ e.g. pnpm install or uv sync (VS Code runs it in a terminal you can watch). Each
|
|
|
92206
92213
|
node_modules or .venv, because a shared one breaks as soon as branches differ. Per project; user-scope only
|
|
92207
92214
|
(a repository cannot set a command for you), and never exported.
|
|
92208
92215
|
|
|
92216
|
+
**.vscode and the venv**: a committed .vscode folder is part of the branch already. An uncommitted one is not -
|
|
92217
|
+
add ".vscode" to config:branches (copyFiles) and it is copied (adding only what the branch lacks). A virtualenv
|
|
92218
|
+
is never copied - it records absolute paths, so a copy breaks; give each branch its own with the setup command
|
|
92219
|
+
(uv sync, or python -m venv .venv and a pip install), or point VS Code's python.defaultInterpreterPath at the
|
|
92220
|
+
main folder's .venv while branches share the same dependencies.
|
|
92221
|
+
|
|
92209
92222
|
**Running two at once**: commands and debug sessions in a branch folder get LIGHT_CODE_BRANCH and
|
|
92210
92223
|
LIGHT_CODE_PORT_OFFSET (0 in the main checkout, 1, 2... in branch folders), so a dev server can add the
|
|
92211
92224
|
offset to its port. Nothing is written into your repository for this.
|
|
@@ -92214,6 +92227,10 @@ offset to its port. Nothing is written into your repository for this.
|
|
|
92214
92227
|
of a repository's branches; checkpoints and rollback, chat history and running processes are each folder's own.
|
|
92215
92228
|
The agent in a branch folder can only change files in that folder.
|
|
92216
92229
|
|
|
92230
|
+
**A repository with no commits yet has no branches** - git makes a branch with the first commit - so there is
|
|
92231
|
+
nothing to open or start from until you make one (Commit and push, or ask the agent to commit). Both products
|
|
92232
|
+
say so instead of showing an empty list.
|
|
92233
|
+
|
|
92217
92234
|
**Safe by git's own rules**: one branch can be open in only one folder at a time; closing a folder checks for
|
|
92218
92235
|
uncommitted changes and unpushed commits first and never deletes the branch; folders stay until you close them
|
|
92219
92236
|
(not temporary). If you delete one by hand, git forgets it (git worktree prune) and committed work is safe.
|