stella-timeline-plugin 2.0.4 → 2.0.6
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/src/plugin_metadata.js +1 -1
- package/openclaw.plugin.json +54 -54
- package/package.json +1 -1
- package/scripts/release.mjs +39 -0
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TIMELINE_SKILL_PATHS = exports.TIMELINE_TOOL_NAMES = exports.TIMELINE_PLUGIN_DESCRIPTION = exports.TIMELINE_PLUGIN_VERSION = exports.TIMELINE_PLUGIN_NAME = exports.TIMELINE_PLUGIN_ID = void 0;
|
|
4
4
|
exports.TIMELINE_PLUGIN_ID = 'stella-timeline-plugin';
|
|
5
5
|
exports.TIMELINE_PLUGIN_NAME = 'Stella Timeline Plugin';
|
|
6
|
-
exports.TIMELINE_PLUGIN_VERSION = '2.0.
|
|
6
|
+
exports.TIMELINE_PLUGIN_VERSION = '2.0.6';
|
|
7
7
|
exports.TIMELINE_PLUGIN_DESCRIPTION = 'OpenClaw timeline runtime with canonical timeline_resolve, LLM-based temporal reasoning, and guarded append-only writes.';
|
|
8
8
|
exports.TIMELINE_TOOL_NAMES = ['timeline_resolve'];
|
|
9
9
|
exports.TIMELINE_SKILL_PATHS = ['skills/timeline'];
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "stella-timeline-plugin",
|
|
3
|
-
"name": "Stella Timeline Plugin",
|
|
4
|
-
"version": "2.0.
|
|
5
|
-
"description": "OpenClaw timeline runtime with canonical timeline_resolve, LLM-based temporal reasoning, and guarded append-only writes.",
|
|
6
|
-
"entry": "dist/index.js",
|
|
7
|
-
"skills": [
|
|
8
|
-
"skills/timeline"
|
|
9
|
-
],
|
|
10
|
-
"configSchema": {
|
|
11
|
-
"type": "object",
|
|
12
|
-
"properties": {
|
|
13
|
-
"enableTrace": {
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"default": true,
|
|
16
|
-
"description": "Whether Timeline writes trace records for each runtime execution."
|
|
17
|
-
},
|
|
18
|
-
"traceLogPath": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "Optional trace log path. Relative paths are resolved from the workspace."
|
|
21
|
-
},
|
|
22
|
-
"canonicalMemoryRoot": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "Root directory for canonical timeline daily logs. Relative paths are resolved from the workspace."
|
|
25
|
-
},
|
|
26
|
-
"reasonerTimeoutMs": {
|
|
27
|
-
"type": "integer",
|
|
28
|
-
"default": 90000,
|
|
29
|
-
"description": "Timeout for the internal timeline reasoner subagent, in milliseconds."
|
|
30
|
-
},
|
|
31
|
-
"reasonerSessionPrefix": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"default": "timeline-reasoner",
|
|
34
|
-
"description": "Session key prefix used for the internal timeline reasoner subagent."
|
|
35
|
-
},
|
|
36
|
-
"reasonerMessageLimit": {
|
|
37
|
-
"type": "integer",
|
|
38
|
-
"default": 24,
|
|
39
|
-
"description": "Maximum number of messages retained when reading the internal reasoner transcript."
|
|
40
|
-
},
|
|
41
|
-
"sessionHistoryLimit": {
|
|
42
|
-
"type": "integer",
|
|
43
|
-
"default": 12,
|
|
44
|
-
"description": "Maximum number of current-session messages retained by the collector."
|
|
45
|
-
},
|
|
46
|
-
"memorySearchMaxResults": {
|
|
47
|
-
"type": "integer",
|
|
48
|
-
"default": 6,
|
|
49
|
-
"description": "Maximum number of results requested when the collector calls OpenClaw memory_search."
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"additionalProperties": false
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "stella-timeline-plugin",
|
|
3
|
+
"name": "Stella Timeline Plugin",
|
|
4
|
+
"version": "2.0.6",
|
|
5
|
+
"description": "OpenClaw timeline runtime with canonical timeline_resolve, LLM-based temporal reasoning, and guarded append-only writes.",
|
|
6
|
+
"entry": "dist/index.js",
|
|
7
|
+
"skills": [
|
|
8
|
+
"skills/timeline"
|
|
9
|
+
],
|
|
10
|
+
"configSchema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"enableTrace": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"default": true,
|
|
16
|
+
"description": "Whether Timeline writes trace records for each runtime execution."
|
|
17
|
+
},
|
|
18
|
+
"traceLogPath": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Optional trace log path. Relative paths are resolved from the workspace."
|
|
21
|
+
},
|
|
22
|
+
"canonicalMemoryRoot": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Root directory for canonical timeline daily logs. Relative paths are resolved from the workspace."
|
|
25
|
+
},
|
|
26
|
+
"reasonerTimeoutMs": {
|
|
27
|
+
"type": "integer",
|
|
28
|
+
"default": 90000,
|
|
29
|
+
"description": "Timeout for the internal timeline reasoner subagent, in milliseconds."
|
|
30
|
+
},
|
|
31
|
+
"reasonerSessionPrefix": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"default": "timeline-reasoner",
|
|
34
|
+
"description": "Session key prefix used for the internal timeline reasoner subagent."
|
|
35
|
+
},
|
|
36
|
+
"reasonerMessageLimit": {
|
|
37
|
+
"type": "integer",
|
|
38
|
+
"default": 24,
|
|
39
|
+
"description": "Maximum number of messages retained when reading the internal reasoner transcript."
|
|
40
|
+
},
|
|
41
|
+
"sessionHistoryLimit": {
|
|
42
|
+
"type": "integer",
|
|
43
|
+
"default": 12,
|
|
44
|
+
"description": "Maximum number of current-session messages retained by the collector."
|
|
45
|
+
},
|
|
46
|
+
"memorySearchMaxResults": {
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"default": 6,
|
|
49
|
+
"description": "Maximum number of results requested when the collector calls OpenClaw memory_search."
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
}
|
|
54
|
+
}
|
package/package.json
CHANGED
package/scripts/release.mjs
CHANGED
|
@@ -2,9 +2,44 @@
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { spawnSync } from 'node:child_process';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import fs from 'node:fs';
|
|
5
6
|
|
|
6
7
|
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
7
8
|
|
|
9
|
+
function syncPluginVersion() {
|
|
10
|
+
const pkgPath = path.join(repoRoot, 'package.json');
|
|
11
|
+
const pluginManifestPath = path.join(repoRoot, 'openclaw.plugin.json');
|
|
12
|
+
|
|
13
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
14
|
+
const pluginManifest = JSON.parse(fs.readFileSync(pluginManifestPath, 'utf8'));
|
|
15
|
+
|
|
16
|
+
if (pluginManifest.version !== pkg.version) {
|
|
17
|
+
pluginManifest.version = pkg.version;
|
|
18
|
+
fs.writeFileSync(pluginManifestPath, `${JSON.stringify(pluginManifest, null, 2)}\n`, 'utf8');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function syncPluginMetadataVersion() {
|
|
23
|
+
const pkgPath = path.join(repoRoot, 'package.json');
|
|
24
|
+
const metadataPath = path.join(repoRoot, 'src', 'plugin_metadata.ts');
|
|
25
|
+
|
|
26
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
27
|
+
const metadataSource = fs.readFileSync(metadataPath, 'utf8');
|
|
28
|
+
const nextVersion = String(pkg.version);
|
|
29
|
+
|
|
30
|
+
const updatedSource = metadataSource.replace(
|
|
31
|
+
/export const TIMELINE_PLUGIN_VERSION\s*=\s*'[^']*';/,
|
|
32
|
+
`export const TIMELINE_PLUGIN_VERSION = '${nextVersion}';`,
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
// If the regex doesn't match, don't silently proceed with a wrong release.
|
|
36
|
+
if (updatedSource === metadataSource) {
|
|
37
|
+
throw new Error(`Unable to sync TIMELINE_PLUGIN_VERSION in ${metadataPath}`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
fs.writeFileSync(metadataPath, `${updatedSource}\n`, 'utf8');
|
|
41
|
+
}
|
|
42
|
+
|
|
8
43
|
function npmCommand() {
|
|
9
44
|
return process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
10
45
|
}
|
|
@@ -43,6 +78,10 @@ function main() {
|
|
|
43
78
|
return;
|
|
44
79
|
}
|
|
45
80
|
|
|
81
|
+
// Keep OpenClaw plugin manifest version aligned with the npm package version.
|
|
82
|
+
syncPluginVersion();
|
|
83
|
+
syncPluginMetadataVersion();
|
|
84
|
+
|
|
46
85
|
run(npmCommand(), ['run', 'verify']);
|
|
47
86
|
run(npmCommand(), ['publish', ...publishArgs]);
|
|
48
87
|
}
|