@fungi.computer/shiitake-extensions 0.11.0 → 0.11.2

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.
@@ -85,6 +85,14 @@ export function createConversationAgents(storage) {
85
85
  function recording(parentSessionId, directory) {
86
86
  const { create, send } = directory;
87
87
  let recorded = directory;
88
+ if (parentSessionId !== undefined)
89
+ recorded = {
90
+ ...recorded,
91
+ sentSessions: (sourceSessionId, agentId) => sql()
92
+ .exec("SELECT session_id FROM oyster_conversation_agents WHERE parent_session_id = ? AND agent_id = ? AND session_id IS NOT NULL", sourceSessionId, agentId)
93
+ .toArray()
94
+ .map((row) => Schema.decodeUnknownSync(Schema.Struct({ session_id: Schema.String }))(row).session_id),
95
+ };
88
96
  if (create !== undefined && parentSessionId !== undefined)
89
97
  recorded = {
90
98
  ...recorded,
@@ -39,9 +39,9 @@ owners.
39
39
 
40
40
  #### Parameters
41
41
 
42
- | Parameter | Type |
43
- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
44
- | `input` | `Readonly`\<\{ `requestId`: `string`; `name?`: `string`; `model?`: \{ `providerId`: `string`; `modelId`: `string`; `reasoning?`: `"minimal"` \| `"low"` \| `"medium"` \| `"high"` \| `"xhigh"` \| `"max"`; \}; `extensions?`: readonly `string`[]; \}\> |
42
+ | Parameter | Type |
43
+ | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
44
+ | `input` | `Readonly`\<\{ `requestId`: `string`; `name?`: `string`; `folder?`: `string`; `model?`: \{ `providerId`: `string`; `modelId`: `string`; `reasoning?`: `"minimal"` \| `"low"` \| `"medium"` \| `"high"` \| `"xhigh"` \| `"max"`; \}; `extensions?`: readonly `string`[]; \}\> |
45
45
 
46
46
  #### Returns
47
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/shiitake-extensions",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "private": false,
6
6
  "description": "Botanical's product Shiitake extensions: goal, loop and Almanac on the generic extension surface",
@@ -120,10 +120,10 @@
120
120
  "dependencies": {
121
121
  "@fungi.computer/almanac": "0.2.1",
122
122
  "@fungi.computer/cairn": "0.1.0",
123
- "@fungi.computer/knapsack": "0.4.13",
124
- "@fungi.computer/mycelium": "0.4.0",
125
- "@fungi.computer/shiitake": "0.18.2",
126
- "@fungi.computer/watchdog": "0.1.3",
123
+ "@fungi.computer/knapsack": "0.4.14",
124
+ "@fungi.computer/mycelium": "0.4.1",
125
+ "@fungi.computer/shiitake": "0.19.0",
126
+ "@fungi.computer/watchdog": "0.1.4",
127
127
  "@fungi.computer/whistle": "0.3.0",
128
128
  "effect": "4.0.2",
129
129
  "yaml": "2.9.0",