@covibes/zeroshot 5.3.0 → 5.4.1

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 (119) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +8 -385
  3. package/cli/index.js +108 -4615
  4. package/package.json +16 -125
  5. package/CHANGELOG.md +0 -537
  6. package/cli/commands/providers.js +0 -150
  7. package/cli/lib/first-run.js +0 -211
  8. package/cli/lib/update-checker.js +0 -281
  9. package/cli/message-formatter-utils.js +0 -75
  10. package/cli/message-formatters-normal.js +0 -253
  11. package/cli/message-formatters-watch.js +0 -181
  12. package/cluster-templates/base-templates/debug-workflow.json +0 -375
  13. package/cluster-templates/base-templates/full-workflow.json +0 -697
  14. package/cluster-templates/base-templates/single-worker.json +0 -63
  15. package/cluster-templates/base-templates/worker-validator.json +0 -152
  16. package/cluster-templates/conductor-bootstrap.json +0 -124
  17. package/docker/zeroshot-cluster/Dockerfile +0 -152
  18. package/docker/zeroshot-cluster/pre-baked-deps.json +0 -28
  19. package/lib/completion.js +0 -174
  20. package/lib/docker-config.js +0 -212
  21. package/lib/id-detector.js +0 -53
  22. package/lib/provider-detection.js +0 -59
  23. package/lib/provider-names.js +0 -56
  24. package/lib/settings.js +0 -405
  25. package/lib/stream-json-parser.js +0 -10
  26. package/scripts/fix-node-pty-permissions.js +0 -75
  27. package/scripts/record-demo.sh +0 -279
  28. package/scripts/test-install.sh +0 -40
  29. package/scripts/validate-templates.js +0 -100
  30. package/src/agent/agent-config.js +0 -193
  31. package/src/agent/agent-context-builder.js +0 -335
  32. package/src/agent/agent-hook-executor.js +0 -402
  33. package/src/agent/agent-lifecycle.js +0 -683
  34. package/src/agent/agent-stuck-detector.js +0 -256
  35. package/src/agent/agent-task-executor.js +0 -1431
  36. package/src/agent/agent-trigger-evaluator.js +0 -67
  37. package/src/agent/output-extraction.js +0 -200
  38. package/src/agent/output-reformatter.js +0 -175
  39. package/src/agent/schema-utils.js +0 -111
  40. package/src/agent-wrapper.js +0 -570
  41. package/src/agents/git-pusher-agent.json +0 -20
  42. package/src/attach/attach-client.js +0 -438
  43. package/src/attach/attach-server.js +0 -543
  44. package/src/attach/index.js +0 -35
  45. package/src/attach/protocol.js +0 -220
  46. package/src/attach/ring-buffer.js +0 -121
  47. package/src/attach/socket-discovery.js +0 -267
  48. package/src/claude-task-runner.js +0 -523
  49. package/src/config-router.js +0 -80
  50. package/src/config-validator.js +0 -1660
  51. package/src/copy-worker.js +0 -43
  52. package/src/github.js +0 -139
  53. package/src/isolation-manager.js +0 -1381
  54. package/src/ledger.js +0 -614
  55. package/src/logic-engine.js +0 -223
  56. package/src/message-bus-bridge.js +0 -139
  57. package/src/message-bus.js +0 -249
  58. package/src/name-generator.js +0 -232
  59. package/src/orchestrator.js +0 -2519
  60. package/src/preflight.js +0 -485
  61. package/src/process-metrics.js +0 -566
  62. package/src/providers/anthropic/cli-builder.js +0 -45
  63. package/src/providers/anthropic/index.js +0 -134
  64. package/src/providers/anthropic/models.js +0 -23
  65. package/src/providers/anthropic/output-parser.js +0 -159
  66. package/src/providers/base-provider.js +0 -181
  67. package/src/providers/capabilities.js +0 -51
  68. package/src/providers/google/cli-builder.js +0 -55
  69. package/src/providers/google/index.js +0 -116
  70. package/src/providers/google/models.js +0 -24
  71. package/src/providers/google/output-parser.js +0 -92
  72. package/src/providers/index.js +0 -75
  73. package/src/providers/openai/cli-builder.js +0 -122
  74. package/src/providers/openai/index.js +0 -135
  75. package/src/providers/openai/models.js +0 -21
  76. package/src/providers/openai/output-parser.js +0 -129
  77. package/src/schemas/sub-cluster.js +0 -156
  78. package/src/status-footer.js +0 -980
  79. package/src/sub-cluster-wrapper.js +0 -560
  80. package/src/task-runner.js +0 -30
  81. package/src/template-resolver.js +0 -369
  82. package/src/tui/CHANGES.txt +0 -133
  83. package/src/tui/LAYOUT.md +0 -261
  84. package/src/tui/README.txt +0 -192
  85. package/src/tui/TWO-LEVEL-NAVIGATION.md +0 -186
  86. package/src/tui/data-poller.js +0 -325
  87. package/src/tui/demo.js +0 -208
  88. package/src/tui/formatters.js +0 -128
  89. package/src/tui/index.js +0 -193
  90. package/src/tui/keybindings.js +0 -383
  91. package/src/tui/layout.js +0 -334
  92. package/src/tui/renderer.js +0 -194
  93. package/task-lib/attachable-watcher.js +0 -272
  94. package/task-lib/claude-recovery.js +0 -119
  95. package/task-lib/commands/clean.js +0 -50
  96. package/task-lib/commands/get-log-path.js +0 -23
  97. package/task-lib/commands/kill.js +0 -32
  98. package/task-lib/commands/list.js +0 -105
  99. package/task-lib/commands/logs.js +0 -411
  100. package/task-lib/commands/resume.js +0 -42
  101. package/task-lib/commands/run.js +0 -57
  102. package/task-lib/commands/schedule.js +0 -105
  103. package/task-lib/commands/scheduler-cmd.js +0 -96
  104. package/task-lib/commands/schedules.js +0 -98
  105. package/task-lib/commands/status.js +0 -44
  106. package/task-lib/commands/unschedule.js +0 -16
  107. package/task-lib/completion.js +0 -9
  108. package/task-lib/config.js +0 -10
  109. package/task-lib/name-generator.js +0 -230
  110. package/task-lib/package.json +0 -3
  111. package/task-lib/runner.js +0 -144
  112. package/task-lib/scheduler.js +0 -252
  113. package/task-lib/store.js +0 -230
  114. package/task-lib/tui/formatters.js +0 -166
  115. package/task-lib/tui/index.js +0 -197
  116. package/task-lib/tui/layout.js +0 -111
  117. package/task-lib/tui/renderer.js +0 -119
  118. package/task-lib/tui.js +0 -384
  119. package/task-lib/watcher.js +0 -188
