@caupulican/pi-adaptative 0.80.65 → 0.80.66

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.80.66] - 2026-06-27
2
+
3
+ ### Added
4
+
5
+ - Gateway & scheduler provider interfaces: pi now exposes `ChannelProvider` (transports) and `JobSchedulerProvider` (cron) contracts plus a registry, so a deployment/server wrapper can plug in channels and scheduled jobs without baking any transport into the core agent.
6
+
1
7
  ## [0.80.65] - 2026-06-27
2
8
 
3
9
  ### Added
@@ -18,6 +18,7 @@ import { type BashResult } from "./bash-executor.ts";
18
18
  import { type CompactionResult } from "./compaction/index.ts";
19
19
  import { type ContextGcReport } from "./context-gc.ts";
20
20
  import { type ContextUsage, type ExtensionCommandContextActions, type ExtensionContext, type ExtensionErrorListener, ExtensionRunner, type ExtensionUIContext, type InputSource, type ReplacedSessionContext, type SessionStartEvent, type ShutdownHandler, type ToolDefinition, type ToolInfo } from "./extensions/index.ts";
21
+ import { type ChannelProvider, GatewayRegistry, type JobSchedulerProvider } from "./gateways/channel-provider.ts";
21
22
  import { type DemandSignals, type ReflectionResult } from "./learning/reflection-engine.ts";
22
23
  import type { MemoryProvider } from "./memory/memory-provider.ts";
23
24
  import type { CustomMessage } from "./messages.ts";
@@ -276,6 +277,8 @@ export declare class AgentSession {
276
277
  private _memoryManager;
277
278
  /** R4: tracks whether injected recall is actually used, to adapt the recall gate. */
278
279
  private readonly _effectivenessTracker;
280
+ /** R8: registry for deployment-supplied gateway channels + schedulers (lifecycle driven by the host runner). */
281
+ private readonly _gatewayRegistry;
279
282
  private readonly _isChildSession;
280
283
  /** Memory providers registered by extensions via pi.registerMemoryProvider, applied on (re)init. */
281
284
  private _pendingMemoryProviders;
@@ -625,6 +628,12 @@ export declare class AgentSession {
625
628
  private _initializeMemory;
626
629
  /** Register a memory provider contributed by an extension; applied on the next memory (re)init. */
627
630
  registerMemoryProvider(provider: MemoryProvider): void;
631
+ /** R8: the gateway/scheduler registry. A deployment runner registers providers and drives start/stop. */
632
+ get gateways(): GatewayRegistry;
633
+ /** R8: register a deployment-supplied transport channel (gateway). */
634
+ registerChannelProvider(provider: ChannelProvider): void;
635
+ /** R8: register a deployment-supplied job scheduler (cron). */
636
+ registerJobScheduler(provider: JobSchedulerProvider): void;
628
637
  private _refreshToolRegistry;
629
638
  private _createReloadRuntimeSnapshot;
630
639
  private _restoreReloadRuntimeSnapshot;