wunderland 0.85.0 → 0.85.1
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 +13 -0
- package/dist/memory/retrieval/TurnMemoryRetriever.d.ts +2 -1
- package/dist/memory/retrieval/TurnMemoryRetriever.d.ts.map +1 -1
- package/dist/memory/retrieval/TurnMemoryRetriever.js +10 -2
- package/dist/memory/retrieval/TurnMemoryRetriever.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -711,6 +711,19 @@ Looking for the on-chain agent economy? See [**Wunderland on Sol**](https://gith
|
|
|
711
711
|
|
|
712
712
|
---
|
|
713
713
|
|
|
714
|
+
## Contributing and support
|
|
715
|
+
|
|
716
|
+
| Guide | What |
|
|
717
|
+
|---|---|
|
|
718
|
+
| [Contributing](https://github.com/jddunn/wunderland/blob/master/CONTRIBUTING.md) | Development setup, commit and pull request rules, review threads, contribution licensing |
|
|
719
|
+
| [Release guide](https://github.com/jddunn/wunderland/blob/master/docs/deployment/RELEASING.md) | How a push to master becomes an npm release |
|
|
720
|
+
| [Agent instructions](https://github.com/jddunn/wunderland/blob/master/AGENTS.md) | Commands and conventions for coding agents |
|
|
721
|
+
| [Code of Conduct](https://github.com/jddunn/wunderland/blob/master/.github/CODE_OF_CONDUCT.md) | Community standards |
|
|
722
|
+
| [Security Policy](https://github.com/jddunn/wunderland/blob/master/.github/SECURITY.md) | Reporting vulnerabilities privately |
|
|
723
|
+
| [Support](https://github.com/jddunn/wunderland/blob/master/SUPPORT.md) | Where to get help |
|
|
724
|
+
|
|
725
|
+
---
|
|
726
|
+
|
|
714
727
|
## License
|
|
715
728
|
|
|
716
729
|
[Apache-2.0](LICENSE).
|
|
@@ -11,7 +11,8 @@ export interface MessageLike {
|
|
|
11
11
|
/**
|
|
12
12
|
* Retrieves memory context and injects it into the message array.
|
|
13
13
|
* Removes any previous memory context message first.
|
|
14
|
-
* Returns the number of tokens used, or 0 if no context was injected
|
|
14
|
+
* Returns the number of tokens used, or 0 if no context was injected, which
|
|
15
|
+
* includes a retrieval that failed: memory is optional for a turn.
|
|
15
16
|
*/
|
|
16
17
|
export declare function injectMemoryContext(messages: MessageLike[], memorySystem: MemorySystem, userInput: string): Promise<number>;
|
|
17
18
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TurnMemoryRetriever.d.ts","sourceRoot":"","sources":["../../../src/memory/retrieval/TurnMemoryRetriever.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAIjF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED
|
|
1
|
+
{"version":3,"file":"TurnMemoryRetriever.d.ts","sourceRoot":"","sources":["../../../src/memory/retrieval/TurnMemoryRetriever.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAIjF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,WAAW,EAAE,EACvB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,CA0BjB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAI,CAMjE"}
|
|
@@ -8,7 +8,8 @@ const MEMORY_CONTEXT_TAG = '__wunderland_memory_context__';
|
|
|
8
8
|
/**
|
|
9
9
|
* Retrieves memory context and injects it into the message array.
|
|
10
10
|
* Removes any previous memory context message first.
|
|
11
|
-
* Returns the number of tokens used, or 0 if no context was injected
|
|
11
|
+
* Returns the number of tokens used, or 0 if no context was injected, which
|
|
12
|
+
* includes a retrieval that failed: memory is optional for a turn.
|
|
12
13
|
*/
|
|
13
14
|
export async function injectMemoryContext(messages, memorySystem, userInput) {
|
|
14
15
|
// Remove previous memory context message
|
|
@@ -17,7 +18,14 @@ export async function injectMemoryContext(messages, memorySystem, userInput) {
|
|
|
17
18
|
messages.splice(i, 1);
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
let result;
|
|
22
|
+
try {
|
|
23
|
+
result = await memorySystem.retrieveForTurn(userInput);
|
|
24
|
+
}
|
|
25
|
+
catch (err) {
|
|
26
|
+
console.warn('[TurnMemoryRetriever] Memory retrieval failed; the turn continues without memory context:', err);
|
|
27
|
+
return 0;
|
|
28
|
+
}
|
|
21
29
|
if (!result || !result.contextText)
|
|
22
30
|
return 0;
|
|
23
31
|
// Insert after system prompt (index 1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TurnMemoryRetriever.js","sourceRoot":"","sources":["../../../src/memory/retrieval/TurnMemoryRetriever.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,wDAAwD;AACxD;;;GAGG;AAIH,MAAM,kBAAkB,GAAG,+BAA+B,CAAC;AAQ3D
|
|
1
|
+
{"version":3,"file":"TurnMemoryRetriever.js","sourceRoot":"","sources":["../../../src/memory/retrieval/TurnMemoryRetriever.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,wDAAwD;AACxD;;;GAGG;AAIH,MAAM,kBAAkB,GAAG,+BAA+B,CAAC;AAQ3D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,QAAuB,EACvB,YAA0B,EAC1B,SAAiB;IAEjB,yCAAyC;IACzC,KAAK,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE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
|
|
3
|
-
"version": "0.85.
|
|
3
|
+
"version": "0.85.1",
|
|
4
4
|
"description": "Autonomous AI agents you deploy in 30 seconds across any channel. Interactive setup wizard, 37 channel adapters, HEXACO personality and cognitive memory powered by AgentOS, five-tier prompt-injection defense.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -86,15 +86,15 @@
|
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@clack/prompts": "^0.9.1",
|
|
89
|
-
"@framers/agentos": "^0.10.
|
|
89
|
+
"@framers/agentos": "^0.10.34",
|
|
90
90
|
"@framers/agentos-ext-cli-executor": "^1.2.0",
|
|
91
91
|
"@framers/agentos-ext-giphy": "^1.0.0",
|
|
92
92
|
"@framers/agentos-ext-image-search": "^1.0.0",
|
|
93
93
|
"@framers/agentos-ext-news-search": "^1.0.0",
|
|
94
94
|
"@framers/agentos-ext-voice-synthesis": "^2.0.1",
|
|
95
95
|
"@framers/agentos-ext-web-browser": "^1.2.1",
|
|
96
|
-
"@framers/agentos-ext-web-search": "^1.
|
|
97
|
-
"@framers/agentos-extensions-registry": "^0.18.
|
|
96
|
+
"@framers/agentos-ext-web-search": "^1.2.0",
|
|
97
|
+
"@framers/agentos-extensions-registry": "^0.18.5",
|
|
98
98
|
"@framers/sql-storage-adapter": "^0.6.8",
|
|
99
99
|
"@opentelemetry/api": "^1.9.0",
|
|
100
100
|
"@opentelemetry/api-logs": "^0.201.1",
|