principles-disciple 1.103.0 → 1.104.0
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.
|
|
5
|
+
"version": "1.104.0",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onCapabilities": [
|
|
8
8
|
"hook"
|
package/package.json
CHANGED
|
@@ -278,17 +278,17 @@ describe('surface-guard', () => {
|
|
|
278
278
|
const mockLogger = { info: vi.fn(), debug: vi.fn() };
|
|
279
279
|
const service: OpenClawPluginService = { id: 'test-service' };
|
|
280
280
|
|
|
281
|
-
//
|
|
282
|
-
const first = guardService('service:
|
|
281
|
+
// service:evolution-worker is quiet/disabled — use it for the rate-limit test.
|
|
282
|
+
const first = guardService('service:evolution-worker', service, mockLogger);
|
|
283
283
|
expect(first).toBeNull();
|
|
284
284
|
expect(mockLogger.info).toHaveBeenCalledTimes(1);
|
|
285
285
|
expect(mockLogger.info).toHaveBeenCalledWith(
|
|
286
|
-
expect.stringContaining('SKIP service service:
|
|
286
|
+
expect.stringContaining('SKIP service service:evolution-worker'),
|
|
287
287
|
);
|
|
288
288
|
|
|
289
289
|
// Subsequent guardService calls for the same surfaceId stay silent.
|
|
290
|
-
guardService('service:
|
|
291
|
-
guardService('service:
|
|
290
|
+
guardService('service:evolution-worker', service, mockLogger);
|
|
291
|
+
guardService('service:evolution-worker', service, mockLogger);
|
|
292
292
|
expect(mockLogger.info).toHaveBeenCalledTimes(1);
|
|
293
293
|
});
|
|
294
294
|
});
|
|
@@ -435,11 +435,11 @@ describe('MVP Surface Registry Guard (PRI-289)', () => {
|
|
|
435
435
|
expect(guarded).toBeNull();
|
|
436
436
|
});
|
|
437
437
|
|
|
438
|
-
it('guardService returns
|
|
438
|
+
it('guardService returns the service for core surfaces (trajectory is now core)', async () => {
|
|
439
439
|
const { guardService } = await import('../../src/core/surface-guard.js');
|
|
440
440
|
const service = { api: null, start: () => {} };
|
|
441
441
|
const guarded = guardService('service:trajectory', service);
|
|
442
|
-
expect(guarded).
|
|
442
|
+
expect(guarded).toBe(service);
|
|
443
443
|
});
|
|
444
444
|
|
|
445
445
|
it('guardService returns null for unregistered surfaces', async () => {
|