@dbx-tools/shared-graphiti 0.9.131 → 0.9.136
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 +24 -12
- package/index.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @dbx-tools/shared-graphiti
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Validate Graphiti configuration consistently in Node, Databricks AppKit,
|
|
4
|
+
browser tools, and shared JavaScript code. Use the browser-safe schemas,
|
|
5
|
+
defaults, and environment parser without loading the Graphiti runtime.
|
|
6
6
|
|
|
7
|
-
## Resolve
|
|
7
|
+
## Resolve runtime options
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
import { resolveGraphitiOptions } from "@dbx-tools/shared-graphiti/options";
|
|
@@ -15,12 +15,11 @@ const options = resolveGraphitiOptions({
|
|
|
15
15
|
});
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
The result includes
|
|
19
|
-
structured-output defaults.
|
|
20
|
-
|
|
21
|
-
of this browser-safe contract.
|
|
18
|
+
The result includes listener, chat model class, database durability, and
|
|
19
|
+
structured-output defaults. The server integration derives embedding selection
|
|
20
|
+
and dimensions from live model metadata.
|
|
22
21
|
|
|
23
|
-
## Parse
|
|
22
|
+
## Parse environment options
|
|
24
23
|
|
|
25
24
|
Resolve supported environment names without reading global process state:
|
|
26
25
|
|
|
@@ -34,6 +33,19 @@ const options = graphitiOptionsFromEnvironment({
|
|
|
34
33
|
});
|
|
35
34
|
```
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
The parser accepts an explicit record and doesn't read global process state.
|
|
37
|
+
Supported fields include the Databricks profile, bearer token, listener,
|
|
38
|
+
runtime directory, model class, database URL, database schema, and startup
|
|
39
|
+
timeout.
|
|
40
|
+
|
|
41
|
+
## Runtime boundary
|
|
42
|
+
|
|
43
|
+
This package doesn't launch Graphiti, read credentials, discover models, or
|
|
44
|
+
manage a database. The
|
|
45
|
+
[@dbx-tools/appkit-memory](../../node/appkit-memory) server plugin owns
|
|
46
|
+
authentication, lazy Graphiti startup, and service lifecycle.
|
|
47
|
+
|
|
48
|
+
## Package exports
|
|
49
|
+
|
|
50
|
+
- `./options`: option schemas, defaults, explicit environment parsing, and
|
|
51
|
+
process-environment serialization.
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/shared-graphiti";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.136";
|
|
7
7
|
export * as options from "./src/options.ts";
|
|
8
8
|
export { GraphitiOptionsSchema, GraphitiCliOptionsSchema, GRAPHITI_DEFAULTS, ResolvedGraphitiOptionsSchema } from "./src/options.ts";
|
|
9
9
|
export type { GraphitiOptions, ResolvedGraphitiOptions } from "./src/options.ts";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const PACKAGE_IDENTIFIER = "@dbx-tools/shared-graphiti";
|
|
2
|
-
export declare const PACKAGE_VERSION = "0.9.
|
|
2
|
+
export declare const PACKAGE_VERSION = "0.9.136";
|
|
3
3
|
export * as options from "./src/options.ts";
|
|
4
4
|
export { GraphitiOptionsSchema, GraphitiCliOptionsSchema, GRAPHITI_DEFAULTS, ResolvedGraphitiOptionsSchema } from "./src/options.ts";
|
|
5
5
|
export type { GraphitiOptions, ResolvedGraphitiOptions } from "./src/options.ts";
|
package/lib/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// Regenerated from the exporting modules in ./src.
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/shared-graphiti";
|
|
5
|
-
export const PACKAGE_VERSION = "0.9.
|
|
5
|
+
export const PACKAGE_VERSION = "0.9.136";
|
|
6
6
|
export * as options from "./src/options.js";
|
|
7
7
|
export { GraphitiOptionsSchema, GraphitiCliOptionsSchema, GRAPHITI_DEFAULTS, ResolvedGraphitiOptionsSchema } from "./src/options.js";
|
|
8
8
|
export * from "./exports.js";
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwyQ0FBMkM7QUFDM0MsbURBQW1EO0FBQ25ELHdFQUF3RTtBQUV4RSxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyw0QkFBNEIsQ0FBQztBQUMvRCxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsU0FBUyxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxPQUFPLE1BQU0sa0JBQWtCLENBQUM7QUFDNUMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLHdCQUF3QixFQUFFLGlCQUFpQixFQUFFLDZCQUE2QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFckksY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBHRU5FUkFURUQgYnkgcHJvamVuIHdhdGNoIC0gRE8gTk9UIEVESVQuXG4vLyBSZWdlbmVyYXRlZCBmcm9tIHRoZSBleHBvcnRpbmcgbW9kdWxlcyBpbiAuL3NyYy5cbi8vIEhhbmQgZWRpdHMgYXJlIG92ZXJ3cml0dGVuIG9uIHRoZSBuZXh0IHdhdGNoOyB0aGlzIGZpbGUgaXMgcmVhZC1vbmx5LlxuXG5leHBvcnQgY29uc3QgUEFDS0FHRV9JREVOVElGSUVSID0gXCJAZGJ4LXRvb2xzL3NoYXJlZC1ncmFwaGl0aVwiO1xuZXhwb3J0IGNvbnN0IFBBQ0tBR0VfVkVSU0lPTiA9IFwiMC45LjEzNlwiO1xuZXhwb3J0ICogYXMgb3B0aW9ucyBmcm9tIFwiLi9zcmMvb3B0aW9ucy50c1wiO1xuZXhwb3J0IHsgR3JhcGhpdGlPcHRpb25zU2NoZW1hLCBHcmFwaGl0aUNsaU9wdGlvbnNTY2hlbWEsIEdSQVBISVRJX0RFRkFVTFRTLCBSZXNvbHZlZEdyYXBoaXRpT3B0aW9uc1NjaGVtYSB9IGZyb20gXCIuL3NyYy9vcHRpb25zLnRzXCI7XG5leHBvcnQgdHlwZSB7IEdyYXBoaXRpT3B0aW9ucywgUmVzb2x2ZWRHcmFwaGl0aU9wdGlvbnMgfSBmcm9tIFwiLi9zcmMvb3B0aW9ucy50c1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vZXhwb3J0cy50c1wiO1xuIl19
|
package/package.json
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"typescript": "^5.9.3"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@dbx-tools/shared-core": "^0.9.
|
|
26
|
-
"@dbx-tools/shared-model-gateway": "^0.9.
|
|
25
|
+
"@dbx-tools/shared-core": "^0.9.136",
|
|
26
|
+
"@dbx-tools/shared-model-gateway": "^0.9.136",
|
|
27
27
|
"zod": "4.3.6"
|
|
28
28
|
},
|
|
29
29
|
"main": "./lib/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"./package.json": "./package.json"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"version": "0.9.
|
|
51
|
+
"version": "0.9.136",
|
|
52
52
|
"types": "./lib/index.d.ts",
|
|
53
53
|
"dbxToolsConfig": {
|
|
54
54
|
"tags": [
|