liminal 0.5.14 → 0.5.16
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/{Model.ts → Adapter.ts} +5 -5
- package/AdapterRegistry.ts +78 -0
- package/CHANGELOG.md +12 -0
- package/Config.ts +2 -2
- package/Context.ts +24 -7
- package/Definition.ts +16 -0
- package/L/L.ts +1 -2
- package/L/all.ts +4 -0
- package/L/assistant.ts +4 -0
- package/L/catch.ts +4 -0
- package/L/continuation.ts +3 -2
- package/L/emit.ts +6 -2
- package/L/focus.ts +17 -0
- package/L/infer.ts +18 -14
- package/L/message.ts +4 -0
- package/L/reflect.ts +2 -1
- package/L/run.ts +4 -3
- package/L/strand.ts +6 -2
- package/L/stream.ts +4 -5
- package/LEvent.ts +5 -5
- package/Rune.ts +36 -7
- package/Strand.ts +37 -6
- package/dist/{Model.d.ts → Adapter.d.ts} +5 -5
- package/dist/Adapter.js +13 -0
- package/dist/Adapter.js.map +1 -0
- package/dist/AdapterRegistry.d.ts +27 -0
- package/dist/AdapterRegistry.js +62 -0
- package/dist/AdapterRegistry.js.map +1 -0
- package/dist/Config.d.ts +2 -2
- package/dist/Config.js +1 -1
- package/dist/Config.js.map +1 -1
- package/dist/Context.d.ts +21 -2
- package/dist/Context.js +9 -4
- package/dist/Context.js.map +1 -1
- package/dist/Definition.d.ts +14 -0
- package/dist/Definition.js +11 -0
- package/dist/Definition.js.map +1 -1
- package/dist/L/L.d.ts +1 -2
- package/dist/L/L.js +1 -2
- package/dist/L/L.js.map +1 -1
- package/dist/L/all.d.ts +4 -0
- package/dist/L/all.js.map +1 -1
- package/dist/L/assistant.d.ts +4 -0
- package/dist/L/assistant.js.map +1 -1
- package/dist/L/catch.d.ts +4 -0
- package/dist/L/catch.js +4 -0
- package/dist/L/catch.js.map +1 -1
- package/dist/L/continuation.d.ts +1 -0
- package/dist/L/continuation.js +3 -2
- package/dist/L/continuation.js.map +1 -1
- package/dist/L/emit.d.ts +4 -0
- package/dist/L/emit.js +6 -2
- package/dist/L/emit.js.map +1 -1
- package/dist/L/focus.d.ts +8 -0
- package/dist/L/focus.js +14 -0
- package/dist/L/focus.js.map +1 -0
- package/dist/L/infer.d.ts +4 -0
- package/dist/L/infer.js +11 -9
- package/dist/L/infer.js.map +1 -1
- package/dist/L/message.d.ts +4 -0
- package/dist/L/message.js +4 -0
- package/dist/L/message.js.map +1 -1
- package/dist/L/reflect.d.ts +1 -0
- package/dist/L/reflect.js +2 -1
- package/dist/L/reflect.js.map +1 -1
- package/dist/L/run.d.ts +3 -2
- package/dist/L/run.js +2 -2
- package/dist/L/run.js.map +1 -1
- package/dist/L/strand.d.ts +4 -0
- package/dist/L/strand.js +6 -2
- package/dist/L/strand.js.map +1 -1
- package/dist/L/stream.d.ts +1 -0
- package/dist/L/stream.js +4 -5
- package/dist/L/stream.js.map +1 -1
- package/dist/LEvent.d.ts +7 -7
- package/dist/LEvent.js +4 -4
- package/dist/LEvent.js.map +1 -1
- package/dist/Rune.d.ts +29 -8
- package/dist/Rune.js +2 -0
- package/dist/Rune.js.map +1 -1
- package/dist/Strand.d.ts +24 -0
- package/dist/Strand.js +27 -4
- package/dist/Strand.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/util/JSONValue.d.ts +1 -1
- package/dist/util/JSONValue.js +21 -9
- package/dist/util/JSONValue.js.map +1 -1
- package/index.ts +2 -2
- package/package.json +1 -1
- package/util/JSONValue.ts +23 -8
- package/L/context.ts +0 -12
- package/L/model.ts +0 -13
- package/ModelRegistry.ts +0 -55
- package/dist/L/context.d.ts +0 -2
- package/dist/L/context.js +0 -12
- package/dist/L/context.js.map +0 -1
- package/dist/L/model.d.ts +0 -4
- package/dist/L/model.js +0 -10
- package/dist/L/model.js.map +0 -1
- package/dist/Model.js +0 -13
- package/dist/Model.js.map +0 -1
- package/dist/ModelRegistry.d.ts +0 -15
- package/dist/ModelRegistry.js +0 -43
- package/dist/ModelRegistry.js.map +0 -1
package/dist/L/infer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infer.js","sourceRoot":"","sources":["../../L/infer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAe,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"infer.js","sourceRoot":"","sources":["../../L/infer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAe,MAAM,cAAc,CAAA;AAExE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC;;;GAGG;AACH,MAAM,SAAS,CAAC,CAAC,KAAK,CAAC,MAAe;IACpC,MAAM,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,OAAO,CAAA;IAC1E,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,CAAA;IAC7B,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;IACrC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAA;IACtD,IAAI,SAAS,GAAG,KAAK,CAAC,CAAC,YAAY,CACjC,OAAO,EACP,KAAK;SACF,IAAI,CAAC;QACJ,QAAQ;QACR,GAAG,MAAM,IAAI;YACX,MAAM,EAAE,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;SAChE;QACD,MAAM;KACP,CAAC;SACD,OAAO,CACX,CAAA;IACD,IAAI,MAAM,EAAE,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7C,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAA;IACzD,CAAC;IACD,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;IAC/C,OAAO,SAAS,CAAA;AAClB,CAAC"}
|
package/dist/L/message.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { LEvent } from "../LEvent.ts";
|
|
2
2
|
import type { Content, MessageRole } from "../Message.ts";
|
|
3
3
|
import type { Rune } from "../Rune.ts";
|
|
4
|
+
/**
|
|
5
|
+
* Adds a new message to the current context's message list.
|
|
6
|
+
* Emits a message append event to observers.
|
|
7
|
+
*/
|
|
4
8
|
export declare function message(role: MessageRole, content: Array<Content>): Generator<Rune<LEvent>, void>;
|
package/dist/L/message.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { LEvent, MessageAppended } from "../LEvent.js";
|
|
2
2
|
import { emit } from "./emit.js";
|
|
3
3
|
import { reflect } from "./reflect.js";
|
|
4
|
+
/**
|
|
5
|
+
* Adds a new message to the current context's message list.
|
|
6
|
+
* Emits a message append event to observers.
|
|
7
|
+
*/
|
|
4
8
|
export function* message(role, content) {
|
|
5
9
|
const { context: { messages } } = yield* reflect;
|
|
6
10
|
const message = { role, parts: content };
|
package/dist/L/message.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../L/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAGtD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,SAAS,CAAC,CAAC,OAAO,CAAC,IAAiB,EAAE,OAAuB;IACjE,MAAM,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,GAAG,KAAK,CAAC,CAAC,OAAO,CAAA;IAChD,MAAM,OAAO,GAAY,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAA;IACjD,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,CAAA;IACzC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AACxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../L/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAGtD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC;;;GAGG;AACH,MAAM,SAAS,CAAC,CAAC,OAAO,CAAC,IAAiB,EAAE,OAAuB;IACjE,MAAM,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,GAAG,KAAK,CAAC,CAAC,OAAO,CAAA;IAChD,MAAM,OAAO,GAAY,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAA;IACjD,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,CAAA;IACzC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AACxB,CAAC"}
|
package/dist/L/reflect.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LEvent } from "../LEvent.ts";
|
|
2
2
|
import { Rune } from "../Rune.ts";
|
|
3
3
|
import type { Strand } from "../Strand.ts";
|
|
4
|
+
/** Returns the current strand instance, providing access to context and parent information. */
|
|
4
5
|
export declare const reflect: Iterable<Rune<LEvent>, Strand>;
|
package/dist/L/reflect.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Rune, RuneKey } from "../Rune.js";
|
|
2
|
+
/** Returns the current strand instance, providing access to context and parent information. */
|
|
2
3
|
export const reflect = {
|
|
3
4
|
*[Symbol.iterator]() {
|
|
4
5
|
return yield {
|
|
5
6
|
[RuneKey]: true,
|
|
6
|
-
|
|
7
|
+
instruction: { kind: "reflect" },
|
|
7
8
|
};
|
|
8
9
|
},
|
|
9
10
|
};
|
package/dist/L/reflect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflect.js","sourceRoot":"","sources":["../../L/reflect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAG1C,MAAM,CAAC,MAAM,OAAO,GAAmC;IACrD,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QAChB,OAAO,MAAM;YACX,CAAC,OAAO,CAAC,EAAE,IAAI;YACf,
|
|
1
|
+
{"version":3,"file":"reflect.js","sourceRoot":"","sources":["../../L/reflect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAG1C,+FAA+F;AAC/F,MAAM,CAAC,MAAM,OAAO,GAAmC;IACrD,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QAChB,OAAO,MAAM;YACX,CAAC,OAAO,CAAC,EAAE,IAAI;YACf,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SACjC,CAAA;IACH,CAAC;CACF,CAAA"}
|
package/dist/L/run.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { AdapterRegistry } from "../AdapterRegistry.ts";
|
|
1
2
|
import type { Definition } from "../Definition.ts";
|
|
2
3
|
import type { Handler } from "../Handler.ts";
|
|
3
4
|
import type { Message } from "../Message.ts";
|
|
4
|
-
import { ModelRegistry } from "../ModelRegistry.ts";
|
|
5
5
|
import type { Rune } from "../Rune.ts";
|
|
6
6
|
import { Strand } from "../Strand.ts";
|
|
7
7
|
import type { Tool } from "../Tool.ts";
|
|
8
|
+
/** Configuration options for running a definition. */
|
|
8
9
|
export interface RunConfig<Y extends Rune<any>> {
|
|
9
10
|
handler?: Handler<Y> | undefined;
|
|
10
|
-
models?:
|
|
11
|
+
models?: AdapterRegistry | undefined;
|
|
11
12
|
messages?: Array<Message> | undefined;
|
|
12
13
|
tools?: Set<Tool> | undefined;
|
|
13
14
|
signal?: AbortSignal | undefined;
|
package/dist/L/run.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { AdapterRegistry } from "../AdapterRegistry.js";
|
|
1
2
|
import { Context } from "../Context.js";
|
|
2
|
-
import { ModelRegistry } from "../ModelRegistry.js";
|
|
3
3
|
import { Strand } from "../Strand.js";
|
|
4
4
|
export function run(definition, config) {
|
|
5
5
|
const context = Context({
|
|
6
6
|
handler: config?.handler,
|
|
7
|
-
|
|
7
|
+
adapters: config?.models ?? new AdapterRegistry(),
|
|
8
8
|
messages: config?.messages ?? [],
|
|
9
9
|
tools: config?.tools ?? new Set(),
|
|
10
10
|
});
|
package/dist/L/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../L/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../L/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAKvC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAYrC,MAAM,UAAU,GAAG,CAAyB,UAA4B,EAAE,MAAqB;IAC7F,MAAM,OAAO,GAAG,OAAO,CAAC;QACtB,OAAO,EAAE,MAAM,EAAE,OAAO;QACxB,QAAQ,EAAE,MAAM,EAAE,MAAM,IAAI,IAAI,eAAe,EAAE;QACjD,QAAQ,EAAE,MAAM,EAAE,QAAQ,IAAI,EAAE;QAChC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,IAAI,GAAG,EAAE;KAClC,CAAC,CAAA;IACF,OAAO,IAAI,MAAM,CAAC,UAAU,EAAE;QAC5B,MAAM,EAAE,MAAM,EAAE,MAAM;QACtB,GAAG,MAAM,IAAI,EAAE,OAAO,EAAE;KACzB,CAAC,CAAA;AACJ,CAAC"}
|
package/dist/L/strand.d.ts
CHANGED
|
@@ -2,4 +2,8 @@ import type { Context } from "../Context.ts";
|
|
|
2
2
|
import type { Definition } from "../Definition.ts";
|
|
3
3
|
import type { LEvent } from "../LEvent.ts";
|
|
4
4
|
import { type Rune } from "../Rune.ts";
|
|
5
|
+
/**
|
|
6
|
+
* Creates a child strand that executes a definition.
|
|
7
|
+
* Optionally specify the context. Otherwise the current context is inherited.
|
|
8
|
+
*/
|
|
5
9
|
export declare function strand<Y extends Rune<any>, T>(definition: Definition<Y, T>, context?: Context): Generator<Rune<LEvent>, T>;
|
package/dist/L/strand.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { RuneKey } from "../Rune.js";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a child strand that executes a definition.
|
|
4
|
+
* Optionally specify the context. Otherwise the current context is inherited.
|
|
5
|
+
*/
|
|
2
6
|
export function* strand(definition, context) {
|
|
3
7
|
return yield {
|
|
4
8
|
[RuneKey]: true,
|
|
5
|
-
|
|
6
|
-
kind: "
|
|
9
|
+
instruction: {
|
|
10
|
+
kind: "create_child",
|
|
7
11
|
definition,
|
|
8
12
|
context,
|
|
9
13
|
},
|
package/dist/L/strand.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strand.js","sourceRoot":"","sources":["../../L/strand.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,OAAO,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,SAAS,CAAC,CAAC,MAAM,CACrB,UAA4B,EAC5B,OAAiB;IAEjB,OAAO,MAAM;QACX,CAAC,OAAO,CAAC,EAAE,IAAI;QACf,
|
|
1
|
+
{"version":3,"file":"strand.js","sourceRoot":"","sources":["../../L/strand.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,OAAO,EAAE,MAAM,YAAY,CAAA;AAE/C;;;GAGG;AACH,MAAM,SAAS,CAAC,CAAC,MAAM,CACrB,UAA4B,EAC5B,OAAiB;IAEjB,OAAO,MAAM;QACX,CAAC,OAAO,CAAC,EAAE,IAAI;QACf,WAAW,EAAE;YACX,IAAI,EAAE,cAAc;YACpB,UAAU;YACV,OAAO;SACR;KACF,CAAA;AACH,CAAC"}
|
package/dist/L/stream.d.ts
CHANGED
package/dist/L/stream.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { InferenceRequested } from "../LEvent.js";
|
|
2
|
-
import { LiminalAssertionError } from "../LiminalAssertionError.js";
|
|
3
2
|
import { continuation } from "./continuation.js";
|
|
4
3
|
import { emit } from "./emit.js";
|
|
5
4
|
import { reflect } from "./reflect.js";
|
|
5
|
+
/** Creates a readable stream of content from the current model. */
|
|
6
6
|
export const stream = {
|
|
7
7
|
*[Symbol.iterator]() {
|
|
8
|
-
const { context: {
|
|
9
|
-
const
|
|
10
|
-
LiminalAssertionError.assert(model);
|
|
8
|
+
const { context: { adapters, messages }, signal } = yield* reflect;
|
|
9
|
+
const adapter = adapters.ensure();
|
|
11
10
|
const requestId = crypto.randomUUID();
|
|
12
11
|
yield* emit(new InferenceRequested(requestId));
|
|
13
|
-
return yield* continuation("stream",
|
|
12
|
+
return yield* continuation("stream", adapter.seal({ messages, signal }).stream);
|
|
14
13
|
},
|
|
15
14
|
};
|
|
16
15
|
//# sourceMappingURL=stream.js.map
|
package/dist/L/stream.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.js","sourceRoot":"","sources":["../../L/stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"stream.js","sourceRoot":"","sources":["../../L/stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAA;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,mEAAmE;AACnE,MAAM,CAAC,MAAM,MAAM,GAAmD;IACpE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QAChB,MAAM,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,OAAO,CAAA;QAClE,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAA;QACjC,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;QACrC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAA;QAC9C,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAA;IACjF,CAAC;CACF,CAAA"}
|
package/dist/LEvent.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
+
import type { Adapter } from "./Adapter.ts";
|
|
1
2
|
import type { Message } from "./Message.ts";
|
|
2
|
-
import type { Model } from "./Model.ts";
|
|
3
3
|
import type { Schema } from "./Schema.ts";
|
|
4
4
|
import type { StrandStatus } from "./Strand.ts";
|
|
5
|
-
export type LEvent =
|
|
5
|
+
export type LEvent = AdapterFocused | InferenceRequested | Inferred | MessageAppended | StrandStatusChanged;
|
|
6
6
|
export declare namespace LEvent {
|
|
7
7
|
function is(value: unknown): value is LEvent;
|
|
8
8
|
}
|
|
9
9
|
export declare const LEventTag: unique symbol;
|
|
10
10
|
export type LEventTag = typeof LEventTag;
|
|
11
|
-
declare const
|
|
11
|
+
declare const AdapterFocused_base: {
|
|
12
12
|
new (): {
|
|
13
13
|
readonly brand: typeof LEventTag;
|
|
14
|
-
readonly type: "
|
|
14
|
+
readonly type: "adapter_focused";
|
|
15
15
|
};
|
|
16
16
|
is<T>(this: new (...args: any) => T, value: unknown): value is T;
|
|
17
17
|
};
|
|
18
|
-
export declare class
|
|
19
|
-
readonly
|
|
20
|
-
constructor(
|
|
18
|
+
export declare class AdapterFocused extends AdapterFocused_base {
|
|
19
|
+
readonly adapter: Adapter;
|
|
20
|
+
constructor(adapter: Adapter);
|
|
21
21
|
}
|
|
22
22
|
declare const InferenceRequested_base: {
|
|
23
23
|
new (): {
|
package/dist/LEvent.js
CHANGED
|
@@ -7,11 +7,11 @@ export var LEvent;
|
|
|
7
7
|
LEvent.is = is;
|
|
8
8
|
})(LEvent || (LEvent = {}));
|
|
9
9
|
export const LEventTag = Symbol.for("liminal/LEvent");
|
|
10
|
-
export class
|
|
11
|
-
|
|
12
|
-
constructor(
|
|
10
|
+
export class AdapterFocused extends EventBase(LEventTag, "adapter_focused") {
|
|
11
|
+
adapter;
|
|
12
|
+
constructor(adapter) {
|
|
13
13
|
super();
|
|
14
|
-
this.
|
|
14
|
+
this.adapter = adapter;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
export class InferenceRequested extends EventBase(LEventTag, "inference_requested") {
|
package/dist/LEvent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LEvent.js","sourceRoot":"","sources":["../LEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LEvent.js","sourceRoot":"","sources":["../LEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EA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B,SAAQ,SAAS,CAAC,SAAS,EAAE,uBAAuB,CAAC;IAC/D;IAArB,YAAqB,MAAoB;QACvC,KAAK,EAAE,CAAA;QADY,WAAM,GAAN,MAAM,CAAc;IAEzC,CAAC;CACF"}
|
package/dist/Rune.d.ts
CHANGED
|
@@ -1,25 +1,46 @@
|
|
|
1
1
|
import type { Context } from "./Context.ts";
|
|
2
2
|
import type { Definition } from "./Definition.ts";
|
|
3
|
+
/**
|
|
4
|
+
* `Rune` represents a computational unit within a Strand execution.
|
|
5
|
+
* It is a specialized protocol for expressing different kinds of operations
|
|
6
|
+
* that can be yielded from generator functions to control message state
|
|
7
|
+
* and concurrency within the Liminal runtime.
|
|
8
|
+
* @template E The event type this Rune can handle
|
|
9
|
+
*/
|
|
3
10
|
export interface Rune<E> {
|
|
4
11
|
[RuneKey]: true;
|
|
5
|
-
|
|
6
|
-
|
|
12
|
+
instruction: RuneInstruction<E>;
|
|
13
|
+
}
|
|
14
|
+
export type RuneInstruction<E> = RuneInstruction.Continue | RuneInstruction.Emit<E> | RuneInstruction.Reflect | RuneInstruction.CreateChild;
|
|
15
|
+
export declare namespace RuneInstruction {
|
|
16
|
+
/** Tells the runtime to call this function and and pass the result to the next iteration. */
|
|
17
|
+
interface Continue {
|
|
18
|
+
kind: "continue";
|
|
7
19
|
debug: string;
|
|
8
20
|
f: () => any;
|
|
9
|
-
}
|
|
10
|
-
|
|
21
|
+
}
|
|
22
|
+
/** Dispatch an event to the registered handler. */
|
|
23
|
+
interface Emit<E> {
|
|
24
|
+
kind: "emit";
|
|
11
25
|
event: E;
|
|
12
|
-
}
|
|
26
|
+
}
|
|
27
|
+
/** Tells the runtime to provide a reference to the current strand */
|
|
28
|
+
interface Reflect {
|
|
13
29
|
kind: "reflect";
|
|
14
|
-
}
|
|
15
|
-
|
|
30
|
+
}
|
|
31
|
+
/** Creates a nested execution context with its own definition. */
|
|
32
|
+
interface CreateChild {
|
|
33
|
+
kind: "create_child";
|
|
16
34
|
definition: Definition;
|
|
17
35
|
context?: Context | undefined;
|
|
18
|
-
}
|
|
36
|
+
}
|
|
19
37
|
}
|
|
20
38
|
export declare namespace Rune {
|
|
39
|
+
/** Extract the event type from a Rune type. */
|
|
21
40
|
type E<X extends Rune<any>> = X extends Rune<infer E> ? E : never;
|
|
41
|
+
/** Type guard to check if a value is a Rune. */
|
|
22
42
|
function is(value: unknown): value is Rune<any>;
|
|
23
43
|
}
|
|
44
|
+
/** Symbol used to identify Rune objects. */
|
|
24
45
|
export declare const RuneKey: unique symbol;
|
|
25
46
|
export type RuneKey = typeof RuneKey;
|
package/dist/Rune.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export var Rune;
|
|
2
2
|
(function (Rune) {
|
|
3
|
+
/** Type guard to check if a value is a Rune. */
|
|
3
4
|
function is(value) {
|
|
4
5
|
return typeof value === "object" && value !== null && RuneKey in value;
|
|
5
6
|
}
|
|
6
7
|
Rune.is = is;
|
|
7
8
|
})(Rune || (Rune = {}));
|
|
9
|
+
/** Symbol used to identify Rune objects. */
|
|
8
10
|
export const RuneKey = Symbol.for("liminal/RuneKey");
|
|
9
11
|
//# sourceMappingURL=Rune.js.map
|
package/dist/Rune.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rune.js","sourceRoot":"","sources":["../Rune.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rune.js","sourceRoot":"","sources":["../Rune.ts"],"names":[],"mappings":"AA+CA,MAAM,KAAW,IAAI,CAQpB;AARD,WAAiB,IAAI;IAInB,gDAAgD;IAChD,SAAgB,EAAE,CAAC,KAAc;QAC/B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,CAAA;IACxE,CAAC;IAFe,OAAE,KAEjB,CAAA;AACH,CAAC,EARgB,IAAI,KAAJ,IAAI,QAQpB;AAED,4CAA4C;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAkB,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA"}
|
package/dist/Strand.d.ts
CHANGED
|
@@ -1,20 +1,44 @@
|
|
|
1
1
|
import { Context } from "./Context.ts";
|
|
2
2
|
import { Definition } from "./Definition.ts";
|
|
3
3
|
import type { Rune } from "./Rune.ts";
|
|
4
|
+
/** Configuration options for creating a new Strand. */
|
|
4
5
|
export interface StrandConfig {
|
|
6
|
+
/** Optional parent strand that this strand will be a child of */
|
|
5
7
|
parent?: Strand | undefined;
|
|
8
|
+
/** Optional context for the strand execution */
|
|
6
9
|
context?: Context | undefined;
|
|
10
|
+
/** Optional abort signal that can be used to cancel strand execution */
|
|
7
11
|
signal?: AbortSignal | undefined;
|
|
8
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* A "Strand" is the core unit of execution in Liminal.
|
|
15
|
+
*
|
|
16
|
+
* It represents a suspendable computation that can yield Runes to control conversation state.
|
|
17
|
+
* Strands implement both the Iterable and PromiseLike interfaces to enable both
|
|
18
|
+
* running (via awaiting) and joining to parent strands (via yielding).
|
|
19
|
+
*
|
|
20
|
+
* Strands maintain their own state and can be hierarchically organized with parent-child
|
|
21
|
+
* relationships. Child strands are bound to their parents, ensuring consistent
|
|
22
|
+
* cancellation behavior.
|
|
23
|
+
*
|
|
24
|
+
* @template Y The type of Runes this Strand can yield.
|
|
25
|
+
* @template T The result type of the Strand.
|
|
26
|
+
*/
|
|
9
27
|
export declare class Strand<Y extends Rune<any> = Rune<any>, T = any> implements Iterable<Y, T>, PromiseLike<T> {
|
|
10
28
|
#private;
|
|
11
29
|
T: T;
|
|
12
30
|
Y: Y;
|
|
31
|
+
/** Signal that can be used to detect when this strand is aborted. */
|
|
13
32
|
readonly signal: AbortSignal;
|
|
33
|
+
/** Current status of the strand (untouched, pending, resolved, rejected) */
|
|
14
34
|
status: StrandStatus<T>;
|
|
35
|
+
/** Unique identifier for this strand. */
|
|
15
36
|
readonly index: number;
|
|
37
|
+
/** Nesting depth in the strand hierarchy. */
|
|
16
38
|
readonly depth: number;
|
|
39
|
+
/** The parent strand or undefined. */
|
|
17
40
|
readonly parent?: Strand;
|
|
41
|
+
/** The conversation state with which the strand operates. */
|
|
18
42
|
readonly context: Context;
|
|
19
43
|
constructor(definition: Definition<Y, T>, config: StrandConfig);
|
|
20
44
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
|
package/dist/Strand.js
CHANGED
|
@@ -5,14 +5,36 @@ import { continuation } from "./L/continuation.js";
|
|
|
5
5
|
import { StrandStatusChanged } from "./LEvent.js";
|
|
6
6
|
import { attachCustomInspect } from "./util/attachCustomInspect.js";
|
|
7
7
|
let nextIndex = 0;
|
|
8
|
+
/**
|
|
9
|
+
* A "Strand" is the core unit of execution in Liminal.
|
|
10
|
+
*
|
|
11
|
+
* It represents a suspendable computation that can yield Runes to control conversation state.
|
|
12
|
+
* Strands implement both the Iterable and PromiseLike interfaces to enable both
|
|
13
|
+
* running (via awaiting) and joining to parent strands (via yielding).
|
|
14
|
+
*
|
|
15
|
+
* Strands maintain their own state and can be hierarchically organized with parent-child
|
|
16
|
+
* relationships. Child strands are bound to their parents, ensuring consistent
|
|
17
|
+
* cancellation behavior.
|
|
18
|
+
*
|
|
19
|
+
* @template Y The type of Runes this Strand can yield.
|
|
20
|
+
* @template T The result type of the Strand.
|
|
21
|
+
*/
|
|
8
22
|
export class Strand {
|
|
23
|
+
/** Controls abort signal propagation. */
|
|
9
24
|
#controller = new AbortController();
|
|
25
|
+
/** Signal that can be used to detect when this strand is aborted. */
|
|
10
26
|
signal = this.#controller.signal;
|
|
27
|
+
/** Optional event handler function. */
|
|
11
28
|
#handle;
|
|
29
|
+
/** The definition (usually via generator function) that powers this strand. */
|
|
12
30
|
#definition;
|
|
31
|
+
/** Current status of the strand (untouched, pending, resolved, rejected) */
|
|
13
32
|
status = { type: "untouched" };
|
|
33
|
+
/** Unique identifier for this strand. */
|
|
14
34
|
index = nextIndex++;
|
|
35
|
+
/** Nesting depth in the strand hierarchy. */
|
|
15
36
|
depth;
|
|
37
|
+
/** The conversation state with which the strand operates. */
|
|
16
38
|
context;
|
|
17
39
|
constructor(definition, config) {
|
|
18
40
|
this.#definition = definition;
|
|
@@ -97,22 +119,22 @@ export class Strand {
|
|
|
97
119
|
let current = await iterator.next();
|
|
98
120
|
while (!current.done) {
|
|
99
121
|
const rune = current.value;
|
|
100
|
-
const { value } = rune;
|
|
122
|
+
const { instruction: value } = rune;
|
|
101
123
|
switch (value.kind) {
|
|
102
124
|
case "reflect": {
|
|
103
125
|
nextArg = this;
|
|
104
126
|
break;
|
|
105
127
|
}
|
|
106
|
-
case "
|
|
128
|
+
case "continue": {
|
|
107
129
|
nextArg = await value.f();
|
|
108
130
|
break;
|
|
109
131
|
}
|
|
110
|
-
case "
|
|
132
|
+
case "emit": {
|
|
111
133
|
this.#handle?.(value.event);
|
|
112
134
|
nextArg = undefined;
|
|
113
135
|
break;
|
|
114
136
|
}
|
|
115
|
-
case "
|
|
137
|
+
case "create_child": {
|
|
116
138
|
nextArg = await new Strand(value.definition, {
|
|
117
139
|
parent: this,
|
|
118
140
|
context: value.context ?? this.context.clone(),
|
|
@@ -159,6 +181,7 @@ export class Strand {
|
|
|
159
181
|
case "config_signal_aborted":
|
|
160
182
|
case "parent_aborted":
|
|
161
183
|
case "continuation_exception_thrown":
|
|
184
|
+
// case "model_error":
|
|
162
185
|
case "handler_exception_thrown": {
|
|
163
186
|
return Promise.reject(new StrandRejectedError(status));
|
|
164
187
|
}
|
package/dist/Strand.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Strand.js","sourceRoot":"","sources":["../Strand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,iBA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AC,CAAC,YAAY,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAQ,CAAA;IACpE,CAAC;IAED,OAAO,CAAC,MAAqD;QAC3D,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;YACpB,KAAK,uBAAuB,CAAC;YAC7B,KAAK,gBAAgB,CAAC;YACtB,KAAK,+BAA+B,CAAC;YACrC,sBAAsB;YACtB,KAAK,0BAA0B,CAAC,CAAC,CAAC;gBAChC,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAA;YACxD,CAAC;YACD,KAAK,UAAU,CAAC,CAAC,CAAC;gBAChB,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YACtC,CAAC;YACD,KAAK,SAAS,CAAC,CAAC,CAAC;gBACf,OAAO,MAAM,CAAC,OAAO,CAAA;YACvB,CAAC;QACH,CAAC;IACH,CAAC;IAED;QACE,mBAAmB,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;IACxF,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./Adapter.ts";
|
|
2
|
+
export * from "./AdapterRegistry.ts";
|
|
1
3
|
export * from "./Config.ts";
|
|
2
4
|
export * from "./Context.ts";
|
|
3
5
|
export * from "./Definition.ts";
|
|
@@ -6,8 +8,6 @@ export * as L from "./L/L.ts";
|
|
|
6
8
|
export * from "./LEvent.ts";
|
|
7
9
|
export * from "./LiminalAssertionError.ts";
|
|
8
10
|
export * from "./Message.ts";
|
|
9
|
-
export * from "./Model.ts";
|
|
10
|
-
export * from "./ModelRegistry.ts";
|
|
11
11
|
export * from "./Rune.ts";
|
|
12
12
|
export * from "./Schema.ts";
|
|
13
13
|
export * from "./Strand.ts";
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./Adapter.js";
|
|
2
|
+
export * from "./AdapterRegistry.js";
|
|
1
3
|
export * from "./Config.js";
|
|
2
4
|
export * from "./Context.js";
|
|
3
5
|
export * from "./Definition.js";
|
|
@@ -6,8 +8,6 @@ export * as L from "./L/L.js";
|
|
|
6
8
|
export * from "./LEvent.js";
|
|
7
9
|
export * from "./LiminalAssertionError.js";
|
|
8
10
|
export * from "./Message.js";
|
|
9
|
-
export * from "./Model.js";
|
|
10
|
-
export * from "./ModelRegistry.js";
|
|
11
11
|
export * from "./Rune.js";
|
|
12
12
|
export * from "./Schema.js";
|
|
13
13
|
export * from "./Strand.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,kBAAkB,CAAA"}
|