runwork 0.10.3 → 0.11.0
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/dist/agents/__tests__/claude-code-managed-block.test.d.ts +1 -0
- package/dist/agents/__tests__/claude-code-managed-block.test.js +97 -0
- package/dist/agents/__tests__/claude-code-stats.test.js +1 -0
- package/dist/agents/__tests__/codex-minimum-permissions.test.d.ts +1 -0
- package/dist/agents/__tests__/codex-minimum-permissions.test.js +82 -0
- package/dist/agents/__tests__/cursor-merge.test.d.ts +1 -0
- package/dist/agents/__tests__/cursor-merge.test.js +66 -0
- package/dist/agents/__tests__/defaults-merge.test.d.ts +1 -0
- package/dist/agents/__tests__/defaults-merge.test.js +268 -0
- package/dist/agents/claude-code.d.ts +5 -0
- package/dist/agents/claude-code.js +30 -1
- package/dist/agents/cursor.d.ts +23 -1
- package/dist/agents/cursor.js +43 -4
- package/dist/agents/default-config.d.ts +30 -0
- package/dist/agents/default-config.js +67 -0
- package/dist/agents/defaults-merge.d.ts +72 -0
- package/dist/agents/defaults-merge.js +131 -0
- package/dist/agents/types.d.ts +31 -2
- package/dist/commands/clone.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/dev.js +22 -18
- package/dist/commands/init.js +1 -1
- package/dist/commands/sync.js +146 -59
- package/dist/dev/__tests__/detach.test.js +77 -1
- package/dist/dev/detach.d.ts +23 -0
- package/dist/dev/detach.js +45 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/git/__tests__/credentials.test.js +1 -1
- package/dist/git/auto-commit.js +1 -1
- package/dist/git/credentials.js +1 -1
- package/dist/git/identity.js +1 -1
- package/dist/git/preflight.js +1 -1
- package/dist/git/sync.js +1 -1
- package/dist/health/checks.js +1 -1
- package/dist/template/manifest.js +1 -1
- package/dist/types.d.ts +23 -0
- package/dist/ui/banner.js +1 -1
- package/dist/utils/agent-guidance.d.ts +13 -0
- package/dist/utils/agent-guidance.js +22 -7
- package/dist/utils/subprocess.d.ts +19 -0
- package/dist/utils/subprocess.js +27 -0
- package/dist/utils/which.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thin wrappers around `child_process.execFileSync` and `spawn` that
|
|
3
|
+
* default `windowsHide: true`. On Windows, every console-subsystem
|
|
4
|
+
* subprocess we spawn (git, where.exe, registry queries) creates its
|
|
5
|
+
* own console window unless this flag is set. With our hot paths --
|
|
6
|
+
* auto-commit's git invocations, manifest's `git ls-files`, the sync
|
|
7
|
+
* loop's git rebase / fetch / push -- a missing flag visibly flashes a
|
|
8
|
+
* console window every few seconds, which Codex Desktop users see as
|
|
9
|
+
* "empty terminals keep popping up."
|
|
10
|
+
*
|
|
11
|
+
* Use these as drop-in replacements for the `child_process` exports.
|
|
12
|
+
* Existing options the caller passes still win (so you can opt back to
|
|
13
|
+
* `windowsHide: false` if you genuinely need the window, e.g. for
|
|
14
|
+
* interactive prompts -- though we don't have any of those in our
|
|
15
|
+
* subprocess paths today).
|
|
16
|
+
*/
|
|
17
|
+
import { execFileSync as cpExecFileSync, spawn as cpSpawn, } from 'child_process';
|
|
18
|
+
// We re-export with the *exact* `typeof` signature of the originals so
|
|
19
|
+
// caller-side overload narrowing (encoding -> string vs Buffer return
|
|
20
|
+
// type) keeps working. The implementation forwards through the original
|
|
21
|
+
// after merging in `windowsHide: true` as a default.
|
|
22
|
+
export const execFileSync = ((file, args, options) => {
|
|
23
|
+
return cpExecFileSync(file, args, { windowsHide: true, ...(options ?? {}) });
|
|
24
|
+
});
|
|
25
|
+
export const spawn = ((command, args, options) => {
|
|
26
|
+
return cpSpawn(command, args ?? [], { windowsHide: true, ...(options ?? {}) });
|
|
27
|
+
});
|
package/dist/utils/which.js
CHANGED
package/package.json
CHANGED