@kortyx/runtime 0.4.0 → 0.4.1
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
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.1](https://github.com/kortyx-io/kortyx/compare/runtime-v0.4.0...runtime-v0.4.1) (2026-02-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* remove kortyx.config support and update docs ([ecb3f8d](https://github.com/kortyx-io/kortyx/commit/ecb3f8d53a017cc84bf8db3e125a6f711f5d4013))
|
|
9
|
+
* remove kortyx.config support and update docs ([aa4a70a](https://github.com/kortyx-io/kortyx/commit/aa4a70a034dfec7bca829793f1729c51be018ae2))
|
|
10
|
+
|
|
3
11
|
## [0.4.0](https://github.com/kortyx-io/Kortyx/compare/runtime-v0.3.0...runtime-v0.4.0) (2026-02-07)
|
|
4
12
|
|
|
5
13
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./checkpointer"), exports);
|
|
18
|
-
__exportStar(require("./config/load-kortyx-config"), exports);
|
|
19
18
|
__exportStar(require("./framework/adapter"), exports);
|
|
20
19
|
__exportStar(require("./framework/pending-requests"), exports);
|
|
21
20
|
__exportStar(require("./graph/create-langgraph"), exports);
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface KortyxConfig {
|
|
2
|
-
workflowsDir?: string;
|
|
3
|
-
fallbackWorkflowId?: string;
|
|
4
|
-
registry?: {
|
|
5
|
-
cache?: boolean;
|
|
6
|
-
extensions?: string[];
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export interface LoadKortyxConfigOptions {
|
|
10
|
-
cwd?: string;
|
|
11
|
-
configPath?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function loadKortyxConfig(options?: LoadKortyxConfigOptions): Promise<KortyxConfig | null>;
|
|
14
|
-
//# sourceMappingURL=load-kortyx-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"load-kortyx-config.d.ts","sourceRoot":"","sources":["../../src/config/load-kortyx-config.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB,CAAC;CACH;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAWD,wBAAsB,gBAAgB,CACpC,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAgB9B"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loadKortyxConfig = loadKortyxConfig;
|
|
4
|
-
const promises_1 = require("node:fs/promises");
|
|
5
|
-
const node_path_1 = require("node:path");
|
|
6
|
-
const node_url_1 = require("node:url");
|
|
7
|
-
async function exists(filePath) {
|
|
8
|
-
try {
|
|
9
|
-
const info = await (0, promises_1.stat)(filePath);
|
|
10
|
-
return info.isFile();
|
|
11
|
-
}
|
|
12
|
-
catch {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
async function loadKortyxConfig(options = {}) {
|
|
17
|
-
const cwd = options.cwd ?? process.cwd();
|
|
18
|
-
const configPath = options.configPath ?? "kortyx.config.mjs";
|
|
19
|
-
const resolvedPath = (0, node_path_1.resolve)(cwd, configPath);
|
|
20
|
-
if (!(await exists(resolvedPath)))
|
|
21
|
-
return null;
|
|
22
|
-
try {
|
|
23
|
-
const mod = await import((0, node_url_1.pathToFileURL)(resolvedPath).href);
|
|
24
|
-
const config = (mod?.default ?? mod?.kortyx ?? mod);
|
|
25
|
-
if (!config || typeof config !== "object")
|
|
26
|
-
return null;
|
|
27
|
-
return config;
|
|
28
|
-
}
|
|
29
|
-
catch (error) {
|
|
30
|
-
const message = error instanceof Error ? error.message : "Unknown error";
|
|
31
|
-
throw new Error(`Failed to load ${configPath}: ${message}`);
|
|
32
|
-
}
|
|
33
|
-
}
|