@caupulican/pi-adaptative 0.80.64 → 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,15 @@
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
+
7
+ ## [0.80.65] - 2026-06-27
8
+
9
+ ### Added
10
+
11
+ - Memory-to-behavior: the reflection engine can now promote a recurring, multi-step procedure it learned into an executable skill (a generated SKILL.md under your skills directory), so lessons become reusable behavior instead of just remembered facts.
12
+
1
13
  ## [0.80.64] - 2026-06-27
2
14
 
3
15
  ### 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;
@@ -802,6 +811,11 @@ export declare class AgentSession {
802
811
  reportId?: string;
803
812
  }): Promise<ReflectionResult | null>;
804
813
  private _applyReflectionWrite;
814
+ /**
815
+ * R7: write a reflection-promoted skill as `<agentDir>/skills/<name>/SKILL.md` so it loads like any
816
+ * user skill. Best-effort; never clobbers an existing (hand-authored) skill of the same name.
817
+ */
818
+ private _promoteReflectionSkill;
805
819
  getContextUsage(): ContextUsage | undefined;
806
820
  /**
807
821
  * Export session to HTML.