@doingdev/opencode-claude-manager-plugin 0.1.65 → 0.1.66
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/index.d.ts +1 -1
- package/dist/manager/team-orchestrator.js +1 -1
- package/dist/plugin/agents/common.d.ts +2 -2
- package/dist/plugin/agents/common.js +5 -0
- package/dist/plugin/claude-manager.plugin.js +104 -0
- package/dist/plugin/inbox-ops.d.ts +50 -0
- package/dist/plugin/inbox-ops.js +166 -0
- package/dist/types/contracts.d.ts +18 -0
- package/package.json +1 -1
- package/dist/claude/session-live-tailer.d.ts +0 -51
- package/dist/claude/session-live-tailer.js +0 -269
- package/dist/manager/session-controller.d.ts +0 -41
- package/dist/manager/session-controller.js +0 -97
- package/dist/metadata/claude-metadata.service.d.ts +0 -12
- package/dist/metadata/claude-metadata.service.js +0 -38
- package/dist/metadata/repo-claude-config-reader.d.ts +0 -7
- package/dist/metadata/repo-claude-config-reader.js +0 -154
- package/dist/plugin/orchestrator.plugin.d.ts +0 -2
- package/dist/plugin/orchestrator.plugin.js +0 -116
- package/dist/providers/claude-code-wrapper.d.ts +0 -13
- package/dist/providers/claude-code-wrapper.js +0 -13
- package/dist/safety/bash-safety.d.ts +0 -21
- package/dist/safety/bash-safety.js +0 -62
- package/dist/src/claude/claude-agent-sdk-adapter.d.ts +0 -28
- package/dist/src/claude/claude-agent-sdk-adapter.js +0 -559
- package/dist/src/claude/claude-session.service.d.ts +0 -9
- package/dist/src/claude/claude-session.service.js +0 -15
- package/dist/src/claude/session-live-tailer.d.ts +0 -51
- package/dist/src/claude/session-live-tailer.js +0 -269
- package/dist/src/claude/tool-approval-manager.d.ts +0 -30
- package/dist/src/claude/tool-approval-manager.js +0 -279
- package/dist/src/index.d.ts +0 -5
- package/dist/src/index.js +0 -3
- package/dist/src/manager/context-tracker.d.ts +0 -32
- package/dist/src/manager/context-tracker.js +0 -103
- package/dist/src/manager/git-operations.d.ts +0 -18
- package/dist/src/manager/git-operations.js +0 -86
- package/dist/src/manager/persistent-manager.d.ts +0 -39
- package/dist/src/manager/persistent-manager.js +0 -44
- package/dist/src/manager/session-controller.d.ts +0 -41
- package/dist/src/manager/session-controller.js +0 -97
- package/dist/src/manager/team-orchestrator.d.ts +0 -81
- package/dist/src/manager/team-orchestrator.js +0 -612
- package/dist/src/plugin/agent-hierarchy.d.ts +0 -1
- package/dist/src/plugin/agent-hierarchy.js +0 -2
- package/dist/src/plugin/agents/browser-qa.d.ts +0 -14
- package/dist/src/plugin/agents/browser-qa.js +0 -31
- package/dist/src/plugin/agents/common.d.ts +0 -36
- package/dist/src/plugin/agents/common.js +0 -59
- package/dist/src/plugin/agents/cto.d.ts +0 -9
- package/dist/src/plugin/agents/cto.js +0 -39
- package/dist/src/plugin/agents/engineers.d.ts +0 -9
- package/dist/src/plugin/agents/engineers.js +0 -11
- package/dist/src/plugin/agents/index.d.ts +0 -5
- package/dist/src/plugin/agents/index.js +0 -5
- package/dist/src/plugin/agents/team-planner.d.ts +0 -10
- package/dist/src/plugin/agents/team-planner.js +0 -23
- package/dist/src/plugin/claude-manager.plugin.d.ts +0 -10
- package/dist/src/plugin/claude-manager.plugin.js +0 -950
- package/dist/src/plugin/service-factory.d.ts +0 -38
- package/dist/src/plugin/service-factory.js +0 -101
- package/dist/src/prompts/registry.d.ts +0 -2
- package/dist/src/prompts/registry.js +0 -210
- package/dist/src/state/file-run-state-store.d.ts +0 -14
- package/dist/src/state/file-run-state-store.js +0 -85
- package/dist/src/state/team-state-store.d.ts +0 -14
- package/dist/src/state/team-state-store.js +0 -88
- package/dist/src/state/transcript-store.d.ts +0 -15
- package/dist/src/state/transcript-store.js +0 -44
- package/dist/src/team/roster.d.ts +0 -5
- package/dist/src/team/roster.js +0 -40
- package/dist/src/types/contracts.d.ts +0 -261
- package/dist/src/types/contracts.js +0 -2
- package/dist/src/util/fs-helpers.d.ts +0 -8
- package/dist/src/util/fs-helpers.js +0 -21
- package/dist/src/util/project-context.d.ts +0 -10
- package/dist/src/util/project-context.js +0 -105
- package/dist/src/util/transcript-append.d.ts +0 -7
- package/dist/src/util/transcript-append.js +0 -29
- package/dist/state/file-run-state-store.d.ts +0 -14
- package/dist/state/file-run-state-store.js +0 -85
- package/dist/test/claude-agent-sdk-adapter.test.d.ts +0 -1
- package/dist/test/claude-agent-sdk-adapter.test.js +0 -707
- package/dist/test/claude-manager.plugin.test.d.ts +0 -1
- package/dist/test/claude-manager.plugin.test.js +0 -316
- package/dist/test/context-tracker.test.d.ts +0 -1
- package/dist/test/context-tracker.test.js +0 -130
- package/dist/test/cto-active-team.test.d.ts +0 -1
- package/dist/test/cto-active-team.test.js +0 -199
- package/dist/test/file-run-state-store.test.d.ts +0 -1
- package/dist/test/file-run-state-store.test.js +0 -82
- package/dist/test/fs-helpers.test.d.ts +0 -1
- package/dist/test/fs-helpers.test.js +0 -56
- package/dist/test/git-operations.test.d.ts +0 -1
- package/dist/test/git-operations.test.js +0 -133
- package/dist/test/persistent-manager.test.d.ts +0 -1
- package/dist/test/persistent-manager.test.js +0 -48
- package/dist/test/project-context.test.d.ts +0 -1
- package/dist/test/project-context.test.js +0 -92
- package/dist/test/prompt-registry.test.d.ts +0 -1
- package/dist/test/prompt-registry.test.js +0 -117
- package/dist/test/report-claude-event.test.d.ts +0 -1
- package/dist/test/report-claude-event.test.js +0 -304
- package/dist/test/session-controller.test.d.ts +0 -1
- package/dist/test/session-controller.test.js +0 -149
- package/dist/test/session-live-tailer.test.d.ts +0 -1
- package/dist/test/session-live-tailer.test.js +0 -313
- package/dist/test/team-orchestrator.test.d.ts +0 -1
- package/dist/test/team-orchestrator.test.js +0 -583
- package/dist/test/team-state-store.test.d.ts +0 -1
- package/dist/test/team-state-store.test.js +0 -54
- package/dist/test/tool-approval-manager.test.d.ts +0 -1
- package/dist/test/tool-approval-manager.test.js +0 -260
- package/dist/test/transcript-append.test.d.ts +0 -1
- package/dist/test/transcript-append.test.js +0 -37
- package/dist/test/transcript-store.test.d.ts +0 -1
- package/dist/test/transcript-store.test.js +0 -50
- package/dist/test/undo-propagation.test.d.ts +0 -1
- package/dist/test/undo-propagation.test.js +0 -837
- package/dist/util/project-context.d.ts +0 -10
- package/dist/util/project-context.js +0 -105
- package/dist/vitest.config.d.ts +0 -2
- package/dist/vitest.config.js +0 -11
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DiscoveredClaudeFile } from '../types/contracts.js';
|
|
2
|
-
/**
|
|
3
|
-
* Recursively discover all project-level Claude files:
|
|
4
|
-
* - every `CLAUDE.md` found anywhere in the repo tree
|
|
5
|
-
* - every file under `.claude/` recursively
|
|
6
|
-
*
|
|
7
|
-
* Returns a de-duplicated, deterministically sorted array of
|
|
8
|
-
* { relativePath, content } entries. Empty/blank files are skipped.
|
|
9
|
-
*/
|
|
10
|
-
export declare function discoverProjectClaudeFiles(cwd: string): Promise<DiscoveredClaudeFile[]>;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { readFile, readdir } from 'node:fs/promises';
|
|
2
|
-
import { join, relative } from 'node:path';
|
|
3
|
-
import { isFileNotFoundError } from './fs-helpers.js';
|
|
4
|
-
/**
|
|
5
|
-
* Recursively discover all project-level Claude files:
|
|
6
|
-
* - every `CLAUDE.md` found anywhere in the repo tree
|
|
7
|
-
* - every file under `.claude/` recursively
|
|
8
|
-
*
|
|
9
|
-
* Returns a de-duplicated, deterministically sorted array of
|
|
10
|
-
* { relativePath, content } entries. Empty/blank files are skipped.
|
|
11
|
-
*/
|
|
12
|
-
export async function discoverProjectClaudeFiles(cwd) {
|
|
13
|
-
const seen = new Set();
|
|
14
|
-
const results = [];
|
|
15
|
-
// 1. Walk the entire tree for CLAUDE.md files.
|
|
16
|
-
await walkForClaudeMd(cwd, cwd, seen, results);
|
|
17
|
-
// 2. Walk .claude/ recursively for any file.
|
|
18
|
-
await walkDotClaudeDir(cwd, seen, results);
|
|
19
|
-
// Deterministic: sort by relativePath (lexicographic).
|
|
20
|
-
results.sort((a, b) => a.relativePath < b.relativePath ? -1 : a.relativePath > b.relativePath ? 1 : 0);
|
|
21
|
-
return results;
|
|
22
|
-
}
|
|
23
|
-
// ---------------------------------------------------------------------------
|
|
24
|
-
// Internal helpers
|
|
25
|
-
// ---------------------------------------------------------------------------
|
|
26
|
-
/** Recursively walk `dir` looking for files named `CLAUDE.md`. */
|
|
27
|
-
async function walkForClaudeMd(root, dir, seen, out) {
|
|
28
|
-
let entries;
|
|
29
|
-
try {
|
|
30
|
-
entries = await readdir(dir, { withFileTypes: true });
|
|
31
|
-
}
|
|
32
|
-
catch (err) {
|
|
33
|
-
if (isFileNotFoundError(err))
|
|
34
|
-
return;
|
|
35
|
-
throw err;
|
|
36
|
-
}
|
|
37
|
-
for (const entry of entries) {
|
|
38
|
-
const fullPath = join(dir, entry.name);
|
|
39
|
-
if (entry.isDirectory()) {
|
|
40
|
-
// Skip node_modules, .git, and hidden dirs other than .claude
|
|
41
|
-
if (entry.name === 'node_modules' || entry.name === '.git')
|
|
42
|
-
continue;
|
|
43
|
-
await walkForClaudeMd(root, fullPath, seen, out);
|
|
44
|
-
}
|
|
45
|
-
else if (entry.name === 'CLAUDE.md') {
|
|
46
|
-
const rel = toForwardSlash(relative(root, fullPath));
|
|
47
|
-
if (seen.has(rel))
|
|
48
|
-
continue;
|
|
49
|
-
const content = await tryReadText(fullPath);
|
|
50
|
-
if (content !== null) {
|
|
51
|
-
seen.add(rel);
|
|
52
|
-
out.push({ relativePath: rel, content });
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
/** Recursively walk `.claude/` and collect every file. */
|
|
58
|
-
async function walkDotClaudeDir(root, seen, out) {
|
|
59
|
-
const dotClaudeDir = join(root, '.claude');
|
|
60
|
-
await walkAllFiles(root, dotClaudeDir, seen, out);
|
|
61
|
-
}
|
|
62
|
-
/** Recursively collect all files under `dir`. */
|
|
63
|
-
async function walkAllFiles(root, dir, seen, out) {
|
|
64
|
-
let entries;
|
|
65
|
-
try {
|
|
66
|
-
entries = await readdir(dir, { withFileTypes: true });
|
|
67
|
-
}
|
|
68
|
-
catch (err) {
|
|
69
|
-
if (isFileNotFoundError(err))
|
|
70
|
-
return;
|
|
71
|
-
throw err;
|
|
72
|
-
}
|
|
73
|
-
for (const entry of entries) {
|
|
74
|
-
const fullPath = join(dir, entry.name);
|
|
75
|
-
if (entry.isDirectory()) {
|
|
76
|
-
await walkAllFiles(root, fullPath, seen, out);
|
|
77
|
-
}
|
|
78
|
-
else if (entry.isFile()) {
|
|
79
|
-
const rel = toForwardSlash(relative(root, fullPath));
|
|
80
|
-
if (seen.has(rel))
|
|
81
|
-
continue;
|
|
82
|
-
const content = await tryReadText(fullPath);
|
|
83
|
-
if (content !== null) {
|
|
84
|
-
seen.add(rel);
|
|
85
|
-
out.push({ relativePath: rel, content });
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
/** Read a file as UTF-8, returning trimmed content or null if empty/missing. */
|
|
91
|
-
async function tryReadText(filePath) {
|
|
92
|
-
try {
|
|
93
|
-
const raw = await readFile(filePath, 'utf-8');
|
|
94
|
-
const trimmed = raw.trim();
|
|
95
|
-
return trimmed.length > 0 ? trimmed : null;
|
|
96
|
-
}
|
|
97
|
-
catch (err) {
|
|
98
|
-
if (isFileNotFoundError(err))
|
|
99
|
-
return null;
|
|
100
|
-
throw err;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
function toForwardSlash(p) {
|
|
104
|
-
return p.replace(/\\/g, '/');
|
|
105
|
-
}
|
package/dist/vitest.config.d.ts
DELETED
package/dist/vitest.config.js
DELETED