Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/extensions/grc-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
createReadTool,
createWriteTool,
type ExtensionAPI,
} from "@mariozechner/pi-coding-agent";
} from "@earendil-works/pi-coding-agent";
import { getGrclankerSettingsPath } from "../config/paths.js";
import {
buildComputeBackendSystemPromptNote,
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/ansible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -390,7 +390,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -292,7 +292,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -233,7 +233,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -248,7 +248,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/duo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { basename, dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -2256,7 +2256,7 @@ async function writeText(rootDir: string, relativePathname: string, value: strin

async function zipDirectory(sourceDir: string, zipPath: string): Promise<void> {
const output = createWriteStream(zipPath);
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

await new Promise<void>((resolveZip, rejectZip) => {
output.on("close", resolveZip);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/gcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -250,7 +250,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { basename, dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -1397,7 +1397,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/gws-ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { spawn, spawnSync } from "node:child_process";
import { createWriteStream, existsSync, lstatSync, mkdirSync, realpathSync } from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -639,7 +639,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/gws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { basename, dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -1133,7 +1133,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
2 changes: 1 addition & 1 deletion cli/extensions/grc-tools/header.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { homedir } from "node:os";
import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
import { GRCLANKER_ASCII_LOGO } from "../../logo.js";
import { getGrclankerSettingsPath } from "../../config/paths.js";
import { formatSystemResources, resolveComputeBackend } from "../../pi/compute.js";
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/oci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -257,7 +257,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/okta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
import { chmod, readFile, readdir, writeFile } from "node:fs/promises";
import { homedir } from "node:os";
import { basename, dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { parse as parseYaml } from "yaml";
import { errorResult, formatTable, textResult } from "./shared.js";
Expand Down Expand Up @@ -2642,7 +2642,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -398,7 +398,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/vanta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { basename, dirname, extname, join, relative, resolve } from "node:path";
import { Readable } from "node:stream";
import { pipeline } from "node:stream/promises";
import type { ReadableStream as NodeReadableStream } from "node:stream/web";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -806,7 +806,7 @@ async function createZipArchive(sourceDir: string, zipPath: string, baseDir: str

await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(resolvedZipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/webex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -257,7 +257,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
4 changes: 2 additions & 2 deletions cli/extensions/grc-tools/zoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "node:fs";
import { chmod, readdir, writeFile } from "node:fs/promises";
import { dirname, join, relative, resolve } from "node:path";
import archiver from "archiver";
import { ZipArchive } from "archiver";
import { Type } from "@sinclair/typebox";
import { errorResult, formatTable, textResult } from "./shared.js";

Expand Down Expand Up @@ -251,7 +251,7 @@ async function writeSecureTextFile(rootDir: string, relativePathname: string, co
async function createZipArchive(sourceDir: string, zipPath: string): Promise<void> {
await new Promise<void>((resolvePromise, rejectPromise) => {
const output = createWriteStream(zipPath, { mode: 0o600 });
const archive = archiver("zip", { zlib: { level: 9 } });
const archive = new ZipArchive({ zlib: { level: 9 } });

output.on("close", () => resolvePromise());
output.on("error", rejectPromise);
Expand Down
Loading