@@ -1,43 +0,0 @@
1
- /**
2
- * Copy Worker - Worker thread for parallel file copying
3
- *
4
- * Handles copying a batch of files from source to destination.
5
- * Used by IsolationManager._copyDirExcluding() for parallel copying.
6
- */
7
-
8
- const { parentPort, workerData } = require('worker_threads');
9
- const fs = require('fs');
10
- const path = require('path');
11
-
12
- const { files, sourceBase, destBase } = workerData;
13
-
14
- let copied = 0;
15
- let skipped = 0;
16
- const errors = [];
17
-
18
- for (const relativePath of files) {
19
- const srcPath = path.join(sourceBase, relativePath);
20
- const destPath = path.join(destBase, relativePath);
21
-
22
- try {
23
- // Ensure parent directory exists
24
- const destDir = path.dirname(destPath);
25
- if (!fs.existsSync(destDir)) {
26
- fs.mkdirSync(destDir, { recursive: true });
27
- }
28
-
29
- // Copy the file
30
- fs.copyFileSync(srcPath, destPath);
31
- copied++;
32
- } catch (err) {
33
- // Skip files we can't copy (permission denied, broken symlinks, etc.)
34
- if (err.code === 'EACCES' || err.code === 'EPERM' || err.code === 'ENOENT') {
35
- skipped++;
36
- continue;
37
- }
38
- errors.push({ file: relativePath, error: err.message });
39
- }
40
- }
41
-
42
- // Report results back to main thread
43
- parentPort.postMessage({ copied, skipped, errors });
package/src/github.js DELETED
@@ -1,139 +0,0 @@
1
- /**
2
- * GitHub - Fetch and parse GitHub issues
3
- *
4
- * Provides:
5
- * - Issue fetching via gh CLI
6
- * - Parsing of issue data into context
7
- * - Fallback to plain text input
8
- */
9
-
10
- const { execSync } = require('child_process');
11
- const fs = require('fs');
12
- const path = require('path');
13
-
14
- class GitHub {
15
- /**
16
- * Fetch GitHub issue by URL or number
17
- * @param {String} issueRef - Issue URL or number
18
- * @returns {Object} Parsed issue data
19
- */
20
- static fetchIssue(issueRef) {
21
- try {
22
- // Extract issue number from URL if needed
23
- const issueNumber = this._extractIssueNumber(issueRef);
24
-
25
- // Fetch issue using gh CLI
26
- const cmd = `gh issue view ${issueNumber} --json number,title,body,labels,assignees,comments,url`;
27
- const output = execSync(cmd, { encoding: 'utf8' });
28
- const issue = JSON.parse(output);
29
-
30
- return this._parseIssue(issue);
31
- } catch (error) {
32
- throw new Error(`Failed to fetch GitHub issue: ${error.message}`);
33
- }
34
- }
35
-
36
- /**
37
- * Extract issue number from URL or return as-is
38
- * @private
39
- */
40
- static _extractIssueNumber(issueRef) {
41
- // If it's a URL, extract the number
42
- const urlMatch = issueRef.match(/\/issues\/(\d+)/);
43
- if (urlMatch) {
44
- return urlMatch[1];
45
- }
46
-
47
- // Otherwise assume it's already a number
48
- return issueRef;
49
- }
50
-
51
- /**
52
- * Parse issue into structured context
53
- * @private
54
- */
55
- static _parseIssue(issue) {
56
- let context = `# GitHub Issue #${issue.number}\n\n`;
57
- context += `## Title\n${issue.title}\n\n`;
58
-
59
- if (issue.body) {
60
- context += `## Description\n${issue.body}\n\n`;
61
- }
62
-
63
- if (issue.labels && issue.labels.length > 0) {
64
- context += `## Labels\n`;
65
- context += issue.labels.map((l) => `- ${l.name}`).join('\n');
66
- context += '\n\n';
67
- }
68
-
69
- if (issue.comments && issue.comments.length > 0) {
70
- context += `## Comments\n\n`;
71
- for (const comment of issue.comments) {
72
- context += `### ${comment.author.login} (${new Date(comment.createdAt).toISOString()})\n`;
73
- context += `${comment.body}\n\n`;
74
- }
75
- }
76
-
77
- return {
78
- number: issue.number,
79
- title: issue.title,
80
- body: issue.body,
81
- labels: issue.labels || [],
82
- comments: issue.comments || [],
83
- url: issue.url || null,
84
- context,
85
- };
86
- }
87
-
88
- /**
89
- * Create a plain text input wrapper
90
- * @param {String} text - Plain text input
91
- * @returns {Object} Structured context
92
- */
93
- static createTextInput(text) {
94
- return {
95
- number: null,
96
- title: 'Manual Input',
97
- body: text,
98
- labels: [],
99
- comments: [],
100
- context: `# Manual Input\n\n${text}\n`,
101
- };
102
- }
103
-
104
- /**
105
- * Create input from markdown file
106
- * @param {String} filePath - Path to markdown file (.md or .markdown)
107
- * @returns {Object} Structured context matching _parseIssue format
108
- */
109
- static createFileInput(filePath) {
110
- // Resolve relative paths
111
- const resolvedPath = path.resolve(filePath);
112
-
113
- // Validate file exists
114
- if (!fs.existsSync(resolvedPath)) {
115
- throw new Error(`File not found: ${filePath}`);
116
- }
117
-
118
- // Read file content
119
- const fileContent = fs.readFileSync(resolvedPath, 'utf8');
120
-
121
- // Extract title from first header or use filename
122
- const headerMatch = fileContent.match(/^#\s+(.+)$/m);
123
- const extractedTitle = headerMatch ? headerMatch[1].trim() : null;
124
- const fallbackTitle = path.basename(filePath, path.extname(filePath));
125
- const title = extractedTitle || fallbackTitle;
126
-
127
- return {
128
- number: null,
129
- title,
130
- body: fileContent,
131
- labels: [],
132
- comments: [],
133
- url: null,
134
- context: `# ${title}\n\n${fileContent}\n`,
135
- };
136
- }
137
- }
138
-
139
- module.exports = GitHub;