@slopus/happy-agent-base 0.0.6 → 0.0.8

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.
Files changed (94) hide show
  1. package/README.md +52 -11
  2. package/dist/Agent.d.ts +24 -22
  3. package/dist/Agent.d.ts.map +1 -1
  4. package/dist/Agent.js +113 -111
  5. package/dist/Agent.js.map +1 -1
  6. package/dist/AgentBase.d.ts +18 -14
  7. package/dist/AgentBase.d.ts.map +1 -1
  8. package/dist/AgentBase.js +486 -122
  9. package/dist/AgentBase.js.map +1 -1
  10. package/dist/AgentBaseHooks.d.ts +41 -28
  11. package/dist/AgentBaseHooks.d.ts.map +1 -1
  12. package/dist/AgentBasePending.d.ts +6 -2
  13. package/dist/AgentBasePending.d.ts.map +1 -1
  14. package/dist/AgentBasePending.js +7 -0
  15. package/dist/AgentBasePending.js.map +1 -1
  16. package/dist/AgentConfig.d.ts +9 -9
  17. package/dist/AgentConfig.d.ts.map +1 -1
  18. package/dist/AgentConfig.js +8 -8
  19. package/dist/AgentConfig.js.map +1 -1
  20. package/dist/AgentContexts.d.ts +25 -1
  21. package/dist/AgentContexts.d.ts.map +1 -1
  22. package/dist/AgentContexts.js +46 -2
  23. package/dist/AgentContexts.js.map +1 -1
  24. package/dist/AgentDatabase.d.ts +35 -0
  25. package/dist/AgentDatabase.d.ts.map +1 -0
  26. package/dist/AgentDatabase.js +30 -0
  27. package/dist/AgentDatabase.js.map +1 -0
  28. package/dist/AgentKV.d.ts +19 -6
  29. package/dist/AgentKV.d.ts.map +1 -1
  30. package/dist/AgentKV.js +110 -43
  31. package/dist/AgentKV.js.map +1 -1
  32. package/dist/AgentMessageAcceptance.d.ts +14 -0
  33. package/dist/AgentMessageAcceptance.d.ts.map +1 -0
  34. package/dist/AgentMessageAcceptance.js +2 -0
  35. package/dist/AgentMessageAcceptance.js.map +1 -0
  36. package/dist/AgentMetadata.d.ts +3 -3
  37. package/dist/AgentMetadata.js +3 -3
  38. package/dist/AgentModule.d.ts +209 -0
  39. package/dist/AgentModule.d.ts.map +1 -0
  40. package/dist/AgentModule.js +2 -0
  41. package/dist/AgentModule.js.map +1 -0
  42. package/dist/{AgentFeatureAction.d.ts → AgentModuleAction.d.ts} +2 -2
  43. package/dist/AgentModuleAction.d.ts.map +1 -0
  44. package/dist/AgentModuleAction.js +2 -0
  45. package/dist/AgentModuleAction.js.map +1 -0
  46. package/dist/AgentPermissionMode.d.ts +1 -1
  47. package/dist/AgentPermissionMode.js +1 -1
  48. package/dist/AgentPersistence.d.ts +7 -4
  49. package/dist/AgentPersistence.d.ts.map +1 -1
  50. package/dist/AgentPersistenceDrizzle.d.ts +29 -0
  51. package/dist/AgentPersistenceDrizzle.d.ts.map +1 -0
  52. package/dist/AgentPersistenceDrizzle.js +112 -0
  53. package/dist/AgentPersistenceDrizzle.js.map +1 -0
  54. package/dist/AgentRef.d.ts +12 -9
  55. package/dist/AgentRef.d.ts.map +1 -1
  56. package/dist/AgentRef.js +8 -8
  57. package/dist/AgentRef.js.map +1 -1
  58. package/dist/AgentStorage.d.ts +26 -12
  59. package/dist/AgentStorage.d.ts.map +1 -1
  60. package/dist/AgentStorage.js +90 -3
  61. package/dist/AgentStorage.js.map +1 -1
  62. package/dist/AgentSystem.d.ts +10 -7
  63. package/dist/AgentSystem.d.ts.map +1 -1
  64. package/dist/AgentSystemContext.d.ts +5 -4
  65. package/dist/AgentSystemContext.d.ts.map +1 -1
  66. package/dist/AgentSystemContext.js +4 -4
  67. package/dist/AgentSystemContext.js.map +1 -1
  68. package/dist/AgentSystemLocal.d.ts +17 -14
  69. package/dist/AgentSystemLocal.d.ts.map +1 -1
  70. package/dist/AgentSystemLocal.js +120 -29
  71. package/dist/AgentSystemLocal.js.map +1 -1
  72. package/dist/AgentSystemRef.d.ts +9 -7
  73. package/dist/AgentSystemRef.d.ts.map +1 -1
  74. package/dist/AgentSystemRef.js +17 -4
  75. package/dist/AgentSystemRef.js.map +1 -1
  76. package/dist/AgentTool.d.ts +24 -2
  77. package/dist/AgentTool.d.ts.map +1 -1
  78. package/dist/AgentTool.js.map +1 -1
  79. package/dist/inTx.d.ts +17 -0
  80. package/dist/inTx.d.ts.map +1 -0
  81. package/dist/inTx.js +65 -0
  82. package/dist/inTx.js.map +1 -0
  83. package/dist/index.d.ts +9 -6
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +8 -5
  86. package/dist/index.js.map +1 -1
  87. package/package.json +4 -3
  88. package/dist/AgentFeature.d.ts +0 -184
  89. package/dist/AgentFeature.d.ts.map +0 -1
  90. package/dist/AgentFeature.js +0 -2
  91. package/dist/AgentFeature.js.map +0 -1
  92. package/dist/AgentFeatureAction.d.ts.map +0 -1
  93. package/dist/AgentFeatureAction.js +0 -2
  94. package/dist/AgentFeatureAction.js.map +0 -1
