@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.
Files changed (123) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/manager/team-orchestrator.js +1 -1
  3. package/dist/plugin/agents/common.d.ts +2 -2
  4. package/dist/plugin/agents/common.js +5 -0
  5. package/dist/plugin/claude-manager.plugin.js +104 -0
  6. package/dist/plugin/inbox-ops.d.ts +50 -0
  7. package/dist/plugin/inbox-ops.js +166 -0
  8. package/dist/types/contracts.d.ts +18 -0
  9. package/package.json +1 -1
  10. package/dist/claude/session-live-tailer.d.ts +0 -51
  11. package/dist/claude/session-live-tailer.js +0 -269
  12. package/dist/manager/session-controller.d.ts +0 -41
  13. package/dist/manager/session-controller.js +0 -97
  14. package/dist/metadata/claude-metadata.service.d.ts +0 -12
  15. package/dist/metadata/claude-metadata.service.js +0 -38
  16. package/dist/metadata/repo-claude-config-reader.d.ts +0 -7
  17. package/dist/metadata/repo-claude-config-reader.js +0 -154
  18. package/dist/plugin/orchestrator.plugin.d.ts +0 -2
  19. package/dist/plugin/orchestrator.plugin.js +0 -116
  20. package/dist/providers/claude-code-wrapper.d.ts +0 -13
  21. package/dist/providers/claude-code-wrapper.js +0 -13
  22. package/dist/safety/bash-safety.d.ts +0 -21
  23. package/dist/safety/bash-safety.js +0 -62
  24. package/dist/src/claude/claude-agent-sdk-adapter.d.ts +0 -28
  25. package/dist/src/claude/claude-agent-sdk-adapter.js +0 -559
  26. package/dist/src/claude/claude-session.service.d.ts +0 -9
  27. package/dist/src/claude/claude-session.service.js +0 -15
  28. package/dist/src/claude/session-live-tailer.d.ts +0 -51
  29. package/dist/src/claude/session-live-tailer.js +0 -269
  30. package/dist/src/claude/tool-approval-manager.d.ts +0 -30
  31. package/dist/src/claude/tool-approval-manager.js +0 -279
  32. package/dist/src/index.d.ts +0 -5
  33. package/dist/src/index.js +0 -3
  34. package/dist/src/manager/context-tracker.d.ts +0 -32
  35. package/dist/src/manager/context-tracker.js +0 -103
  36. package/dist/src/manager/git-operations.d.ts +0 -18
  37. package/dist/src/manager/git-operations.js +0 -86
  38. package/dist/src/manager/persistent-manager.d.ts +0 -39
  39. package/dist/src/manager/persistent-manager.js +0 -44
  40. package/dist/src/manager/session-controller.d.ts +0 -41
  41. package/dist/src/manager/session-controller.js +0 -97
  42. package/dist/src/manager/team-orchestrator.d.ts +0 -81
  43. package/dist/src/manager/team-orchestrator.js +0 -612
  44. package/dist/src/plugin/agent-hierarchy.d.ts +0 -1
  45. package/dist/src/plugin/agent-hierarchy.js +0 -2
  46. package/dist/src/plugin/agents/browser-qa.d.ts +0 -14
  47. package/dist/src/plugin/agents/browser-qa.js +0 -31
  48. package/dist/src/plugin/agents/common.d.ts +0 -36
  49. package/dist/src/plugin/agents/common.js +0 -59
  50. package/dist/src/plugin/agents/cto.d.ts +0 -9
  51. package/dist/src/plugin/agents/cto.js +0 -39
  52. package/dist/src/plugin/agents/engineers.d.ts +0 -9
  53. package/dist/src/plugin/agents/engineers.js +0 -11
  54. package/dist/src/plugin/agents/index.d.ts +0 -5
  55. package/dist/src/plugin/agents/index.js +0 -5
  56. package/dist/src/plugin/agents/team-planner.d.ts +0 -10
  57. package/dist/src/plugin/agents/team-planner.js +0 -23
  58. package/dist/src/plugin/claude-manager.plugin.d.ts +0 -10
  59. package/dist/src/plugin/claude-manager.plugin.js +0 -950
  60. package/dist/src/plugin/service-factory.d.ts +0 -38
  61. package/dist/src/plugin/service-factory.js +0 -101
  62. package/dist/src/prompts/registry.d.ts +0 -2
  63. package/dist/src/prompts/registry.js +0 -210
  64. package/dist/src/state/file-run-state-store.d.ts +0 -14
  65. package/dist/src/state/file-run-state-store.js +0 -85
  66. package/dist/src/state/team-state-store.d.ts +0 -14
  67. package/dist/src/state/team-state-store.js +0 -88
  68. package/dist/src/state/transcript-store.d.ts +0 -15
  69. package/dist/src/state/transcript-store.js +0 -44
  70. package/dist/src/team/roster.d.ts +0 -5
  71. package/dist/src/team/roster.js +0 -40
  72. package/dist/src/types/contracts.d.ts +0 -261
  73. package/dist/src/types/contracts.js +0 -2
  74. package/dist/src/util/fs-helpers.d.ts +0 -8
  75. package/dist/src/util/fs-helpers.js +0 -21
  76. package/dist/src/util/project-context.d.ts +0 -10
  77. package/dist/src/util/project-context.js +0 -105
  78. package/dist/src/util/transcript-append.d.ts +0 -7
  79. package/dist/src/util/transcript-append.js +0 -29
  80. package/dist/state/file-run-state-store.d.ts +0 -14
  81. package/dist/state/file-run-state-store.js +0 -85
  82. package/dist/test/claude-agent-sdk-adapter.test.d.ts +0 -1
  83. package/dist/test/claude-agent-sdk-adapter.test.js +0 -707
  84. package/dist/test/claude-manager.plugin.test.d.ts +0 -1
  85. package/dist/test/claude-manager.plugin.test.js +0 -316
  86. package/dist/test/context-tracker.test.d.ts +0 -1
  87. package/dist/test/context-tracker.test.js +0 -130
  88. package/dist/test/cto-active-team.test.d.ts +0 -1
  89. package/dist/test/cto-active-team.test.js +0 -199
  90. package/dist/test/file-run-state-store.test.d.ts +0 -1
  91. package/dist/test/file-run-state-store.test.js +0 -82
  92. package/dist/test/fs-helpers.test.d.ts +0 -1
  93. package/dist/test/fs-helpers.test.js +0 -56
  94. package/dist/test/git-operations.test.d.ts +0 -1
  95. package/dist/test/git-operations.test.js +0 -133
  96. package/dist/test/persistent-manager.test.d.ts +0 -1
  97. package/dist/test/persistent-manager.test.js +0 -48
  98. package/dist/test/project-context.test.d.ts +0 -1
  99. package/dist/test/project-context.test.js +0 -92
  100. package/dist/test/prompt-registry.test.d.ts +0 -1
  101. package/dist/test/prompt-registry.test.js +0 -117
  102. package/dist/test/report-claude-event.test.d.ts +0 -1
  103. package/dist/test/report-claude-event.test.js +0 -304
  104. package/dist/test/session-controller.test.d.ts +0 -1
  105. package/dist/test/session-controller.test.js +0 -149
  106. package/dist/test/session-live-tailer.test.d.ts +0 -1
  107. package/dist/test/session-live-tailer.test.js +0 -313
  108. package/dist/test/team-orchestrator.test.d.ts +0 -1
  109. package/dist/test/team-orchestrator.test.js +0 -583
  110. package/dist/test/team-state-store.test.d.ts +0 -1
  111. package/dist/test/team-state-store.test.js +0 -54
  112. package/dist/test/tool-approval-manager.test.d.ts +0 -1
  113. package/dist/test/tool-approval-manager.test.js +0 -260
  114. package/dist/test/transcript-append.test.d.ts +0 -1
  115. package/dist/test/transcript-append.test.js +0 -37
  116. package/dist/test/transcript-store.test.d.ts +0 -1
  117. package/dist/test/transcript-store.test.js +0 -50
  118. package/dist/test/undo-propagation.test.d.ts +0 -1
  119. package/dist/test/undo-propagation.test.js +0 -837
  120. package/dist/util/project-context.d.ts +0 -10
  121. package/dist/util/project-context.js +0 -105
  122. package/dist/vitest.config.d.ts +0 -2
  123. 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
- }
@@ -1,2 +0,0 @@
1
- declare const _default: import("vite").UserConfig;
2
- export default _default;
@@ -1,11 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
- export default defineConfig({
3
- test: {
4
- environment: 'node',
5
- include: ['test/**/*.test.ts'],
6
- coverage: {
7
- provider: 'v8',
8
- reporter: ['text', 'lcov'],
9
- },
10
- },
11
- });