@covibes/zeroshot 5.4.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.
- package/LICENSE +1 -1
- package/README.md +8 -465
- package/cli/index.js +101 -5231
- package/package.json +16 -130
- package/CHANGELOG.md +0 -537
- package/cli/commands/providers.js +0 -149
- package/cli/lib/first-run.js +0 -211
- package/cli/lib/update-checker.js +0 -281
- package/cli/message-formatter-utils.js +0 -75
- package/cli/message-formatters-normal.js +0 -275
- package/cli/message-formatters-watch.js +0 -181
- package/cluster-templates/base-templates/debug-workflow.json +0 -375
- package/cluster-templates/base-templates/full-workflow.json +0 -581
- package/cluster-templates/base-templates/single-worker.json +0 -63
- package/cluster-templates/base-templates/worker-validator.json +0 -208
- package/cluster-templates/conductor-bootstrap.json +0 -124
- package/docker/zeroshot-cluster/Dockerfile +0 -152
- package/docker/zeroshot-cluster/pre-baked-deps.json +0 -28
- package/lib/completion.js +0 -174
- package/lib/docker-config.js +0 -220
- package/lib/git-remote-utils.js +0 -165
- package/lib/id-detector.js +0 -56
- package/lib/provider-defaults.js +0 -62
- package/lib/provider-detection.js +0 -59
- package/lib/provider-names.js +0 -57
- package/lib/settings/claude-auth.js +0 -78
- package/lib/settings.js +0 -503
- package/lib/stream-json-parser.js +0 -10
- package/scripts/fix-node-pty-permissions.js +0 -75
- package/scripts/record-demo.sh +0 -279
- package/scripts/setup-merge-queue.sh +0 -170
- package/scripts/test-install.sh +0 -40
- package/scripts/validate-templates.js +0 -100
- package/src/agent/agent-config.js +0 -246
- package/src/agent/agent-context-builder.js +0 -444
- package/src/agent/agent-hook-executor.js +0 -599
- package/src/agent/agent-lifecycle.js +0 -743
- package/src/agent/agent-stuck-detector.js +0 -256
- package/src/agent/agent-task-executor.js +0 -1690
- package/src/agent/agent-trigger-evaluator.js +0 -67
- package/src/agent/output-extraction.js +0 -217
- package/src/agent/output-reformatter.js +0 -175
- package/src/agent/schema-utils.js +0 -146
- package/src/agent-wrapper.js +0 -579
- package/src/agents/git-pusher-template.js +0 -285
- package/src/attach/attach-client.js +0 -438
- package/src/attach/attach-server.js +0 -543
- package/src/attach/index.js +0 -35
- package/src/attach/protocol.js +0 -220
- package/src/attach/ring-buffer.js +0 -121
- package/src/attach/socket-discovery.js +0 -267
- package/src/claude-task-runner.js +0 -574
- package/src/config-router.js +0 -80
- package/src/config-validator.js +0 -1925
- package/src/copy-worker.js +0 -43
- package/src/input-helpers.js +0 -65
- package/src/isolation-manager.js +0 -1471
- package/src/issue-providers/README.md +0 -305
- package/src/issue-providers/azure-devops-provider.js +0 -273
- package/src/issue-providers/base-provider.js +0 -232
- package/src/issue-providers/github-provider.js +0 -179
- package/src/issue-providers/gitlab-provider.js +0 -241
- package/src/issue-providers/index.js +0 -196
- package/src/issue-providers/jira-provider.js +0 -239
- package/src/ledger.js +0 -631
- package/src/lib/safe-exec.js +0 -88
- package/src/logic-engine.js +0 -223
- package/src/message-bus-bridge.js +0 -139
- package/src/message-bus.js +0 -249
- package/src/name-generator.js +0 -232
- package/src/orchestrator.js +0 -2815
- package/src/preflight.js +0 -639
- package/src/process-metrics.js +0 -608
- package/src/providers/anthropic/cli-builder.js +0 -73
- package/src/providers/anthropic/index.js +0 -204
- package/src/providers/anthropic/models.js +0 -23
- package/src/providers/anthropic/output-parser.js +0 -177
- package/src/providers/base-provider.js +0 -251
- package/src/providers/capabilities.js +0 -60
- package/src/providers/google/cli-builder.js +0 -55
- package/src/providers/google/index.js +0 -116
- package/src/providers/google/models.js +0 -24
- package/src/providers/google/output-parser.js +0 -101
- package/src/providers/index.js +0 -91
- package/src/providers/openai/cli-builder.js +0 -133
- package/src/providers/openai/index.js +0 -136
- package/src/providers/openai/models.js +0 -21
- package/src/providers/openai/output-parser.js +0 -143
- package/src/providers/opencode/cli-builder.js +0 -42
- package/src/providers/opencode/index.js +0 -103
- package/src/providers/opencode/models.js +0 -55
- package/src/providers/opencode/output-parser.js +0 -122
- package/src/schemas/sub-cluster.js +0 -185
- package/src/status-footer.js +0 -1026
- package/src/sub-cluster-wrapper.js +0 -601
- package/src/task-runner.js +0 -30
- package/src/template-resolver.js +0 -372
- package/src/tui/CHANGES.txt +0 -133
- package/src/tui/LAYOUT.md +0 -261
- package/src/tui/README.txt +0 -192
- package/src/tui/TWO-LEVEL-NAVIGATION.md +0 -186
- package/src/tui/data-poller.js +0 -349
- package/src/tui/demo.js +0 -208
- package/src/tui/formatters.js +0 -129
- package/src/tui/index.js +0 -193
- package/src/tui/keybindings.js +0 -324
- package/src/tui/layout.js +0 -334
- package/src/tui/renderer.js +0 -184
- package/task-lib/attachable-watcher.js +0 -309
- package/task-lib/claude-recovery.js +0 -156
- package/task-lib/commands/clean.js +0 -50
- package/task-lib/commands/episodes.js +0 -105
- package/task-lib/commands/get-log-path.js +0 -23
- package/task-lib/commands/kill.js +0 -32
- package/task-lib/commands/list.js +0 -105
- package/task-lib/commands/logs.js +0 -453
- package/task-lib/commands/resume.js +0 -42
- package/task-lib/commands/run.js +0 -57
- package/task-lib/commands/schedule.js +0 -105
- package/task-lib/commands/scheduler-cmd.js +0 -96
- package/task-lib/commands/schedules.js +0 -148
- package/task-lib/commands/status.js +0 -44
- package/task-lib/commands/unschedule.js +0 -16
- package/task-lib/completion.js +0 -9
- package/task-lib/config.js +0 -8
- package/task-lib/name-generator.js +0 -230
- package/task-lib/package.json +0 -3
- package/task-lib/runner.js +0 -201
- package/task-lib/scheduler.js +0 -252
- package/task-lib/store.js +0 -529
- package/task-lib/tui/formatters.js +0 -215
- package/task-lib/tui/index.js +0 -197
- package/task-lib/tui/layout.js +0 -111
- package/task-lib/tui/renderer.js +0 -129
- package/task-lib/tui.js +0 -425
- package/task-lib/watcher.js +0 -226
package/src/copy-worker.js
DELETED
|
@@ -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/input-helpers.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Input Helpers - Create input data from text or files
|
|
3
|
-
*
|
|
4
|
-
* Provides fallback input methods for non-issue-based input:
|
|
5
|
-
* - Plain text input
|
|
6
|
-
* - File input (markdown)
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
const fs = require('fs');
|
|
10
|
-
const path = require('path');
|
|
11
|
-
|
|
12
|
-
class InputHelpers {
|
|
13
|
-
/**
|
|
14
|
-
* Create a plain text input wrapper
|
|
15
|
-
* @param {String} text - Plain text input
|
|
16
|
-
* @returns {Object} Structured context
|
|
17
|
-
*/
|
|
18
|
-
static createTextInput(text) {
|
|
19
|
-
return {
|
|
20
|
-
number: null,
|
|
21
|
-
title: 'Manual Input',
|
|
22
|
-
body: text,
|
|
23
|
-
labels: [],
|
|
24
|
-
comments: [],
|
|
25
|
-
url: null,
|
|
26
|
-
context: `# Manual Input\n\n${text}\n`,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Create input from markdown file
|
|
32
|
-
* @param {String} filePath - Path to markdown file (.md or .markdown)
|
|
33
|
-
* @returns {Object} Structured context matching issue format
|
|
34
|
-
*/
|
|
35
|
-
static createFileInput(filePath) {
|
|
36
|
-
// Resolve relative paths
|
|
37
|
-
const resolvedPath = path.resolve(filePath);
|
|
38
|
-
|
|
39
|
-
// Validate file exists
|
|
40
|
-
if (!fs.existsSync(resolvedPath)) {
|
|
41
|
-
throw new Error(`File not found: ${filePath}`);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Read file content
|
|
45
|
-
const fileContent = fs.readFileSync(resolvedPath, 'utf8');
|
|
46
|
-
|
|
47
|
-
// Extract title from first header or use filename
|
|
48
|
-
const headerMatch = fileContent.match(/^#\s+(.+)$/m);
|
|
49
|
-
const extractedTitle = headerMatch ? headerMatch[1].trim() : null;
|
|
50
|
-
const fallbackTitle = path.basename(filePath, path.extname(filePath));
|
|
51
|
-
const title = extractedTitle || fallbackTitle;
|
|
52
|
-
|
|
53
|
-
return {
|
|
54
|
-
number: null,
|
|
55
|
-
title,
|
|
56
|
-
body: fileContent,
|
|
57
|
-
labels: [],
|
|
58
|
-
comments: [],
|
|
59
|
-
url: null,
|
|
60
|
-
context: `# ${title}\n\n${fileContent}\n`,
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
module.exports = InputHelpers;
|