omp-auto-loop 0.2.1 → 0.2.2

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/index.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import type { ExtensionAPI, ExtensionContext } from "@oh-my-pi/pi-coding-agent";
2
- import { Key } from "@oh-my-pi/pi-tui";
3
2
  import { buildPrompt, emptyState, getSystemPromptAddition, type LoopState, updateWidget } from "./state.ts";
4
3
  import { getLoopControlToolDefinition, handleLoopControlTool, renderLoopControlCall, renderLoopControlResult } from "./tool.ts";
5
4
 
@@ -106,7 +105,7 @@ export default function (pi: ExtensionAPI) {
106
105
  handler: async (_args, ctx) => stopLoop(ctx, "Stopped by user"),
107
106
  });
108
107
 
109
- pi.registerShortcut(Key.ctrlShift("x"), {
108
+ pi.registerShortcut("ctrl+shift+x", {
110
109
  description: "Stop the active loop",
111
110
  handler: async (ctx) => {
112
111
  stopLoop(ctx, "Stopped by shortcut");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-auto-loop",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "General-purpose auto agent loop plugin for omp.",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/test-run.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { loadExtensions } from "@oh-my-pi/pi-coding-agent/src/extensibility/extensions/loader";
2
+ console.log("loader available");
Binary file