@caupulican/pi-adaptative 0.80.65 → 0.80.67
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 +12 -0
- package/dist/core/agent-session.d.ts +9 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +48 -17
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/gateways/channel-provider.d.ts +73 -0
- package/dist/core/gateways/channel-provider.d.ts.map +1 -0
- package/dist/core/gateways/channel-provider.js +79 -0
- package/dist/core/gateways/channel-provider.js.map +1 -0
- package/dist/core/security/untrusted-boundary.d.ts +31 -0
- package/dist/core/security/untrusted-boundary.d.ts.map +1 -0
- package/dist/core/security/untrusted-boundary.js +60 -0
- package/dist/core/security/untrusted-boundary.js.map +1 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +12 -12
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [0.80.67] - 2026-06-27
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
|
|
5
|
+
- Untrusted-content boundary (security): output from attacker-controllable sources (web/search, subagents, recall, third-party tools) is now structurally fenced in `<untrusted_content>` tags with a random nonce and break-out neutralization, plus an always-on system-prompt rule that the agent must treat such content as data, never instructions — and that boundary actions always need human approval. First-party tools (read/grep/find/ls/edit/write/bash) are trusted and unwrapped.
|
|
6
|
+
|
|
7
|
+
## [0.80.66] - 2026-06-27
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- 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.
|
|
12
|
+
|
|
1
13
|
## [0.80.65] - 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;
|