stella-timeline-plugin 2.0.5 → 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.
@@ -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.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'];
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "stella-timeline-plugin",
3
3
  "name": "Stella Timeline Plugin",
4
- "version": "2.0.5",
4
+ "version": "2.0.6",
5
5
  "description": "OpenClaw timeline runtime with canonical timeline_resolve, LLM-based temporal reasoning, and guarded append-only writes.",
6
6
  "entry": "dist/index.js",
7
7
  "skills": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stella-timeline-plugin",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Native OpenClaw timeline plugin with a canonical timeline_resolve tool, bundled skill routing, and guarded append-only writes.",
5
5
  "keywords": [
6
6
  "openclaw",
@@ -19,6 +19,27 @@ function syncPluginVersion() {
19
19
  }
20
20
  }
21
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
+
22
43
  function npmCommand() {
23
44
  return process.platform === 'win32' ? 'npm.cmd' : 'npm';
24
45
  }
@@ -59,6 +80,7 @@ function main() {
59
80
 
60
81
  // Keep OpenClaw plugin manifest version aligned with the npm package version.
61
82
  syncPluginVersion();
83
+ syncPluginMetadataVersion();
62
84
 
63
85
  run(npmCommand(), ['run', 'verify']);
64
86
  run(npmCommand(), ['publish', ...publishArgs]);