principles-disciple 1.102.0 → 1.102.1
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/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "principles-disciple",
|
|
3
3
|
"name": "Principles Disciple",
|
|
4
4
|
"description": "Evolutionary programming agent framework with strategic guardrails and reflection loops.",
|
|
5
|
-
"version": "1.102.
|
|
5
|
+
"version": "1.102.1",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onCapabilities": [
|
|
8
8
|
"hook"
|
package/package.json
CHANGED
|
@@ -50,9 +50,9 @@ export class PromptActivationReader {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
if (artifactRow === null) {
|
|
53
|
-
const warning = `artifact_not_found: artifactId=${activation.artifactId}; nextAction=
|
|
53
|
+
const warning = `artifact_not_found: artifactId=${activation.artifactId}; nextAction=check_pi_artifacts_table_or_remove_stale_activation`;
|
|
54
54
|
warnings.push(warning);
|
|
55
|
-
this.deps.logger?.
|
|
55
|
+
this.deps.logger?.info?.(`[PD:RuntimeV2] ${warning}`);
|
|
56
56
|
continue;
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -387,13 +387,13 @@ describe('Runtime V2 prompt activation injection', () => {
|
|
|
387
387
|
|
|
388
388
|
await insertPromptActivation({ artifactId, principleId });
|
|
389
389
|
|
|
390
|
-
const
|
|
390
|
+
const infoSpy = vi.fn();
|
|
391
391
|
const ctx = {
|
|
392
392
|
workspaceDir: tempWorkspaceDir,
|
|
393
393
|
trigger: 'user',
|
|
394
394
|
sessionId: 'test-session-v2',
|
|
395
395
|
api: {
|
|
396
|
-
logger: { info: vi.fn(),
|
|
396
|
+
logger: { info: infoSpy, warn: vi.fn(), error: vi.fn() },
|
|
397
397
|
runtime: {},
|
|
398
398
|
config: {},
|
|
399
399
|
},
|
|
@@ -404,8 +404,8 @@ describe('Runtime V2 prompt activation injection', () => {
|
|
|
404
404
|
|
|
405
405
|
expect(result).toBeDefined();
|
|
406
406
|
expect(result?.appendSystemContext).not.toContain(TEST_PRINCIPLE_TEXT);
|
|
407
|
-
const
|
|
408
|
-
const hasActivationWarning =
|
|
407
|
+
const infoCalls = infoSpy.mock.calls.map((c: unknown[]) => String(c[0]));
|
|
408
|
+
const hasActivationWarning = infoCalls.some((c: string) => c.includes('artifact_not_found') || c.includes('artifact_query_unexpected') || c.includes('activation'));
|
|
409
409
|
expect(hasActivationWarning).toBe(true);
|
|
410
410
|
});
|
|
411
411
|
|