@fabricorg/cli 0.7.3 → 0.7.5

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/fabric.js CHANGED
@@ -6,7 +6,7 @@ import { Command as Command23 } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@fabricorg/cli",
9
- version: "0.7.3",
9
+ version: "0.7.5",
10
10
  description: "CLI for the Fabric AI platform",
11
11
  keywords: [
12
12
  "fabric",
@@ -8497,7 +8497,7 @@ function exitReason(result) {
8497
8497
  if (/must be run in a work tree/i.test(text3)) {
8498
8498
  return "not a working tree (a bare repository, or inside .git)";
8499
8499
  }
8500
- if (/not a git repository/i.test(text3)) {
8500
+ if (/not a git repository/i.test(text3) || /does not point to a valid repository/i.test(text3)) {
8501
8501
  return "its .git points to a repository that does not exist";
8502
8502
  }
8503
8503
  if (/permission denied/i.test(text3)) {
@@ -10754,7 +10754,6 @@ function registrationOf(servers, name) {
10754
10754
  // src/lib/instructions/hook.ts
10755
10755
  import { createHash as createHash4 } from "crypto";
10756
10756
  import { mkdir as mkdir3 } from "fs/promises";
10757
- import { tmpdir } from "os";
10758
10757
  import path12 from "path";
10759
10758
 
10760
10759
  // src/lib/instructions/identifiers.ts
@@ -10785,8 +10784,8 @@ function subcommandsForEvent(event) {
10785
10784
  return event === "Stop" ? STOP_SUBCOMMANDS : SESSION_START_SUBCOMMANDS;
10786
10785
  }
10787
10786
  async function withHookConfigLock(root, posixPath, work) {
10788
- const directory = path12.join(tmpdir(), "fabric-instructions-hook-locks");
10789
- await mkdir3(directory, { recursive: true });
10787
+ const directory = path12.join(path12.dirname(getConfigPath()), "hook-locks");
10788
+ await mkdir3(directory, { recursive: true, mode: 448 });
10790
10789
  const identity = createHash4("sha256").update(path12.resolve(root)).update("\0").update(posixPath).digest("hex");
10791
10790
  const lockPath2 = path12.join(directory, `${identity}.lock`);
10792
10791
  try {
@@ -12853,12 +12852,12 @@ function isTooLarge(error) {
12853
12852
  // src/lib/instructions/staged-files.ts
12854
12853
  import { createHash as createHash8 } from "crypto";
12855
12854
  import { mkdtemp, realpath as realpath4, rm } from "fs/promises";
12856
- import { tmpdir as tmpdir2 } from "os";
12855
+ import { tmpdir } from "os";
12857
12856
  import path16 from "path";
12858
12857
  var IN_MEMORY_SNAPSHOT_BYTES = 50 * 1024 * 1024;
12859
12858
  async function stageFilesByUrl(options) {
12860
12859
  const root = await realpath4(
12861
- await mkdtemp(path16.join(tmpdir2(), "fabric-instructions-"))
12860
+ await mkdtemp(path16.join(tmpdir(), "fabric-instructions-"))
12862
12861
  );
12863
12862
  const files = /* @__PURE__ */ new Map();
12864
12863
  const dispose = () => rm(root, { recursive: true, force: true });