Skip to content
Merged
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
4 changes: 2 additions & 2 deletions builtin-modules/ooxml-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "Shared OOXML infrastructure - units, colors, themes, Content_Types, relationships",
"author": "system",
"mutable": false,
"sourceHash": "sha256:1e939013c13555bc",
"dtsHash": "sha256:9f88e7c59a56854c",
"sourceHash": "sha256:b5f017fe2d4e2ed3",
"dtsHash": "sha256:6aac85502082bf89",
"importStyle": "named",
"hints": {
"overview": "Low-level OOXML infrastructure. Most users should use ha:pptx instead.",
Expand Down
4 changes: 2 additions & 2 deletions builtin-modules/pptx-charts.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "OOXML DrawingML chart generation - bar, pie, line charts for PPTX presentations",
"author": "system",
"mutable": false,
"sourceHash": "sha256:5c521ce93ff39626",
"dtsHash": "sha256:5f653830226c3554",
"sourceHash": "sha256:4174b6f03be2e0fb",
"dtsHash": "sha256:4353b8263dc99405",
"importStyle": "named",
"hints": {
"overview": "Chart generation for PPTX. Always used with ha:pptx.",
Expand Down
4 changes: 2 additions & 2 deletions builtin-modules/pptx-tables.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "Styled tables for PPTX presentations - headers, borders, alternating rows",
"author": "system",
"mutable": false,
"sourceHash": "sha256:0739a7db5a8ab428",
"dtsHash": "sha256:82d903ffbf4dfb1e",
"sourceHash": "sha256:2d58934ed7df9fe1",
"dtsHash": "sha256:3ba75bbc44353467",
"importStyle": "named",
"hints": {
"overview": "Table generation for PPTX. Always used with ha:pptx.",
Expand Down
4 changes: 2 additions & 2 deletions builtin-modules/pptx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "PowerPoint PPTX presentation builder - slides, text, shapes, themes, layouts",
"author": "system",
"mutable": false,
"sourceHash": "sha256:093b19522e994756",
"dtsHash": "sha256:2107e369816b4bd5",
"sourceHash": "sha256:23569540a0f8622f",
"dtsHash": "sha256:27520514e4401465",
"importStyle": "named",
"hints": {
"overview": "Core PPTX slide building. Charts in ha:pptx-charts, tables in ha:pptx-tables.",
Expand Down
183 changes: 80 additions & 103 deletions builtin-modules/src/types/ha-modules.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"fmt:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\" \"plugins/**/*.ts\" \"builtin-modules/**/*.js\"",
"check": "npm run fmt:check && npm run typecheck && npm run test",
"prepare": "node -e \"if(require('fs').existsSync('scripts/build-modules.js'))require('child_process').execSync('npm run build:modules',{stdio:'inherit'})\"",
"postinstall": "node -e \"var fs=require('fs'),cp=require('child_process');if(fs.existsSync('scripts/patch-vscode-jsonrpc.js')){cp.execSync('node scripts/patch-vscode-jsonrpc.js',{stdio:'inherit'});cp.execSync('node scripts/check-native-runtime.js',{stdio:'inherit'})}\""
"postinstall": "node -e \"var fs=require('fs'),cp=require('child_process');if(fs.existsSync('scripts/patch-vscode-jsonrpc.js')){cp.execSync('node scripts/patch-vscode-jsonrpc.js',{stdio:'inherit'});cp.execSync('node scripts/check-native-runtime.js',{stdio:'inherit'});}\""
},
"dependencies": {
"@github/copilot-sdk": "^0.1.32",
Expand Down
6 changes: 3 additions & 3 deletions scripts/build-binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ writeFileSync(launcherCjsPath, launcherCjs);
// Node.js launcher (works everywhere, used as npm bin entry)
const nodeLauncher = `#!/usr/bin/env node
import { join, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import { fileURLToPath, pathToFileURL } from 'node:url';
const __dirname = dirname(fileURLToPath(import.meta.url));
const cjs = join(__dirname, '..', 'lib', 'hyperagent-launcher.cjs');
await import('file://' + cjs.replace(/\\\\/g, '/'));
await import(pathToFileURL(cjs).href);
`;
const nodeLauncherPath = join(BIN_DIR, "hyperagent");
writeFileSync(nodeLauncherPath, nodeLauncher);
Expand Down Expand Up @@ -494,7 +494,7 @@ To run (option 3 - add to PATH permanently via System Properties):
${launcherPath}

To run (option 2 - add to PATH):
export PATH="${BIN_DIR}:\\$PATH"
export PATH="${BIN_DIR}:$PATH"
hyperagent

To run (option 3 - symlink):
Expand Down
12 changes: 10 additions & 2 deletions tests/pattern-loader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,16 @@ describe("pattern-loader", () => {
afterEach(() => {
try {
rmSync(TMP_DIR, { recursive: true, force: true });
} catch {
// Windows: Defender/indexer may hold a lock — not worth failing the test
} catch (err: unknown) {
// Windows Defender/indexer can hold file locks — only swallow those
const code = (err as NodeJS.ErrnoException).code;
if (
process.platform === "win32" &&
(code === "EBUSY" || code === "EPERM")
) {
return;
}
throw err;
}
});

Expand Down
Loading