@owlmeans/agent-common 0.1.18-rc.49 → 0.1.18-rc.50

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
@@ -11,7 +11,7 @@ runtime, [`@owlmeans/agent`](../agent). The package's skill is `agent-common`.
11
11
  ## Installation
12
12
 
13
13
  ```bash
14
- bun add @owlmeans/agent-common@^0.1.18-rc.49
14
+ bun add @owlmeans/agent-common@^0.1.18-rc.50
15
15
  ```
16
16
 
17
17
  ## Concepts
@@ -207,7 +207,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
207
207
  your project's skill store (`.agents/skills/`):
208
208
 
209
209
  ```sh
210
- npx @owlmeans/agent-skills@^0.1.18-rc.52
210
+ npx @owlmeans/agent-skills@^0.1.18-rc.57
211
211
  ```
212
212
 
213
213
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
- "schemaVersion": 2,
2
+ "schemaVersion": 3,
3
3
  "package": "@owlmeans/agent-common",
4
- "version": "0.1.18-rc.49",
5
- "generatedAt": "2026-10-08T21:27:54.286Z",
4
+ "version": "0.1.18-rc.50",
5
+ "generatedAt": "2026-10-20T23:19:58.607Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -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.49"` in `dependencies`
11
+ **Install:** `"@owlmeans/agent-common": "^0.1.18-rc.50"` 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.
@@ -0,0 +1,21 @@
1
+ import type { ShallowFlow } from '@owlmeans/flow';
2
+ /**
3
+ * The lifecycle of one agent run.
4
+ *
5
+ * Read it as "how far did this run get", not "what did it say". Everything conversational happens
6
+ * inside `Working`; the steps exist so a plugin reading `onFinish` can say where a run ended.
7
+ * `Fail` is reachable from every working step and is TERMINAL — see the note on that step.
8
+ *
9
+ * `service` is left as the flow name on every step. A flow step normally binds to a service or an
10
+ * entrypoint, but an agent run is driven by whoever holds the model — there is no second party to
11
+ * hand control to, and inventing one would put a name in the serialized state that nothing
12
+ * resolves.
13
+ *
14
+ * Each working step keeps exactly ONE non-explicit outgoing transition, so `FlowModel.next()`
15
+ * always has an unambiguous answer: that is what lets a driver advance the run without knowing the
16
+ * vocabulary. `Fail` is marked explicit precisely so it never becomes that automatic answer.
17
+ */
18
+ export declare const agentRunFlow: ShallowFlow;
19
+ /** Every flow this package declares, for a provider to serve. */
20
+ export declare const agentFlows: ShallowFlow[];
21
+ //# sourceMappingURL=flows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../src/flows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAGjD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY,EAAE,WA0F1B,CAAA;AAED,iEAAiE;AACjE,eAAO,MAAM,UAAU,EAAE,WAAW,EAAmB,CAAA"}
package/build/flows.js ADDED
@@ -0,0 +1,105 @@
1
+ import { AGENT_RUN_FLOW, AgentRunStep, AgentRunTransition } from './consts.js';
2
+ /**
3
+ * The lifecycle of one agent run.
4
+ *
5
+ * Read it as "how far did this run get", not "what did it say". Everything conversational happens
6
+ * inside `Working`; the steps exist so a plugin reading `onFinish` can say where a run ended.
7
+ * `Fail` is reachable from every working step and is TERMINAL — see the note on that step.
8
+ *
9
+ * `service` is left as the flow name on every step. A flow step normally binds to a service or an
10
+ * entrypoint, but an agent run is driven by whoever holds the model — there is no second party to
11
+ * hand control to, and inventing one would put a name in the serialized state that nothing
12
+ * resolves.
13
+ *
14
+ * Each working step keeps exactly ONE non-explicit outgoing transition, so `FlowModel.next()`
15
+ * always has an unambiguous answer: that is what lets a driver advance the run without knowing the
16
+ * vocabulary. `Fail` is marked explicit precisely so it never becomes that automatic answer.
17
+ */
18
+ export const agentRunFlow = {
19
+ flow: AGENT_RUN_FLOW,
20
+ initialStep: AgentRunStep.Received,
21
+ steps: {
22
+ [AgentRunStep.Received]: {
23
+ index: 0,
24
+ step: AgentRunStep.Received,
25
+ service: AGENT_RUN_FLOW,
26
+ initial: true,
27
+ transitions: {
28
+ [AgentRunTransition.Prepare]: {
29
+ transition: AgentRunTransition.Prepare,
30
+ step: AgentRunStep.Prepared,
31
+ },
32
+ [AgentRunTransition.Fail]: {
33
+ transition: AgentRunTransition.Fail,
34
+ step: AgentRunStep.Failed,
35
+ explicit: true,
36
+ },
37
+ },
38
+ },
39
+ [AgentRunStep.Prepared]: {
40
+ index: 1,
41
+ step: AgentRunStep.Prepared,
42
+ service: AGENT_RUN_FLOW,
43
+ transitions: {
44
+ [AgentRunTransition.Work]: {
45
+ transition: AgentRunTransition.Work,
46
+ step: AgentRunStep.Working,
47
+ },
48
+ [AgentRunTransition.Fail]: {
49
+ transition: AgentRunTransition.Fail,
50
+ step: AgentRunStep.Failed,
51
+ explicit: true,
52
+ },
53
+ },
54
+ },
55
+ [AgentRunStep.Working]: {
56
+ index: 2,
57
+ step: AgentRunStep.Working,
58
+ service: AGENT_RUN_FLOW,
59
+ transitions: {
60
+ [AgentRunTransition.Finalize]: {
61
+ transition: AgentRunTransition.Finalize,
62
+ step: AgentRunStep.Finalizing,
63
+ },
64
+ [AgentRunTransition.Fail]: {
65
+ transition: AgentRunTransition.Fail,
66
+ step: AgentRunStep.Failed,
67
+ explicit: true,
68
+ },
69
+ },
70
+ },
71
+ [AgentRunStep.Finalizing]: {
72
+ index: 3,
73
+ step: AgentRunStep.Finalizing,
74
+ service: AGENT_RUN_FLOW,
75
+ transitions: {
76
+ [AgentRunTransition.Finish]: {
77
+ transition: AgentRunTransition.Finish,
78
+ step: AgentRunStep.Finished,
79
+ },
80
+ [AgentRunTransition.Fail]: {
81
+ transition: AgentRunTransition.Fail,
82
+ step: AgentRunStep.Failed,
83
+ explicit: true,
84
+ },
85
+ },
86
+ },
87
+ [AgentRunStep.Finished]: {
88
+ index: 4,
89
+ step: AgentRunStep.Finished,
90
+ service: AGENT_RUN_FLOW,
91
+ transitions: {},
92
+ },
93
+ [AgentRunStep.Failed]: {
94
+ index: 5,
95
+ step: AgentRunStep.Failed,
96
+ service: AGENT_RUN_FLOW,
97
+ // Terminal. Nothing resumes a ReAct run — its tool results are side effects already applied
98
+ // to the world, so re-entering it re-applies them. Resumable work is a pipeline.
99
+ transitions: {},
100
+ },
101
+ },
102
+ };
103
+ /** Every flow this package declares, for a provider to serve. */
104
+ export const agentFlows = [agentRunFlow];
105
+ //# sourceMappingURL=flows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flows.js","sourceRoot":"","sources":["../src/flows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAE9E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,YAAY,GAAgB;IACvC,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,YAAY,CAAC,QAAQ;IAElC,KAAK,EAAE;QACL,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE;YACvB,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,YAAY,CAAC,QAAQ;YAC3B,OAAO,EAAE,cAAc;YACvB,OAAO,EAAE,IAAI;YACb,WAAW,EAAE;gBACX,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE;oBAC5B,UAAU,EAAE,kBAAkB,CAAC,OAAO;oBACtC,IAAI,EAAE,YAAY,CAAC,QAAQ;iBAC5B;gBACD,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE;oBACzB,UAAU,EAAE,kBAAkB,CAAC,IAAI;oBACnC,IAAI,EAAE,YAAY,CAAC,MAAM;oBACzB,Q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;oBACzB,UAAU,EAAE,kBAAkB,CAAC,IAAI;oBACnC,IAAI,EAAE,YAAY,CAAC,MAAM;oBACzB,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;QAED,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE;YACvB,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,YAAY,CAAC,QAAQ;YAC3B,OAAO,EAAE,cAAc;YACvB,WAAW,EAAE,EAAE;SAChB;QAED,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;YACrB,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,YAAY,CAAC,MAAM;YACzB,OAAO,EAAE,cAAc;YACvB,4FAA4F;YAC5F,iFAAiF;YACjF,WAAW,EAAE,EAAE;SAChB;KACF;CACF,CAAA;AAED,iEAAiE;AACjE,MAAM,CAAC,MAAM,UAAU,GAAkB,CAAC,YAAY,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/agent-common",
3
- "version": "0.1.18-rc.49",
3
+ "version": "0.1.18-rc.50",
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.38",
33
- "@owlmeans/flow": "^0.1.18-rc.45",
34
- "@owlmeans/llm-common": "^0.1.18-rc.39",
35
- "@owlmeans/resource": "^0.1.18-rc.40"
32
+ "@owlmeans/error": "^0.1.18-rc.39",
33
+ "@owlmeans/flow": "^0.1.18-rc.46",
34
+ "@owlmeans/llm-common": "^0.1.18-rc.40",
35
+ "@owlmeans/resource": "^0.1.18-rc.41"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"