runwork 0.10.2 → 0.10.4

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 (49) hide show
  1. package/dist/agents/__tests__/claude-code-stats.test.js +1 -0
  2. package/dist/agents/claude-code.js +1 -1
  3. package/dist/agents/cursor.js +1 -1
  4. package/dist/commands/clone.js +1 -1
  5. package/dist/commands/deploy.js +1 -1
  6. package/dist/commands/dev.d.ts +3 -0
  7. package/dist/commands/dev.js +628 -11
  8. package/dist/commands/info.d.ts +31 -0
  9. package/dist/commands/info.js +37 -0
  10. package/dist/commands/init.js +1 -1
  11. package/dist/dev/__tests__/attach.test.d.ts +1 -0
  12. package/dist/dev/__tests__/attach.test.js +296 -0
  13. package/dist/dev/__tests__/detach.test.d.ts +1 -0
  14. package/dist/dev/__tests__/detach.test.js +404 -0
  15. package/dist/dev/__tests__/preview-url-poller.test.d.ts +1 -0
  16. package/dist/dev/__tests__/preview-url-poller.test.js +149 -0
  17. package/dist/dev/__tests__/session.test.d.ts +1 -0
  18. package/dist/dev/__tests__/session.test.js +347 -0
  19. package/dist/dev/__tests__/stop.test.d.ts +1 -0
  20. package/dist/dev/__tests__/stop.test.js +172 -0
  21. package/dist/dev/attach.d.ts +120 -0
  22. package/dist/dev/attach.js +269 -0
  23. package/dist/dev/detach.d.ts +187 -0
  24. package/dist/dev/detach.js +292 -0
  25. package/dist/dev/preview-url-poller.d.ts +35 -0
  26. package/dist/dev/preview-url-poller.js +50 -0
  27. package/dist/dev/session.d.ts +158 -0
  28. package/dist/dev/session.js +252 -0
  29. package/dist/dev/stop.d.ts +52 -0
  30. package/dist/dev/stop.js +101 -0
  31. package/dist/generated/version.d.ts +1 -1
  32. package/dist/generated/version.js +1 -1
  33. package/dist/git/__tests__/credentials.test.js +1 -1
  34. package/dist/git/auto-commit.js +1 -1
  35. package/dist/git/credentials.js +1 -1
  36. package/dist/git/identity.js +1 -1
  37. package/dist/git/preflight.js +1 -1
  38. package/dist/git/sync.js +1 -1
  39. package/dist/health/checks.js +1 -1
  40. package/dist/template/manifest.js +1 -1
  41. package/dist/ui/__tests__/keyboard.test.js +4 -0
  42. package/dist/ui/keyboard.d.ts +1 -1
  43. package/dist/ui/keyboard.js +4 -0
  44. package/dist/utils/agent-guidance.d.ts +13 -0
  45. package/dist/utils/agent-guidance.js +22 -7
  46. package/dist/utils/subprocess.d.ts +19 -0
  47. package/dist/utils/subprocess.js +27 -0
  48. package/dist/utils/which.js +1 -1
  49. package/package.json +1 -1
@@ -199,6 +199,7 @@ describe('ClaudeCodeAdapter.readVersion', () => {
199
199
  expect(version).toBe('claude-code 1.0.23');
200
200
  expect(execFileSync).toHaveBeenCalledWith('claude', ['--version'], {
201
201
  stdio: 'pipe',
202
+ windowsHide: true,
202
203
  });
203
204
  });
204
205
  it('returns null when claude is not installed', async () => {
@@ -1,7 +1,7 @@
1
1
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'fs';
2
2
  import { join } from 'path';
3
3
  import { homedir, platform } from 'os';
4
- import { execFileSync } from 'child_process';
4
+ import { execFileSync } from '../utils/subprocess.js';
5
5
  import { whichBinary } from '../utils/which.js';
6
6
  import { buildSkillMd } from './types.js';
7
7
  import { mergeJsonMcpServers, readJsonConfig, writeJsonConfig, removeRunworkMcpServers } from './utils/json-config.js';
@@ -1,7 +1,7 @@
1
1
  import { existsSync, mkdirSync, readdirSync, unlinkSync, writeFileSync } from 'fs';
2
2
  import { join } from 'path';
3
3
  import { homedir, platform } from 'os';
4
- import { execFileSync } from 'child_process';
4
+ import { execFileSync } from '../utils/subprocess.js';
5
5
  import { querySqlite, openWritableSqlite } from '../utils/sqlite.js';
6
6
  import { whichBinary } from '../utils/which.js';
7
7
  import { mergeJsonMcpServers, removeRunworkMcpServers, readJsonConfig, writeJsonConfig } from './utils/json-config.js';
@@ -1,5 +1,5 @@
1
1
  import { Command } from 'commander';
2
- import { execFileSync } from 'child_process';
2
+ import { execFileSync } from '../utils/subprocess.js';
3
3
  import { writeFileSync, mkdirSync, existsSync } from 'fs';
4
4
  import { join, resolve } from 'path';
5
5
  import { requireAuth } from '../auth/store.js';
@@ -1,5 +1,5 @@
1
1
  import { Command } from 'commander';
2
- import { execFileSync } from 'child_process';
2
+ import { execFileSync } from '../utils/subprocess.js';
3
3
  import { readFileSync, existsSync } from 'fs';
4
4
  import { requireAuth } from '../auth/store.js';
5
5
  import { ApiClient } from '../api/client.js';
@@ -1,7 +1,10 @@
1
1
  import { Command } from 'commander';
2
+ import { type SessionMode } from '../dev/session.js';
2
3
  export declare function execDev(options?: {
3
4
  logs?: boolean;
4
5
  logsOnlyFile?: boolean;
5
6
  json?: boolean;
7
+ mode?: SessionMode;
8
+ restart?: boolean;
6
9
  }): Promise<void>;
7
10
  export declare const devCommand: Command;