@thyn-ai/sqai 0.1.3 → 0.1.5

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/unsafe.cjs CHANGED
@@ -20,19 +20,22 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/unsafe.ts
21
21
  var unsafe_exports = {};
22
22
  __export(unsafe_exports, {
23
- getUnsafeAlgentaRuntime: () => getUnsafeAlgentaRuntime
23
+ getUnsafeAlgentaRuntime: () => getUnsafeAlgentaRuntime,
24
+ getUnsafeRuntime: () => getUnsafeRuntime
24
25
  });
25
26
  module.exports = __toCommonJS(unsafe_exports);
26
27
  var import_algenta_sdk = require("algenta-sdk");
27
- function getUnsafeAlgentaRuntime(options = {}) {
28
+ function getUnsafeRuntime(options = {}) {
28
29
  return new import_algenta_sdk.Runtime({
29
30
  mode: options.mode ?? "local",
30
31
  ...options.apiKey ? { apiKey: options.apiKey } : {},
31
32
  ...options.baseUrl ? { baseUrl: options.baseUrl } : {}
32
33
  });
33
34
  }
35
+ var getUnsafeAlgentaRuntime = getUnsafeRuntime;
34
36
  // Annotate the CommonJS export names for ESM import in node:
35
37
  0 && (module.exports = {
36
- getUnsafeAlgentaRuntime
38
+ getUnsafeAlgentaRuntime,
39
+ getUnsafeRuntime
37
40
  });
38
41
  //# sourceMappingURL=unsafe.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/unsafe.ts"],"sourcesContent":["/** Explicit escape hatch — NOT part of the SQAI contract.\n *\n * The read-only, deterministic, policy, provenance, and compatibility\n * guarantees apply only to the SQAI public methods. The unsafe Algenta\n * runtime returned here bypasses the capability contract, policy allow-lists,\n * seed enforcement, and the parity matrix, and is never available through\n * @thyn-ai/sqai-ai-sdk. Import from \"@thyn-ai/sqai/unsafe\" only when you own the\n * consequences.\n */\n\nimport { Runtime } from \"algenta-sdk\";\n\nexport interface UnsafeRuntimeOptions {\n mode?: \"local\" | \"api\" | \"self_hosted\";\n apiKey?: string;\n baseUrl?: string;\n}\n\nexport function getUnsafeAlgentaRuntime(options: UnsafeRuntimeOptions = {}): Runtime {\n return new Runtime({\n mode: options.mode ?? \"local\",\n ...(options.apiKey ? { apiKey: options.apiKey } : {}),\n ...(options.baseUrl ? { baseUrl: options.baseUrl } : {}),\n } as ConstructorParameters<typeof Runtime>[0]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,yBAAwB;AAQjB,SAAS,wBAAwB,UAAgC,CAAC,GAAY;AACnF,SAAO,IAAI,2BAAQ;AAAA,IACjB,MAAM,QAAQ,QAAQ;AAAA,IACtB,GAAI,QAAQ,SAAS,EAAE,QAAQ,QAAQ,OAAO,IAAI,CAAC;AAAA,IACnD,GAAI,QAAQ,UAAU,EAAE,SAAS,QAAQ,QAAQ,IAAI,CAAC;AAAA,EACxD,CAA6C;AAC/C;","names":[]}
1
+ {"version":3,"sources":["../src/unsafe.ts"],"sourcesContent":["/** Explicit escape hatch — NOT part of the SQAI contract.\n *\n * The read-only, deterministic, policy, provenance, and compatibility\n * guarantees apply only to the SQAI public methods. The unsafe engine\n * runtime returned here bypasses the capability contract, policy allow-lists,\n * seed enforcement, and the parity matrix, and is never available through\n * @thyn-ai/sqai-ai-sdk. Import from \"@thyn-ai/sqai/unsafe\" only when you own the\n * consequences.\n */\n\nimport { Runtime } from \"algenta-sdk\";\n\nexport interface UnsafeRuntimeOptions {\n mode?: \"local\" | \"api\" | \"self_hosted\";\n apiKey?: string;\n baseUrl?: string;\n}\n\nexport function getUnsafeRuntime(options: UnsafeRuntimeOptions = {}): Runtime {\n return new Runtime({\n mode: options.mode ?? \"local\",\n ...(options.apiKey ? { apiKey: options.apiKey } : {}),\n ...(options.baseUrl ? { baseUrl: options.baseUrl } : {}),\n } as ConstructorParameters<typeof Runtime>[0]);\n}\n\n/** @deprecated Renamed to {@link getUnsafeRuntime}. Kept as a non-breaking alias. */\nexport const getUnsafeAlgentaRuntime = getUnsafeRuntime;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,yBAAwB;AAQjB,SAAS,iBAAiB,UAAgC,CAAC,GAAY;AAC5E,SAAO,IAAI,2BAAQ;AAAA,IACjB,MAAM,QAAQ,QAAQ;AAAA,IACtB,GAAI,QAAQ,SAAS,EAAE,QAAQ,QAAQ,OAAO,IAAI,CAAC;AAAA,IACnD,GAAI,QAAQ,UAAU,EAAE,SAAS,QAAQ,QAAQ,IAAI,CAAC;AAAA,EACxD,CAA6C;AAC/C;AAGO,IAAM,0BAA0B;","names":[]}
package/dist/unsafe.d.cts CHANGED
@@ -3,7 +3,7 @@ import { Runtime } from 'algenta-sdk';
3
3
  /** Explicit escape hatch — NOT part of the SQAI contract.
4
4
  *
5
5
  * The read-only, deterministic, policy, provenance, and compatibility
6
- * guarantees apply only to the SQAI public methods. The unsafe Algenta
6
+ * guarantees apply only to the SQAI public methods. The unsafe engine
7
7
  * runtime returned here bypasses the capability contract, policy allow-lists,
8
8
  * seed enforcement, and the parity matrix, and is never available through
9
9
  * @thyn-ai/sqai-ai-sdk. Import from "@thyn-ai/sqai/unsafe" only when you own the
@@ -15,6 +15,8 @@ interface UnsafeRuntimeOptions {
15
15
  apiKey?: string;
16
16
  baseUrl?: string;
17
17
  }
18
- declare function getUnsafeAlgentaRuntime(options?: UnsafeRuntimeOptions): Runtime;
18
+ declare function getUnsafeRuntime(options?: UnsafeRuntimeOptions): Runtime;
19
+ /** @deprecated Renamed to {@link getUnsafeRuntime}. Kept as a non-breaking alias. */
20
+ declare const getUnsafeAlgentaRuntime: typeof getUnsafeRuntime;
19
21
 
20
- export { type UnsafeRuntimeOptions, getUnsafeAlgentaRuntime };
22
+ export { type UnsafeRuntimeOptions, getUnsafeAlgentaRuntime, getUnsafeRuntime };
package/dist/unsafe.d.ts CHANGED
@@ -3,7 +3,7 @@ import { Runtime } from 'algenta-sdk';
3
3
  /** Explicit escape hatch — NOT part of the SQAI contract.
4
4
  *
5
5
  * The read-only, deterministic, policy, provenance, and compatibility
6
- * guarantees apply only to the SQAI public methods. The unsafe Algenta
6
+ * guarantees apply only to the SQAI public methods. The unsafe engine
7
7
  * runtime returned here bypasses the capability contract, policy allow-lists,
8
8
  * seed enforcement, and the parity matrix, and is never available through
9
9
  * @thyn-ai/sqai-ai-sdk. Import from "@thyn-ai/sqai/unsafe" only when you own the
@@ -15,6 +15,8 @@ interface UnsafeRuntimeOptions {
15
15
  apiKey?: string;
16
16
  baseUrl?: string;
17
17
  }
18
- declare function getUnsafeAlgentaRuntime(options?: UnsafeRuntimeOptions): Runtime;
18
+ declare function getUnsafeRuntime(options?: UnsafeRuntimeOptions): Runtime;
19
+ /** @deprecated Renamed to {@link getUnsafeRuntime}. Kept as a non-breaking alias. */
20
+ declare const getUnsafeAlgentaRuntime: typeof getUnsafeRuntime;
19
21
 
20
- export { type UnsafeRuntimeOptions, getUnsafeAlgentaRuntime };
22
+ export { type UnsafeRuntimeOptions, getUnsafeAlgentaRuntime, getUnsafeRuntime };
package/dist/unsafe.js CHANGED
@@ -1,13 +1,15 @@
1
1
  // src/unsafe.ts
2
2
  import { Runtime } from "algenta-sdk";
3
- function getUnsafeAlgentaRuntime(options = {}) {
3
+ function getUnsafeRuntime(options = {}) {
4
4
  return new Runtime({
5
5
  mode: options.mode ?? "local",
6
6
  ...options.apiKey ? { apiKey: options.apiKey } : {},
7
7
  ...options.baseUrl ? { baseUrl: options.baseUrl } : {}
8
8
  });
9
9
  }
10
+ var getUnsafeAlgentaRuntime = getUnsafeRuntime;
10
11
  export {
11
- getUnsafeAlgentaRuntime
12
+ getUnsafeAlgentaRuntime,
13
+ getUnsafeRuntime
12
14
  };
13
15
  //# sourceMappingURL=unsafe.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/unsafe.ts"],"sourcesContent":["/** Explicit escape hatch — NOT part of the SQAI contract.\n *\n * The read-only, deterministic, policy, provenance, and compatibility\n * guarantees apply only to the SQAI public methods. The unsafe Algenta\n * runtime returned here bypasses the capability contract, policy allow-lists,\n * seed enforcement, and the parity matrix, and is never available through\n * @thyn-ai/sqai-ai-sdk. Import from \"@thyn-ai/sqai/unsafe\" only when you own the\n * consequences.\n */\n\nimport { Runtime } from \"algenta-sdk\";\n\nexport interface UnsafeRuntimeOptions {\n mode?: \"local\" | \"api\" | \"self_hosted\";\n apiKey?: string;\n baseUrl?: string;\n}\n\nexport function getUnsafeAlgentaRuntime(options: UnsafeRuntimeOptions = {}): Runtime {\n return new Runtime({\n mode: options.mode ?? \"local\",\n ...(options.apiKey ? { apiKey: options.apiKey } : {}),\n ...(options.baseUrl ? { baseUrl: options.baseUrl } : {}),\n } as ConstructorParameters<typeof Runtime>[0]);\n}\n"],"mappings":";AAUA,SAAS,eAAe;AAQjB,SAAS,wBAAwB,UAAgC,CAAC,GAAY;AACnF,SAAO,IAAI,QAAQ;AAAA,IACjB,MAAM,QAAQ,QAAQ;AAAA,IACtB,GAAI,QAAQ,SAAS,EAAE,QAAQ,QAAQ,OAAO,IAAI,CAAC;AAAA,IACnD,GAAI,QAAQ,UAAU,EAAE,SAAS,QAAQ,QAAQ,IAAI,CAAC;AAAA,EACxD,CAA6C;AAC/C;","names":[]}
1
+ {"version":3,"sources":["../src/unsafe.ts"],"sourcesContent":["/** Explicit escape hatch — NOT part of the SQAI contract.\n *\n * The read-only, deterministic, policy, provenance, and compatibility\n * guarantees apply only to the SQAI public methods. The unsafe engine\n * runtime returned here bypasses the capability contract, policy allow-lists,\n * seed enforcement, and the parity matrix, and is never available through\n * @thyn-ai/sqai-ai-sdk. Import from \"@thyn-ai/sqai/unsafe\" only when you own the\n * consequences.\n */\n\nimport { Runtime } from \"algenta-sdk\";\n\nexport interface UnsafeRuntimeOptions {\n mode?: \"local\" | \"api\" | \"self_hosted\";\n apiKey?: string;\n baseUrl?: string;\n}\n\nexport function getUnsafeRuntime(options: UnsafeRuntimeOptions = {}): Runtime {\n return new Runtime({\n mode: options.mode ?? \"local\",\n ...(options.apiKey ? { apiKey: options.apiKey } : {}),\n ...(options.baseUrl ? { baseUrl: options.baseUrl } : {}),\n } as ConstructorParameters<typeof Runtime>[0]);\n}\n\n/** @deprecated Renamed to {@link getUnsafeRuntime}. Kept as a non-breaking alias. */\nexport const getUnsafeAlgentaRuntime = getUnsafeRuntime;\n"],"mappings":";AAUA,SAAS,eAAe;AAQjB,SAAS,iBAAiB,UAAgC,CAAC,GAAY;AAC5E,SAAO,IAAI,QAAQ;AAAA,IACjB,MAAM,QAAQ,QAAQ;AAAA,IACtB,GAAI,QAAQ,SAAS,EAAE,QAAQ,QAAQ,OAAO,IAAI,CAAC;AAAA,IACnD,GAAI,QAAQ,UAAU,EAAE,SAAS,QAAQ,QAAQ,IAAI,CAAC;AAAA,EACxD,CAA6C;AAC/C;AAGO,IAAM,0BAA0B;","names":[]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@thyn-ai/sqai",
3
- "version": "0.1.3",
4
- "description": "SQAI \u2014 the deterministic, read-only structured-data SDK for AI agents, powered by Algenta execution and provenance.",
3
+ "version": "0.1.5",
4
+ "description": "SQAI (Structured Query AI) — the deterministic, read-only structured-data SDK for AI agents, with full provenance.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "engines": {
@@ -28,11 +28,6 @@
28
28
  "LICENSE",
29
29
  "NOTICE"
30
30
  ],
31
- "scripts": {
32
- "build": "tsup",
33
- "test": "vitest run",
34
- "lint": "tsc --noEmit"
35
- },
36
31
  "dependencies": {
37
32
  "algenta-sdk": "1.0.6"
38
33
  },
@@ -56,5 +51,10 @@
56
51
  "read-only",
57
52
  "algenta",
58
53
  "sqai"
59
- ]
60
- }
54
+ ],
55
+ "scripts": {
56
+ "build": "tsup",
57
+ "test": "vitest run",
58
+ "lint": "tsc --noEmit"
59
+ }
60
+ }