@chosengeneration/light-code 0.159.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/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.copyFile(from, to, import_node_fs7.constants.COPYFILE_EXCL);
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;
@@ -92198,7 +92202,9 @@ with its state (clean, uncommitted changes, commits not pushed) to open it or cl
92198
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
92199
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
92200
92204
  whole - full name on hover); renaming the chat never changes the branch. Close branch\u2026 (right-click a branch
92201
- chat's tab) removes its folder and the chat. Fire Code's Commit and push acts on the codebase's own folder; in
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
92202
92208
  a branch chat, commit through the agent or git in that folder.
92203
92209
 
92204
92210
  **Setting a branch up** (once, when its folder is first opened): config:branches (copyFiles) - files git does
@@ -92207,6 +92213,12 @@ e.g. pnpm install or uv sync (VS Code runs it in a terminal you can watch). Each
92207
92213
  node_modules or .venv, because a shared one breaks as soon as branches differ. Per project; user-scope only
92208
92214
  (a repository cannot set a command for you), and never exported.
92209
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
+
92210
92222
  **Running two at once**: commands and debug sessions in a branch folder get LIGHT_CODE_BRANCH and
92211
92223
  LIGHT_CODE_PORT_OFFSET (0 in the main checkout, 1, 2... in branch folders), so a dev server can add the
92212
92224
  offset to its port. Nothing is written into your repository for this.
@@ -92215,6 +92227,10 @@ offset to its port. Nothing is written into your repository for this.
92215
92227
  of a repository's branches; checkpoints and rollback, chat history and running processes are each folder's own.
92216
92228
  The agent in a branch folder can only change files in that folder.
92217
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
+
92218
92234
  **Safe by git's own rules**: one branch can be open in only one folder at a time; closing a folder checks for
92219
92235
  uncommitted changes and unpushed commits first and never deletes the branch; folders stay until you close them
92220
92236
  (not temporary). If you delete one by hand, git forgets it (git worktree prune) and committed work is safe.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chosengeneration/light-code",
3
- "version": "0.159.0",
3
+ "version": "0.161.0",
4
4
  "description": "A minimal agentic coding assistant, served to your browser from a local Node server",
5
5
  "license": "MIT",
6
6
  "type": "module",