@locusai/cli 0.4.1 → 0.4.2

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.
Files changed (2) hide show
  1. package/bin/locus.js +31 -7
  2. package/package.json +2 -2
package/bin/locus.js CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env bun
2
- // @bun
1
+ #!/usr/bin/env node
3
2
  import { createRequire } from "node:module";
4
3
  var __create = Object.create;
5
4
  var __getProtoOf = Object.getPrototypeOf;
@@ -17646,13 +17645,21 @@ class CodebaseIndexer {
17646
17645
  onProgress("Generating file tree...");
17647
17646
  const files = await globby(["**/*"], {
17648
17647
  cwd: this.projectPath,
17648
+ gitignore: true,
17649
17649
  ignore: [
17650
17650
  "**/node_modules/**",
17651
17651
  "**/dist/**",
17652
17652
  "**/build/**",
17653
+ "**/target/**",
17654
+ "**/bin/**",
17655
+ "**/obj/**",
17653
17656
  "**/.next/**",
17657
+ "**/.svelte-kit/**",
17658
+ "**/.nuxt/**",
17659
+ "**/.cache/**",
17654
17660
  "**/out/**",
17655
17661
  "**/__tests__/**",
17662
+ "**/coverage/**",
17656
17663
  "**/*.test.*",
17657
17664
  "**/*.spec.*",
17658
17665
  "**/*.d.ts",
@@ -17660,9 +17667,20 @@ class CodebaseIndexer {
17660
17667
  "**/.locus/*.json",
17661
17668
  "**/.locus/*.md",
17662
17669
  "**/.locus/!(artifacts)/**",
17663
- "bun.lock",
17664
- "package-lock.json",
17665
- "yarn.lock"
17670
+ "**/.git/**",
17671
+ "**/.svn/**",
17672
+ "**/.hg/**",
17673
+ "**/.vscode/**",
17674
+ "**/.idea/**",
17675
+ "**/.DS_Store",
17676
+ "**/bun.lock",
17677
+ "**/package-lock.json",
17678
+ "**/yarn.lock",
17679
+ "**/pnpm-lock.yaml",
17680
+ "**/Cargo.lock",
17681
+ "**/go.sum",
17682
+ "**/poetry.lock",
17683
+ "**/*.{png,jpg,jpeg,gif,svg,ico,mp4,webm,wav,mp3,woff,woff2,eot,ttf,otf,pdf,zip,tar.gz,rar}"
17666
17684
  ]
17667
17685
  });
17668
17686
  const treeString = files.join(`
@@ -30152,10 +30170,16 @@ var TasksResponseSchema = exports_external.object({
30152
30170
  tasks: exports_external.array(TaskSchema)
30153
30171
  });
30154
30172
  // ../shared/src/models/workspace.ts
30173
+ var ChecklistItemSchema = exports_external.object({
30174
+ id: exports_external.string(),
30175
+ text: exports_external.string(),
30176
+ done: exports_external.boolean()
30177
+ });
30155
30178
  var WorkspaceSchema = BaseEntitySchema.extend({
30156
30179
  orgId: exports_external.string().uuid(),
30157
30180
  name: exports_external.string().min(1, "Name is required").max(100),
30158
- slug: exports_external.string().min(1, "Slug is required").regex(/^[a-z0-9-]+$/, "Slug must be lowercase alphanumeric with hyphens")
30181
+ slug: exports_external.string().min(1, "Slug is required").regex(/^[a-z0-9-]+$/, "Slug must be lowercase alphanumeric with hyphens"),
30182
+ defaultChecklist: exports_external.array(ChecklistItemSchema).nullable().optional()
30159
30183
  });
30160
30184
  var CreateWorkspaceSchema = exports_external.object({
30161
30185
  name: exports_external.string().min(1, "Name is required").max(100),
@@ -30765,7 +30789,7 @@ ${c.success("✅ Orchestrator finished")}`);
30765
30789
  if (this.resolvedSprintId) {
30766
30790
  workerArgs.push("--sprint-id", this.resolvedSprintId);
30767
30791
  }
30768
- const agentProcess = spawn2("bun", ["run", workerPath, ...workerArgs]);
30792
+ const agentProcess = spawn2(process.execPath, [workerPath, ...workerArgs]);
30769
30793
  agentState.process = agentProcess;
30770
30794
  agentProcess.on("message", (msg) => {
30771
30795
  if (msg.type === "stats") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/cli",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Local-first AI development platform & engineering workspace",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  "author": "",
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@locusai/sdk": "^0.4.1"
34
+ "@locusai/sdk": "^0.4.2"
35
35
  },
36
36
  "devDependencies": {}
37
37
  }