principles-disciple 1.197.9 → 1.197.11
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/bundle.js +323 -323
- package/dist/openclaw.plugin.json +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/scripts/bootstrap-rules.mjs +5 -1
- package/scripts/sync-plugin.mjs +2 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "principles-disciple",
|
|
3
3
|
"name": "Principles Disciple",
|
|
4
4
|
"description": "Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles. Stop correcting the same AI behavior across sessions.",
|
|
5
|
-
"version": "1.197.
|
|
5
|
+
"version": "1.197.11",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onCapabilities": [
|
|
8
8
|
"hook"
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "principles-disciple",
|
|
3
3
|
"name": "Principles Disciple",
|
|
4
4
|
"description": "Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles. Stop correcting the same AI behavior across sessions.",
|
|
5
|
-
"version": "1.197.
|
|
5
|
+
"version": "1.197.11",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onCapabilities": [
|
|
8
8
|
"hook"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "principles-disciple",
|
|
3
|
-
"version": "1.197.
|
|
3
|
+
"version": "1.197.11",
|
|
4
4
|
"description": "Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles. Stop correcting the same AI behavior across sessions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -58,7 +58,11 @@ async function run() {
|
|
|
58
58
|
console.log(` Validation: ${valid ? 'PASS' : 'FAIL'}`);
|
|
59
59
|
}
|
|
60
60
|
} catch (err) {
|
|
61
|
-
|
|
61
|
+
if (err && typeof err === 'object' && 'code' in err && err.code === 'NO_DETERMINISTIC_PRINCIPLES') {
|
|
62
|
+
console.log('\nNothing to bootstrap yet; the workspace has no deterministic principles.');
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
console.error(`\nBootstrap failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
62
66
|
process.exit(1);
|
|
63
67
|
}
|
|
64
68
|
}
|
package/scripts/sync-plugin.mjs
CHANGED
|
@@ -1400,6 +1400,7 @@ function main() {
|
|
|
1400
1400
|
if (args.restart) {
|
|
1401
1401
|
const restarted = restartGateway();
|
|
1402
1402
|
if (!restarted) {
|
|
1403
|
+
process.exitCode = 1;
|
|
1403
1404
|
console.warn('\n⚠️ Plugin files installed but gateway restart was not confirmed.');
|
|
1404
1405
|
console.warn(' The gateway may already be running. Verify with:');
|
|
1405
1406
|
console.warn(' PowerShell: openclaw gateway status');
|
|
@@ -1411,6 +1412,7 @@ function main() {
|
|
|
1411
1412
|
console.warn(' Then: openclaw gateway start');
|
|
1412
1413
|
console.warn('');
|
|
1413
1414
|
console.warn(' Or simply restart from PowerShell (not affected by the cygpath bug).');
|
|
1415
|
+
console.error('\nINSTALLATION INCOMPLETE: plugin files were copied, but the running product was not verified.');
|
|
1414
1416
|
}
|
|
1415
1417
|
} else {
|
|
1416
1418
|
console.log('\n💡 Restart OpenClaw Gateway to load the new version.');
|