rust-store-node 4.5.0 → 4.6.0

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/index.d.ts CHANGED
@@ -21,6 +21,8 @@ export declare function toPascal(tokens: Array<string>): string
21
21
  export declare function translateName(logical: string, target: string): string
22
22
  /** 命名冲突检测(A7):一组逻辑名归一后撞名 / 撞保留键 ⇒ 抛错。 */
23
23
  export declare function detectConflicts(names: Array<string>): void
24
+ /** 向量能力矩阵(纯函数):宿主探测环境后调用,判定唯一在 core。 */
25
+ export declare function vectorCapability(backend: string, nativeReady: boolean, atlasIndex: boolean): any
24
26
  /** 内容寻址路径(纯函数) */
25
27
  export declare function resourceContentPath(sha1: string): string
26
28
  /** 是否外部 URL(纯函数) */
@@ -81,6 +83,11 @@ export declare class Registry {
81
83
  planLoad(config: any, files: any): any
82
84
  /** 带定位批量注册(D13 批次唯一);`items` = `[{defn, location}]`,`ctx` 缺省 = 无上下文。 */
83
85
  registerBatch(items: any, ctx?: any | undefined | null): void
86
+ /**
87
+ * 装配 `store.config.json` 的 `links` 声明(透出 core [`Registry::apply_link_decls`];
88
+ * 失败原样上抛,fail-fast)。
89
+ */
90
+ applyLinkDecls(config: any): void
84
91
  /** 本地磁盘数据源纯求值(宿主提供集合快照 → 返回 `{result, changed, collections}`) */
85
92
  localEval(collections: any, command: any): any
86
93
  canRead(model: string, ctx?: any | undefined | null): boolean
@@ -182,6 +189,11 @@ export declare class Registry {
182
189
  /** 注册同步计算列回调(schema 里 `fn: true` 的 `fnRef`,缺省为计算列名) */
183
190
  setFn(fnRef: string, callback: (arg: any) => any): void
184
191
  clearFns(): void
192
+ /**
193
+ * 派生策略视图:共享目录快照与回调池,策略覆盖经 core 单点解析(零绑定侧解析)。
194
+ * 视图上注册/清空 schema 会抛 `ERR_POLICY_VIEW_READONLY:`(守卫在 core)。
195
+ */
196
+ withPolicy(policy: any): Registry
185
197
  /**
186
198
  * 开关「上下文强制」(默认关闭 = fail-open,保持 JS parity)。
187
199
  * 开启后:plan 入口遇 `ctx` 缺失抛 `ERR_NO_CONTEXT`(fail-secure),
package/index.js CHANGED
@@ -310,7 +310,7 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { Registry, systemContext, canonical, toSnake, toCamel, toPascal, translateName, detectConflicts, resourceContentPath, resourceIsExternalUrl, resourceComposeUrl } = nativeBinding
313
+ const { Registry, systemContext, canonical, toSnake, toCamel, toPascal, translateName, detectConflicts, vectorCapability, resourceContentPath, resourceIsExternalUrl, resourceComposeUrl } = nativeBinding
314
314
 
315
315
  module.exports.Registry = Registry
316
316
  module.exports.systemContext = systemContext
@@ -320,6 +320,7 @@ module.exports.toCamel = toCamel
320
320
  module.exports.toPascal = toPascal
321
321
  module.exports.translateName = translateName
322
322
  module.exports.detectConflicts = detectConflicts
323
+ module.exports.vectorCapability = vectorCapability
323
324
  module.exports.resourceContentPath = resourceContentPath
324
325
  module.exports.resourceIsExternalUrl = resourceIsExternalUrl
325
326
  module.exports.resourceComposeUrl = resourceComposeUrl
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rust-store-node",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "description": "Node.js binding (napi-rs) for the rust-store multi-backend data engine: GQL parsing, permissions, computed columns and SQL dialect translation for MongoDB, MySQL, SQLite and PostgreSQL",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -53,7 +53,7 @@
53
53
  "ai-agent",
54
54
  "rust"
55
55
  ],
56
- "author": "leo <coen_ddt@qq.com>",
56
+ "author": "丁滔 <coen_ddt@qq.com>",
57
57
  "license": "MIT",
58
58
  "repository": {
59
59
  "type": "git",
@@ -68,10 +68,10 @@
68
68
  "sql.js": "^1.8.0"
69
69
  },
70
70
  "optionalDependencies": {
71
- "rust-store-node-win32-x64-msvc": "4.5.0",
72
- "rust-store-node-linux-x64-gnu": "4.5.0",
73
- "rust-store-node-linux-arm64-gnu": "4.5.0",
74
- "rust-store-node-darwin-x64": "4.5.0",
75
- "rust-store-node-darwin-arm64": "4.5.0"
71
+ "rust-store-node-win32-x64-msvc": "4.6.0",
72
+ "rust-store-node-linux-x64-gnu": "4.6.0",
73
+ "rust-store-node-linux-arm64-gnu": "4.6.0",
74
+ "rust-store-node-darwin-x64": "4.6.0",
75
+ "rust-store-node-darwin-arm64": "4.6.0"
76
76
  }
77
77
  }
Binary file
Binary file
Binary file
Binary file