package/README.md CHANGED
@@ -10,13 +10,25 @@ restarts.
10
10
  The package also provides the primitives needed to host that runtime:
11
11
 
12
12
  - `Agent`, `AgentSystem`, and `AgentSystemLocal` for composing and addressing agents;
13
- - `AgentPersistence`, `AgentStorage`, and `AgentKV` for durable state;
13
+ - Drizzle-backed `AgentStorage` and scoped `AgentKV` for durable state;
14
14
  - `AgentProviders` for resolving provider/model routes;
15
15
  - `AgentTool` and lifecycle hooks for extending the loop.
16
16
 
17
- One `AgentSystem` exclusively owns one durable store. Every `AgentStorage` adapter must acquire a
18
- hard database-level lock before the system starts; `AgentSystem.close()` stops its agents and
19
- releases that lock. The runtime intentionally contains no CAS or multi-owner coordination.
17
+ One `AgentSystem` exclusively owns one durable store. `AgentStorage` requires an asynchronous
18
+ Drizzle SQLite or PostgreSQL/PGlite database plus a hard database-level lock. It owns the agent
19
+ record, key-value, and migration tables itself. `AgentSystem.close()` stops its agents and releases
20
+ the lock; the runtime intentionally contains no CAS or multi-owner coordination.
21
+
22
+ Storage uses Drizzle transactions and installs stdlib's universal `afterCommit` scope on their
23
+ contexts, draining it only after the outer transaction succeeds. Agent contexts expose the root or
24
+ active Drizzle facade as `ctx.db`; `ctx.inTx(work)` and the exported `inTx(ctx, work)` helper open
25
+ an outer transaction or reuse the one already carried by the context. Outside a transaction,
26
+ stdlib starts post-commit callbacks on the next microtask.
27
+
28
+ Storage, KV, migrations, and transactional module hooks compose with a context's outer transaction.
29
+ Live `Agent` and `AgentSystem` commands do not: creating, resolving, messaging,
30
+ mutating, archiving, or closing a live agent from inside an outer storage transaction is rejected
31
+ because the corresponding in-memory lifetime cannot be published until that transaction commits.
20
32
 
21
33
  An agent runs in one of four permission modes — `read_only`, `workspace_write`, `auto`, and
22
34
  `full_access` — carried on every context it derives and read back with `agentPermissionMode`. A
@@ -25,8 +37,8 @@ consumed, so a response and the tools it dispatched finish under the mode they s
25
37
  is durable, and a change is reported through `permissionModeChangedTransact` and
26
38
  `permissionModeChanged`; every message entering the conversation is reported the same way through
27
39
  `messageAcceptedTransact` and `messageAccepted`. The runtime enforces nothing — it cannot know what
