@astrofoundry/pi-astro 0.33.0 → 0.33.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.
|
@@ -101,9 +101,13 @@ export const ACTIVITY_COMMAND: Record<Exclude<Service, "bridge">, Command> = {
|
|
|
101
101
|
astrogate: { file: "/opt/homebrew/bin/astrogate", args: ["status"] },
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* The restart for each service; the bridge's own runs detached because it ends this process.
|
|
106
|
+
* herdr's Homebrew formula dropped its service block in 0.9.x, so its server runs from our own
|
|
107
|
+
* LaunchAgent `com.astrofoundry.herdr`; `brew services restart herdr` would unload it for good.
|
|
108
|
+
*/
|
|
105
109
|
export function restartCommand(service: Service, uid: number): Command {
|
|
106
|
-
if (service === "herdr") return { file: "/
|
|
110
|
+
if (service === "herdr") return { file: "/bin/launchctl", args: ["kickstart", "-k", `gui/${uid}/com.astrofoundry.herdr`] };
|
|
107
111
|
if (service === "astrogate") return { file: "/bin/launchctl", args: ["kickstart", "-k", `gui/${uid}/com.monadeo.astrogate`] };
|
|
108
112
|
return { file: "/bin/launchctl", args: ["kickstart", "-k", `gui/${uid}/com.astrofoundry.astro-discord`] };
|
|
109
113
|
}
|
|
@@ -337,7 +337,7 @@ describe("service activity", () => {
|
|
|
337
337
|
});
|
|
338
338
|
|
|
339
339
|
it("restarts each service through its manager", () => {
|
|
340
|
-
expect(restartCommand("herdr", 501)).toEqual({ file: "/
|
|
340
|
+
expect(restartCommand("herdr", 501)).toEqual({ file: "/bin/launchctl", args: ["kickstart", "-k", "gui/501/com.astrofoundry.herdr"] });
|
|
341
341
|
expect(restartCommand("astrogate", 501).args).toEqual(["kickstart", "-k", "gui/501/com.monadeo.astrogate"]);
|
|
342
342
|
expect(restartCommand("bridge", 501).args).toEqual(["kickstart", "-k", "gui/501/com.astrofoundry.astro-discord"]);
|
|
343
343
|
});
|
|
@@ -232,7 +232,8 @@ export default function astroFooterExtension(pi: ExtensionAPI): void {
|
|
|
232
232
|
});
|
|
233
233
|
|
|
234
234
|
pi.on("before_agent_start", async (event) => {
|
|
235
|
-
|
|
235
|
+
// Pi 1.2+ also fires this for runs started by an extension message, which carry no prompt.
|
|
236
|
+
if ("prompt" in event) lastPrompt = event.prompt ?? "";
|
|
236
237
|
activeRequestRender?.();
|
|
237
238
|
});
|
|
238
239
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrofoundry/pi-astro",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.2",
|
|
4
4
|
"description": "Personal pi customizations (extensions, subagents, skills, prompts, themes) for the pi coding agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"typebox": "*"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@earendil-works/pi-agent-core": "^
|
|
53
|
-
"@earendil-works/pi-ai": "^
|
|
54
|
-
"@earendil-works/pi-coding-agent": "^
|
|
55
|
-
"@earendil-works/pi-tui": "^
|
|
52
|
+
"@earendil-works/pi-agent-core": "^1.3.0",
|
|
53
|
+
"@earendil-works/pi-ai": "^1.3.0",
|
|
54
|
+
"@earendil-works/pi-coding-agent": "^1.3.0",
|
|
55
|
+
"@earendil-works/pi-tui": "^1.3.0",
|
|
56
56
|
"@eslint/js": "^10.0.1",
|
|
57
57
|
"@types/node": "^26.5.1",
|
|
58
58
|
"@vitest/coverage-v8": "^5.0.0",
|
package/themes/astro.json
CHANGED