@cortexkit/aft 0.55.0 → 0.55.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.
Files changed (2) hide show
  1. package/dist/index.js +16 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -8086,6 +8086,10 @@ function pathValue(record, property) {
8086
8086
  return value;
8087
8087
  }
8088
8088
  function normalizeAliasPair(record, canonical, legacy, required) {
8089
+ if (isNullOrEmptyString(record[canonical]))
8090
+ delete record[canonical];
8091
+ if (isNullOrEmptyString(record[legacy]))
8092
+ delete record[legacy];
8089
8093
  const hasCanonical = hasOwn(record, canonical);
8090
8094
  const hasLegacy = hasOwn(record, legacy);
8091
8095
  if (!hasCanonical && !hasLegacy) {
@@ -8117,8 +8121,13 @@ function normalizeAliasPair(record, canonical, legacy, required) {
8117
8121
  delete record[legacy];
8118
8122
  }
8119
8123
  function validateOptionalCanonicalPath(record, property) {
8120
- if (hasOwn(record, property))
8121
- pathValue(record, property);
8124
+ if (!hasOwn(record, property))
8125
+ return;
8126
+ if (isNullOrEmptyString(record[property])) {
8127
+ delete record[property];
8128
+ return;
8129
+ }
8130
+ pathValue(record, property);
8122
8131
  }
8123
8132
  function normalizeZoomTargets(record) {
8124
8133
  if (!hasOwn(record, "targets"))
@@ -8255,6 +8264,10 @@ function prepareCanonicalEditArguments(toolName, rawArguments) {
8255
8264
  return record;
8256
8265
  }
8257
8266
  function normalizeEditPathAlias(record) {
8267
+ if (isNullOrEmptyString(record.path))
8268
+ delete record.path;
8269
+ if (isNullOrEmptyString(record.filePath))
8270
+ delete record.filePath;
8258
8271
  const hasCanonical = hasOwn(record, "path");
8259
8272
  const hasLegacy = hasOwn(record, "filePath");
8260
8273
  if (!hasCanonical && !hasLegacy)
@@ -8280,7 +8293,7 @@ function normalizeEditPathAlias(record) {
8280
8293
  }
8281
8294
  }
8282
8295
  function validateEditPath(record) {
8283
- if (!hasOwn(record, "path")) {
8296
+ if (!hasOwn(record, "path") || isNullOrEmptyString(record.path)) {
8284
8297
  throw new InvalidRequestError("'path' is required");
8285
8298
  }
8286
8299
  pathValue(record, "path");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/aft",
3
- "version": "0.55.0",
3
+ "version": "0.55.1",
4
4
  "type": "module",
5
5
  "description": "Unified CLI for Agent File Tools (AFT) — setup, one-shot index snapshots, doctor, and diagnostics across supported agent harnesses (OpenCode, Pi)",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@clack/prompts": "^1.6.0",
27
- "@cortexkit/aft-bridge": "0.55.0",
27
+ "@cortexkit/aft-bridge": "0.55.1",
28
28
  "comment-json": "^4.6.2"
29
29
  },
30
30
  "devDependencies": {