refactor(utils): renamed packages/pi-utils to packages/utils

- Renamed package directory from packages/pi-utils to packages/utils.
- Updated all path aliases and references in tsconfig.base.json to reflect new package location.
- Updated workspace references in bun.lock and package.json to point to new packages/utils directory.
- Updated documentation and build scripts to reference the renamed utils package.
This commit is contained in:
can1357
2026-01-29 11:01:19 +01:00
parent 269681518a
commit 2c85f43709
19 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ This repo contains multiple packages, but **`packages/coding-agent/`** is the pr
| `packages/tui` | Terminal UI library with differential rendering |
| `packages/natives` | WASM bindings for native text/image/grep operations |
| `packages/stats` | Local observability dashboard (`omp stats`) |
| `packages/pi-utils` | Shared utilities (logger, streams, temp files) |
| `packages/utils` | Shared utilities (logger, streams, temp files) |
| `crates/pi-natives` | Rust WASM crate for performance-critical text/grep ops |
## Code Quality
+13 -13
View File
@@ -110,18 +110,6 @@
"@types/node": "^25.0.10",
},
},
"packages/pi-utils": {
"name": "@oh-my-pi/pi-utils",
"version": "8.12.6",
"dependencies": {
"strip-ansi": "^7.1.2",
"winston": "^3.19.0",
"winston-daily-rotate-file": "^5.0.0",
},
"devDependencies": {
"@types/node": "^25.0.10",
},
},
"packages/react-edit-benchmark": {
"name": "@oh-my-pi/react-edit-benchmark",
"version": "0.0.1",
@@ -175,6 +163,18 @@
"@xterm/xterm": "^6.0.0",
},
},
"packages/utils": {
"name": "@oh-my-pi/pi-utils",
"version": "8.12.6",
"dependencies": {
"strip-ansi": "^7.1.2",
"winston": "^3.19.0",
"winston-daily-rotate-file": "^5.0.0",
},
"devDependencies": {
"@types/node": "^25.0.10",
},
},
},
"packages": {
"@anthropic-ai/sdk": ["@anthropic-ai/sdk@0.71.2", "", { "dependencies": { "json-schema-to-ts": "^3.1.1" }, "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" }, "optionalPeers": ["zod"], "bin": { "anthropic-ai-sdk": "bin/cli" } }, "sha512-TGNDEUuEstk/DKu0/TflXAEt+p+p/WhTlFzEnoosvbaDU2LTjm42igSdlL0VijrKpWejtOKxX0b8A7uc+XiSAQ=="],
@@ -309,7 +309,7 @@
"@oh-my-pi/pi-tui": ["@oh-my-pi/pi-tui@workspace:packages/tui"],
"@oh-my-pi/pi-utils": ["@oh-my-pi/pi-utils@workspace:packages/pi-utils"],
"@oh-my-pi/pi-utils": ["@oh-my-pi/pi-utils@workspace:packages/utils"],
"@oh-my-pi/react-edit-benchmark": ["@oh-my-pi/react-edit-benchmark@workspace:packages/react-edit-benchmark"],
+2 -2
View File
@@ -152,7 +152,7 @@ describe("Coding Agent Tools", () => {
expect(output).toContain("Line 1");
expect(output).toContain("Line 10");
expect(output).not.toContain("Line 11");
expect(output).toContain("[90 more lines in file. Use offset=11 to continue]");
expect(output).toContain("[Showing lines 1-10 of 100. Use offset=11 to continue]");
});
it("should handle offset + limit together", async () => {
@@ -171,7 +171,7 @@ describe("Coding Agent Tools", () => {
expect(output).toContain("Line 41");
expect(output).toContain("Line 60");
expect(output).not.toContain("Line 61");
expect(output).toContain("[40 more lines in file. Use offset=61 to continue]");
expect(output).toContain("[Showing lines 41-60 of 100. Use offset=61 to continue]");
});
it("should show error when offset is beyond file length", async () => {
@@ -24,7 +24,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/can1357/oh-my-pi.git",
"directory": "packages/pi-utils"
"directory": "packages/utils"
},
"dependencies": {
"winston": "^3.19.0",
+1 -1
View File
@@ -63,7 +63,7 @@ RUN cat > /repo/scripts/publish-local.sh <<'SCRIPT'
set -e
REGISTRY="http://localhost:4873"
PACKAGES=(pi-utils ai agent tui stats coding-agent)
PACKAGES=(utils ai agent tui stats coding-agent)
# Build version map from all package.json files
declare -A VERSION_MAP
+2 -2
View File
@@ -26,8 +26,8 @@
"@oh-my-pi/pi-ai/*": ["./packages/ai/src/*"],
"@oh-my-pi/pi-agent-core": ["./packages/agent/src/index.ts"],
"@oh-my-pi/pi-agent-core/*": ["./packages/agent/src/*"],
"@oh-my-pi/pi-utils": ["./packages/pi-utils/src/index.ts"],
"@oh-my-pi/pi-utils/*": ["./packages/pi-utils/src/*"],
"@oh-my-pi/pi-utils": ["./packages/utils/src/index.ts"],
"@oh-my-pi/pi-utils/*": ["./packages/utils/src/*"],
"@oh-my-pi/pi-coding-agent": ["./packages/coding-agent/src/index.ts"],
"@oh-my-pi/pi-coding-agent/hooks": ["./packages/coding-agent/src/extensibility/hooks/index.ts"],
"@oh-my-pi/pi-coding-agent/*": ["./packages/coding-agent/src/*"],