28
- a tool touches — so enforcement belongs to features and tools; see `PermissionsFeature` in
29
- [`@slopus/happy-agent-features`](../happy-agent-features).
40
+ a tool touches — so enforcement belongs to modules and tools; see the companion
41
+ [`@slopus/happy-agent-features`](../happy-agent-features) package.
30
42
 
31
43
  A tool call is bracketed by four hooks and executed by the loop itself. `beforeToolCallTransact`
32
44
  runs inside the transaction that makes a dispatched batch durable; `beforeToolCall` decides what
@@ -37,17 +49,42 @@ transaction that appends the result. Nothing outside the loop ever executes a to
37
49
  drove execution would be deciding inside machinery that also commits results, resumes interrupted
38
50
  batches, and settles cancelled ones.
39
51
 
40
- Features may implement `beforeStart(ctx, agents)` and `afterStart(ctx, agents)` hooks.
52
+ Every executable call receives an internally generated cuid2 `id`, the provider's separate opaque
53
+ `providerCallId`, and a call-bound `kv`. Calling `call.commit(ctx, result)` inside a transaction
54
+ atomically saves that result with the tool's writes. The first successful commit wins; later
55
+ commits and the tool's eventual return or throw are ignored. Committed results survive a crash,
56
+ remain ordered with their batch, and the call-bound KV is erased in the result transaction.
57
+ Setting a tool's optional `transactional` property to `true` wraps its `execute` call, result
58
+ validation, rendering, and automatic result commit in one outer transaction. It defaults to
59
+ `false`.
60
+
61
+ Modules may provide an ordered array of `[key, migration]` tuples. Agent base tracks each
62
+ successful key and runs every missing migration transactionally before any `beforeStart` hook; a
63
+ failure aborts system startup. Every module migration and hook scope carries a schema-aware common
64
+ Drizzle facade: a root database outside a transaction and its active transaction facade inside
65
+ one. Driver-only root members such as `$client` and `batch` are deliberately not part of that
66
+ surface. Modules may implement `beforeStart(ctx, agents, database)` and
67
+ `afterStart(ctx, agents, database)` hooks.
41
68
  Every `beforeStart` settles successfully before active agents are restored; every `afterStart`
42
- runs after those agents are restored and started. Both receive the system's `AgentSystemRef`.
69
+ runs after those agents are restored and started. Both receive the system's `AgentSystemRef` and
70
+ root database.
43
71
  All hooks may return synchronously or with a promise, including `onEvent`; the runtime awaits each
44
72
  answer and contains failures from observing hooks.
45
73
 
46
74
  Messages receive a generated cuid2 identity, or accept one through `{ id }` for idempotent
47
75
  delivery. A repeated ID is an ignored persistence conflict while its message remains in the
48
76
  durable conversation; deliberate conversation replacement releases identities for the records it
49
- removes. Optional immutable metadata travels beside the provider message and reaches both
50
- message-accepted hooks; feature-generated send and steer actions accept the same fields.
77
+ removes. `send` and `steer` return the effective ID, delivery mode, and whether durable acceptance
78
+ created the identity or found it already present. Optional immutable metadata travels beside the
79
+ provider message and reaches both message-accepted hooks; module-generated send and steer actions
80
+ accept the same fields.
81
+
82
+ Base allocates cuid2 identities for every settled-to-settled loop, turn, inference, and settlement.
83
+ The IDs are persisted with outstanding work before their first lifecycle hook, survive restart,
84
+ and are passed to transactional and observing hook counterparts without imposing a host protocol.
85
+ Modules may also observe agent creation, restoration, metadata changes, and archival. Creation,
86
+ restoration, and archival provide transactional and post-commit hook pairs with an immutable agent
87
+ ID/metadata snapshot and module-scoped shared KV.
51
88
 
52
89
  Agent configuration may contain immutable metadata such as `title`. `updateMetadata` is available
53
90
  from `AgentBase`, `Agent`, `AgentRef`, `AgentSystem`, and `AgentSystemRef`; updates shallow-merge,
