wunderland 0.84.1 → 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 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;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,WAAW,EAAE,EACvB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,CAoBjB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAI,CAMjE"}
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
- const result = await memorySystem.retrieveForTurn(userInput);
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;;;;GAIG;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,CAAC;QAC9C,IAAK,QAAQ,CAAC,CAAC,CAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAC7C,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IAC7D,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW;QAAE,OAAO,CAAC,CAAC;IAE7C,uCAAuC;IACvC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/C,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,EAAE;QAC5B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM,CAAC,WAA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AAC,CAAC;IACX,CAAC;IACD,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW;QAAE,OAAO,CAAC,CAAC;IAE7C,uCAAuC;IACvC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/C,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,EAAE;QAC5B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM,CAAC,WAAW;QAC3B,CAAC,kBAAkB,CAAC,EAAE,IAAI;KAC3B,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,UAAU,CAAC;AAC3B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAuB;IACzD,KAAK,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC9C,IAAK,QAAQ,CAAC,CAAC,CAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAC7C,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Tool factories for applications that assemble Wunderland agents themselves
3
+ * (for example a hosted control plane that builds each tenant's tool list).
4
+ *
5
+ * Published as `wunderland/tools`.
6
+ */
7
+ export { createWunderlandTools, getToolAvailability, WUNDERLAND_TOOL_IDS, } from '../runtime/tools/ToolRegistry.js';
8
+ export type { ToolRegistryConfig } from '../runtime/tools/ToolRegistry.js';
9
+ export { createMemoryReadTool } from '../runtime/tools/MemoryReadTool.js';
10
+ export type { MemoryReadFn, MemoryReadItem, MemoryReadNotFound, MemoryReadResult, } from '../runtime/tools/MemoryReadTool.js';
11
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/public/tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,YAAY,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,oCAAoC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Tool factories for applications that assemble Wunderland agents themselves
3
+ * (for example a hosted control plane that builds each tenant's tool list).
4
+ *
5
+ * Published as `wunderland/tools`.
6
+ */
7
+ export { createWunderlandTools, getToolAvailability, WUNDERLAND_TOOL_IDS, } from '../runtime/tools/ToolRegistry.js';
8
+ export { createMemoryReadTool } from '../runtime/tools/MemoryReadTool.js';
9
+ //# sourceMappingURL=tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/public/tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wunderland",
3
- "version": "0.84.1",
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",
@@ -17,6 +17,26 @@
17
17
  "./discovery": {
18
18
  "import": "./dist/platform/discovery/discovery-index.js",
19
19
  "types": "./dist/platform/discovery/discovery-index.d.ts"
20
+ },
21
+ "./core": {
22
+ "import": "./dist/types/core-types.js",
23
+ "types": "./dist/types/core-types.d.ts"
24
+ },
25
+ "./seed": {
26
+ "import": "./dist/agents/builder/WunderlandSeed.js",
27
+ "types": "./dist/agents/builder/WunderlandSeed.d.ts"
28
+ },
29
+ "./tools": {
30
+ "import": "./dist/public/tools.js",
31
+ "types": "./dist/public/tools.d.ts"
32
+ },
33
+ "./rag": {
34
+ "import": "./dist/memory/rag/rag-index.js",
35
+ "types": "./dist/memory/rag/rag-index.d.ts"
36
+ },
37
+ "./jobs": {
38
+ "import": "./dist/autonomy/jobs/index.js",
39
+ "types": "./dist/autonomy/jobs/index.d.ts"
20
40
  }
21
41
  },
22
42
  "files": [
@@ -66,15 +86,15 @@
66
86
  },
67
87
  "dependencies": {
68
88
  "@clack/prompts": "^0.9.1",
69
- "@framers/agentos": "^0.10.28",
89
+ "@framers/agentos": "^0.10.34",
70
90
  "@framers/agentos-ext-cli-executor": "^1.2.0",
71
91
  "@framers/agentos-ext-giphy": "^1.0.0",
72
92
  "@framers/agentos-ext-image-search": "^1.0.0",
73
93
  "@framers/agentos-ext-news-search": "^1.0.0",
74
94
  "@framers/agentos-ext-voice-synthesis": "^2.0.1",
75
95
  "@framers/agentos-ext-web-browser": "^1.2.1",
76
- "@framers/agentos-ext-web-search": "^1.1.1",
77
- "@framers/agentos-extensions-registry": "^0.18.3",
96
+ "@framers/agentos-ext-web-search": "^1.2.0",
97
+ "@framers/agentos-extensions-registry": "^0.18.5",
78
98
  "@framers/sql-storage-adapter": "^0.6.8",
79
99
  "@opentelemetry/api": "^1.9.0",
80
100
  "@opentelemetry/api-logs": "^0.201.1",