@locusai/sdk 0.9.11 → 0.9.12

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.
@@ -532,7 +532,10 @@ var LOCUS_GITIGNORE_PATTERNS = [
532
532
  ".locus/settings.json",
533
533
  "",
534
534
  "# Locus AI - Configuration (contains project context, progress, etc.)",
535
- ".locus/config.json"
535
+ ".locus/config.json",
536
+ "",
537
+ "# Locus AI - Project progress (contains project progress, etc.)",
538
+ ".locus/project/progress.md"
536
539
  ];
537
540
  function getLocusPath(projectPath, fileName) {
538
541
  if (fileName === "projectContextFile" || fileName === "projectProgressFile") {
@@ -1958,12 +1961,9 @@ class WorktreeManager {
1958
1961
  return null;
1959
1962
  }
1960
1963
  this.git("add -A", worktreePath);
1961
- try {
1962
- this.git("reset HEAD -- .locus/project/progress.md", worktreePath);
1963
- } catch {}
1964
1964
  const staged = this.git("diff --cached --name-only", worktreePath).trim();
1965
1965
  if (!staged) {
1966
- this.log("No changes to commit (only progress.md was modified)", "info");
1966
+ this.log("No changes to commit", "info");
1967
1967
  return null;
1968
1968
  }
1969
1969
  this.gitExec(["commit", "-m", message], worktreePath);
@@ -1988,8 +1988,8 @@ class WorktreeManager {
1988
1988
  } catch {}
1989
1989
  this.gitExec(["push", "--force-with-lease", "-u", remote, branch], worktreePath);
1990
1990
  this.log(`Pushed ${branch} to ${remote} with --force-with-lease`, "success");
1991
+ return branch;
1991
1992
  }
1992
- return branch;
1993
1993
  }
