@owlmeans/agent-common 0.1.18-rc.15 → 0.1.18-rc.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/README.md CHANGED
@@ -46,7 +46,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
46
46
  your project's skill store (`.agents/skills/`):
47
47
 
48
48
  ```sh
49
- npx @owlmeans/agent-skills
49
+ npx @owlmeans/agent-skills@^0.1.18-rc.12
50
50
  ```
51
51
 
52
52
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/agent-common",
4
- "version": "0.1.18-rc.15",
5
- "generatedAt": "2026-09-01T17:39:40.760Z",
4
+ "version": "0.1.18-rc.16",
5
+ "generatedAt": "2026-09-04T22:43:25.435Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: agent-common
3
- description: How to use @owlmeans/agent-common — runtime-free contracts for OwlMeans agents: conversation identity, the run-lifecycle flow, and the record shapes an application persists (conversation events, run state, memory nodes and events). Auto-invoked when importing agent record types, conversationFor, truncateAt, or the agent run flow.
3
+ description: "How to use @owlmeans/agent-common — runtime-free contracts for OwlMeans agents: conversation identity, the run-lifecycle flow, and the record shapes an application persists (conversation events, run state, memory nodes and events). Auto-invoked when importing agent record types, conversationFor, truncateAt, or the agent run flow."
4
4
  user-invocable: false
5
5
  ---
6
6
  <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/agent-common
9
9
 
10
10
  **Layer:** Cross-cutting domain
11
- **Install:** `"@owlmeans/agent-common": "^0.1.18-rc.15"` in `dependencies`
11
+ **Install:** `"@owlmeans/agent-common": "^0.1.18-rc.16"` in `dependencies`
12
12
 
13
13
  Serializable contracts for the agent family. No LangChain, no LangGraph, no storage driver — a
14
14
  backend or a browser bundle imports these to read what an agent wrote without pulling the runtime.
@@ -18,7 +18,8 @@ The runtime is `@owlmeans/agent`.
18
18
 
19
19
  | Export | Description |
20
20
  |---|---|
21
- | `conversationFor(purpose, override?)` | Derives a `ConversationRef` from an `LlmPurpose` dedication. |
21
+ | `ConversationRef` | `{ conversationId, scope }` — the thread a run belongs to, and the wider subject it is about. Two fields, because memory is filed per subject while threads may be finer-grained. |
22
+ | `conversationFor(purpose, override?)` · `SCOPE_SEP` | Derives a `ConversationRef` from an `LlmPurpose` dedication (`<kind>:<id>`, split on `SCOPE_SEP`); either half is overridable. |
22
23
  | `truncateAt(text, max)` | Boundary-aware truncation. Every character cap in the family lands here. |
23
24
  | `agentRunFlow`, `AgentRunStep`, `AgentRunTransition`, `AGENT_RUN_FLOW` | The `@owlmeans/flow` lifecycle a run is driven through. |
24
25
  | `agentFlows` | Every flow this package declares, for a provider to serve. |
@@ -30,6 +31,7 @@ The runtime is `@owlmeans/agent`.
30
31
  | `AGENT_*_STORE` | Port names a consumer binds its storage under. |
31
32
  | `AgentRunStatus` | `ok` / `failed`, written on a conversation event. |
32
33
  | `AgentCommonError`, `AgentRunStateError` | The error family. |
34
+ | `DEFAULT_SUMMARY_CHARS` (1200) · `DEFAULT_ADVICE_CHARS` (400) · `DEFAULT_EVENT_WINDOW` (3) · `DEFAULT_MEMORY_NODE_CHARS` (2000) · `DEFAULT_MEMORY_EVENTS_LIMIT` (50) | The caps the runtime's plugins default to. Override them per plugin; read them here rather than restating a number. |
33
35
 
34
36
  ## Rules
35
37
 
@@ -52,6 +54,10 @@ committed.
52
54
  marked `explicit` precisely so it can never become that automatic answer. Adding a second automatic
53
55
  edge to any step breaks `next()` for that step.
54
56
 
57
+ **Every cap is enforced by truncation after the model answers, never by asking for it.** A cap in a
58
+ prompt is a request; a cap in code is a cap. That is why the defaults live here as numbers rather
59
+ than as prompt text.
60
+
55
61
  **A conversation id degrades to a named default, never to an empty string.** An empty key would
56
62
  silently collapse every run of every subject into one thread.
57
63
 
@@ -64,3 +70,9 @@ registered.
64
70
  Category A (unit, no env, no network). This package's own `tests/flow.spec.ts` covers the flow
65
71
  round-trip — which is also the standing check that `@owlmeans/flow` still works server-side, since
66
72
  every other consumer of that package is client-side.
73
+
74
+ ## Related
75
+
76
+ - [[agent]] — the runtime that writes these records
77
+ - [[llm-common]] — `LlmPurpose` and `ExecutionState`, which `AgentRunState` carries
78
+ - [[flow]] — the flow model the run lifecycle is declared against
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/agent-common",
3
- "version": "0.1.18-rc.15",
3
+ "version": "0.1.18-rc.16",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -29,10 +29,10 @@
29
29
  "typescript": "^7.0.2"
30
30
  },
31
31
  "dependencies": {
32
- "@owlmeans/error": "^0.1.18-rc.7",
33
- "@owlmeans/flow": "^0.1.18-rc.13",
34
- "@owlmeans/llm-common": "^0.1.18-rc.10",
35
- "@owlmeans/resource": "^0.1.18-rc.8"
32
+ "@owlmeans/error": "^0.1.18-rc.8",
33
+ "@owlmeans/flow": "^0.1.18-rc.14",
34
+ "@owlmeans/llm-common": "^0.1.18-rc.12",
35
+ "@owlmeans/resource": "^0.1.18-rc.9"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"