@remnic/plugin-openclaw 1.0.4 → 1.0.5
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/dist/{chunk-J7VGZNH4.js → chunk-Y65XJVI3.js} +1 -1
- package/dist/{engine-BEV4BHEH.js → engine-2TLD4YSC.js} +1 -1
- package/dist/index.js +18 -17
- package/package.json +4 -2
- package/dist/chunk-NJG4HPAL.js +0 -7099
- package/dist/openai-53ZQ46RZ.js +0 -44
- package/dist/{causal-consolidation-62IFBWHC.js → causal-consolidation-Z3PHIFTL.js} +3 -3
|
@@ -4881,7 +4881,7 @@ var CompoundingEngine = class {
|
|
|
4881
4881
|
let promotionCandidates = this.config.compoundingSemanticEnabled ? this.derivePromotionCandidates(outcomeSummary, mistakes.registry, rubrics) : [];
|
|
4882
4882
|
if (this.config.cmcConsolidationEnabled) {
|
|
4883
4883
|
try {
|
|
4884
|
-
const { deriveCausalPromotionCandidates, materializeAfterCausalConsolidation } = await import("./causal-consolidation-
|
|
4884
|
+
const { deriveCausalPromotionCandidates, materializeAfterCausalConsolidation } = await import("./causal-consolidation-Z3PHIFTL.js");
|
|
4885
4885
|
const causalCandidates = await deriveCausalPromotionCandidates({
|
|
4886
4886
|
memoryDir: this.config.memoryDir,
|
|
4887
4887
|
causalTrajectoryStoreDir: this.config.causalTrajectoryStoreDir,
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
SharedContextManager,
|
|
4
4
|
defaultTierMigrationCycleBudget,
|
|
5
5
|
external_exports
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y65XJVI3.js";
|
|
7
7
|
import {
|
|
8
8
|
getCausalTrajectoryStoreStatus,
|
|
9
9
|
searchCausalTrajectories
|
|
@@ -11,9 +11,6 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
compareVersions
|
|
13
13
|
} from "./chunk-GUSMRW4H.js";
|
|
14
|
-
import {
|
|
15
|
-
OpenAI
|
|
16
|
-
} from "./chunk-NJG4HPAL.js";
|
|
17
14
|
import {
|
|
18
15
|
GraphIndex,
|
|
19
16
|
analyzeGraphHealth
|
|
@@ -28,15 +25,6 @@ import {
|
|
|
28
25
|
renderExtensionsFooter,
|
|
29
26
|
resolveExtensionsRoot
|
|
30
27
|
} from "./chunk-J2FCINY7.js";
|
|
31
|
-
import {
|
|
32
|
-
FallbackLlmClient,
|
|
33
|
-
buildChatCompletionTokenLimit,
|
|
34
|
-
extractJsonCandidates,
|
|
35
|
-
mergeEnv,
|
|
36
|
-
readEnvVar,
|
|
37
|
-
resolveHomeDir,
|
|
38
|
-
shouldAssumeOpenAiChatCompletions
|
|
39
|
-
} from "./chunk-3SA5F4WT.js";
|
|
40
28
|
import {
|
|
41
29
|
ContentHashIndex,
|
|
42
30
|
MEMORY_LIFECYCLE_EVENT_SORT_ORDER,
|
|
@@ -92,6 +80,15 @@ import {
|
|
|
92
80
|
recordStoreDay,
|
|
93
81
|
validateStringRecord
|
|
94
82
|
} from "./chunk-YHH3SXKD.js";
|
|
83
|
+
import {
|
|
84
|
+
FallbackLlmClient,
|
|
85
|
+
buildChatCompletionTokenLimit,
|
|
86
|
+
extractJsonCandidates,
|
|
87
|
+
mergeEnv,
|
|
88
|
+
readEnvVar,
|
|
89
|
+
resolveHomeDir,
|
|
90
|
+
shouldAssumeOpenAiChatCompletions
|
|
91
|
+
} from "./chunk-3SA5F4WT.js";
|
|
95
92
|
import {
|
|
96
93
|
listJsonFiles,
|
|
97
94
|
listNamedFiles,
|
|
@@ -207,6 +204,7 @@ async function buildExtensionsFooterForSummary(config) {
|
|
|
207
204
|
}
|
|
208
205
|
|
|
209
206
|
// ../../src/index.ts
|
|
207
|
+
import OpenAI2 from "openai";
|
|
210
208
|
import { createRequire as createRequire3 } from "module";
|
|
211
209
|
|
|
212
210
|
// ../remnic-core/src/config.ts
|
|
@@ -2627,6 +2625,9 @@ function buildRecursiveFallback(content, cfg) {
|
|
|
2627
2625
|
};
|
|
2628
2626
|
}
|
|
2629
2627
|
|
|
2628
|
+
// ../remnic-core/src/extraction.ts
|
|
2629
|
+
import OpenAI from "openai";
|
|
2630
|
+
|
|
2630
2631
|
// ../remnic-core/src/delinearize.ts
|
|
2631
2632
|
var PRONOUN_MAP = {
|
|
2632
2633
|
"he": { types: ["person"], possessive: false, group: "masc" },
|
|
@@ -45113,10 +45114,10 @@ async function loadTodayCalendar(source, now) {
|
|
|
45113
45114
|
}
|
|
45114
45115
|
function buildOpenAiFollowupGenerator(cfg) {
|
|
45115
45116
|
return async ({ sections, windowLabel, maxFollowups }) => {
|
|
45116
|
-
const { OpenAI:
|
|
45117
|
+
const { OpenAI: OpenAI3 } = await import("openai");
|
|
45117
45118
|
const clientOpts = { apiKey: cfg.apiKey };
|
|
45118
45119
|
if (cfg.baseURL) clientOpts.baseURL = cfg.baseURL;
|
|
45119
|
-
const client = new
|
|
45120
|
+
const client = new OpenAI3(clientOpts);
|
|
45120
45121
|
const prompt = buildFollowupPrompt(sections, windowLabel, maxFollowups);
|
|
45121
45122
|
const response = await client.responses.create({
|
|
45122
45123
|
model: cfg.model,
|
|
@@ -50513,7 +50514,7 @@ async function runSemanticRulePromoteCliCommand(options) {
|
|
|
50513
50514
|
});
|
|
50514
50515
|
}
|
|
50515
50516
|
async function runCompoundingPromoteCliCommand(options) {
|
|
50516
|
-
const { CompoundingEngine: CompoundingEngine2 } = await import("./engine-
|
|
50517
|
+
const { CompoundingEngine: CompoundingEngine2 } = await import("./engine-2TLD4YSC.js");
|
|
50517
50518
|
const config = parseConfig({
|
|
50518
50519
|
memoryDir: options.memoryDir,
|
|
50519
50520
|
qmdEnabled: false,
|
|
@@ -57126,7 +57127,7 @@ var pluginDefinition = {
|
|
|
57126
57127
|
});
|
|
57127
57128
|
const dreamsSurface = createDreamsSurface();
|
|
57128
57129
|
const heartbeatSurface = createHeartbeatSurface();
|
|
57129
|
-
const dreamNarrativeClient = cfg.openaiApiKey ? new
|
|
57130
|
+
const dreamNarrativeClient = cfg.openaiApiKey ? new OpenAI2({
|
|
57130
57131
|
apiKey: cfg.openaiApiKey,
|
|
57131
57132
|
...cfg.openaiBaseUrl ? { baseURL: cfg.openaiBaseUrl } : {}
|
|
57132
57133
|
}) : null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/plugin-openclaw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "OpenClaw adapter for Remnic memory — thin wrapper delegating to @remnic/core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"./dist/index.js"
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
|
-
"dependencies": {
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"openai": "^6.0.0"
|
|
28
|
+
},
|
|
27
29
|
"peerDependencies": {
|
|
28
30
|
"openclaw": ">=2026.4.8"
|
|
29
31
|
},
|