@a5c-ai/babysitter-omp 6.0.3-staging.fe0e313bd8d2 → 6.0.3

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.
@@ -104,7 +104,7 @@ function ensureMarketplaceEntry(marketplacePath, pluginRoot) {
104
104
  name: PLUGIN_NAME,
105
105
  source: relSource,
106
106
  description: "Orchestrate complex, multi-step workflows with event-sourced state management, hook-based extensibility, and human-in-the-loop approval",
107
- version: "6.0.3-staging.fe0e313bd8d2",
107
+ version: "6.0.3",
108
108
  author: { name: "a5c.ai" },
109
109
  };
110
110
  if (idx >= 0) marketplace.plugins[idx] = entry;
package/bin/uninstall.cjs CHANGED
@@ -2,22 +2,36 @@
2
2
  'use strict';
3
3
 
4
4
  const fs = require('fs');
5
+ const path = require('path');
5
6
  const shared = require('./install-shared');
6
7
 
8
+ const PACKAGE_ROOT = path.resolve(__dirname, '..');
9
+
7
10
  function main() {
8
11
  const pluginRoot = shared.getHomePluginRoot();
9
12
 
10
13
  if (!fs.existsSync(pluginRoot)) {
11
14
  console.log(`[${shared.PLUGIN_NAME}] Plugin not installed at ${pluginRoot}`);
12
- return;
15
+ } else {
16
+ try {
17
+ fs.rmSync(pluginRoot, { recursive: true, force: true });
18
+ console.log(`[${shared.PLUGIN_NAME}] Uninstalled from ${pluginRoot}`);
19
+ } catch (err) {
20
+ console.error(`[${shared.PLUGIN_NAME}] Failed to uninstall: ${err.message}`);
21
+ process.exitCode = 1;
22
+ return;
23
+ }
13
24
  }
14
25
 
15
- try {
16
- fs.rmSync(pluginRoot, { recursive: true, force: true });
17
- console.log(`[${shared.PLUGIN_NAME}] Uninstalled from ${pluginRoot}`);
18
- } catch (err) {
19
- console.error(`[${shared.PLUGIN_NAME}] Failed to uninstall: ${err.message}`);
20
- process.exitCode = 1;
26
+ // Harness-specific cleanup (managed hooks/skills surfaces, marketplace
27
+ // entries) provided by the plugin's install surface, when present.
28
+ if (typeof shared.harnessUninstall === 'function') {
29
+ try {
30
+ shared.harnessUninstall(PACKAGE_ROOT);
31
+ } catch (err) {
32
+ console.error(`[${shared.PLUGIN_NAME}] Failed to clean up harness state: ${err.message}`);
33
+ process.exitCode = 1;
34
+ }
21
35
  }
22
36
  }
23
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a5c-ai/babysitter-omp",
3
- "version": "6.0.3-staging.fe0e313bd8d2",
3
+ "version": "6.0.3",
4
4
  "type": "module",
5
5
  "description": "Orchestrate complex, multi-step workflows with event-sourced state management, hook-based extensibility, and human-in-the-loop approval — oh-my-pi",
6
6
  "keywords": [
package/versions.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "sdkVersion": "6.0.3-staging.fe0e313bd8d2",
3
- "extensionVersion": "6.0.3-staging.fe0e313bd8d2"
2
+ "sdkVersion": "6.0.3",
3
+ "extensionVersion": "6.0.3"
4
4
  }