codexslimedit 0.7.4-dev.29702371652.1 → 0.7.4-dev.29702567006.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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Readable, Writable } from "node:stream";
2
2
 
3
3
  /** Current independent codexslimedit package version. */
4
- export declare const CODEX_SLIM_EDIT_VERSION = "0.1.0";
4
+ export declare const CODEX_SLIM_EDIT_VERSION = "0.7.4-dev.29702567006.1";
5
5
 
6
6
  /** Returns whether command-line arguments request the package version. */
7
7
  export declare function isVersionRequest(args: readonly string[]): boolean;
package/dist/mcp.js CHANGED
@@ -4575,6 +4575,7 @@ async function prepareWorkspaceFileCreation(input) {
4575
4575
  /** Deletes one existing regular workspace file. */
4576
4576
  async function deleteWorkspaceFile(input) {
4577
4577
  const target = await resolveWorkspaceFile(input);
4578
+ if ((await lstat(resolve(await existingDirectory(input.root), normalizeSeparators(input.filePath)))).isSymbolicLink()) throw new WorkspaceFileError("NOT_A_FILE", "Deleting symbolic links is not supported.");
4578
4579
  const content = await readUtf8Text(target.absolutePath);
4579
4580
  try {
4580
4581
  await rm(target.absolutePath);
@@ -4664,7 +4665,10 @@ async function readUtf8Text(path) {
4664
4665
  throw new WorkspaceFileError("UNREADABLE_FILE", "filePath could not be read.");
4665
4666
  }
4666
4667
  try {
4667
- const content = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
4668
+ const content = new TextDecoder("utf-8", {
4669
+ fatal: true,
4670
+ ignoreBOM: true
4671
+ }).decode(bytes);
4668
4672
  validateText(content);
4669
4673
  return content;
4670
4674
  } catch {
@@ -4958,7 +4962,7 @@ function invalidPatch(message) {
4958
4962
  //#endregion
4959
4963
  //#region src/version.ts
4960
4964
  /** Current independent codexslimedit package version. */
4961
- var CODEX_SLIM_EDIT_VERSION = "0.7.4-dev.29702371652.1";
4965
+ var CODEX_SLIM_EDIT_VERSION = "0.7.4-dev.29702567006.1";
4962
4966
  /** Returns whether command-line arguments request the package version. */
4963
4967
  function isVersionRequest(args) {
4964
4968
  return args.includes("--version");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codexslimedit",
3
- "version": "0.7.4-dev.29702371652.1",
3
+ "version": "0.7.4-dev.29702567006.1",
4
4
  "description": "Concise, workspace-safe MCP file reading and editing.",
5
5
  "license": "SUL-1.0",
6
6
  "repository": {