@mandible-ai/mandible 0.3.7 → 0.3.8

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.
Files changed (2) hide show
  1. package/README.md +30 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -288,6 +288,8 @@ Action providers wrap external capabilities into a standard interface for colony
288
288
 
289
289
  The provider assembles context by walking signal lineage (`caused_by` chains), giving the agent full awareness of the work pipeline state.
290
290
 
291
+ See [Action Providers Guide](docs/how-to/action-providers.md) for full configuration reference, output mapping, and context assembly.
292
+
291
293
  ## Signal types
292
294
 
293
295
  Signal types use a `domain:state` convention and support glob patterns for sensing:
@@ -345,7 +347,7 @@ const env = new GitHubEnvironment({
345
347
 
346
348
  ### Writing your own
347
349
 
348
- Implement the `Environment` interface:
350
+ Implement the `Environment` interface (see [Custom Environment Guide](docs/how-to/custom-environment.md) for a full walkthrough):
349
351
 
350
352
  ```typescript
351
353
  interface Environment {
@@ -380,7 +382,7 @@ Built-in hosts: `local()` (in-process), `docker()` (containers). Cloud hosts liv
380
382
 
381
383
  ## Patterns
382
384
 
383
- Reusable coordination patterns built on top of the core primitives.
385
+ Reusable coordination patterns built on top of the core primitives. See [Bridging Signals](docs/how-to/bridge-signals.md) and [Monitoring Trust](docs/how-to/monitor-trust.md) for detailed usage.
384
386
 
385
387
  ### SignalBridge
386
388
 
@@ -399,9 +401,25 @@ const bridge = createBridge({
399
401
  await bridge.start();
400
402
  ```
401
403
 
404
+ ### DebugBridge
405
+
406
+ One-way gate from a signal server into a local environment. Enables ad-hoc testing from the cloud console — deposit a signal in the console and it flows through the WebSocket into the colony's real environment.
407
+
408
+ ```typescript
409
+ import { createDebugBridge } from '@mandible-ai/mandible';
410
+
411
+ const bridge = createDebugBridge({
412
+ url: 'wss://signals.mandible.cloud/ws',
413
+ apiKey: 'mnd_...',
414
+ project: 'my-project',
415
+ environment: localEnv,
416
+ });
417
+ await bridge.start();
418
+ ```
419
+
402
420
  ### Sentinel
403
421
 
404
- Trust monitoring colony that watches an environment for signals with invalid or missing provenance. When violations are detected, the sentinel deposits `trust:violation` report signals that other colonies can react to.
422
+ Trust monitoring colony that watches an environment for signals with invalid or missing provenance. When violations are detected, the sentinel deposits `sentinel:flagged` report signals that other colonies can react to.
405
423
 
406
424
  ```typescript
407
425
  import { createSentinel } from '@mandible-ai/mandible';
@@ -446,6 +464,7 @@ src/
446
464
  context.ts Context assembly from signal lineage
447
465
  patterns/
448
466
  bridge.ts SignalBridge — cross-environment mirroring with attestation
467
+ debug-bridge.ts DebugBridge — signal server → environment gate
449
468
  sentinel.ts Sentinel — trust monitoring and violation reporting
450
469
 
451
470
  tests/
@@ -456,6 +475,13 @@ tests/
456
475
  providers/ Agent, structured output, bash provider tests
457
476
  colonies/ Integration tests for colony workflows
458
477
 
478
+ docs/
479
+ how-to/
480
+ bridge-signals.md SignalBridge + DebugBridge usage guide
481
+ action-providers.md withClaudeCode, withStructuredOutput, withBash reference
482
+ monitor-trust.md Sentinel pattern + trust policies
483
+ custom-environment.md Implementing the Environment interface
484
+
459
485
  examples/
460
486
  code-pipeline/
461
487
  colonies.ts Shared colony definitions (shaper, critic, keeper)
@@ -508,7 +534,7 @@ Both colonies are wired to real Claude agents via `withClaudeCode`. The dashboar
508
534
 
509
535
  - [x] `mandible dev` CLI + live dashboard
510
536
  - [x] `withClaudeCode` wired to Claude Code SDK
511
- - [x] Test suite (462 tests, 95%+ coverage)
537
+ - [x] Test suite (473 tests, 95%+ coverage)
512
538
  - [x] GitHub environment adapter
513
539
  - [x] `mandible()` DSL with Host/Environment separation
514
540
  - [x] `local()` and `docker()` host implementations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mandible-ai/mandible",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Universal stigmergy framework for autonomous agent coordination — like ant colonies using pheromone trails",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",