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.
Files changed (44) hide show
  1. package/dist/agents/__tests__/claude-code-managed-block.test.d.ts +1 -0
  2. package/dist/agents/__tests__/claude-code-managed-block.test.js +97 -0
  3. package/dist/agents/__tests__/claude-code-stats.test.js +1 -0
  4. package/dist/agents/__tests__/codex-minimum-permissions.test.d.ts +1 -0
  5. package/dist/agents/__tests__/codex-minimum-permissions.test.js +82 -0
  6. package/dist/agents/__tests__/cursor-merge.test.d.ts +1 -0
  7. package/dist/agents/__tests__/cursor-merge.test.js +66 -0
  8. package/dist/agents/__tests__/defaults-merge.test.d.ts +1 -0
  9. package/dist/agents/__tests__/defaults-merge.test.js +268 -0
  10. package/dist/agents/claude-code.d.ts +5 -0
  11. package/dist/agents/claude-code.js +30 -1
  12. package/dist/agents/cursor.d.ts +23 -1
  13. package/dist/agents/cursor.js +43 -4
  14. package/dist/agents/default-config.d.ts +30 -0
  15. package/dist/agents/default-config.js +67 -0
  16. package/dist/agents/defaults-merge.d.ts +72 -0
  17. package/dist/agents/defaults-merge.js +131 -0
  18. package/dist/agents/types.d.ts +31 -2
  19. package/dist/commands/clone.js +1 -1
  20. package/dist/commands/deploy.js +1 -1
  21. package/dist/commands/dev.js +22 -18
  22. package/dist/commands/init.js +1 -1
  23. package/dist/commands/sync.js +146 -59
  24. package/dist/dev/__tests__/detach.test.js +77 -1
  25. package/dist/dev/detach.d.ts +23 -0
  26. package/dist/dev/detach.js +45 -0
  27. package/dist/generated/version.d.ts +1 -1
  28. package/dist/generated/version.js +1 -1
  29. package/dist/git/__tests__/credentials.test.js +1 -1
  30. package/dist/git/auto-commit.js +1 -1
  31. package/dist/git/credentials.js +1 -1
  32. package/dist/git/identity.js +1 -1
  33. package/dist/git/preflight.js +1 -1
  34. package/dist/git/sync.js +1 -1
  35. package/dist/health/checks.js +1 -1
  36. package/dist/template/manifest.js +1 -1
  37. package/dist/types.d.ts +23 -0
  38. package/dist/ui/banner.js +1 -1
  39. package/dist/utils/agent-guidance.d.ts +13 -0
  40. package/dist/utils/agent-guidance.js +22 -7
  41. package/dist/utils/subprocess.d.ts +19 -0
  42. package/dist/utils/subprocess.js +27 -0
  43. package/dist/utils/which.js +1 -1
  44. 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
+ });
@@ -1,4 +1,4 @@
1
- import { execFileSync } from 'child_process';
1
+ import { execFileSync } from './subprocess.js';
2
2
  import { platform } from 'os';
3
3
  /**
4
4
  * Cross-platform binary detection.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runwork",
3
- "version": "0.10.3",
3
+ "version": "0.11.0",
4
4
  "description": "CLI for Runwork: develop, preview, and deploy Runwork apps from your local machine.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Runwork <info@runwork.ai> (https://www.runwork.ai)",