@pencil-agent/nano-pencil 1.11.26 → 1.11.27
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.
|
@@ -283,6 +283,10 @@ export interface ResourcesDiscoverResult {
|
|
|
283
283
|
export interface SessionStartEvent {
|
|
284
284
|
type: "session_start";
|
|
285
285
|
}
|
|
286
|
+
/** Fired when the interactive UI is fully ready to display extension output. */
|
|
287
|
+
export interface SessionReadyEvent {
|
|
288
|
+
type: "session_ready";
|
|
289
|
+
}
|
|
286
290
|
/** Fired before switching to another session (can be cancelled) */
|
|
287
291
|
export interface SessionBeforeSwitchEvent {
|
|
288
292
|
type: "session_before_switch";
|
|
@@ -351,7 +355,7 @@ export interface SessionTreeEvent {
|
|
|
351
355
|
summaryEntry?: BranchSummaryEntry;
|
|
352
356
|
fromExtension?: boolean;
|
|
353
357
|
}
|
|
354
|
-
export type SessionEvent = SessionStartEvent | SessionBeforeSwitchEvent | SessionSwitchEvent | SessionBeforeForkEvent | SessionForkEvent | SessionBeforeCompactEvent | SessionCompactEvent | SessionShutdownEvent | SessionBeforeTreeEvent | SessionTreeEvent;
|
|
358
|
+
export type SessionEvent = SessionStartEvent | SessionReadyEvent | SessionBeforeSwitchEvent | SessionSwitchEvent | SessionBeforeForkEvent | SessionForkEvent | SessionBeforeCompactEvent | SessionCompactEvent | SessionShutdownEvent | SessionBeforeTreeEvent | SessionTreeEvent;
|
|
355
359
|
/** Fired before each LLM call. Can modify messages. */
|
|
356
360
|
export interface ContextEvent {
|
|
357
361
|
type: "context";
|
|
@@ -652,6 +656,7 @@ export interface ExtensionAPI {
|
|
|
652
656
|
cwd: string;
|
|
653
657
|
on(event: "resources_discover", handler: ExtensionHandler<ResourcesDiscoverEvent, ResourcesDiscoverResult>): void;
|
|
654
658
|
on(event: "session_start", handler: ExtensionHandler<SessionStartEvent>): void;
|
|
659
|
+
on(event: "session_ready", handler: ExtensionHandler<SessionReadyEvent>): void;
|
|
655
660
|
on(event: "session_before_switch", handler: ExtensionHandler<SessionBeforeSwitchEvent, SessionBeforeSwitchResult>): void;
|
|
656
661
|
on(event: "session_switch", handler: ExtensionHandler<SessionSwitchEvent>): void;
|
|
657
662
|
on(event: "session_before_fork", handler: ExtensionHandler<SessionBeforeForkEvent, SessionBeforeForkResult>): void;
|
|
@@ -331,6 +331,7 @@ export class InteractiveMode {
|
|
|
331
331
|
this.subscribeToAgent();
|
|
332
332
|
this.chatContainer.clear();
|
|
333
333
|
this.renderInitialMessages();
|
|
334
|
+
await this.session.extensionRunner?.emit({ type: "session_ready" });
|
|
334
335
|
// Set up theme file watcher
|
|
335
336
|
onThemeChange(() => {
|
|
336
337
|
this.ui.invalidate();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pencil-agent/nano-pencil",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.27",
|
|
4
4
|
"description": "CLI writing agent with read, bash, edit, write tools and session management. Based on pi; supports DashScope Coding Plan. Soul enabled by default for AI personality evolution.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|