@mmmnt/cli 0.1.0 → 0.1.1

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/moment.mjs CHANGED
@@ -15651,7 +15651,7 @@ Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/iss
15651
15651
  if (trailingSeparator) path += "/";
15652
15652
  return isAbsolute4 ? `/${path}` : path;
15653
15653
  }
15654
- function join12(...args2) {
15654
+ function join11(...args2) {
15655
15655
  if (args2.length === 0) return ".";
15656
15656
  let joined;
15657
15657
  for (let i = 0; i < args2.length; ++i) {
@@ -16036,7 +16036,7 @@ Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/iss
16036
16036
  for (const [key, value] of actualRefsToWrite) {
16037
16037
  await acquireLock(
16038
16038
  key,
16039
- async () => fs2.write(join12(gitdir, key), `${value.trim()}
16039
+ async () => fs2.write(join11(gitdir, key), `${value.trim()}
16040
16040
  `, "utf8")
16041
16041
  );
16042
16042
  }
@@ -16059,7 +16059,7 @@ Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/iss
16059
16059
  }
16060
16060
  await acquireLock(
16061
16061
  ref,
16062
- async () => fs2.write(join12(gitdir, ref), `${value.trim()}
16062
+ async () => fs2.write(join11(gitdir, ref), `${value.trim()}
16063
16063
  `, "utf8")
16064
16064
  );
16065
16065
  }
@@ -16076,7 +16076,7 @@ Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/iss
16076
16076
  static async writeSymbolicRef({ fs: fs2, gitdir, ref, value }) {
16077
16077
  await acquireLock(
16078
16078
  ref,
16079
- async () => fs2.write(join12(gitdir, ref), `ref: ${value.trim()}
16079
+ async () => fs2.write(join11(gitdir, ref), `ref: ${value.trim()}
16080
16080
  `, "utf8")
16081
16081
  );
16082
16082
  }
@@ -16102,7 +16102,7 @@ Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/iss
16102
16102
  * @returns {Promise<void>}
16103
16103
  */
16104
16104
  static async deleteRefs({ fs: fs2, gitdir, refs }) {
16105
- await Promise.all(refs.map((ref) => fs2.rm(join12(gitdir, ref))));
16105
+ await Promise.all(refs.map((ref) => fs2.rm(join11(gitdir, ref))));
16106
16106
  let text = await acquireLock(
16107
16107
  "packed-refs",
16108
16108
  async () => fs2.read(`${gitdir}/packed-refs`, { encoding: "utf8" })
@@ -17126,7 +17126,7 @@ Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/iss
17126
17126
  format = "content",
17127
17127
  getExternalRefDelta
17128
17128
  }) {
17129
- let list = await fs2.readdir(join12(gitdir, "objects/pack"));
17129
+ let list = await fs2.readdir(join11(gitdir, "objects/pack"));
17130
17130
  list = list.filter((x) => x.endsWith(".idx"));
17131
17131
  for (const filename of list) {
17132
17132
  const indexFile = `${gitdir}/objects/pack/${filename}`;
@@ -17985,9 +17985,9 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
17985
17985
  }
17986
17986
  const tree = GitTree.from(object);
17987
17987
  for (const entry2 of tree) {
17988
- map3.set(join12(filepath, entry2.path), entry2);
17988
+ map3.set(join11(filepath, entry2.path), entry2);
17989
17989
  }
17990
- return tree.entries().map((entry2) => join12(filepath, entry2.path));
17990
+ return tree.entries().map((entry2) => join11(filepath, entry2.path));
17991
17991
  }
17992
17992
  async type(entry) {
17993
17993
  if (entry._type === false) {
@@ -18078,9 +18078,9 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
18078
18078
  async readdir(entry) {
18079
18079
  const filepath = entry._fullpath;
18080
18080
  const { fs: fs2, dir } = this;
18081
- const names = await fs2.readdir(join12(dir, filepath));
18081
+ const names = await fs2.readdir(join11(dir, filepath));
18082
18082
  if (names === null) return null;
18083
- return names.map((name) => join12(filepath, name));
18083
+ return names.map((name) => join11(filepath, name));
18084
18084
  }
18085
18085
  async type(entry) {
18086
18086
  if (entry._type === false) {
@@ -18308,7 +18308,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
18308
18308
  } else if (entries.length) {
18309
18309
  await Promise.all(
18310
18310
  entries.map((entry) => {
18311
- const subpath = join12(filepath, entry);
18311
+ const subpath = join11(filepath, entry);
18312
18312
  return fs2.lstat(subpath).then((stat5) => {
18313
18313
  if (!stat5) return;
18314
18314
  return stat5.isDirectory() ? rmRecursive(fs2, subpath) : fs2.rm(subpath);
@@ -18606,7 +18606,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
18606
18606
  if (isAbsolute3(submoduleGitdir)) {
18607
18607
  return submoduleGitdir;
18608
18608
  }
18609
- const gitdir = join12(dirname12(dotgit), submoduleGitdir);
18609
+ const gitdir = join11(dirname12(dotgit), submoduleGitdir);
18610
18610
  return gitdir;
18611
18611
  });
18612
18612
  } else {
@@ -18628,7 +18628,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
18628
18628
  async function abortMerge({
18629
18629
  fs: _fs,
18630
18630
  dir,
18631
- gitdir = join12(dir, ".git"),
18631
+ gitdir = join11(dir, ".git"),
18632
18632
  commit: commit2 = "HEAD",
18633
18633
  cache = {}
18634
18634
  }) {
@@ -18709,17 +18709,17 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
18709
18709
  * @param {string} args.filepath - The path of the file to check.
18710
18710
  * @returns {Promise<boolean>} - `true` if the file is ignored, `false` otherwise.
18711
18711
  */
18712
- static async isIgnored({ fs: fs2, dir, gitdir = join12(dir, ".git"), filepath }) {
18712
+ static async isIgnored({ fs: fs2, dir, gitdir = join11(dir, ".git"), filepath }) {
18713
18713
  if (basename4(filepath) === ".git") return true;
18714
18714
  if (filepath === ".") return false;
18715
18715
  let excludes = "";
18716
- const excludesFile = join12(gitdir, "info", "exclude");
18716
+ const excludesFile = join11(gitdir, "info", "exclude");
18717
18717
  if (await fs2.exists(excludesFile)) {
18718
18718
  excludes = await fs2.read(excludesFile, "utf8");
18719
18719
  }
18720
18720
  const pairs = [
18721
18721
  {
18722
- gitignore: join12(dir, ".gitignore"),
18722
+ gitignore: join11(dir, ".gitignore"),
18723
18723
  filepath
18724
18724
  }
18725
18725
  ];
@@ -18728,7 +18728,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
18728
18728
  const folder = pieces.slice(0, i).join("/");
18729
18729
  const file = pieces.slice(i).join("/");
18730
18730
  pairs.push({
18731
- gitignore: join12(dir, folder, ".gitignore"),
18731
+ gitignore: join11(dir, folder, ".gitignore"),
18732
18732
  filepath: file
18733
18733
  });
18734
18734
  }
@@ -18815,7 +18815,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
18815
18815
  async function add({
18816
18816
  fs: _fs,
18817
18817
  dir,
18818
- gitdir = join12(dir, ".git"),
18818
+ gitdir = join11(dir, ".git"),
18819
18819
  filepath,
18820
18820
  cache = {},
18821
18821
  force = false,
@@ -18871,17 +18871,17 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
18871
18871
  });
18872
18872
  if (ignored) return;
18873
18873
  }
18874
- const stats = await fs2.lstat(join12(dir, currentFilepath));
18874
+ const stats = await fs2.lstat(join11(dir, currentFilepath));
18875
18875
  if (!stats) throw new NotFoundError(currentFilepath);
18876
18876
  if (stats.isDirectory()) {
18877
- const children = await fs2.readdir(join12(dir, currentFilepath));
18877
+ const children = await fs2.readdir(join11(dir, currentFilepath));
18878
18878
  if (parallel) {
18879
18879
  const promises2 = children.map(
18880
18880
  (child) => addToIndex({
18881
18881
  dir,
18882
18882
  gitdir,
18883
18883
  fs: fs2,
18884
- filepath: [join12(currentFilepath, child)],
18884
+ filepath: [join11(currentFilepath, child)],
18885
18885
  index: index2,
18886
18886
  force,
18887
18887
  parallel,
@@ -18895,7 +18895,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
18895
18895
  dir,
18896
18896
  gitdir,
18897
18897
  fs: fs2,
18898
- filepath: [join12(currentFilepath, child)],
18898
+ filepath: [join11(currentFilepath, child)],
18899
18899
  index: index2,
18900
18900
  force,
18901
18901
  parallel,
@@ -18904,7 +18904,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
18904
18904
  }
18905
18905
  }
18906
18906
  } else {
18907
- const object = stats.isSymbolicLink() ? await fs2.readlink(join12(dir, currentFilepath)).then(posixifyPathBuffer) : await fs2.read(join12(dir, currentFilepath), { autocrlf });
18907
+ const object = stats.isSymbolicLink() ? await fs2.readlink(join11(dir, currentFilepath)).then(posixifyPathBuffer) : await fs2.read(join11(dir, currentFilepath), { autocrlf });
18908
18908
  if (object === null) throw new NotFoundError(currentFilepath);
18909
18909
  const oid = await _writeObject({ fs: fs2, gitdir, type: "blob", object });
18910
18910
  index2.insert({ filepath: currentFilepath, stats, oid });
@@ -19318,7 +19318,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
19318
19318
  fs: _fs,
19319
19319
  onSign,
19320
19320
  dir,
19321
- gitdir = join12(dir, ".git"),
19321
+ gitdir = join11(dir, ".git"),
19322
19322
  ref = "refs/notes/commits",
19323
19323
  oid,
19324
19324
  note,
@@ -19394,7 +19394,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
19394
19394
  async function addRemote({
19395
19395
  fs: fs2,
19396
19396
  dir,
19397
- gitdir = join12(dir, ".git"),
19397
+ gitdir = join11(dir, ".git"),
19398
19398
  remote,
19399
19399
  url,
19400
19400
  force = false
@@ -19464,7 +19464,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
19464
19464
  fs: _fs,
19465
19465
  onSign,
19466
19466
  dir,
19467
- gitdir = join12(dir, ".git"),
19467
+ gitdir = join11(dir, ".git"),
19468
19468
  ref,
19469
19469
  tagger: _tagger,
19470
19470
  message = ref,
@@ -19545,7 +19545,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
19545
19545
  async function branch({
19546
19546
  fs: fs2,
19547
19547
  dir,
19548
- gitdir = join12(dir, ".git"),
19548
+ gitdir = join11(dir, ".git"),
19549
19549
  ref,
19550
19550
  object,
19551
19551
  checkout: checkout2 = false,
@@ -20171,7 +20171,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
20171
20171
  onProgress,
20172
20172
  onPostCheckout,
20173
20173
  dir,
20174
- gitdir = join12(dir, ".git"),
20174
+ gitdir = join11(dir, ".git"),
20175
20175
  remote = "origin",
20176
20176
  ref: _ref,
20177
20177
  filepaths,
@@ -20250,7 +20250,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
20250
20250
  fs: fs2,
20251
20251
  cache,
20252
20252
  dir,
20253
- gitdir = join12(dir, ".git"),
20253
+ gitdir = join11(dir, ".git"),
20254
20254
  index: index2,
20255
20255
  ourOid,
20256
20256
  baseOid,
@@ -20525,7 +20525,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
20525
20525
  return lock$2.acquire(ref, callback);
20526
20526
  }
20527
20527
  async function checkAndWriteBlob(fs2, gitdir, dir, filepath, oid = null) {
20528
- const currentFilepath = join12(dir, filepath);
20528
+ const currentFilepath = join11(dir, filepath);
20529
20529
  const stats = await fs2.lstat(currentFilepath);
20530
20530
  if (!stats) throw new NotFoundError(currentFilepath);
20531
20531
  if (stats.isDirectory())
@@ -20694,7 +20694,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
20694
20694
  stageUpdated.push({
20695
20695
  filepath,
20696
20696
  oid,
20697
- stats: await fs2.lstat(join12(dir, filepath))
20697
+ stats: await fs2.lstat(join11(dir, filepath))
20698
20698
  });
20699
20699
  return {
20700
20700
  method: "write",
@@ -20707,7 +20707,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
20707
20707
  });
20708
20708
  await acquireLock$1({ fs: fs2, gitdir, dirRemoved, ops }, async () => {
20709
20709
  for (const op of ops) {
20710
- const currentFilepath = join12(dir, op.filepath);
20710
+ const currentFilepath = join11(dir, op.filepath);
20711
20711
  switch (op.method) {
20712
20712
  case "rmdir":
20713
20713
  await fs2.rmdir(currentFilepath);
@@ -20839,7 +20839,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
20839
20839
  async function cherryPick({
20840
20840
  fs: _fs,
20841
20841
  dir,
20842
- gitdir = join12(dir, ".git"),
20842
+ gitdir = join11(dir, ".git"),
20843
20843
  oid,
20844
20844
  cache = {},
20845
20845
  committer,
@@ -21308,7 +21308,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
21308
21308
  */
21309
21309
  static async read({ fs: fs2, gitdir }) {
21310
21310
  if (lock$3 === null) lock$3 = new AsyncLock();
21311
- const filepath = join12(gitdir, "shallow");
21311
+ const filepath = join11(gitdir, "shallow");
21312
21312
  const oids = /* @__PURE__ */ new Set();
21313
21313
  await lock$3.acquire(filepath, async function() {
21314
21314
  const text = await fs2.read(filepath, { encoding: "utf8" });
@@ -21330,7 +21330,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
21330
21330
  */
21331
21331
  static async write({ fs: fs2, gitdir, oids }) {
21332
21332
  if (lock$3 === null) lock$3 = new AsyncLock();
21333
- const filepath = join12(gitdir, "shallow");
21333
+ const filepath = join11(gitdir, "shallow");
21334
21334
  if (oids.size > 0) {
21335
21335
  const text = [...oids].join("\n") + "\n";
21336
21336
  await lock$3.acquire(filepath, async function() {
@@ -21356,7 +21356,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
21356
21356
  oid,
21357
21357
  getExternalRefDelta
21358
21358
  }) {
21359
- let list = await fs2.readdir(join12(gitdir, "objects/pack"));
21359
+ let list = await fs2.readdir(join11(gitdir, "objects/pack"));
21360
21360
  list = list.filter((x) => x.endsWith(".idx"));
21361
21361
  for (const filename of list) {
21362
21362
  const indexFile = `${gitdir}/objects/pack/${filename}`;
@@ -21939,7 +21939,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
21939
21939
  }
21940
21940
  if (packfileSha !== "" && !emptyPackfile(packfile)) {
21941
21941
  res.packfile = `objects/pack/pack-${packfileSha}.pack`;
21942
- const fullpath = join12(gitdir, res.packfile);
21942
+ const fullpath = join11(gitdir, res.packfile);
21943
21943
  await fs2.write(fullpath, packfile);
21944
21944
  const getExternalRefDelta = (oid2) => _readObject({ fs: fs2, cache, gitdir, oid: oid2 });
21945
21945
  const idx = await GitPackIndex.fromPack({
@@ -21955,7 +21955,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
21955
21955
  fs: fs2,
21956
21956
  bare = false,
21957
21957
  dir,
21958
- gitdir = bare ? dir : join12(dir, ".git"),
21958
+ gitdir = bare ? dir : join11(dir, ".git"),
21959
21959
  defaultBranch = "master"
21960
21960
  }) {
21961
21961
  if (await fs2.exists(gitdir + "/config")) return;
@@ -22069,7 +22069,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22069
22069
  onAuthFailure,
22070
22070
  onPostCheckout,
22071
22071
  dir,
22072
- gitdir = join12(dir, ".git"),
22072
+ gitdir = join11(dir, ".git"),
22073
22073
  url,
22074
22074
  corsProxy = void 0,
22075
22075
  ref = void 0,
@@ -22132,7 +22132,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22132
22132
  fs: _fs,
22133
22133
  onSign,
22134
22134
  dir,
22135
- gitdir = join12(dir, ".git"),
22135
+ gitdir = join11(dir, ".git"),
22136
22136
  message,
22137
22137
  author,
22138
22138
  committer,
@@ -22179,7 +22179,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22179
22179
  async function currentBranch({
22180
22180
  fs: fs2,
22181
22181
  dir,
22182
- gitdir = join12(dir, ".git"),
22182
+ gitdir = join11(dir, ".git"),
22183
22183
  fullname = false,
22184
22184
  test = false
22185
22185
  }) {
@@ -22220,7 +22220,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22220
22220
  async function deleteBranch({
22221
22221
  fs: fs2,
22222
22222
  dir,
22223
- gitdir = join12(dir, ".git"),
22223
+ gitdir = join11(dir, ".git"),
22224
22224
  ref
22225
22225
  }) {
22226
22226
  try {
@@ -22238,7 +22238,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22238
22238
  throw err;
22239
22239
  }
22240
22240
  }
22241
- async function deleteRef({ fs: fs2, dir, gitdir = join12(dir, ".git"), ref }) {
22241
+ async function deleteRef({ fs: fs2, dir, gitdir = join11(dir, ".git"), ref }) {
22242
22242
  try {
22243
22243
  assertParameter("fs", fs2);
22244
22244
  assertParameter("ref", ref);
@@ -22258,7 +22258,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22258
22258
  async function deleteRemote({
22259
22259
  fs: fs2,
22260
22260
  dir,
22261
- gitdir = join12(dir, ".git"),
22261
+ gitdir = join11(dir, ".git"),
22262
22262
  remote
22263
22263
  }) {
22264
22264
  try {
@@ -22280,7 +22280,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22280
22280
  ref = ref.startsWith("refs/tags/") ? ref : `refs/tags/${ref}`;
22281
22281
  await GitRefManager.deleteRef({ fs: fs2, gitdir, ref });
22282
22282
  }
22283
- async function deleteTag({ fs: fs2, dir, gitdir = join12(dir, ".git"), ref }) {
22283
+ async function deleteTag({ fs: fs2, dir, gitdir = join11(dir, ".git"), ref }) {
22284
22284
  try {
22285
22285
  assertParameter("fs", fs2);
22286
22286
  assertParameter("ref", ref);
@@ -22309,7 +22309,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22309
22309
  getExternalRefDelta
22310
22310
  }) {
22311
22311
  const results = [];
22312
- let list = await fs2.readdir(join12(gitdir, "objects/pack"));
22312
+ let list = await fs2.readdir(join11(gitdir, "objects/pack"));
22313
22313
  list = list.filter((x) => x.endsWith(".idx"));
22314
22314
  for (const filename of list) {
22315
22315
  const indexFile = `${gitdir}/objects/pack/${filename}`;
@@ -22352,7 +22352,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22352
22352
  async function expandOid({
22353
22353
  fs: fs2,
22354
22354
  dir,
22355
- gitdir = join12(dir, ".git"),
22355
+ gitdir = join11(dir, ".git"),
22356
22356
  oid,
22357
22357
  cache = {}
22358
22358
  }) {
@@ -22373,7 +22373,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22373
22373
  throw err;
22374
22374
  }
22375
22375
  }
22376
- async function expandRef({ fs: fs2, dir, gitdir = join12(dir, ".git"), ref }) {
22376
+ async function expandRef({ fs: fs2, dir, gitdir = join11(dir, ".git"), ref }) {
22377
22377
  try {
22378
22378
  assertParameter("fs", fs2);
22379
22379
  assertParameter("gitdir", gitdir);
@@ -22641,7 +22641,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22641
22641
  onAuthSuccess,
22642
22642
  onAuthFailure,
22643
22643
  dir,
22644
- gitdir = join12(dir, ".git"),
22644
+ gitdir = join11(dir, ".git"),
22645
22645
  ref,
22646
22646
  url,
22647
22647
  remote,
@@ -22699,7 +22699,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22699
22699
  onAuthSuccess,
22700
22700
  onAuthFailure,
22701
22701
  dir,
22702
- gitdir = join12(dir, ".git"),
22702
+ gitdir = join11(dir, ".git"),
22703
22703
  ref,
22704
22704
  remote,
22705
22705
  remoteRef,
@@ -22755,7 +22755,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22755
22755
  async function findMergeBase({
22756
22756
  fs: fs2,
22757
22757
  dir,
22758
- gitdir = join12(dir, ".git"),
22758
+ gitdir = join11(dir, ".git"),
22759
22759
  oids,
22760
22760
  cache = {}
22761
22761
  }) {
@@ -22777,7 +22777,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22777
22777
  }
22778
22778
  }
22779
22779
  async function _findRoot({ fs: fs2, filepath }) {
22780
- if (await fs2.exists(join12(filepath, ".git"))) {
22780
+ if (await fs2.exists(join11(filepath, ".git"))) {
22781
22781
  return filepath;
22782
22782
  } else {
22783
22783
  const parent = dirname12(filepath);
@@ -22797,7 +22797,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22797
22797
  throw err;
22798
22798
  }
22799
22799
  }
22800
- async function getConfig({ fs: fs2, dir, gitdir = join12(dir, ".git"), path }) {
22800
+ async function getConfig({ fs: fs2, dir, gitdir = join11(dir, ".git"), path }) {
22801
22801
  try {
22802
22802
  assertParameter("fs", fs2);
22803
22803
  assertParameter("gitdir", gitdir);
@@ -22821,7 +22821,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
22821
22821
  async function getConfigAll({
22822
22822
  fs: fs2,
22823
22823
  dir,
22824
- gitdir = join12(dir, ".git"),
22824
+ gitdir = join11(dir, ".git"),
22825
22825
  path
22826
22826
  }) {
22827
22827
  try {
@@ -23014,7 +23014,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23014
23014
  filepath
23015
23015
  }) {
23016
23016
  try {
23017
- filepath = join12(dir, filepath);
23017
+ filepath = join11(dir, filepath);
23018
23018
  const pack = await fs2.read(filepath);
23019
23019
  const getExternalRefDelta = (oid) => _readObject({ fs: fs2, cache, gitdir, oid });
23020
23020
  const idx = await GitPackIndex.fromPack({
@@ -23035,7 +23035,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23035
23035
  fs: fs2,
23036
23036
  onProgress,
23037
23037
  dir,
23038
- gitdir = join12(dir, ".git"),
23038
+ gitdir = join11(dir, ".git"),
23039
23039
  filepath,
23040
23040
  cache = {}
23041
23041
  }) {
@@ -23063,7 +23063,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23063
23063
  fs: fs2,
23064
23064
  bare = false,
23065
23065
  dir,
23066
- gitdir = bare ? dir : join12(dir, ".git"),
23066
+ gitdir = bare ? dir : join11(dir, ".git"),
23067
23067
  defaultBranch = "master"
23068
23068
  }) {
23069
23069
  try {
@@ -23137,7 +23137,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23137
23137
  async function isDescendent({
23138
23138
  fs: fs2,
23139
23139
  dir,
23140
- gitdir = join12(dir, ".git"),
23140
+ gitdir = join11(dir, ".git"),
23141
23141
  oid,
23142
23142
  ancestor,
23143
23143
  depth = -1,
@@ -23166,7 +23166,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23166
23166
  async function isIgnored({
23167
23167
  fs: fs2,
23168
23168
  dir,
23169
- gitdir = join12(dir, ".git"),
23169
+ gitdir = join11(dir, ".git"),
23170
23170
  filepath
23171
23171
  }) {
23172
23172
  try {
@@ -23190,7 +23190,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23190
23190
  async function listBranches({
23191
23191
  fs: fs2,
23192
23192
  dir,
23193
- gitdir = join12(dir, ".git"),
23193
+ gitdir = join11(dir, ".git"),
23194
23194
  remote
23195
23195
  }) {
23196
23196
  try {
@@ -23247,17 +23247,17 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23247
23247
  gitdir,
23248
23248
  oid: entry.oid,
23249
23249
  filenames,
23250
- prefix: join12(prefix, entry.path)
23250
+ prefix: join11(prefix, entry.path)
23251
23251
  });
23252
23252
  } else {
23253
- filenames.push(join12(prefix, entry.path));
23253
+ filenames.push(join11(prefix, entry.path));
23254
23254
  }
23255
23255
  }
23256
23256
  }
23257
23257
  async function listFiles2({
23258
23258
  fs: fs2,
23259
23259
  dir,
23260
- gitdir = join12(dir, ".git"),
23260
+ gitdir = join11(dir, ".git"),
23261
23261
  ref,
23262
23262
  cache = {}
23263
23263
  }) {
@@ -23301,7 +23301,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23301
23301
  async function listNotes({
23302
23302
  fs: fs2,
23303
23303
  dir,
23304
- gitdir = join12(dir, ".git"),
23304
+ gitdir = join11(dir, ".git"),
23305
23305
  ref = "refs/notes/commits",
23306
23306
  cache = {}
23307
23307
  }) {
@@ -23325,7 +23325,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23325
23325
  async function listRefs({
23326
23326
  fs: fs2,
23327
23327
  dir,
23328
- gitdir = join12(dir, ".git"),
23328
+ gitdir = join11(dir, ".git"),
23329
23329
  filepath
23330
23330
  }) {
23331
23331
  try {
@@ -23350,7 +23350,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23350
23350
  );
23351
23351
  return remotes;
23352
23352
  }
23353
- async function listRemotes({ fs: fs2, dir, gitdir = join12(dir, ".git") }) {
23353
+ async function listRemotes({ fs: fs2, dir, gitdir = join11(dir, ".git") }) {
23354
23354
  try {
23355
23355
  assertParameter("fs", fs2);
23356
23356
  assertParameter("gitdir", gitdir);
@@ -23449,7 +23449,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23449
23449
  throw err;
23450
23450
  }
23451
23451
  }
23452
- async function listTags({ fs: fs2, dir, gitdir = join12(dir, ".git") }) {
23452
+ async function listTags({ fs: fs2, dir, gitdir = join11(dir, ".git") }) {
23453
23453
  try {
23454
23454
  assertParameter("fs", fs2);
23455
23455
  assertParameter("gitdir", gitdir);
@@ -23502,7 +23502,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23502
23502
  const walks = tree.entries().map(function(entry) {
23503
23503
  let result;
23504
23504
  if (entry.oid === fileId) {
23505
- result = join12(parentPath, entry.path);
23505
+ result = join11(parentPath, entry.path);
23506
23506
  filepaths.push(result);
23507
23507
  } else if (entry.type === "tree") {
23508
23508
  result = _readObject({
@@ -23519,7 +23519,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23519
23519
  fileId,
23520
23520
  oid,
23521
23521
  filepaths,
23522
- parentPath: join12(parentPath, entry.path)
23522
+ parentPath: join11(parentPath, entry.path)
23523
23523
  });
23524
23524
  });
23525
23525
  }
@@ -23647,7 +23647,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23647
23647
  async function log({
23648
23648
  fs: fs2,
23649
23649
  dir,
23650
- gitdir = join12(dir, ".git"),
23650
+ gitdir = join11(dir, ".git"),
23651
23651
  filepath,
23652
23652
  ref = "HEAD",
23653
23653
  depth,
@@ -23683,7 +23683,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23683
23683
  fs: _fs,
23684
23684
  onSign,
23685
23685
  dir,
23686
- gitdir = join12(dir, ".git"),
23686
+ gitdir = join11(dir, ".git"),
23687
23687
  ours,
23688
23688
  theirs,
23689
23689
  fastForward: fastForward2 = true,
@@ -23760,7 +23760,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23760
23760
  fs: fs2,
23761
23761
  cache,
23762
23762
  dir,
23763
- gitdir = join12(dir, ".git"),
23763
+ gitdir = join11(dir, ".git"),
23764
23764
  oids
23765
23765
  }) {
23766
23766
  const hash = new Hash3();
@@ -23803,7 +23803,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23803
23803
  const packfileSha = packfile.slice(-20).toString("hex");
23804
23804
  const filename = `pack-${packfileSha}.pack`;
23805
23805
  if (write) {
23806
- await fs2.write(join12(gitdir, `objects/pack/${filename}`), packfile);
23806
+ await fs2.write(join11(gitdir, `objects/pack/${filename}`), packfile);
23807
23807
  return { filename };
23808
23808
  }
23809
23809
  return {
@@ -23814,7 +23814,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23814
23814
  async function packObjects({
23815
23815
  fs: fs2,
23816
23816
  dir,
23817
- gitdir = join12(dir, ".git"),
23817
+ gitdir = join11(dir, ".git"),
23818
23818
  oids,
23819
23819
  write = false,
23820
23820
  cache = {}
@@ -23846,7 +23846,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23846
23846
  onAuthSuccess,
23847
23847
  onAuthFailure,
23848
23848
  dir,
23849
- gitdir = join12(dir, ".git"),
23849
+ gitdir = join11(dir, ".git"),
23850
23850
  ref,
23851
23851
  url,
23852
23852
  remote,
@@ -23916,7 +23916,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23916
23916
  fs: fs2,
23917
23917
  cache,
23918
23918
  dir,
23919
- gitdir = join12(dir, ".git"),
23919
+ gitdir = join11(dir, ".git"),
23920
23920
  start,
23921
23921
  finish
23922
23922
  }) {
@@ -23964,7 +23964,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
23964
23964
  fs: fs2,
23965
23965
  cache,
23966
23966
  dir,
23967
- gitdir = join12(dir, ".git"),
23967
+ gitdir = join11(dir, ".git"),
23968
23968
  oids
23969
23969
  }) {
23970
23970
  const visited = /* @__PURE__ */ new Set();
@@ -24259,7 +24259,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24259
24259
  onAuthFailure,
24260
24260
  onPrePush,
24261
24261
  dir,
24262
- gitdir = join12(dir, ".git"),
24262
+ gitdir = join11(dir, ".git"),
24263
24263
  ref,
24264
24264
  remoteRef,
24265
24265
  remote = "origin",
@@ -24333,7 +24333,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24333
24333
  async function readBlob2({
24334
24334
  fs: fs2,
24335
24335
  dir,
24336
- gitdir = join12(dir, ".git"),
24336
+ gitdir = join11(dir, ".git"),
24337
24337
  oid,
24338
24338
  filepath,
24339
24339
  cache = {}
@@ -24359,7 +24359,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24359
24359
  async function readCommit({
24360
24360
  fs: fs2,
24361
24361
  dir,
24362
- gitdir = join12(dir, ".git"),
24362
+ gitdir = join11(dir, ".git"),
24363
24363
  oid,
24364
24364
  cache = {}
24365
24365
  }) {
@@ -24400,7 +24400,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24400
24400
  async function readNote({
24401
24401
  fs: fs2,
24402
24402
  dir,
24403
- gitdir = join12(dir, ".git"),
24403
+ gitdir = join11(dir, ".git"),
24404
24404
  ref = "refs/notes/commits",
24405
24405
  oid,
24406
24406
  cache = {}
@@ -24427,7 +24427,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24427
24427
  async function readObject({
24428
24428
  fs: _fs,
24429
24429
  dir,
24430
- gitdir = join12(dir, ".git"),
24430
+ gitdir = join11(dir, ".git"),
24431
24431
  oid,
24432
24432
  format = "parsed",
24433
24433
  filepath = void 0,
@@ -24516,7 +24516,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24516
24516
  async function readTag({
24517
24517
  fs: fs2,
24518
24518
  dir,
24519
- gitdir = join12(dir, ".git"),
24519
+ gitdir = join11(dir, ".git"),
24520
24520
  oid,
24521
24521
  cache = {}
24522
24522
  }) {
@@ -24540,7 +24540,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24540
24540
  async function readTree({
24541
24541
  fs: fs2,
24542
24542
  dir,
24543
- gitdir = join12(dir, ".git"),
24543
+ gitdir = join11(dir, ".git"),
24544
24544
  oid,
24545
24545
  filepath = void 0,
24546
24546
  cache = {}
@@ -24566,7 +24566,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24566
24566
  async function remove({
24567
24567
  fs: _fs,
24568
24568
  dir,
24569
- gitdir = join12(dir, ".git"),
24569
+ gitdir = join11(dir, ".git"),
24570
24570
  filepath,
24571
24571
  cache = {}
24572
24572
  }) {
@@ -24639,7 +24639,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24639
24639
  fs: _fs,
24640
24640
  onSign,
24641
24641
  dir,
24642
- gitdir = join12(dir, ".git"),
24642
+ gitdir = join11(dir, ".git"),
24643
24643
  ref = "refs/notes/commits",
24644
24644
  oid,
24645
24645
  author: _author,
@@ -24727,7 +24727,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24727
24727
  async function renameBranch({
24728
24728
  fs: fs2,
24729
24729
  dir,
24730
- gitdir = join12(dir, ".git"),
24730
+ gitdir = join11(dir, ".git"),
24731
24731
  ref,
24732
24732
  oldref,
24733
24733
  checkout: checkout2 = false
@@ -24757,7 +24757,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24757
24757
  async function resetIndex({
24758
24758
  fs: _fs,
24759
24759
  dir,
24760
- gitdir = join12(dir, ".git"),
24760
+ gitdir = join11(dir, ".git"),
24761
24761
  filepath,
24762
24762
  ref,
24763
24763
  cache = {}
@@ -24804,7 +24804,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24804
24804
  gid: 0,
24805
24805
  size: 0
24806
24806
  };
24807
- const object = dir && await fs2.read(join12(dir, filepath));
24807
+ const object = dir && await fs2.read(join11(dir, filepath));
24808
24808
  if (object) {
24809
24809
  workdirOid = await hashObject$1({
24810
24810
  gitdir: updatedGitdir,
@@ -24812,7 +24812,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24812
24812
  object
24813
24813
  });
24814
24814
  if (oid === workdirOid) {
24815
- stats = await fs2.lstat(join12(dir, filepath));
24815
+ stats = await fs2.lstat(join11(dir, filepath));
24816
24816
  }
24817
24817
  }
24818
24818
  await GitIndexManager.acquire(
@@ -24832,7 +24832,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24832
24832
  async function resolveRef2({
24833
24833
  fs: fs2,
24834
24834
  dir,
24835
- gitdir = join12(dir, ".git"),
24835
+ gitdir = join11(dir, ".git"),
24836
24836
  ref,
24837
24837
  depth
24838
24838
  }) {
@@ -24857,7 +24857,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24857
24857
  async function setConfig({
24858
24858
  fs: _fs,
24859
24859
  dir,
24860
- gitdir = join12(dir, ".git"),
24860
+ gitdir = join11(dir, ".git"),
24861
24861
  path,
24862
24862
  value,
24863
24863
  append = false
@@ -24925,7 +24925,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24925
24925
  * @param {string} args.dir - The working directory.
24926
24926
  * @param {string}[args.gitdir=join(dir, '.git')] - [required] The [git directory](dir-vs-gitdir.md) path
24927
24927
  */
24928
- constructor({ fs: fs2, dir, gitdir = join12(dir, ".git") }) {
24928
+ constructor({ fs: fs2, dir, gitdir = join11(dir, ".git") }) {
24929
24929
  Object.assign(this, {
24930
24930
  fs: fs2,
24931
24931
  dir,
@@ -24955,7 +24955,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24955
24955
  * @returns {string} - The file path for the stash reference.
24956
24956
  */
24957
24957
  get refStashPath() {
24958
- return join12(this.gitdir, _GitStashManager.refStash);
24958
+ return join11(this.gitdir, _GitStashManager.refStash);
24959
24959
  }
24960
24960
  /**
24961
24961
  * Gets the file path for the stash reflogs.
@@ -24963,7 +24963,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
24963
24963
  * @returns {string} - The file path for the stash reflogs.
24964
24964
  */
24965
24965
  get refLogsStashPath() {
24966
- return join12(this.gitdir, _GitStashManager.refLogsStash);
24966
+ return join11(this.gitdir, _GitStashManager.refLogsStash);
24967
24967
  }
24968
24968
  /**
24969
24969
  * Retrieves the author information for the stash.
@@ -25269,7 +25269,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25269
25269
  async function stash({
25270
25270
  fs: fs2,
25271
25271
  dir,
25272
- gitdir = join12(dir, ".git"),
25272
+ gitdir = join11(dir, ".git"),
25273
25273
  op = "push",
25274
25274
  message = "",
25275
25275
  refIdx = 0
@@ -25292,7 +25292,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25292
25292
  const _fs = new FileSystem(fs2);
25293
25293
  const updatedGitdir = await discoverGitdir({ fsp: _fs, dotgit: gitdir });
25294
25294
  const folders = ["refs", "logs", "logs/refs"];
25295
- folders.map((f) => join12(updatedGitdir, f)).forEach(async (folder) => {
25295
+ folders.map((f) => join11(updatedGitdir, f)).forEach(async (folder) => {
25296
25296
  if (!await _fs.exists(folder)) {
25297
25297
  await _fs.mkdir(folder);
25298
25298
  }
@@ -25322,7 +25322,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25322
25322
  async function status({
25323
25323
  fs: _fs,
25324
25324
  dir,
25325
- gitdir = join12(dir, ".git"),
25325
+ gitdir = join11(dir, ".git"),
25326
25326
  filepath,
25327
25327
  cache = {}
25328
25328
  }) {
@@ -25358,7 +25358,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25358
25358
  return null;
25359
25359
  }
25360
25360
  );
25361
- const stats = await fs2.lstat(join12(dir, filepath));
25361
+ const stats = await fs2.lstat(join11(dir, filepath));
25362
25362
  const H = treeOid !== null;
25363
25363
  const I = indexEntry !== null;
25364
25364
  const W = stats !== null;
@@ -25366,7 +25366,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25366
25366
  if (I && !compareStats(indexEntry, stats)) {
25367
25367
  return indexEntry.oid;
25368
25368
  } else {
25369
- const object = await fs2.read(join12(dir, filepath));
25369
+ const object = await fs2.read(join11(dir, filepath));
25370
25370
  const workdirOid = await hashObject$1({
25371
25371
  gitdir: updatedGitdir,
25372
25372
  type: "blob",
@@ -25457,7 +25457,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25457
25457
  async function statusMatrix({
25458
25458
  fs: _fs,
25459
25459
  dir,
25460
- gitdir = join12(dir, ".git"),
25460
+ gitdir = join11(dir, ".git"),
25461
25461
  ref = "HEAD",
25462
25462
  filepaths = ["."],
25463
25463
  filter: filter3,
@@ -25529,7 +25529,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25529
25529
  async function tag({
25530
25530
  fs: _fs,
25531
25531
  dir,
25532
- gitdir = join12(dir, ".git"),
25532
+ gitdir = join11(dir, ".git"),
25533
25533
  ref,
25534
25534
  object,
25535
25535
  force = false
@@ -25561,7 +25561,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25561
25561
  async function updateIndex$1({
25562
25562
  fs: _fs,
25563
25563
  dir,
25564
- gitdir = join12(dir, ".git"),
25564
+ gitdir = join11(dir, ".git"),
25565
25565
  cache = {},
25566
25566
  filepath,
25567
25567
  oid,
@@ -25581,7 +25581,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25581
25581
  { fs: fs2, gitdir: updatedGitdir, cache },
25582
25582
  async function(index2) {
25583
25583
  if (!force) {
25584
- const fileStats2 = await fs2.lstat(join12(dir, filepath));
25584
+ const fileStats2 = await fs2.lstat(join11(dir, filepath));
25585
25585
  if (fileStats2) {
25586
25586
  if (fileStats2.isDirectory()) {
25587
25587
  throw new InvalidFilepathError("directory");
@@ -25599,7 +25599,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25599
25599
  }
25600
25600
  let fileStats;
25601
25601
  if (!oid) {
25602
- fileStats = await fs2.lstat(join12(dir, filepath));
25602
+ fileStats = await fs2.lstat(join11(dir, filepath));
25603
25603
  if (!fileStats) {
25604
25604
  throw new NotFoundError(
25605
25605
  `file at "${filepath}" on disk and "remove" not set`
@@ -25620,7 +25620,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25620
25620
  let stats;
25621
25621
  if (!oid) {
25622
25622
  stats = fileStats;
25623
- const object = stats.isSymbolicLink() ? await fs2.readlink(join12(dir, filepath)) : await fs2.read(join12(dir, filepath));
25623
+ const object = stats.isSymbolicLink() ? await fs2.readlink(join11(dir, filepath)) : await fs2.read(join11(dir, filepath));
25624
25624
  oid = await _writeObject({
25625
25625
  fs: fs2,
25626
25626
  gitdir: updatedGitdir,
@@ -25664,7 +25664,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25664
25664
  async function walk({
25665
25665
  fs: fs2,
25666
25666
  dir,
25667
- gitdir = join12(dir, ".git"),
25667
+ gitdir = join11(dir, ".git"),
25668
25668
  trees,
25669
25669
  map: map3,
25670
25670
  reduce: reduce3,
@@ -25692,7 +25692,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25692
25692
  throw err;
25693
25693
  }
25694
25694
  }
25695
- async function writeBlob({ fs: fs2, dir, gitdir = join12(dir, ".git"), blob }) {
25695
+ async function writeBlob({ fs: fs2, dir, gitdir = join11(dir, ".git"), blob }) {
25696
25696
  try {
25697
25697
  assertParameter("fs", fs2);
25698
25698
  assertParameter("gitdir", gitdir);
@@ -25714,7 +25714,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25714
25714
  async function writeCommit({
25715
25715
  fs: fs2,
25716
25716
  dir,
25717
- gitdir = join12(dir, ".git"),
25717
+ gitdir = join11(dir, ".git"),
25718
25718
  commit: commit2
25719
25719
  }) {
25720
25720
  try {
@@ -25736,7 +25736,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25736
25736
  async function writeObject({
25737
25737
  fs: _fs,
25738
25738
  dir,
25739
- gitdir = join12(dir, ".git"),
25739
+ gitdir = join11(dir, ".git"),
25740
25740
  type,
25741
25741
  object,
25742
25742
  format = "parsed",
@@ -25782,7 +25782,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25782
25782
  async function writeRef({
25783
25783
  fs: _fs,
25784
25784
  dir,
25785
- gitdir = join12(dir, ".git"),
25785
+ gitdir = join11(dir, ".git"),
25786
25786
  ref,
25787
25787
  value,
25788
25788
  force = false,
@@ -25837,7 +25837,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25837
25837
  });
25838
25838
  return oid;
25839
25839
  }
25840
- async function writeTag({ fs: fs2, dir, gitdir = join12(dir, ".git"), tag: tag2 }) {
25840
+ async function writeTag({ fs: fs2, dir, gitdir = join11(dir, ".git"), tag: tag2 }) {
25841
25841
  try {
25842
25842
  assertParameter("fs", fs2);
25843
25843
  assertParameter("gitdir", gitdir);
@@ -25854,7 +25854,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
25854
25854
  throw err;
25855
25855
  }
25856
25856
  }
25857
- async function writeTree({ fs: fs2, dir, gitdir = join12(dir, ".git"), tree }) {
25857
+ async function writeTree({ fs: fs2, dir, gitdir = join11(dir, ".git"), tree }) {
25858
25858
  try {
25859
25859
  assertParameter("fs", fs2);
25860
25860
  assertParameter("gitdir", gitdir);
@@ -26023,11 +26023,8 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
26023
26023
  import { parseArgs } from "node:util";
26024
26024
  import { resolve as resolve4 } from "node:path";
26025
26025
 
26026
- // ../core/dist/manifest/manifest-reader.js
26027
- var import_yaml = __toESM(require_dist(), 1);
26028
-
26029
26026
  // ../core/dist/manifest/manifest-scaffolder.js
26030
- var import_yaml2 = __toESM(require_dist(), 1);
26027
+ var import_yaml = __toESM(require_dist(), 1);
26031
26028
  import { writeFileSync, mkdirSync } from "node:fs";
26032
26029
  import { join } from "node:path";
26033
26030
  var ManifestScaffolder = class {
@@ -26054,7 +26051,7 @@ var ManifestScaffolder = class {
26054
26051
  const flowsDir = join(targetDir, ".moment", "flows");
26055
26052
  mkdirSync(contextsDir, { recursive: true });
26056
26053
  mkdirSync(flowsDir, { recursive: true });
26057
- const yamlContent = (0, import_yaml2.stringify)(manifest);
26054
+ const yamlContent = (0, import_yaml.stringify)(manifest);
26058
26055
  try {
26059
26056
  writeFileSync(manifestPath, yamlContent, { encoding: "utf-8", flag: "wx" });
26060
26057
  } catch (err) {
@@ -26071,7 +26068,7 @@ var ManifestScaffolder = class {
26071
26068
  };
26072
26069
 
26073
26070
  // ../core/dist/manifest/manifest-updater.js
26074
- var import_yaml3 = __toESM(require_dist(), 1);
26071
+ var import_yaml2 = __toESM(require_dist(), 1);
26075
26072
  import { readFileSync, writeFileSync as writeFileSync2, existsSync, readdirSync } from "node:fs";
26076
26073
  import { join as join2, relative } from "node:path";
26077
26074
  var ManifestUpdater = class {
@@ -26085,7 +26082,7 @@ var ManifestUpdater = class {
26085
26082
  return { updated: false, contextsAdded: 0, flowsAdded: 0 };
26086
26083
  }
26087
26084
  const content = readFileSync(manifestPath, "utf-8");
26088
- const manifest = (0, import_yaml3.parse)(content);
26085
+ const manifest = (0, import_yaml2.parse)(content);
26089
26086
  const existingContexts = this.extractFileRefs(manifest.contexts);
26090
26087
  const existingFlows = this.extractFileRefs(manifest.flows);
26091
26088
  const discoveredContexts = this.scanDirectory(projectDir, ".moment/contexts", ".moment");
@@ -26108,7 +26105,7 @@ var ManifestUpdater = class {
26108
26105
  }
26109
26106
  manifest.contexts = newContexts;
26110
26107
  manifest.flows = newFlows;
26111
- writeFileSync2(manifestPath, (0, import_yaml3.stringify)(manifest), "utf-8");
26108
+ writeFileSync2(manifestPath, (0, import_yaml2.stringify)(manifest), "utf-8");
26112
26109
  return { updated: true, contextsAdded, flowsAdded };
26113
26110
  }
26114
26111
  /**
@@ -26121,7 +26118,7 @@ var ManifestUpdater = class {
26121
26118
  return { updated: false, contextsAdded: 0, flowsAdded: 0 };
26122
26119
  }
26123
26120
  const content = readFileSync(manifestPath, "utf-8");
26124
- const manifest = (0, import_yaml3.parse)(content);
26121
+ const manifest = (0, import_yaml2.parse)(content);
26125
26122
  const existingContexts = this.extractFileRefs(manifest.contexts);
26126
26123
  const existingFlows = this.extractFileRefs(manifest.flows);
26127
26124
  const relPath = relative(projectDir, filePath);
@@ -26144,7 +26141,7 @@ var ManifestUpdater = class {
26144
26141
  }
26145
26142
  manifest.contexts = existingContexts;
26146
26143
  manifest.flows = existingFlows;
26147
- writeFileSync2(manifestPath, (0, import_yaml3.stringify)(manifest), "utf-8");
26144
+ writeFileSync2(manifestPath, (0, import_yaml2.stringify)(manifest), "utf-8");
26148
26145
  return { updated: true, contextsAdded, flowsAdded };
26149
26146
  }
26150
26147
  extractFileRefs(raw) {
@@ -55657,18 +55654,6 @@ import { readFileSync as readFileSync10, existsSync as existsSync10 } from "node
55657
55654
  import { resolve as resolve13, dirname as dirname4 } from "node:path";
55658
55655
  import { parseArgs as parseArgs8 } from "node:util";
55659
55656
 
55660
- // ../sync/dist/value-objects/feedback-event-type.js
55661
- var FEEDBACK_EVENT_TYPES = [
55662
- "ValueObjectDefined",
55663
- "ValueObjectRemoved",
55664
- "ValueObjectRenamed",
55665
- "ValueObjectFieldAdded",
55666
- "ValueObjectFieldRemoved",
55667
- "ValueObjectFieldRevised",
55668
- "CommandInputRevised",
55669
- "DomainEventPayloadRevised"
55670
- ];
55671
-
55672
55657
  // ../sync/dist/aggregates/sync-state.js
55673
55658
  var TERMINAL_STATUSES = /* @__PURE__ */ new Set([
55674
55659
  "accepted",
@@ -55829,9 +55814,6 @@ var SyncState = class {
55829
55814
  }
55830
55815
  };
55831
55816
 
55832
- // ../sync/dist/aggregates/implementation-feedback-journal.js
55833
- var KNOWN_FEEDBACK_TYPES = new Set(FEEDBACK_EVENT_TYPES);
55834
-
55835
55817
  // ../sync/dist/services/typescript-ast-utils.js
55836
55818
  import ts from "typescript";
55837
55819
  var printer = ts.createPrinter({ removeComments: true });
@@ -56685,14 +56667,9 @@ var LocalGitArtifactStore = class {
56685
56667
  }
56686
56668
  };
56687
56669
 
56688
- // ../sync/dist/infrastructure/credential-strategies.js
56689
- import { join as join6 } from "node:path";
56690
- import { homedir } from "node:os";
56691
- var CREDENTIALS_PATH = join6(homedir(), ".moment", "credentials.json");
56692
-
56693
56670
  // ../sync/dist/services/sift-event-stream-reader.js
56694
56671
  import { readFileSync as readFileSync9, readdirSync as readdirSync2, existsSync as existsSync9 } from "node:fs";
56695
- import { join as join7 } from "node:path";
56672
+ import { join as join6 } from "node:path";
56696
56673
  var SiftEventStreamReader = class {
56697
56674
  read(domainDir) {
56698
56675
  if (!existsSync9(domainDir)) {
@@ -56706,7 +56683,7 @@ var SiftEventStreamReader = class {
56706
56683
  const errors = [];
56707
56684
  let eventsProcessed = 0;
56708
56685
  for (const file of jsonlFiles) {
56709
- const filePath = join7(domainDir, file);
56686
+ const filePath = join6(domainDir, file);
56710
56687
  const result = this.processFile(filePath, accumulator);
56711
56688
  eventsProcessed += result.processed;
56712
56689
  errors.push(...result.errors);
@@ -57733,7 +57710,7 @@ function buildResult2(issues, hasParseErrors, asJson) {
57733
57710
 
57734
57711
  // src/commands/import-from-sift.ts
57735
57712
  import { readFileSync as readFileSync15, writeFileSync as writeFileSync3, existsSync as existsSync15, mkdirSync as mkdirSync2 } from "node:fs";
57736
- import { resolve as resolve18, dirname as dirname8, join as join8 } from "node:path";
57713
+ import { resolve as resolve18, dirname as dirname8, join as join7 } from "node:path";
57737
57714
  import { parseArgs as parseArgs13 } from "node:util";
57738
57715
  import { createHash as createHash3 } from "node:crypto";
57739
57716
  var EMPTY11 = [];
@@ -57787,10 +57764,10 @@ function assertPathWithin(filePath, baseDir) {
57787
57764
  }
57788
57765
  function writeOutputFiles(importer, input, outDir) {
57789
57766
  let count = 0;
57790
- const momentDir = join8(outDir, ".moment");
57767
+ const momentDir = join7(outDir, ".moment");
57791
57768
  for (const block2 of input.buildingBlocks) {
57792
57769
  const fileName = sanitizeFileName(block2.contextName);
57793
- const filePath = join8(momentDir, "contexts", `${fileName}.moment`);
57770
+ const filePath = join7(momentDir, "contexts", `${fileName}.moment`);
57794
57771
  assertPathWithin(filePath, momentDir);
57795
57772
  mkdirSync2(dirname8(filePath), { recursive: true });
57796
57773
  writeFileSync3(filePath, importer.generateContextFile(block2));
@@ -57800,8 +57777,8 @@ function writeOutputFiles(importer, input, outDir) {
57800
57777
  }
57801
57778
  function writeFingerprint(siftInput, importResult, domainDir, outDir) {
57802
57779
  const contentHash = computeDomainHash(domainDir);
57803
- const fpDir = join8(outDir, ".moment");
57804
- const fpPath = join8(fpDir, ".upstream-fingerprint.json");
57780
+ const fpDir = join7(outDir, ".moment");
57781
+ const fpPath = join7(fpDir, ".upstream-fingerprint.json");
57805
57782
  if (existsSync15(fpPath)) {
57806
57783
  try {
57807
57784
  const existing = JSON.parse(readFileSync15(fpPath, "utf-8"));
@@ -57827,7 +57804,7 @@ function computeDomainHash(domainDir) {
57827
57804
  const files = readdirSync3(domainDir).filter((f) => f.endsWith(".jsonl")).sort();
57828
57805
  const hash = createHash3("sha256");
57829
57806
  for (const file of files) {
57830
- hash.update(readFileSync15(join8(domainDir, file), "utf-8"));
57807
+ hash.update(readFileSync15(join7(domainDir, file), "utf-8"));
57831
57808
  }
57832
57809
  return hash.digest("hex");
57833
57810
  }
@@ -57860,7 +57837,7 @@ function buildResult3(importResult, filesWritten, eventsProcessed, filesRead, as
57860
57837
 
57861
57838
  // src/commands/status.ts
57862
57839
  import { readFileSync as readFileSync16, existsSync as existsSync16 } from "node:fs";
57863
- import { resolve as resolve19, dirname as dirname9, join as join9 } from "node:path";
57840
+ import { resolve as resolve19, dirname as dirname9, join as join8 } from "node:path";
57864
57841
  import { parseArgs as parseArgs14 } from "node:util";
57865
57842
  function fail13(message) {
57866
57843
  return { success: false, hasDrift: false, message, sections: [] };
@@ -57964,8 +57941,8 @@ function buildSchemaSection(ir) {
57964
57941
  }
57965
57942
  function buildUpstreamSection(resolvedPath) {
57966
57943
  const projectDir = dirname9(resolvedPath);
57967
- const domainDir = join9(projectDir, ".domain");
57968
- const fpPath = join9(projectDir, ".moment", ".upstream-fingerprint.json");
57944
+ const domainDir = join8(projectDir, ".domain");
57945
+ const fpPath = join8(projectDir, ".moment", ".upstream-fingerprint.json");
57969
57946
  if (!existsSync16(domainDir)) {
57970
57947
  return { label: "Upstream Source", state: "ok", summary: "No upstream source configured" };
57971
57948
  }
@@ -57987,7 +57964,7 @@ function buildUpstreamSection(resolvedPath) {
57987
57964
  function findGitRoot2(startDir) {
57988
57965
  let dir = resolve19(startDir);
57989
57966
  while (dir !== dirname9(dir)) {
57990
- if (existsSync16(join9(dir, ".git"))) return dir;
57967
+ if (existsSync16(join8(dir, ".git"))) return dir;
57991
57968
  dir = dirname9(dir);
57992
57969
  }
57993
57970
  return void 0;
@@ -58017,7 +57994,7 @@ function formatOutput(sections, hasDrift, values2) {
58017
57994
 
58018
57995
  // src/commands/reconcile.ts
58019
57996
  import { readFileSync as readFileSync17, writeFileSync as writeFileSync4, existsSync as existsSync17, mkdirSync as mkdirSync3 } from "node:fs";
58020
- import { resolve as resolve20, dirname as dirname10, join as join10 } from "node:path";
57997
+ import { resolve as resolve20, dirname as dirname10, join as join9 } from "node:path";
58021
57998
  import { parseArgs as parseArgs15 } from "node:util";
58022
57999
  import { createHash as createHash4 } from "node:crypto";
58023
58000
  function fail14(message) {
@@ -58065,7 +58042,7 @@ async function parseSpec(resolvedPath) {
58065
58042
  }
58066
58043
  function reconcileLocal(ir, specPath, asJson) {
58067
58044
  const projectDir = dirname10(specPath);
58068
- const domainDir = join10(projectDir, ".domain");
58045
+ const domainDir = join9(projectDir, ".domain");
58069
58046
  if (!existsSync17(domainDir)) {
58070
58047
  return buildNoChangesResult(asJson);
58071
58048
  }
@@ -58104,7 +58081,7 @@ function validateAffectedElements(value) {
58104
58081
  }
58105
58082
  function classifyDrift(ir, specPath) {
58106
58083
  try {
58107
- const domainDir = join10(dirname10(specPath), ".domain");
58084
+ const domainDir = join9(dirname10(specPath), ".domain");
58108
58085
  const reader = new SiftEventStreamReader();
58109
58086
  const readResult = reader.read(domainDir);
58110
58087
  if (readResult.eventsProcessed === 0 && readResult.errors.length > 0) return 2;
@@ -58146,7 +58123,7 @@ function categoryToOutcome(category) {
58146
58123
  return "APPLIED";
58147
58124
  }
58148
58125
  function writeReconcileEvent(projectDir, outcome, category) {
58149
- const eventDir = join10(projectDir, ".complai", "events", "moment");
58126
+ const eventDir = join9(projectDir, ".complai", "events", "moment");
58150
58127
  mkdirSync3(eventDir, { recursive: true });
58151
58128
  const event = {
58152
58129
  eventId: `evt-reconcile-${Date.now()}`,
@@ -58160,16 +58137,16 @@ function writeReconcileEvent(projectDir, outcome, category) {
58160
58137
  payload: { reconcileResult: outcome, cascadeCategory: category }
58161
58138
  };
58162
58139
  const fileName = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-") + ".jsonl";
58163
- writeFileSync4(join10(eventDir, fileName), JSON.stringify(event) + "\n");
58140
+ writeFileSync4(join9(eventDir, fileName), JSON.stringify(event) + "\n");
58164
58141
  }
58165
58142
  function updateFingerprint(domainDir, projectDir) {
58166
- const fpDir = join10(projectDir, ".moment");
58167
- const fpPath = join10(fpDir, ".upstream-fingerprint.json");
58143
+ const fpDir = join9(projectDir, ".moment");
58144
+ const fpPath = join9(fpDir, ".upstream-fingerprint.json");
58168
58145
  const hash = createHash4("sha256");
58169
58146
  const { readdirSync: readdirSync3 } = __require("node:fs");
58170
58147
  const files = readdirSync3(domainDir).filter((f) => f.endsWith(".jsonl")).sort();
58171
58148
  for (const file of files) {
58172
- hash.update(readFileSync17(join10(domainDir, file), "utf-8"));
58149
+ hash.update(readFileSync17(join9(domainDir, file), "utf-8"));
58173
58150
  }
58174
58151
  const contentHash = hash.digest("hex");
58175
58152
  if (existsSync17(fpPath)) {
@@ -58358,12 +58335,12 @@ function sleep(ms) {
58358
58335
 
58359
58336
  // src/auth/token-storage.ts
58360
58337
  import { readFile as readFile10, writeFile, mkdir, unlink, stat as stat4, chmod } from "node:fs/promises";
58361
- import { dirname as dirname11, join as join11 } from "node:path";
58362
- import { homedir as homedir2 } from "node:os";
58363
- var MOMENT_DIR = join11(homedir2(), ".moment");
58364
- var CREDENTIALS_PATH2 = join11(MOMENT_DIR, "credentials.json");
58338
+ import { dirname as dirname11, join as join10 } from "node:path";
58339
+ import { homedir } from "node:os";
58340
+ var MOMENT_DIR = join10(homedir(), ".moment");
58341
+ var CREDENTIALS_PATH = join10(MOMENT_DIR, "credentials.json");
58365
58342
  async function storeToken(token, tokenType, scope, credentialsPath) {
58366
- const filePath = credentialsPath ?? CREDENTIALS_PATH2;
58343
+ const filePath = credentialsPath ?? CREDENTIALS_PATH;
58367
58344
  const dir = dirname11(filePath);
58368
58345
  await mkdir(dir, { recursive: true, mode: 448 });
58369
58346
  const stored = {
@@ -58380,7 +58357,7 @@ async function storeToken(token, tokenType, scope, credentialsPath) {
58380
58357
  return filePath;
58381
58358
  }
58382
58359
  async function readStoredTokenResult(credentialsPath) {
58383
- const filePath = credentialsPath ?? CREDENTIALS_PATH2;
58360
+ const filePath = credentialsPath ?? CREDENTIALS_PATH;
58384
58361
  try {
58385
58362
  const fileStat = await stat4(filePath);
58386
58363
  const mode = fileStat.mode & 511;
@@ -58396,7 +58373,7 @@ async function readStoredTokenResult(credentialsPath) {
58396
58373
  }
58397
58374
  }
58398
58375
  async function removeToken(credentialsPath) {
58399
- const filePath = credentialsPath ?? CREDENTIALS_PATH2;
58376
+ const filePath = credentialsPath ?? CREDENTIALS_PATH;
58400
58377
  try {
58401
58378
  await unlink(filePath);
58402
58379
  return true;
@@ -58408,7 +58385,7 @@ async function removeToken(credentialsPath) {
58408
58385
  }
58409
58386
  }
58410
58387
  function getDefaultCredentialsPath() {
58411
- return CREDENTIALS_PATH2;
58388
+ return CREDENTIALS_PATH;
58412
58389
  }
58413
58390
 
58414
58391
  // src/commands/auth-login.ts