1994
1994
  getBranch(worktreePath) {
1995
1995
  return this.git("rev-parse --abbrev-ref HEAD", worktreePath).trim();
@@ -24,7 +24,7 @@ export declare const LOCUS_CONFIG: {
24
24
  projectContextFile: string;
25
25
  projectProgressFile: string;
26
26
  };
27
- export declare const LOCUS_GITIGNORE_PATTERNS: readonly ["# Locus AI - Session data (user-specific, can grow large)", ".locus/sessions/", "", "# Locus AI - Artifacts (local-only, user-specific)", ".locus/artifacts/", "", "# Locus AI - Review reports (generated per sprint)", ".locus/reviews/", "", "# Locus AI - Plans (generated per task)", ".locus/plans/", "", "# Locus AI - Agent worktrees (parallel execution)", ".locus-worktrees/", "", "# Locus AI - Settings (contains API key, telegram config, etc.)", ".locus/settings.json", "", "# Locus AI - Configuration (contains project context, progress, etc.)", ".locus/config.json"];
27
+ export declare const LOCUS_GITIGNORE_PATTERNS: readonly ["# Locus AI - Session data (user-specific, can grow large)", ".locus/sessions/", "", "# Locus AI - Artifacts (local-only, user-specific)", ".locus/artifacts/", "", "# Locus AI - Review reports (generated per sprint)", ".locus/reviews/", "", "# Locus AI - Plans (generated per task)", ".locus/plans/", "", "# Locus AI - Agent worktrees (parallel execution)", ".locus-worktrees/", "", "# Locus AI - Settings (contains API key, telegram config, etc.)", ".locus/settings.json", "", "# Locus AI - Configuration (contains project context, progress, etc.)", ".locus/config.json", "", "# Locus AI - Project progress (contains project progress, etc.)", ".locus/project/progress.md"];
28
28
  export declare function getLocusPath(projectPath: string, fileName: keyof typeof LOCUS_CONFIG): string;
29
29
  /**
30
30
  * Gets the artifacts directory path for a specific agent.
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/core/config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAGlD,CAAC;AAEF,eAAO,MAAM,qBAAqB,gCAAgC,CAAC;AAEnE,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAcxB,CAAC;AAIF,eAAO,MAAM,wBAAwB,wkBAqB3B,CAAC;AAEX,wBAAgB,YAAY,CAC1B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,OAAO,YAAY,GAClC,MAAM,CAWR;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,MAAM,CASR"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/core/config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAGlD,CAAC;AAEF,eAAO,MAAM,qBAAqB,gCAAgC,CAAC;AAEnE,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAcxB,CAAC;AAIF,eAAO,MAAM,wBAAwB,6qBAwB3B,CAAC;AAEX,wBAAgB,YAAY,CAC1B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,OAAO,YAAY,GAClC,MAAM,CAWR;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,MAAM,CASR"}
@@ -1 +1 @@
1
- {"version":3,"file":"git-utils.d.ts","sourceRoot":"","sources":["../../src/git/git-utils.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAE3E;;GAEG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAUxC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAW3D;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,MAAM,GAAG,IAAI,CAU7C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CASxE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,WAAW,EAAE,MAAM,EACnB,MAAM,SAAW,GAChB,MAAM,GAAG,IAAI,CAUf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM5D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,MAAM,SAAW,GAChB,MAAM,CAsCR"}
1
+ {"version":3,"file":"git-utils.d.ts","sourceRoot":"","sources":["../../src/git/git-utils.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAE3E;;GAEG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAUxC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAW3D;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,MAAM,GAAG,IAAI,CAU7C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CASxE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,WAAW,EAAE,MAAM,EACnB,MAAM,SAAW,GAChB,MAAM,GAAG,IAAI,CAUf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM5D;AAGD;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,MAAM,SAAW,GAChB,MAAM,CAsCR"}
@@ -532,7 +532,10 @@ var LOCUS_GITIGNORE_PATTERNS = [
532
532
  ".locus/settings.json",
533
533
  "",
534
534
  "# Locus AI - Configuration (contains project context, progress, etc.)",
535
- ".locus/config.json"
535
+ ".locus/config.json",
536
+ "",
537
+ "# Locus AI - Project progress (contains project progress, etc.)",
538
+ ".locus/project/progress.md"
536
539
  ];
537
540
  function getLocusPath(projectPath, fileName) {
538
541
  if (fileName === "projectContextFile" || fileName === "projectProgressFile") {
@@ -1958,12 +1961,9 @@ class WorktreeManager {
1958
1961
  return null;
1959
1962
  }
1960
1963
  this.git("add -A", worktreePath);
1961
- try {
1962
- this.git("reset HEAD -- .locus/project/progress.md", worktreePath);
1963
- } catch {}
1964
1964
  const staged = this.git("diff --cached --name-only", worktreePath).trim();
1965
1965
  if (!staged) {
1966
- this.log("No changes to commit (only progress.md was modified)", "info");
1966
+ this.log("No changes to commit", "info");
1967
1967
  return null;
1968
1968
  }
1969
1969
  this.gitExec(["commit", "-m", message], worktreePath);
@@ -1988,8 +1988,8 @@ class WorktreeManager {
1988
1988
  } catch {}
1989
1989
  this.gitExec(["push", "--force-with-lease", "-u", remote, branch], worktreePath);
1990
1990
  this.log(`Pushed ${branch} to ${remote} with --force-with-lease`, "success");
1991
+ return branch;
1991
1992
  }
1992
- return branch;
1993
1993
  }
1994
1994
  getBranch(worktreePath) {
1995
1995
  return this.git("rev-parse --abbrev-ref HEAD", worktreePath).trim();
@@ -68,6 +68,7 @@ export declare class WorktreeManager {
68
68
  /**
69
69
  * Push a worktree's branch to a remote.
70
70
  * Returns the branch name on success, or throws on failure.
71
+ * Expects the remote to be an HTTPS URL with `gh auth setup-git` configured.
71
72
  */
72
73
  pushBranch(worktreePath: string, remote?: string): string;
73
74
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"worktree-manager.d.ts","sourceRoot":"","sources":["../../src/worktree/worktree-manager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAEzB,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAE9B;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,GAAG,CAAQ;gBAGjB,WAA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YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,GAAG,IAAI;IAgChB;;;;OAIG;IACH,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,SAAW,GAAG,MAAM;IAoC3D;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAIvC;;OAEG;IACH,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAM3C;;OAEG;IACH,OAAO,CAAC,YAAY;IAYpB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAIxB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,qBAAqB;IA0B7B,OAAO,CAAC,yBAAyB;IASjC;;OAEG;IACH,OAAO,CAAC,GAAG;IAQX;;OAEG;IACH,OAAO,CAAC,OAAO;CAOhB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/sdk",
3
- "version": "0.9.11",
3
+ "version": "0.9.12",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -30,7 +30,7 @@
30
30
  "clean": "rm -rf node_modules"
31
31
  },
32
32
  "dependencies": {
33
- "@locusai/shared": "^0.9.11",
33
+ "@locusai/shared": "^0.9.12",
34
34
  "axios": "^1.13.2",
35
35
  "events": "^3.3.0",
36
36
  "globby": "^14.0.2"