@@ -56,7 +93,11 @@ record a durable parent. An `AgentSystemRef` carries its owning agent ID (or `nu
56
93
  the default parent, while creation options may override the parent or explicitly choose `null`.
57
94
  `parentOf` and `childOf` query the resulting direct relationship, and `AgentRef.parent` exposes it.
58
95
 
59
- This package contains no ready-made product features. Reusable tools, hooks, permissions,
96
+ `AgentKV.getOrCreate(ctx, key, factory)` standardizes durable allocate-once values. Used on a
97
+ tool's call-bound KV, it supplies retry-stable operation identities without heap state or provider
98
+ call IDs.
99
+
100
+ This package contains no ready-made product modules. Reusable tools, hooks, permissions,
60
101
  workspaces, search, workflows, and other capabilities belong in
61
102
  [`@slopus/happy-agent-features`](../happy-agent-features). Provider protocols and vendor
62
103
  implementations belong in [`@slopus/happy-providers`](../happy-providers).
package/dist/Agent.d.ts CHANGED
@@ -2,54 +2,56 @@ import type { SessionUserMessage } from "@slopus/happy-providers";
2
2
  import type { Context } from "@steve.kite/stdlib";
3
3
  import { type AgentBaseAwaitOptions, type AgentBaseMessageOptions, type AgentBaseOptions } from "./AgentBase.js";
4
4
  import type { AgentBaseState } from "./AgentBaseState.js";
5
- import type { AgentFeature } from "./AgentFeature.js";
5
+ import type { AgentDatabase } from "./AgentDatabase.js";
6
+ import type { AgentModule } from "./AgentModule.js";
6
7
  import type { AgentKV } from "./AgentKV.js";
7
8
  import type { AgentMetadata } from "./AgentMetadata.js";
9
+ import type { AgentMessageAcceptance } from "./AgentMessageAcceptance.js";
8
10
  import type { AnyAgentTool } from "./AgentTool.js";
9
11
  /**
10
12
  * Everything `AgentBase` is constructed with, except its hooks: an agent's behavior comes from
11
- * its features, and the singular hooks the base runs with are merged from them.
13
+ * its modules, and the singular hooks the base runs with are merged from them.
12
14
  */
13
- export interface AgentOptions<Tool extends AnyAgentTool = AnyAgentTool> extends Omit<AgentBaseOptions, "hooks"> {
15
+ export interface AgentOptions<Tool extends AnyAgentTool = AnyAgentTool, Database extends AgentDatabase = AgentDatabase> extends Omit<AgentBaseOptions, "hooks"> {
14
16
  /** Independent capabilities whose hook implementations are merged, in array order. */
15
- readonly features?: readonly AgentFeature<Tool>[];
17
+ readonly modules?: readonly AgentModule<Tool, Database>[];
16
18
  /**
17
- * The store features share with every other agent built over the same storage. Each feature
19
+ * The store modules share with every other agent built over the same storage. Each module
18
20
  * is handed its own scope of it, which is where anything outliving one conversation belongs.
19
21
  */
20
22
  readonly sharedKV: AgentKV;
21
23
  }
22
24
  /**
23
- * A thin wrapper around `AgentBase` that assembles its behavior from features. Each feature
25
+ * A thin wrapper around `AgentBase` that assembles its behavior from modules. Each module
24
26
  * implements any subset of the agent hooks on its own; the agent merges them into the singular
25
27
  * private hooks its internal base runs with.
26
28
  *
27
- * Features are independent. Observing hooks — events and lifecycle brackets — fan out to every
28
- * feature in array order with per-feature isolation, so one throwing feature never silences the
29
- * others, and lifecycle actions concatenate across features with a failing feature losing only
29
+ * Modules are independent. Observing hooks — events and lifecycle brackets — fan out to every
30
+ * module in array order with per-module isolation, so one throwing module never silences the
31
+ * others, and lifecycle actions concatenate across modules with a failing module losing only
30
32
  * its own actions. Correctness hooks are loud instead: instructions and tools concatenate in
31
- * feature order — extending the base state, which `AgentBase` puts first — and a failure there
33
+ * module order — extending the base state, which `AgentBase` puts first — and a failure there
32
34
  * fails the turn rather than running with a wrong configuration. For a model change, every
33
- * feature observes the change, the first returned handoff wins, and a feature failure during an
35
+ * module observes the change, the first returned handoff wins, and a module failure during an
34
36
  * incompatible change rejects the switch so the history survives.
35
37
  */
36
- export declare class Agent<Tool extends AnyAgentTool = AnyAgentTool> {
38
+ export declare class Agent<Tool extends AnyAgentTool = AnyAgentTool, Database extends AgentDatabase = AgentDatabase> {
37
39
  #private;
38
40
  /**
39
- * A new agent over a fresh identity, with its features' hooks merged into one set. Touches
41
+ * A new agent over a fresh identity, with its modules' hooks merged into one set. Touches
40
42
  * no storage.
41
43
  */
42
- static create<Tool extends AnyAgentTool = AnyAgentTool>(ctx: Context, options: AgentOptions<Tool>): Promise<Agent<Tool>>;
44
+ static create<Tool extends AnyAgentTool = AnyAgentTool, Database extends AgentDatabase = AgentDatabase>(ctx: Context, options: AgentOptions<Tool, Database>): Promise<Agent<Tool, Database>>;
43
45
  /**
44
46
  * An agent over an identity that may already have durable state, with that state's one
45
47
  * externally meaningful fact — whether it has work left — read before it is handed back.
46
48
  */
47
- static load<Tool extends AnyAgentTool = AnyAgentTool>(ctx: Context, options: AgentOptions<Tool>): Promise<Agent<Tool>>;
49
+ static load<Tool extends AnyAgentTool = AnyAgentTool, Database extends AgentDatabase = AgentDatabase>(ctx: Context, options: AgentOptions<Tool, Database>): Promise<Agent<Tool, Database>>;
48
50
  /**
49
51
  * Load the agent and set it going again if it has work left, or answer with nothing when it
50
52
  * has none — how an owner coming up carries on what an earlier process was in the middle of.
51
53
  */
52
- static loadActive<Tool extends AnyAgentTool = AnyAgentTool>(ctx: Context, options: AgentOptions<Tool>): Promise<Agent<Tool> | undefined>;
54
+ static loadActive<Tool extends AnyAgentTool = AnyAgentTool, Database extends AgentDatabase = AgentDatabase>(ctx: Context, options: AgentOptions<Tool, Database>): Promise<Agent<Tool, Database> | undefined>;
53
55
  /**
54
56
  * Wrap an already-built base. Private, because an agent is made by `create` or by `load`,
55
57
  * and which of the two the caller means is worth saying.
@@ -60,21 +62,21 @@ export declare class Agent<Tool extends AnyAgentTool = AnyAgentTool> {
60
62
  /** Whether durable state says this agent still has work to resume. */
61
63
  get active(): boolean;
62
64
  /**
63
- * The feature this agent runs under `name`, when it has one. An individual feature holds the
65
+ * The module this agent runs under `name`, when it has one. An individual module holds the
64
66
  * state of the single agent it was built for, so this is how that agent's owner reaches what
65
- * belongs to it — a goal to pause, for instance. A shared feature is answered here too, but
67
+ * belongs to it — a goal to pause, for instance. A shared module is answered here too, but
66
68
  * it is the collection's instance, serving every agent at once.
67
69
  */
68
- feature(name: string): AgentFeature<Tool> | undefined;
70
+ module(name: string): AgentModule<Tool, Database> | undefined;
69
71
  /**
70
- * The base's mutable instructions and tools, which every inference reads and every feature's
72
+ * The base's mutable instructions and tools, which every inference reads and every module's
71
73
  * own contribution extends.
72
74
  */
73
75
  get state(): AgentBaseState;
74
76
  /** Queue a user message that injects as soon as the current response and tool batch finish. */
75
- steer(ctx: Context, message: SessionUserMessage, options?: AgentBaseMessageOptions & AgentBaseAwaitOptions): Promise<void>;
77
+ steer(ctx: Context, message: SessionUserMessage, options?: AgentBaseMessageOptions & AgentBaseAwaitOptions): Promise<AgentMessageAcceptance>;
76
78
  /** Queue a user message that injects only when the agent would otherwise stop. */
77
- send(ctx: Context, message: SessionUserMessage, options?: AgentBaseMessageOptions & AgentBaseAwaitOptions): Promise<void>;
79
+ send(ctx: Context, message: SessionUserMessage, options?: AgentBaseMessageOptions & AgentBaseAwaitOptions): Promise<AgentMessageAcceptance>;
78
80
  /** Shallow-merge fields into this agent's immutable metadata. */
79
81
  updateMetadata(ctx: Context, update: AgentMetadata): Promise<void>;
80
82
  /** Start the loop without a new message, continuing a turn an earlier run left unfinished. */
@@ -1 +1 @@
1
- {"version":3,"file":"Agent.d.ts","sourceRoot":"","sources":["../sources/Agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGlD,OAAO,EAEH,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACxB,MAAM,gBAAgB,CAAC;AAaxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAqB,MAAM,mBAAmB,CAAC;AAGzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;GAGG;AACH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