@nimiplatform/nimi-coding 0.6.3 → 0.6.4

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.6.4
6
+
7
+ - Made experimental `code context` declaration ordering independent of the host locale, using UTF-16 code-unit text order followed by numeric source positions.
8
+
5
9
  ## 0.6.3
6
10
 
7
11
  - Removed Claude-specific managed entrypoints and path validation. `start`, `sync`, `doctor`, and `clear` now manage only `AGENTS.md` instruction blocks and leave unrelated host files untouched.
package/cli/constants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export const VERSION = "0.6.3";
1
+ export const VERSION = "0.6.4";
2
2
  export const PACKAGE_NAME = "@nimiplatform/nimi-coding";
3
3
  export const PROJECT_LOCAL_CLI_INVOCATION = "pnpm exec nimicoding";
4
4
  export const LOCAL_GITIGNORE_ENTRIES = [".nimi/local/"];
@@ -5,6 +5,8 @@ import { createRequire } from "node:module";
5
5
  import path from "node:path";
6
6
  import { promisify } from "node:util";
7
7
 
8
+ import { compareText } from "../authority/diagnostics.mjs";
9
+
8
10
  const execFileAsync = promisify(execFile);
9
11
  const TYPESCRIPT_VERSION = "5.9.3";
10
12
 
@@ -339,10 +341,10 @@ function portableLocus(compiler, repository, compilerRoot, compilerVersion, node
339
341
  }
340
342
 
341
343
  function compareLoci(left, right) {
342
- return left.origin.localeCompare(right.origin)
343
- || (left.package?.name ?? "").localeCompare(right.package?.name ?? "")
344
- || (left.package?.version ?? "").localeCompare(right.package?.version ?? "")
345
- || left.path.localeCompare(right.path)
344
+ return compareText(left.origin, right.origin)
345
+ || compareText(left.package?.name ?? "", right.package?.name ?? "")
346
+ || compareText(left.package?.version ?? "", right.package?.version ?? "")
347
+ || compareText(left.path, right.path)
346
348
  || left.range.start_line - right.range.start_line
347
349
  || left.range.start_column - right.range.start_column
348
350
  || left.range.end_line - right.range.end_line
@@ -437,7 +439,7 @@ function collectSites(compiler, rootNode) {
437
439
  return sites.sort((left, right) => (
438
440
  left.node.getStart() - right.node.getStart()
439
441
  || left.node.getEnd() - right.node.getEnd()
440
- || left.role.localeCompare(right.role)
442
+ || compareText(left.role, right.role)
441
443
  ));
442
444
  }
443
445
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimiplatform/nimi-coding",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "private": false,
5
5
  "description": "Canonical authority products and bounded read-only code queries for AI coding systems.",
6
6
  "license": "MIT",
@@ -18,6 +18,7 @@ projection:
18
18
  scope: selected_root_AST_only
19
19
  relations: [static_value_binding, static_type_binding, static_constructor_binding, static_JSX_binding]
20
20
  target: complete_nonempty_portable_declaration_set
21
+ declaration_loci_order: origin_package_name_package_version_path_by_UTF_16_code_units_then_numeric_range
21
22
  target_source: optional_single_repository_declaration_syntactic_slice
22
23
  runtime_dispatch: not_evaluated
23
24
  response: