@antfly/embedded 0.3.0-rc.5 → 0.3.0-rc.7

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/README.md CHANGED
@@ -182,7 +182,7 @@ try {
182
182
  ```
183
183
 
184
184
  For decision question types and examples, see the
185
- [typed decision guide](../../../docs/guides/decisions.md).
185
+ [typed decision guide](../../../docs/reference/decisions.md).
186
186
 
187
187
  - **Calls**: `embed`, `rerank`, `chunk`, `generate`, `generateBatch`,
188
188
  `rewrite`, `decide`, `extract`, `read` (OCR), `transcribe`, `listModels` -- each with
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/tsup@8.5.1_jiti@2.7.0_postcss@8.5.15_supports-color@10.2.2_tsx@4.22.4_typescript@5.9.3_yaml@2.9.0/node_modules/tsup/assets/esm_shims.js
1
+ // ../../node_modules/.pnpm/tsup@8.5.1_jiti@2.7.0_postcss@8.5.15_tsx@4.22.4_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/esm_shims.js
2
2
  import path from "path";
3
3
  import { fileURLToPath } from "url";
4
4
  var getFilename = () => fileURLToPath(import.meta.url);
@@ -38,6 +38,8 @@ function result(wire) {
38
38
  return {
39
39
  columns: wire.columns,
40
40
  commandTag: wire.command_tag,
41
+ mutationOutcome: wire.mutation_outcome,
42
+ ddlReceipt: wire.ddl_receipt,
41
43
  rowsAffected: BigInt(wire.rows_affected),
42
44
  rows: wire.rows.map(
43
45
  (row, rowIndex) => Object.fromEntries(
package/dist/index.cjs CHANGED
@@ -87,7 +87,7 @@ __export(index_exports, {
87
87
  });
88
88
  module.exports = __toCommonJS(index_exports);
89
89
 
90
- // ../../node_modules/.pnpm/tsup@8.5.1_jiti@2.7.0_postcss@8.5.15_supports-color@10.2.2_tsx@4.22.4_typescript@5.9.3_yaml@2.9.0/node_modules/tsup/assets/cjs_shims.js
90
+ // ../../node_modules/.pnpm/tsup@8.5.1_jiti@2.7.0_postcss@8.5.15_tsx@4.22.4_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
91
91
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
92
92
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
93
93
 
@@ -2317,6 +2317,8 @@ function result(wire) {
2317
2317
  return {
2318
2318
  columns: wire.columns,
2319
2319
  commandTag: wire.command_tag,
2320
+ mutationOutcome: wire.mutation_outcome,
2321
+ ddlReceipt: wire.ddl_receipt,
2320
2322
  rowsAffected: BigInt(wire.rows_affected),
2321
2323
  rows: wire.rows.map(
2322
2324
  (row, rowIndex) => Object.fromEntries(
package/dist/index.d.cts CHANGED
@@ -302,6 +302,9 @@ interface SqlResult<Row = Record<string, unknown>> {
302
302
  rows: Row[];
303
303
  rowsAffected: bigint;
304
304
  commandTag: string;
305
+ /** Native write disposition; callers must not retry an uncertain write. */
306
+ mutationOutcome?: string | null;
307
+ ddlReceipt?: Readonly<Record<string, unknown>> | null;
305
308
  }
306
309
 
307
310
  /** One SQL session. Use a separate Connection for concurrently active transactions. */
package/dist/index.d.ts CHANGED
@@ -302,6 +302,9 @@ interface SqlResult<Row = Record<string, unknown>> {
302
302
  rows: Row[];
303
303
  rowsAffected: bigint;
304
304
  commandTag: string;
305
+ /** Native write disposition; callers must not retry an uncertain write. */
306
+ mutationOutcome?: string | null;
307
+ ddlReceipt?: Readonly<Record<string, unknown>> | null;
305
308
  }
306
309
 
307
310
  /** One SQL session. Use a separate Connection for concurrently active transactions. */
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  Connection,
3
3
  SqlError,
4
4
  __filename
5
- } from "./chunk-ELM44XQ4.js";
5
+ } from "./chunk-4KIXT2VQ.js";
6
6
 
7
7
  // src/abi.ts
8
8
  import koffi2 from "koffi";
package/dist/kysely.cjs CHANGED
@@ -59,6 +59,8 @@ function result(wire) {
59
59
  return {
60
60
  columns: wire.columns,
61
61
  commandTag: wire.command_tag,
62
+ mutationOutcome: wire.mutation_outcome,
63
+ ddlReceipt: wire.ddl_receipt,
62
64
  rowsAffected: BigInt(wire.rows_affected),
63
65
  rows: wire.rows.map(
64
66
  (row, rowIndex) => Object.fromEntries(
package/dist/kysely.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Connection
3
- } from "./chunk-ELM44XQ4.js";
3
+ } from "./chunk-4KIXT2VQ.js";
4
4
 
5
5
  // src/kysely.ts
6
6
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antfly/embedded",
3
- "version": "0.3.0-rc.5",
3
+ "version": "0.3.0-rc.7",
4
4
  "description": "TypeScript/Node binding for local Antfly databases and inference (libantfly C ABI)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -75,9 +75,9 @@
75
75
  "win32"
76
76
  ],
77
77
  "optionalDependencies": {
78
- "@antfly/embedded-darwin-arm64": "0.3.0-rc.5",
79
- "@antfly/embedded-linux-arm64": "0.3.0-rc.5",
80
- "@antfly/embedded-linux-x64": "0.3.0-rc.5"
78
+ "@antfly/embedded-darwin-arm64": "0.3.0-rc.7",
79
+ "@antfly/embedded-linux-arm64": "0.3.0-rc.7",
80
+ "@antfly/embedded-linux-x64": "0.3.0-rc.7"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "kysely": "^0.29.6"