@systemfsoftware/agent-platform-node 0.0.0-bootstrap.0 → 0.1.0-beta.192
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/LICENSE +21 -0
- package/dist/NodeDurableAgentRuntime-C5SFn9kf.mjs +218 -0
- package/dist/NodeDurableAgentRuntime-C5SFn9kf.mjs.map +1 -0
- package/dist/NodeDurableAgentRuntime-CUrOl39W.d.mts +163 -0
- package/dist/NodeDurableAgentRuntime.d.mts +2 -0
- package/dist/NodeDurableAgentRuntime.mjs +1 -0
- package/dist/NodeDurableHost-BztkzCGh.mjs +271 -0
- package/dist/NodeDurableHost-BztkzCGh.mjs.map +1 -0
- package/dist/NodeDurableHost-CFvVn1w1.d.mts +153 -0
- package/dist/NodeDurableHost.d.mts +2 -0
- package/dist/NodeDurableHost.mjs +1 -0
- package/dist/NodeScheduling-CD_CZvQ6.d.mts +20 -0
- package/dist/NodeScheduling-gNj8jB4g.mjs +64 -0
- package/dist/NodeScheduling-gNj8jB4g.mjs.map +1 -0
- package/dist/NodeScheduling.d.mts +2 -0
- package/dist/NodeScheduling.mjs +1 -0
- package/dist/NodeSubscriptions-Bd_3VxqD.d.mts +23 -0
- package/dist/NodeSubscriptions-KgvkfIMl.mjs +62 -0
- package/dist/NodeSubscriptions-KgvkfIMl.mjs.map +1 -0
- package/dist/NodeSubscriptions.d.mts +2 -0
- package/dist/NodeSubscriptions.mjs +1 -0
- package/dist/NodeWakeScheduler-Dyha4GZJ.d.mts +28 -0
- package/dist/NodeWakeScheduler-dVNAHWsN.mjs +58 -0
- package/dist/NodeWakeScheduler-dVNAHWsN.mjs.map +1 -0
- package/dist/NodeWakeScheduler.d.mts +2 -0
- package/dist/NodeWakeScheduler.mjs +1 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +6 -0
- package/dist/rolldown-runtime-D3KUYPsf.mjs +12 -0
- package/package.json +66 -5
- package/src/NodeDurableAgentRuntime.ts +603 -0
- package/src/NodeDurableHost.ts +403 -0
- package/src/NodeScheduling.ts +122 -0
- package/src/NodeSubscriptions.ts +124 -0
- package/src/NodeWakeScheduler.ts +94 -0
- package/src/index.ts +5 -0
- package/src/internal/application-context.ts +25 -0
- package/src/internal/exclusive-host.ts +7 -0
- package/src/internal/message-delivery.ts +54 -0
- package/src/internal/prepared-admission.ts +79 -0
- package/src/internal/worker-dispatch.ts +116 -0
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeScheduling-gNj8jB4g.mjs","names":[],"sources":["../src/NodeScheduling.ts"],"sourcesContent":["import * as NodeCrypto from '@effect/platform-node/NodeCrypto'\nimport {\n defaultSchedulingLimits,\n type ScheduleAuthorizer,\n ScheduleStorageError,\n ScheduleStore,\n type ScheduleValidationError,\n ScheduleWake,\n type SchedulingLimits,\n} from '@systemfsoftware/agent/schedule'\nimport { ScheduleDriver, type ScheduleProcessFailure, Scheduling } from '@systemfsoftware/agent/scheduling'\nimport * as Cause from 'effect/Cause'\nimport * as Duration from 'effect/Duration'\nimport * as Effect from 'effect/Effect'\nimport * as Layer from 'effect/Layer'\nimport * as Option from 'effect/Option'\nimport * as PubSub from 'effect/PubSub'\nimport * as Result from 'effect/Result'\n\nimport type { NodeDurableHost } from './NodeDurableHost'\nimport { nodePreparedInputAdmissionLayer } from './NodeSubscriptions'\n\n/** One bounded hint slot for the single supported Node scheduler. Indexed polling repairs loss. */\nexport const nodeScheduleWakeLayer: Layer.Layer<ScheduleWake> = Layer.effect(\n ScheduleWake,\n Effect.gen(function*() {\n const hints = yield* PubSub.sliding<void>(1)\n const subscription = yield* PubSub.subscribe(hints)\n\n yield* Effect.addFinalizer(() => PubSub.shutdown(hints))\n\n return ScheduleWake.of({\n notify: PubSub.publish(hints, undefined).pipe(Effect.asVoid),\n await: PubSub.take(subscription),\n })\n }),\n)\n\nconst reportPassFailure = (cause: Cause.Cause<ScheduleProcessFailure>): Effect.Effect<boolean> =>\n Cause.hasInterruptsOnly(cause)\n ? Effect.interrupt\n : Effect.logWarning('Node scheduling pass failed').pipe(\n Effect.annotateLogs({\n failureTag: Option.match(Cause.findErrorOption(cause), {\n onNone: () => 'Defect',\n onSome: (error) => error._tag,\n }),\n }),\n Effect.as(false),\n )\n\nconst nodeSchedulingDriverLayer = (\n limits: SchedulingLimits,\n): Layer.Layer<never, never, ScheduleDriver | ScheduleStore | ScheduleWake> =>\n Layer.effectDiscard(\n Effect.gen(function*() {\n const scheduling = yield* ScheduleDriver\n const store = yield* ScheduleStore\n const wake = yield* ScheduleWake\n\n const run = Effect.gen(function*() {\n while (true) {\n const passSucceeded = yield* scheduling.runDue().pipe(\n Effect.map((pass) => pass.failed === 0),\n Effect.catchCause(reportPassFailure),\n )\n\n const deadlineResult = passSucceeded\n ? yield* store.nextDeadline().pipe(Effect.result)\n : Result.fail(\n ScheduleStorageError.make({ operation: 'driver pass', reason: 'unavailable' }),\n )\n\n if (Result.isFailure(deadlineResult) && passSucceeded) {\n yield* Effect.logWarning('Node scheduling deadline query failed')\n }\n const nowMillis = yield* Effect.clockWith((clock) => clock.currentTimeMillis)\n\n const deadlineDelay = Result.isSuccess(deadlineResult) && deadlineResult.success !== null\n ? Math.max(0, deadlineResult.success - nowMillis)\n : limits.recoveryPollMillis\n\n const delay = Math.min(deadlineDelay, limits.recoveryPollMillis)\n\n yield* Effect.raceFirst(wake.await, Effect.sleep(Duration.millis(delay)))\n }\n })\n\n yield* Effect.forkScoped(run)\n }),\n )\n\nexport interface NodeSchedulingOptions {\n readonly limits?: SchedulingLimits | undefined\n}\n\n/**\n * Optional Scope-owned Node scheduling service and driver. The caller must provide the existing\n * host, its SQLite ScheduleStore, and an explicit ScheduleAuthorizer.\n */\nexport class NodeScheduling {\n static layer(\n options: NodeSchedulingOptions = {},\n ): Layer.Layer<\n Scheduling,\n ScheduleValidationError,\n NodeDurableHost | ScheduleStore | ScheduleAuthorizer\n > {\n const limits = options.limits ?? defaultSchedulingLimits\n\n const schedulingWithDriver = nodeSchedulingDriverLayer(limits).pipe(\n Layer.provide(ScheduleDriver.layer(limits)),\n Layer.merge(Scheduling.layer(limits)),\n )\n\n return schedulingWithDriver.pipe(\n Layer.provide(\n Layer.mergeAll(nodePreparedInputAdmissionLayer, nodeScheduleWakeLayer, NodeCrypto.layer),\n ),\n )\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAuBA,MAAa,wBAAmD,MAAM,OACpE,cACA,OAAO,IAAI,aAAY;CACrB,MAAM,QAAQ,OAAO,OAAO,QAAc,CAAC;CAC3C,MAAM,eAAe,OAAO,OAAO,UAAU,KAAK;CAElD,OAAO,OAAO,mBAAmB,OAAO,SAAS,KAAK,CAAC;CAEvD,OAAO,aAAa,GAAG;EACrB,QAAQ,OAAO,QAAQ,OAAO,KAAA,CAAS,CAAC,CAAC,KAAK,OAAO,MAAM;EAC3D,OAAO,OAAO,KAAK,YAAY;CACjC,CAAC;AACH,CAAC,CACH;AAEA,MAAM,qBAAqB,UACzB,MAAM,kBAAkB,KAAK,IACzB,OAAO,YACP,OAAO,WAAW,6BAA6B,CAAC,CAAC,KACjD,OAAO,aAAa,EAClB,YAAY,OAAO,MAAM,MAAM,gBAAgB,KAAK,GAAG;CACrD,cAAc;CACd,SAAS,UAAU,MAAM;AAC3B,CAAC,EACH,CAAC,GACD,OAAO,GAAG,KAAK,CACjB;AAEJ,MAAM,6BACJ,WAEA,MAAM,cACJ,OAAO,IAAI,aAAY;CACrB,MAAM,aAAa,OAAO;CAC1B,MAAM,QAAQ,OAAO;CACrB,MAAM,OAAO,OAAO;CAEpB,MAAM,MAAM,OAAO,IAAI,aAAY;EACjC,OAAO,MAAM;GACX,MAAM,gBAAgB,OAAO,WAAW,OAAO,CAAC,CAAC,KAC/C,OAAO,KAAK,SAAS,KAAK,WAAW,CAAC,GACtC,OAAO,WAAW,iBAAiB,CACrC;GAEA,MAAM,iBAAiB,gBACnB,OAAO,MAAM,aAAa,CAAC,CAAC,KAAK,OAAO,MAAM,IAC9C,OAAO,KACP,qBAAqB,KAAK;IAAE,WAAW;IAAe,QAAQ;GAAc,CAAC,CAC/E;GAEF,IAAI,OAAO,UAAU,cAAc,KAAK,eACtC,OAAO,OAAO,WAAW,uCAAuC;GAElE,MAAM,YAAY,OAAO,OAAO,WAAW,UAAU,MAAM,iBAAiB;GAE5E,MAAM,gBAAgB,OAAO,UAAU,cAAc,KAAK,eAAe,YAAY,OACjF,KAAK,IAAI,GAAG,eAAe,UAAU,SAAS,IAC9C,OAAO;GAEX,MAAM,QAAQ,KAAK,IAAI,eAAe,OAAO,kBAAkB;GAE/D,OAAO,OAAO,UAAU,KAAK,OAAO,OAAO,MAAM,SAAS,OAAO,KAAK,CAAC,CAAC;EAC1E;CACF,CAAC;CAED,OAAO,OAAO,WAAW,GAAG;AAC9B,CAAC,CACH;;;;;AAUF,IAAa,iBAAb,MAA4B;CAC1B,OAAO,MACL,UAAiC,CAAC,GAKlC;EACA,MAAM,SAAS,QAAQ,UAAU;EAOjC,OAL6B,0BAA0B,MAAM,CAAC,CAAC,KAC7D,MAAM,QAAQ,eAAe,MAAM,MAAM,CAAC,GAC1C,MAAM,MAAM,WAAW,MAAM,MAAM,CAAC,CAGZ,CAAC,CAAC,KAC1B,MAAM,QACJ,MAAM,SAAS,iCAAiC,uBAAuB,WAAW,KAAK,CACzF,CACF;CACF;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as NodeScheduling, r as nodeScheduleWakeLayer } from "./NodeScheduling-gNj8jB4g.mjs";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventSources } from "@systemfsoftware/agent/event-source";
|
|
2
|
+
import { PreparedInputAdmission } from "@systemfsoftware/agent/prepared-input-admission";
|
|
3
|
+
import { SubscriptionAuthorizer, SubscriptionError, SubscriptionLimits, SubscriptionStore } from "@systemfsoftware/agent/subscription";
|
|
4
|
+
import { SubscriptionInputBindings } from "@systemfsoftware/agent/subscription-input";
|
|
5
|
+
import { SubscriptionIntake, Subscriptions } from "@systemfsoftware/agent/subscriptions";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import { n as NodeDurableHost } from "./NodeDurableHost-CFvVn1w1.mjs";
|
|
8
|
+
declare namespace NodeSubscriptions_d_exports {
|
|
9
|
+
export { NodeSubscriptions, NodeSubscriptionsOptions, nodePreparedInputAdmissionLayer };
|
|
10
|
+
}
|
|
11
|
+
/** Ordinary prepared admission through the Scope-owned Node host gate. */
|
|
12
|
+
declare const nodePreparedInputAdmissionLayer: Layer.Layer<PreparedInputAdmission, never, NodeDurableHost>;
|
|
13
|
+
interface NodeSubscriptionsOptions {
|
|
14
|
+
readonly limits?: SubscriptionLimits | undefined;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* One Scope-owned subscription partition in the sole process owning its SQLite database.
|
|
18
|
+
* Indexed polling repairs restart and lost wake state; closing the Scope interrupts the driver.
|
|
19
|
+
*/
|
|
20
|
+
declare class NodeSubscriptions {
|
|
21
|
+
static layer(options?: NodeSubscriptionsOptions): Layer.Layer<Subscriptions | SubscriptionIntake, SubscriptionError, NodeDurableHost | SubscriptionStore | SubscriptionAuthorizer | EventSources | SubscriptionInputBindings>;
|
|
22
|
+
}
|
|
23
|
+
export { nodePreparedInputAdmissionLayer as i, NodeSubscriptionsOptions as n, NodeSubscriptions_d_exports as r, NodeSubscriptions as t };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D3KUYPsf.mjs";
|
|
2
|
+
import * as NodeCrypto from "@effect/platform-node/NodeCrypto";
|
|
3
|
+
import "@systemfsoftware/agent/event-source";
|
|
4
|
+
import { PreparedInputAdmission } from "@systemfsoftware/agent/prepared-input-admission";
|
|
5
|
+
import { SubscriptionStore, defaultSubscriptionLimits } from "@systemfsoftware/agent/subscription";
|
|
6
|
+
import "@systemfsoftware/agent/subscription-input";
|
|
7
|
+
import { SubscriptionDriver, SubscriptionIntake, Subscriptions } from "@systemfsoftware/agent/subscriptions";
|
|
8
|
+
import * as Cause from "effect/Cause";
|
|
9
|
+
import * as Duration from "effect/Duration";
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
import * as Exit from "effect/Exit";
|
|
12
|
+
import * as Layer from "effect/Layer";
|
|
13
|
+
import * as Option from "effect/Option";
|
|
14
|
+
import { n as NodeDurableHost, o as NodeAdmission, s as makeNodePreparedInputAdmission } from "./NodeDurableHost-BztkzCGh.mjs";
|
|
15
|
+
// src/NodeSubscriptions.ts
|
|
16
|
+
var NodeSubscriptions_exports = /* @__PURE__ */ __exportAll({
|
|
17
|
+
NodeSubscriptions: () => NodeSubscriptions,
|
|
18
|
+
nodePreparedInputAdmissionLayer: () => nodePreparedInputAdmissionLayer
|
|
19
|
+
});
|
|
20
|
+
/** Ordinary prepared admission through the Scope-owned Node host gate. */
|
|
21
|
+
const nodePreparedInputAdmissionLayer = Layer.effect(PreparedInputAdmission, makeNodePreparedInputAdmission).pipe(Layer.provide(Layer.effect(NodeAdmission, NodeDurableHost)));
|
|
22
|
+
const reportPassFailure = (cause) => Cause.hasInterruptsOnly(cause) ? Effect.interrupt : Effect.logWarning("Node subscription pass failed").pipe(Effect.annotateLogs({ failureTag: Option.match(Cause.findErrorOption(cause), {
|
|
23
|
+
onNone: () => "Defect",
|
|
24
|
+
onSome: (error) => error._tag
|
|
25
|
+
}) }), Effect.as(false));
|
|
26
|
+
const nodeSubscriptionDriverLayer = (limits) => Layer.effectDiscard(Effect.gen(function* () {
|
|
27
|
+
const driver = yield* SubscriptionDriver;
|
|
28
|
+
const store = yield* SubscriptionStore;
|
|
29
|
+
const run = Effect.gen(function* () {
|
|
30
|
+
while (true) {
|
|
31
|
+
if (!(yield* driver.runDue.pipe(Effect.map((pass) => pass.failed === 0), Effect.catchCause(reportPassFailure)))) {
|
|
32
|
+
yield* Effect.sleep(Duration.millis(limits.retryMillis));
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
const deadline = yield* store.nextDeadline.pipe(Effect.exit);
|
|
36
|
+
if (Exit.isFailure(deadline)) {
|
|
37
|
+
yield* reportPassFailure(deadline.cause);
|
|
38
|
+
yield* Effect.sleep(Duration.millis(limits.retryMillis));
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
const nowMillis = yield* Effect.clockWith((clock) => clock.currentTimeMillis);
|
|
42
|
+
const delay = deadline.value === null ? limits.retryMillis : Math.max(1, Math.min(deadline.value - nowMillis, limits.retryMillis));
|
|
43
|
+
yield* Effect.sleep(Duration.millis(delay));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
yield* Effect.forkScoped(run);
|
|
47
|
+
}));
|
|
48
|
+
/**
|
|
49
|
+
* One Scope-owned subscription partition in the sole process owning its SQLite database.
|
|
50
|
+
* Indexed polling repairs restart and lost wake state; closing the Scope interrupts the driver.
|
|
51
|
+
*/
|
|
52
|
+
var NodeSubscriptions = class {
|
|
53
|
+
static layer(options = {}) {
|
|
54
|
+
const limits = options.limits ?? defaultSubscriptionLimits;
|
|
55
|
+
const publicServices = Layer.merge(Subscriptions.layer(limits), SubscriptionIntake.layer(limits));
|
|
56
|
+
const driver = nodeSubscriptionDriverLayer(limits).pipe(Layer.provide(SubscriptionDriver.layer(limits)));
|
|
57
|
+
return Layer.merge(publicServices, driver).pipe(Layer.provide(nodePreparedInputAdmissionLayer), Layer.provide(NodeCrypto.layer));
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export { NodeSubscriptions_exports as n, nodePreparedInputAdmissionLayer as r, NodeSubscriptions as t };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=NodeSubscriptions-KgvkfIMl.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeSubscriptions-KgvkfIMl.mjs","names":[],"sources":["../src/NodeSubscriptions.ts"],"sourcesContent":["import * as NodeCrypto from '@effect/platform-node/NodeCrypto'\nimport { type EventSources } from '@systemfsoftware/agent/event-source'\nimport { PreparedInputAdmission } from '@systemfsoftware/agent/prepared-input-admission'\nimport {\n defaultSubscriptionLimits,\n type SubscriptionAuthorizer,\n type SubscriptionError,\n type SubscriptionLimits,\n SubscriptionStore,\n type SubscriptionStoreFailure,\n} from '@systemfsoftware/agent/subscription'\nimport { type SubscriptionInputBindings } from '@systemfsoftware/agent/subscription-input'\nimport { SubscriptionDriver, SubscriptionIntake, Subscriptions } from '@systemfsoftware/agent/subscriptions'\nimport * as Cause from 'effect/Cause'\nimport * as Duration from 'effect/Duration'\nimport * as Effect from 'effect/Effect'\nimport * as Exit from 'effect/Exit'\nimport * as Layer from 'effect/Layer'\nimport * as Option from 'effect/Option'\n\nimport { makeNodePreparedInputAdmission, NodeAdmission } from './internal/prepared-admission'\nimport { NodeDurableHost } from './NodeDurableHost'\n\n/** Ordinary prepared admission through the Scope-owned Node host gate. */\nexport const nodePreparedInputAdmissionLayer: Layer.Layer<\n PreparedInputAdmission,\n never,\n NodeDurableHost\n> = Layer.effect(PreparedInputAdmission, makeNodePreparedInputAdmission).pipe(\n Layer.provide(Layer.effect(NodeAdmission, NodeDurableHost)),\n)\n\nconst reportPassFailure = (cause: Cause.Cause<SubscriptionStoreFailure>): Effect.Effect<boolean> =>\n Cause.hasInterruptsOnly(cause)\n ? Effect.interrupt\n : Effect.logWarning('Node subscription pass failed').pipe(\n Effect.annotateLogs({\n failureTag: Option.match(Cause.findErrorOption(cause), {\n onNone: () => 'Defect',\n onSome: (error) => error._tag,\n }),\n }),\n Effect.as(false),\n )\n\nconst nodeSubscriptionDriverLayer = (\n limits: SubscriptionLimits,\n): Layer.Layer<never, never, SubscriptionDriver | SubscriptionStore> =>\n Layer.effectDiscard(\n Effect.gen(function*() {\n const driver = yield* SubscriptionDriver\n const store = yield* SubscriptionStore\n\n const run = Effect.gen(function*() {\n while (true) {\n const passSucceeded = yield* driver.runDue.pipe(\n Effect.map((pass) => pass.failed === 0),\n Effect.catchCause(reportPassFailure),\n )\n\n if (!passSucceeded) {\n yield* Effect.sleep(Duration.millis(limits.retryMillis))\n continue\n }\n\n const deadline = yield* store.nextDeadline.pipe(Effect.exit)\n\n if (Exit.isFailure(deadline)) {\n yield* reportPassFailure(deadline.cause)\n yield* Effect.sleep(Duration.millis(limits.retryMillis))\n continue\n }\n\n const nowMillis = yield* Effect.clockWith((clock) => clock.currentTimeMillis)\n\n const delay = deadline.value === null\n ? limits.retryMillis\n : Math.max(1, Math.min(deadline.value - nowMillis, limits.retryMillis))\n\n yield* Effect.sleep(Duration.millis(delay))\n }\n })\n\n yield* Effect.forkScoped(run)\n }),\n )\n\nexport interface NodeSubscriptionsOptions {\n readonly limits?: SubscriptionLimits | undefined\n}\n\n/**\n * One Scope-owned subscription partition in the sole process owning its SQLite database.\n * Indexed polling repairs restart and lost wake state; closing the Scope interrupts the driver.\n */\nexport class NodeSubscriptions {\n static layer(\n options: NodeSubscriptionsOptions = {},\n ): Layer.Layer<\n Subscriptions | SubscriptionIntake,\n SubscriptionError,\n | NodeDurableHost\n | SubscriptionStore\n | SubscriptionAuthorizer\n | EventSources\n | SubscriptionInputBindings\n > {\n const limits = options.limits ?? defaultSubscriptionLimits\n\n const publicServices = Layer.merge(\n Subscriptions.layer(limits),\n SubscriptionIntake.layer(limits),\n )\n\n const driver = nodeSubscriptionDriverLayer(limits).pipe(\n Layer.provide(SubscriptionDriver.layer(limits)),\n )\n\n return Layer.merge(publicServices, driver).pipe(\n Layer.provide(nodePreparedInputAdmissionLayer),\n Layer.provide(NodeCrypto.layer),\n )\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,kCAIT,MAAM,OAAO,wBAAwB,8BAA8B,CAAC,CAAC,KACvE,MAAM,QAAQ,MAAM,OAAO,eAAe,eAAe,CAAC,CAC5D;AAEA,MAAM,qBAAqB,UACzB,MAAM,kBAAkB,KAAK,IACzB,OAAO,YACP,OAAO,WAAW,+BAA+B,CAAC,CAAC,KACnD,OAAO,aAAa,EAClB,YAAY,OAAO,MAAM,MAAM,gBAAgB,KAAK,GAAG;CACrD,cAAc;CACd,SAAS,UAAU,MAAM;AAC3B,CAAC,EACH,CAAC,GACD,OAAO,GAAG,KAAK,CACjB;AAEJ,MAAM,+BACJ,WAEA,MAAM,cACJ,OAAO,IAAI,aAAY;CACrB,MAAM,SAAS,OAAO;CACtB,MAAM,QAAQ,OAAO;CAErB,MAAM,MAAM,OAAO,IAAI,aAAY;EACjC,OAAO,MAAM;GAMX,IAAI,EAAC,OALwB,OAAO,OAAO,KACzC,OAAO,KAAK,SAAS,KAAK,WAAW,CAAC,GACtC,OAAO,WAAW,iBAAiB,CACrC,IAEoB;IAClB,OAAO,OAAO,MAAM,SAAS,OAAO,OAAO,WAAW,CAAC;IACvD;GACF;GAEA,MAAM,WAAW,OAAO,MAAM,aAAa,KAAK,OAAO,IAAI;GAE3D,IAAI,KAAK,UAAU,QAAQ,GAAG;IAC5B,OAAO,kBAAkB,SAAS,KAAK;IACvC,OAAO,OAAO,MAAM,SAAS,OAAO,OAAO,WAAW,CAAC;IACvD;GACF;GAEA,MAAM,YAAY,OAAO,OAAO,WAAW,UAAU,MAAM,iBAAiB;GAE5E,MAAM,QAAQ,SAAS,UAAU,OAC7B,OAAO,cACP,KAAK,IAAI,GAAG,KAAK,IAAI,SAAS,QAAQ,WAAW,OAAO,WAAW,CAAC;GAExE,OAAO,OAAO,MAAM,SAAS,OAAO,KAAK,CAAC;EAC5C;CACF,CAAC;CAED,OAAO,OAAO,WAAW,GAAG;AAC9B,CAAC,CACH;;;;;AAUF,IAAa,oBAAb,MAA+B;CAC7B,OAAO,MACL,UAAoC,CAAC,GASrC;EACA,MAAM,SAAS,QAAQ,UAAU;EAEjC,MAAM,iBAAiB,MAAM,MAC3B,cAAc,MAAM,MAAM,GAC1B,mBAAmB,MAAM,MAAM,CACjC;EAEA,MAAM,SAAS,4BAA4B,MAAM,CAAC,CAAC,KACjD,MAAM,QAAQ,mBAAmB,MAAM,MAAM,CAAC,CAChD;EAEA,OAAO,MAAM,MAAM,gBAAgB,MAAM,CAAC,CAAC,KACzC,MAAM,QAAQ,+BAA+B,GAC7C,MAAM,QAAQ,WAAW,KAAK,CAChC;CACF;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as NodeSubscriptions, r as nodePreparedInputAdmissionLayer } from "./NodeSubscriptions-KgvkfIMl.mjs";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ThreadStore, ThreadStoreError } from "@systemfsoftware/agent/thread-store";
|
|
2
|
+
import { WakeScheduler } from "@systemfsoftware/agent/wake-scheduler";
|
|
3
|
+
import * as Context from "effect/Context";
|
|
4
|
+
import * as Duration from "effect/Duration";
|
|
5
|
+
import * as Layer from "effect/Layer";
|
|
6
|
+
declare namespace NodeWakeScheduler_d_exports {
|
|
7
|
+
export { NodeWakeSchedulerConfig, nodeWakeSchedulerLayer };
|
|
8
|
+
}
|
|
9
|
+
declare const NodeWakeSchedulerConfig_base: Context.ServiceClass<NodeWakeSchedulerConfig, "@effect-agent/platform-node/NodeWakeSchedulerConfig", {
|
|
10
|
+
/** Interval between scans of Threads with outstanding work, including terminal obligations. */
|
|
11
|
+
readonly scanInterval: Duration.Duration;
|
|
12
|
+
}>;
|
|
13
|
+
/** Cadence authority for the Node wake scheduler's native inventory fallback. */
|
|
14
|
+
declare class NodeWakeSchedulerConfig extends NodeWakeSchedulerConfig_base {
|
|
15
|
+
static layer(options: {
|
|
16
|
+
readonly scanInterval: Duration.Duration;
|
|
17
|
+
}): Layer.Layer<NodeWakeSchedulerConfig>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* In-process Node `WakeScheduler`: `notify` publishes to a bounded sliding PubSub for prompt
|
|
21
|
+
* same-process worker wakeups. Thread waiters use separate progress and settlement registrations;
|
|
22
|
+
* broad hints wake both. Each active `wakes` subscription pages the native work inventory
|
|
23
|
+
* periodically so a dropped, coalesced, or never-sent notification cannot strand accepted work
|
|
24
|
+
* or a terminal side obligation. Delivery may duplicate; consumers already
|
|
25
|
+
* treat wakes as pure liveness hints.
|
|
26
|
+
*/
|
|
27
|
+
declare const nodeWakeSchedulerLayer: Layer.Layer<WakeScheduler, ThreadStoreError, ThreadStore | NodeWakeSchedulerConfig>;
|
|
28
|
+
export { NodeWakeScheduler_d_exports as n, nodeWakeSchedulerLayer as r, NodeWakeSchedulerConfig as t };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D3KUYPsf.mjs";
|
|
2
|
+
import "@systemfsoftware/agent/identifiers";
|
|
3
|
+
import { ThreadWorkDiscovery } from "@systemfsoftware/agent/thread-work";
|
|
4
|
+
import { WakeScheduler, makeWakeSubscriptionHub } from "@systemfsoftware/agent/wake-scheduler";
|
|
5
|
+
import * as Clock from "effect/Clock";
|
|
6
|
+
import * as Context from "effect/Context";
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import * as Option from "effect/Option";
|
|
10
|
+
import * as PubSub from "effect/PubSub";
|
|
11
|
+
import * as Stream from "effect/Stream";
|
|
12
|
+
// src/NodeWakeScheduler.ts
|
|
13
|
+
var NodeWakeScheduler_exports = /* @__PURE__ */ __exportAll({
|
|
14
|
+
NodeWakeSchedulerConfig: () => NodeWakeSchedulerConfig,
|
|
15
|
+
nodeWakeSchedulerLayer: () => nodeWakeSchedulerLayer
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Bounded in-process wake buffer. Wake hints are droppable by contract (native work inventory
|
|
19
|
+
* keeps liveness), so a full buffer slides out the oldest hint instead of growing without bound.
|
|
20
|
+
*/
|
|
21
|
+
const WAKE_BUFFER_CAPACITY = 1024;
|
|
22
|
+
/** Cadence authority for the Node wake scheduler's native inventory fallback. */
|
|
23
|
+
var NodeWakeSchedulerConfig = class NodeWakeSchedulerConfig extends Context.Service()("@effect-agent/platform-node/NodeWakeSchedulerConfig") {
|
|
24
|
+
static layer(options) {
|
|
25
|
+
return Layer.succeed(NodeWakeSchedulerConfig)({ scanInterval: options.scanInterval });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const makeWakeScheduler = Effect.gen(function* () {
|
|
29
|
+
const work = yield* ThreadWorkDiscovery.pipe(Effect.provide(ThreadWorkDiscovery.layer));
|
|
30
|
+
const config = yield* NodeWakeSchedulerConfig;
|
|
31
|
+
const clock = yield* Clock.Clock;
|
|
32
|
+
const hints = yield* PubSub.sliding(WAKE_BUFFER_CAPACITY);
|
|
33
|
+
const progress = yield* makeWakeSubscriptionHub;
|
|
34
|
+
const settlements = yield* makeWakeSubscriptionHub;
|
|
35
|
+
yield* Effect.addFinalizer(() => PubSub.shutdown(hints));
|
|
36
|
+
const scanOnce = Stream.paginate(void 0, (afterThreadId) => work.threads({
|
|
37
|
+
limit: 32,
|
|
38
|
+
...afterThreadId === void 0 ? {} : { afterThreadId }
|
|
39
|
+
}).pipe(Effect.map((page) => [page.threadIds, page.afterThreadId === void 0 ? Option.none() : Option.some(page.afterThreadId)]))).pipe(Stream.catch((error) => Stream.fromEffect(Effect.logWarning("NodeWakeScheduler native work inventory failed", error)).pipe(Stream.drain)));
|
|
40
|
+
const fallbackScans = Stream.fromEffectRepeat(clock.sleep(config.scanInterval)).pipe(Stream.flatMap(() => scanOnce));
|
|
41
|
+
return WakeScheduler.of({
|
|
42
|
+
notify: (threadId, kind) => (kind === "progress" ? progress.notify(threadId) : settlements.notify(threadId).pipe(Effect.andThen(progress.notify(threadId)))).pipe(Effect.andThen(PubSub.publish(hints, threadId)), Effect.asVoid),
|
|
43
|
+
subscribe: (threadId, kind) => (kind === "settlement" ? settlements : progress).subscribe(threadId),
|
|
44
|
+
wakes: Stream.merge(Stream.fromPubSub(hints), fallbackScans)
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* In-process Node `WakeScheduler`: `notify` publishes to a bounded sliding PubSub for prompt
|
|
49
|
+
* same-process worker wakeups. Thread waiters use separate progress and settlement registrations;
|
|
50
|
+
* broad hints wake both. Each active `wakes` subscription pages the native work inventory
|
|
51
|
+
* periodically so a dropped, coalesced, or never-sent notification cannot strand accepted work
|
|
52
|
+
* or a terminal side obligation. Delivery may duplicate; consumers already
|
|
53
|
+
* treat wakes as pure liveness hints.
|
|
54
|
+
*/
|
|
55
|
+
const nodeWakeSchedulerLayer = Layer.effect(WakeScheduler)(makeWakeScheduler);
|
|
56
|
+
export { NodeWakeScheduler_exports as n, nodeWakeSchedulerLayer as r, NodeWakeSchedulerConfig as t };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=NodeWakeScheduler-dVNAHWsN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeWakeScheduler-dVNAHWsN.mjs","names":[],"sources":["../src/NodeWakeScheduler.ts"],"sourcesContent":["import { type ThreadId } from '@systemfsoftware/agent/identifiers'\nimport type { ThreadStore, ThreadStoreError } from '@systemfsoftware/agent/thread-store'\nimport { ThreadWorkDiscovery } from '@systemfsoftware/agent/thread-work'\nimport { makeWakeSubscriptionHub, WakeScheduler } from '@systemfsoftware/agent/wake-scheduler'\nimport * as Clock from 'effect/Clock'\nimport * as Context from 'effect/Context'\nimport type * as Duration from 'effect/Duration'\nimport * as Effect from 'effect/Effect'\nimport * as Layer from 'effect/Layer'\nimport * as Option from 'effect/Option'\nimport * as PubSub from 'effect/PubSub'\nimport * as Stream from 'effect/Stream'\n\n/**\n * Bounded in-process wake buffer. Wake hints are droppable by contract (native work inventory\n * keeps liveness), so a full buffer slides out the oldest hint instead of growing without bound.\n */\nconst WAKE_BUFFER_CAPACITY = 1_024\n\n/** Cadence authority for the Node wake scheduler's native inventory fallback. */\nexport class NodeWakeSchedulerConfig extends Context.Service<\n NodeWakeSchedulerConfig,\n {\n /** Interval between scans of Threads with outstanding work, including terminal obligations. */\n readonly scanInterval: Duration.Duration\n }\n>()('@effect-agent/platform-node/NodeWakeSchedulerConfig') {\n static layer(options: {\n readonly scanInterval: Duration.Duration\n }): Layer.Layer<NodeWakeSchedulerConfig> {\n return Layer.succeed(NodeWakeSchedulerConfig)({ scanInterval: options.scanInterval })\n }\n}\n\nconst makeWakeScheduler = Effect.gen(function*() {\n const work = yield* ThreadWorkDiscovery.pipe(Effect.provide(ThreadWorkDiscovery.layer))\n const config = yield* NodeWakeSchedulerConfig\n const clock = yield* Clock.Clock\n const hints = yield* PubSub.sliding<ThreadId>(WAKE_BUFFER_CAPACITY)\n const progress = yield* makeWakeSubscriptionHub\n const settlements = yield* makeWakeSubscriptionHub\n\n yield* Effect.addFinalizer(() => PubSub.shutdown(hints))\n\n const scanOnce = Stream.paginate(undefined, (afterThreadId: ThreadId | undefined) =>\n work\n .threads({ limit: 32, ...(afterThreadId === undefined ? {} : { afterThreadId }) })\n .pipe(\n Effect.map(\n (page): readonly [ReadonlyArray<ThreadId>, Option.Option<ThreadId | undefined>] => [\n page.threadIds,\n page.afterThreadId === undefined ? Option.none() : Option.some(page.afterThreadId),\n ],\n ),\n )).pipe(\n Stream.catch((error) =>\n Stream.fromEffect(\n Effect.logWarning('NodeWakeScheduler native work inventory failed', error),\n ).pipe(Stream.drain)\n ),\n )\n\n // Each subscriber owns its cursor. A slow subscriber retains one page and resumes it;\n // faster subscribers keep scanning without an unbounded shared snapshot or dropped pages.\n const fallbackScans = Stream.fromEffectRepeat(clock.sleep(config.scanInterval)).pipe(\n Stream.flatMap(() => scanOnce),\n )\n\n return WakeScheduler.of({\n notify: (threadId, kind) =>\n (kind === 'progress'\n ? progress.notify(threadId)\n : settlements.notify(threadId).pipe(Effect.andThen(progress.notify(threadId)))).pipe(\n Effect.andThen(PubSub.publish(hints, threadId)),\n Effect.asVoid,\n ),\n subscribe: (threadId, kind) => (kind === 'settlement' ? settlements : progress).subscribe(threadId),\n wakes: Stream.merge(Stream.fromPubSub(hints), fallbackScans),\n })\n})\n\n/**\n * In-process Node `WakeScheduler`: `notify` publishes to a bounded sliding PubSub for prompt\n * same-process worker wakeups. Thread waiters use separate progress and settlement registrations;\n * broad hints wake both. Each active `wakes` subscription pages the native work inventory\n * periodically so a dropped, coalesced, or never-sent notification cannot strand accepted work\n * or a terminal side obligation. Delivery may duplicate; consumers already\n * treat wakes as pure liveness hints.\n */\nexport const nodeWakeSchedulerLayer: Layer.Layer<\n WakeScheduler,\n ThreadStoreError,\n ThreadStore | NodeWakeSchedulerConfig\n> = Layer.effect(WakeScheduler)(makeWakeScheduler)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAiBA,MAAM,uBAAuB;;AAG7B,IAAa,0BAAb,MAAa,gCAAgC,QAAQ,QAMnD,CAAC,CAAC,qDAAqD,CAAC,CAAC;CACzD,OAAO,MAAM,SAE4B;EACvC,OAAO,MAAM,QAAQ,uBAAuB,CAAC,CAAC,EAAE,cAAc,QAAQ,aAAa,CAAC;CACtF;AACF;AAEA,MAAM,oBAAoB,OAAO,IAAI,aAAY;CAC/C,MAAM,OAAO,OAAO,oBAAoB,KAAK,OAAO,QAAQ,oBAAoB,KAAK,CAAC;CACtF,MAAM,SAAS,OAAO;CACtB,MAAM,QAAQ,OAAO,MAAM;CAC3B,MAAM,QAAQ,OAAO,OAAO,QAAkB,oBAAoB;CAClE,MAAM,WAAW,OAAO;CACxB,MAAM,cAAc,OAAO;CAE3B,OAAO,OAAO,mBAAmB,OAAO,SAAS,KAAK,CAAC;CAEvD,MAAM,WAAW,OAAO,SAAS,KAAA,IAAY,kBAC3C,KACG,QAAQ;EAAE,OAAO;EAAI,GAAI,kBAAkB,KAAA,IAAY,CAAC,IAAI,EAAE,cAAc;CAAG,CAAC,CAAC,CACjF,KACC,OAAO,KACJ,SAAkF,CACjF,KAAK,WACL,KAAK,kBAAkB,KAAA,IAAY,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,aAAa,CACnF,CACF,CACF,CAAC,CAAC,CAAC,KACH,OAAO,OAAO,UACZ,OAAO,WACL,OAAO,WAAW,kDAAkD,KAAK,CAC3E,CAAC,CAAC,KAAK,OAAO,KAAK,CACrB,CACF;CAIF,MAAM,gBAAgB,OAAO,iBAAiB,MAAM,MAAM,OAAO,YAAY,CAAC,CAAC,CAAC,KAC9E,OAAO,cAAc,QAAQ,CAC/B;CAEA,OAAO,cAAc,GAAG;EACtB,SAAS,UAAU,UAChB,SAAS,aACN,SAAS,OAAO,QAAQ,IACxB,YAAY,OAAO,QAAQ,CAAC,CAAC,KAAK,OAAO,QAAQ,SAAS,OAAO,QAAQ,CAAC,CAAC,EAAA,CAAG,KAC9E,OAAO,QAAQ,OAAO,QAAQ,OAAO,QAAQ,CAAC,GAC9C,OAAO,MACT;EACJ,YAAY,UAAU,UAAU,SAAS,eAAe,cAAc,SAAA,CAAU,UAAU,QAAQ;EAClG,OAAO,OAAO,MAAM,OAAO,WAAW,KAAK,GAAG,aAAa;CAC7D,CAAC;AACH,CAAC;;;;;;;;;AAUD,MAAa,yBAIT,MAAM,OAAO,aAAa,CAAC,CAAC,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as NodeWakeSchedulerConfig, r as nodeWakeSchedulerLayer } from "./NodeWakeScheduler-dVNAHWsN.mjs";
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { s as NodeDurableAgentRuntime_d_exports } from "./NodeDurableAgentRuntime-CUrOl39W.mjs";
|
|
2
|
+
import { r as NodeDurableHost_d_exports } from "./NodeDurableHost-CFvVn1w1.mjs";
|
|
3
|
+
import { r as NodeScheduling_d_exports } from "./NodeScheduling-CD_CZvQ6.mjs";
|
|
4
|
+
import { r as NodeSubscriptions_d_exports } from "./NodeSubscriptions-Bd_3VxqD.mjs";
|
|
5
|
+
import { n as NodeWakeScheduler_d_exports } from "./NodeWakeScheduler-Dyha4GZJ.mjs";
|
|
6
|
+
export { NodeDurableAgentRuntime_d_exports as NodeDurableAgentRuntime, NodeDurableHost_d_exports as NodeDurableHost, NodeScheduling_d_exports as NodeScheduling, NodeSubscriptions_d_exports as NodeSubscriptions, NodeWakeScheduler_d_exports as NodeWakeScheduler };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { i as NodeDurableAgentRuntime_exports } from "./NodeDurableAgentRuntime-C5SFn9kf.mjs";
|
|
2
|
+
import { r as NodeDurableHost_exports } from "./NodeDurableHost-BztkzCGh.mjs";
|
|
3
|
+
import { n as NodeScheduling_exports } from "./NodeScheduling-gNj8jB4g.mjs";
|
|
4
|
+
import { n as NodeSubscriptions_exports } from "./NodeSubscriptions-KgvkfIMl.mjs";
|
|
5
|
+
import { n as NodeWakeScheduler_exports } from "./NodeWakeScheduler-dVNAHWsN.mjs";
|
|
6
|
+
export { NodeDurableAgentRuntime_exports as NodeDurableAgentRuntime, NodeDurableHost_exports as NodeDurableHost, NodeScheduling_exports as NodeScheduling, NodeSubscriptions_exports as NodeSubscriptions, NodeWakeScheduler_exports as NodeWakeScheduler };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, flags) => {
|
|
4
|
+
let target = Object.setPrototypeOf({}, null);
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
11
|
+
};
|
|
12
|
+
export { __exportAll as t };
|
package/package.json
CHANGED
|
@@ -1,10 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/agent-platform-node",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0-beta.192",
|
|
4
|
+
"description": "Class DN layer assembly for Effect Agent: the durable Node/SQLite runtime host, wake scheduler, and ownership drain.",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/systemfsoftware/agent.git"
|
|
8
|
+
"url": "git+https://github.com/systemfsoftware/agent.git",
|
|
9
|
+
"directory": "packages/platform-node"
|
|
8
10
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"src"
|
|
14
|
+
],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"sideEffects": [],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.mts",
|
|
20
|
+
"default": "./dist/index.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./node-durable-agent-runtime": {
|
|
23
|
+
"types": "./dist/NodeDurableAgentRuntime.d.mts",
|
|
24
|
+
"default": "./dist/NodeDurableAgentRuntime.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./node-durable-host": {
|
|
27
|
+
"types": "./dist/NodeDurableHost.d.mts",
|
|
28
|
+
"default": "./dist/NodeDurableHost.mjs"
|
|
29
|
+
},
|
|
30
|
+
"./node-scheduling": {
|
|
31
|
+
"types": "./dist/NodeScheduling.d.mts",
|
|
32
|
+
"default": "./dist/NodeScheduling.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./node-subscriptions": {
|
|
35
|
+
"types": "./dist/NodeSubscriptions.d.mts",
|
|
36
|
+
"default": "./dist/NodeSubscriptions.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./node-wake-scheduler": {
|
|
39
|
+
"types": "./dist/NodeWakeScheduler.d.mts",
|
|
40
|
+
"default": "./dist/NodeWakeScheduler.mjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public",
|
|
45
|
+
"provenance": true
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@effect/platform-node": "4.1.2",
|
|
49
|
+
"@effect/sql-sqlite-node": "4.1.2",
|
|
50
|
+
"@systemfsoftware/agent": "0.1.0-beta.192",
|
|
51
|
+
"@systemfsoftware/agent-storage-sqlite": "0.1.0-beta.192"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
55
|
+
"@effect/vitest": "4.1.2",
|
|
56
|
+
"effect": "4.1.2",
|
|
57
|
+
"esbuild": "0.28.1",
|
|
58
|
+
"tsdown": "^0.23.0",
|
|
59
|
+
"typescript": "7.0.2",
|
|
60
|
+
"vitest": "5.0.3"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"effect": "^4.1.0"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "tsdown",
|
|
67
|
+
"typecheck": "tsc -b",
|
|
68
|
+
"test": "vitest run --passWithNoTests",
|
|
69
|
+
"check:pack": "pnpm pack --pack-destination .pack && attw .pack/*.tgz --profile esm-only; s=$?; rm -rf .pack; exit $s"
|
|
70
|
+
}
|
|
71
|
+
}
|