@astrofoundry/pi-astro 0.16.0 → 0.16.1

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/README.md CHANGED
@@ -7,9 +7,11 @@ Personal customizations for the [pi coding agent](https://github.com/badlogic/pi
7
7
  ### 1. Install pi
8
8
 
9
9
  ```bash
10
- npm install -g @mariozechner/pi-coding-agent
10
+ npm install -g @earendil-works/pi-coding-agent
11
11
  ```
12
12
 
13
+ If you previously installed the older `@mariozechner/pi-coding-agent` (now deprecated, same code under the new scope), uninstall it to clear deprecation warnings: `npm uninstall -g @mariozechner/pi-coding-agent`.
14
+
13
15
  ### 2. Install this package
14
16
 
15
17
  ```bash
@@ -1,7 +1,7 @@
1
1
  import * as os from "node:os";
2
2
  import * as path from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
4
+ import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
5
5
  import { syncBundledAgents } from "./sync.ts";
6
6
 
7
7
  const DEFAULT_NAMESPACE = "astro";
@@ -2,10 +2,10 @@ import type {
2
2
  ExtensionAPI,
3
3
  ExtensionContext,
4
4
  ReadonlyFooterDataProvider,
5
- } from "@mariozechner/pi-coding-agent";
6
- import type { AssistantMessage } from "@mariozechner/pi-ai";
7
- import type { Theme } from "@mariozechner/pi-coding-agent";
8
- import { truncateToWidth, visibleWidth } from "@mariozechner/pi-tui";
5
+ } from "@earendil-works/pi-coding-agent";
6
+ import type { AssistantMessage } from "@earendil-works/pi-ai";
7
+ import type { Theme } from "@earendil-works/pi-coding-agent";
8
+ import { truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
9
9
  import { resolvePathMode, type PathMode } from "./format.ts";
10
10
  import { GitStatusTracker } from "./git-status.ts";
11
11
  import { detectNerdFonts, iconsFor, type IconSet } from "./icons.ts";
@@ -1,4 +1,4 @@
1
- import type { ThemeColor } from "@mariozechner/pi-coding-agent";
1
+ import type { ThemeColor } from "@earendil-works/pi-coding-agent";
2
2
  import type { IconSet } from "./icons.ts";
3
3
  import {
4
4
  formatCost,
@@ -1,5 +1,5 @@
1
- import type { Theme } from "@mariozechner/pi-coding-agent";
2
- import { matchesKey, visibleWidth, type KeyId } from "@mariozechner/pi-tui";
1
+ import type { Theme } from "@earendil-works/pi-coding-agent";
2
+ import { matchesKey, visibleWidth, type KeyId } from "@earendil-works/pi-tui";
3
3
  import {
4
4
  applyTick,
5
5
  changeDirection,
@@ -1,4 +1,4 @@
1
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
1
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
2
2
  import { AstroSnakeComponent } from "./component.ts";
3
3
 
4
4
  export default function astroSnakeExtension(pi: ExtensionAPI): void {
@@ -1,7 +1,7 @@
1
1
  import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
- import { visibleWidth } from "@mariozechner/pi-tui";
4
+ import { visibleWidth } from "@earendil-works/pi-tui";
5
5
 
6
6
  const extensionDir = path.dirname(fileURLToPath(import.meta.url));
7
7
  const artPath = path.resolve(extensionDir, "art.ansi");
@@ -1,4 +1,4 @@
1
- import { visibleWidth } from "@mariozechner/pi-tui";
1
+ import { visibleWidth } from "@earendil-works/pi-tui";
2
2
  import { fg, PALETTE } from "./colors.ts";
3
3
  import { artHeight, artWidth, renderArt } from "./art.ts";
4
4
  import { pickMessage } from "./messages.ts";
@@ -1,4 +1,4 @@
1
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
1
+ import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
2
2
  import { composeWelcome, type WelcomeStats } from "./compose.ts";
3
3
  import { artHeight, artWidth } from "./art.ts";
4
4
  import { readPackageVersion } from "./version.ts";
@@ -1,7 +1,7 @@
1
1
  import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
4
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
5
5
 
6
6
  const LEVELS = [
7
7
  "lite",
@@ -1,10 +1,10 @@
1
1
  import { mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
2
2
  import { join, resolve } from "node:path";
3
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
4
- import type { AgentToolResult } from "@mariozechner/pi-agent-core";
3
+ import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
4
+ import type { AgentToolResult } from "@earendil-works/pi-agent-core";
5
5
  import { GoogleGenAI } from "@google/genai";
6
- import { StringEnum } from "@mariozechner/pi-ai";
7
- import { Text } from "@mariozechner/pi-tui";
6
+ import { StringEnum } from "@earendil-works/pi-ai";
7
+ import { Text } from "@earendil-works/pi-tui";
8
8
  import { Type } from "typebox";
9
9
  import { persistApiKey, resolveExistingApiKey } from "./credentials.ts";
10
10
  import {
@@ -1,6 +1,6 @@
1
1
  import { execFileSync, spawn } from "node:child_process";
2
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
3
- import type { AgentToolResult } from "@mariozechner/pi-agent-core";
2
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
3
+ import type { AgentToolResult } from "@earendil-works/pi-agent-core";
4
4
  import { Type } from "typebox";
5
5
 
6
6
  function loadGrimoireHelp(): { help: string; available: boolean } {
@@ -13,7 +13,7 @@
13
13
  * - patch mode: preflight by applying patch operations on a virtual filesystem
14
14
  */
15
15
 
16
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
16
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
17
17
  import { Type } from "typebox";
18
18
 
19
19
  import { applyClassicEdits } from "./classic.ts";
@@ -1,4 +1,4 @@
1
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
1
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
2
2
  import { constants } from "fs";
3
3
  import { access as fsAccess, readFile as fsReadFile, unlink as fsUnlink, writeFile as fsWriteFile } from "fs/promises";
4
4
 
@@ -2,7 +2,7 @@ import { exec } from "node:child_process";
2
2
  import * as fs from "node:fs";
3
3
  import * as os from "node:os";
4
4
  import * as path from "node:path";
5
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
5
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
6
6
 
7
7
  const ENV_CMD = "PI_STOP_NOTIFY";
8
8
  const ENV_OFF = "PI_STOP_NOTIFY_OFF";
@@ -1,4 +1,4 @@
1
- import type { ExtensionAPI, ExtensionContext, ToolCallEvent } from "@mariozechner/pi-coding-agent";
1
+ import type { ExtensionAPI, ExtensionContext, ToolCallEvent } from "@earendil-works/pi-coding-agent";
2
2
  import { ensureExampleConfig, isDryRun, loadConfig } from "./config.ts";
3
3
  import { findMatchingRule, normalizePath } from "./rules.ts";
4
4
  import type { SecurityRule, SecurityRules } from "./types.ts";
@@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
2
2
 
3
3
  const setCapabilitiesMock = vi.fn();
4
4
 
5
- vi.mock("@mariozechner/pi-tui", () => ({
5
+ vi.mock("@earendil-works/pi-tui", () => ({
6
6
  setCapabilities: setCapabilitiesMock,
7
7
  }));
8
8
 
@@ -1,5 +1,5 @@
1
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
2
- import { setCapabilities } from "@mariozechner/pi-tui";
1
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
2
+ import { setCapabilities } from "@earendil-works/pi-tui";
3
3
 
4
4
  const ENV_OFF = "PI_VSCODE_IMAGE_OFF";
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrofoundry/pi-astro",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Personal pi customizations (extensions, skills, prompts, themes) for the pi coding agent.",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -44,18 +44,18 @@
44
44
  },
45
45
  "homepage": "https://github.com/astrofoundry/pi-astro#readme",
46
46
  "peerDependencies": {
47
- "@mariozechner/pi-agent-core": "*",
48
- "@mariozechner/pi-ai": "*",
49
- "@mariozechner/pi-coding-agent": "*",
50
- "@mariozechner/pi-tui": "*",
47
+ "@earendil-works/pi-agent-core": "*",
48
+ "@earendil-works/pi-ai": "*",
49
+ "@earendil-works/pi-coding-agent": "*",
50
+ "@earendil-works/pi-tui": "*",
51
51
  "typebox": "*"
52
52
  },
53
53
  "devDependencies": {
54
+ "@earendil-works/pi-agent-core": "^0.74.0",
55
+ "@earendil-works/pi-ai": "^0.74.0",
56
+ "@earendil-works/pi-coding-agent": "^0.74.0",
57
+ "@earendil-works/pi-tui": "^0.74.0",
54
58
  "@eslint/js": "^10.0.1",
55
- "@mariozechner/pi-agent-core": "^0.70.0",
56
- "@mariozechner/pi-ai": "^0.70.0",
57
- "@mariozechner/pi-coding-agent": "^0.70.0",
58
- "@mariozechner/pi-tui": "^0.70.0",
59
59
  "@types/diff": "^8.0.0",
60
60
  "@types/node": "^25.6.0",
61
61
  "@vitest/coverage-v8": "^4.1.5",