@nntoan/gstack 0.0.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 (152) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +33 -0
  3. package/bin/gstack.js +2 -0
  4. package/dist/agents/builder.d.ts +2 -0
  5. package/dist/agents/ceo.d.ts +2 -0
  6. package/dist/agents/debugger.d.ts +2 -0
  7. package/dist/agents/designer.d.ts +2 -0
  8. package/dist/agents/doc-engineer.d.ts +2 -0
  9. package/dist/agents/eng-manager.d.ts +2 -0
  10. package/dist/agents/index.d.ts +21 -0
  11. package/dist/agents/qa-lead.d.ts +2 -0
  12. package/dist/agents/release-engineer.d.ts +2 -0
  13. package/dist/agents/retro-lead.d.ts +2 -0
  14. package/dist/agents/reviewer.d.ts +2 -0
  15. package/dist/agents/safety-guard.d.ts +2 -0
  16. package/dist/agents/session-manager.d.ts +2 -0
  17. package/dist/agents/types.d.ts +7 -0
  18. package/dist/agents/upgrader.d.ts +2 -0
  19. package/dist/cli/cli-program.d.ts +1 -0
  20. package/dist/cli/doctor/checks/config.d.ts +2 -0
  21. package/dist/cli/doctor/checks/index.d.ts +1 -0
  22. package/dist/cli/doctor/checks/mcp.d.ts +7 -0
  23. package/dist/cli/doctor/checks/system.d.ts +2 -0
  24. package/dist/cli/doctor/checks/tools.d.ts +2 -0
  25. package/dist/cli/doctor/index.d.ts +2 -0
  26. package/dist/cli/doctor/runner.d.ts +12 -0
  27. package/dist/cli/doctor/types.d.ts +11 -0
  28. package/dist/cli/index.d.ts +2 -0
  29. package/dist/cli/install.d.ts +10 -0
  30. package/dist/cli.js +17011 -0
  31. package/dist/config/merge-configs.d.ts +2 -0
  32. package/dist/config/schema/agent-schema.d.ts +13 -0
  33. package/dist/config/schema/backlog-schema.d.ts +7 -0
  34. package/dist/config/schema/browser-schema.d.ts +6 -0
  35. package/dist/config/schema/constants.d.ts +1 -0
  36. package/dist/config/schema/index.d.ts +7 -0
  37. package/dist/config/schema/main.d.ts +150 -0
  38. package/dist/config/schema/mcp-schema.d.ts +51 -0
  39. package/dist/config/schema/telemetry-schema.d.ts +9 -0
  40. package/dist/create-hooks.d.ts +9 -0
  41. package/dist/create-managers.d.ts +17 -0
  42. package/dist/create-skills-and-agents.d.ts +8 -0
  43. package/dist/create-tools.d.ts +9 -0
  44. package/dist/features/analytics/eureka-tracker.d.ts +2 -0
  45. package/dist/features/analytics/index.d.ts +12 -0
  46. package/dist/features/analytics/skill-usage-tracker.d.ts +2 -0
  47. package/dist/features/analytics/sprint-logger.d.ts +2 -0
  48. package/dist/features/analytics/types.d.ts +38 -0
  49. package/dist/features/analytics/writer.d.ts +2 -0
  50. package/dist/features/browser-daemon/browser-manager.d.ts +99 -0
  51. package/dist/features/browser-daemon/buffers.d.ts +43 -0
  52. package/dist/features/browser-daemon/cli.d.ts +12 -0
  53. package/dist/features/browser-daemon/commands.d.ts +13 -0
  54. package/dist/features/browser-daemon/config.d.ts +6 -0
  55. package/dist/features/browser-daemon/cookie-import-browser.d.ts +70 -0
  56. package/dist/features/browser-daemon/cookie-picker-routes.d.ts +16 -0
  57. package/dist/features/browser-daemon/cookie-picker-ui.d.ts +9 -0
  58. package/dist/features/browser-daemon/find-browse.d.ts +7 -0
  59. package/dist/features/browser-daemon/index.d.ts +17 -0
  60. package/dist/features/browser-daemon/meta-commands.d.ts +6 -0
  61. package/dist/features/browser-daemon/platform.d.ts +3 -0
  62. package/dist/features/browser-daemon/read-commands.d.ts +11 -0
  63. package/dist/features/browser-daemon/server.d.ts +27 -0
  64. package/dist/features/browser-daemon/snapshot.d.ts +36 -0
  65. package/dist/features/browser-daemon/types.d.ts +31 -0
  66. package/dist/features/browser-daemon/url-validation.d.ts +5 -0
  67. package/dist/features/browser-daemon/write-commands.d.ts +8 -0
  68. package/dist/features/builtin-skills/index.d.ts +3 -0
  69. package/dist/features/builtin-skills/skills/benchmark.d.ts +2 -0
  70. package/dist/features/builtin-skills/skills/browse.d.ts +2 -0
  71. package/dist/features/builtin-skills/skills/canary.d.ts +2 -0
  72. package/dist/features/builtin-skills/skills/careful.d.ts +2 -0
  73. package/dist/features/builtin-skills/skills/codex.d.ts +2 -0
  74. package/dist/features/builtin-skills/skills/design-consultation.d.ts +2 -0
  75. package/dist/features/builtin-skills/skills/design-review.d.ts +2 -0
  76. package/dist/features/builtin-skills/skills/document-release.d.ts +2 -0
  77. package/dist/features/builtin-skills/skills/freeze.d.ts +2 -0
  78. package/dist/features/builtin-skills/skills/guard.d.ts +2 -0
  79. package/dist/features/builtin-skills/skills/index.d.ts +25 -0
  80. package/dist/features/builtin-skills/skills/investigate.d.ts +2 -0
  81. package/dist/features/builtin-skills/skills/land-and-deploy.d.ts +2 -0
  82. package/dist/features/builtin-skills/skills/office-hours.d.ts +2 -0
  83. package/dist/features/builtin-skills/skills/plan-ceo-review.d.ts +2 -0
  84. package/dist/features/builtin-skills/skills/plan-design-review.d.ts +2 -0
  85. package/dist/features/builtin-skills/skills/plan-eng-review.d.ts +2 -0
  86. package/dist/features/builtin-skills/skills/qa-only.d.ts +2 -0
  87. package/dist/features/builtin-skills/skills/qa.d.ts +2 -0
  88. package/dist/features/builtin-skills/skills/retro.d.ts +2 -0
  89. package/dist/features/builtin-skills/skills/review.d.ts +2 -0
  90. package/dist/features/builtin-skills/skills/setup-browser-cookies.d.ts +2 -0
  91. package/dist/features/builtin-skills/skills/setup-deploy.d.ts +2 -0
  92. package/dist/features/builtin-skills/skills/ship.d.ts +2 -0
  93. package/dist/features/builtin-skills/skills/unfreeze.d.ts +2 -0
  94. package/dist/features/builtin-skills/skills/upgrade.d.ts +2 -0
  95. package/dist/features/builtin-skills/skills.d.ts +3 -0
  96. package/dist/features/builtin-skills/types.d.ts +4 -0
  97. package/dist/features/orchestrator/delegation-engine.d.ts +19 -0
  98. package/dist/features/orchestrator/index.d.ts +21 -0
  99. package/dist/features/orchestrator/intent-classifier.d.ts +3 -0
  100. package/dist/features/orchestrator/intent-patterns.d.ts +4 -0
  101. package/dist/features/orchestrator/types.d.ts +22 -0
  102. package/dist/features/skill-adapter/content-transformer.d.ts +12 -0
  103. package/dist/features/skill-adapter/index.d.ts +4 -0
  104. package/dist/features/skill-adapter/placeholder-content.d.ts +5 -0
  105. package/dist/features/skill-adapter/template-resolver.d.ts +14 -0
  106. package/dist/features/skill-mcp-manager/cleanup.d.ts +4 -0
  107. package/dist/features/skill-mcp-manager/connection.d.ts +4 -0
  108. package/dist/features/skill-mcp-manager/index.d.ts +2 -0
  109. package/dist/features/skill-mcp-manager/manager.d.ts +19 -0
  110. package/dist/features/skill-mcp-manager/types.d.ts +33 -0
  111. package/dist/features/sprint-backlog/backlog-client.d.ts +18 -0
  112. package/dist/features/sprint-backlog/build-status-updater.d.ts +8 -0
  113. package/dist/features/sprint-backlog/graceful-degradation.d.ts +1 -0
  114. package/dist/features/sprint-backlog/index.d.ts +21 -0
  115. package/dist/features/sprint-backlog/ship-readiness-checker.d.ts +10 -0
  116. package/dist/features/sprint-backlog/think-plan-creator.d.ts +6 -0
  117. package/dist/features/sprint-backlog/types.d.ts +23 -0
  118. package/dist/features/workspace-state/boulder-storage.d.ts +16 -0
  119. package/dist/features/workspace-state/constants.d.ts +12 -0
  120. package/dist/features/workspace-state/ensure-workspace.d.ts +2 -0
  121. package/dist/features/workspace-state/index.d.ts +27 -0
  122. package/dist/features/workspace-state/notepad-manager.d.ts +6 -0
  123. package/dist/features/workspace-state/plan-progress.d.ts +4 -0
  124. package/dist/features/workspace-state/review-dashboard.d.ts +11 -0
  125. package/dist/features/workspace-state/session-tracker.d.ts +8 -0
  126. package/dist/features/workspace-state/types.d.ts +38 -0
  127. package/dist/index.d.ts +3 -0
  128. package/dist/index.js +39359 -0
  129. package/dist/mcp/backlog-md.d.ts +2 -0
  130. package/dist/mcp/context7.d.ts +2 -0
  131. package/dist/mcp/contexthub.d.ts +2 -0
  132. package/dist/mcp/grep-app.d.ts +2 -0
  133. package/dist/mcp/index.d.ts +5 -0
  134. package/dist/mcp/types.d.ts +25 -0
  135. package/dist/mcp/websearch.d.ts +3 -0
  136. package/dist/plugin-config.d.ts +4 -0
  137. package/dist/plugin-handlers/config-handler.d.ts +10 -0
  138. package/dist/plugin-handlers/index.d.ts +3 -0
  139. package/dist/plugin-handlers/mcp-config-handler.d.ts +7 -0
  140. package/dist/plugin-interface.d.ts +18 -0
  141. package/dist/shared/deep-merge.d.ts +2 -0
  142. package/dist/shared/index.d.ts +3 -0
  143. package/dist/shared/logger.d.ts +2 -0
  144. package/dist/shared/path-helpers.d.ts +17 -0
  145. package/dist/types/agent.d.ts +12 -0
  146. package/dist/types/config.d.ts +39 -0
  147. package/dist/types/mcp.d.ts +11 -0
  148. package/dist/types/orchestrator.d.ts +30 -0
  149. package/dist/types/skill.d.ts +20 -0
  150. package/dist/types.d.ts +5 -0
  151. package/package.json +96 -0
  152. package/schemas/config.schema.json +189 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 zenobi.us
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # gstack-opencode
2
+
3
+ Use Garry Tan's exact OpenCode setup: 15 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
4
+
5
+ > A Bun module created from the [bun-module](https://github.com/zenobi-us/bun-module) template
6
+
7
+ ## Usage
8
+
9
+ <!-- Example usage code goes here -->
10
+
11
+ ## Installation
12
+
13
+ <!-- Installation instructions go here -->
14
+
15
+ ## Development
16
+
17
+ - `mise run build` - Build the module
18
+ - `mise run test` - Run tests
19
+ - `mise run lint` - Lint code
20
+ - `mise run lint:fix` - Fix linting issues
21
+ - `mise run format` - Format code with Prettier
22
+
23
+ ## Release
24
+
25
+ See the [RELEASE.md](RELEASE.md) file for instructions on how to release a new version of the module.
26
+
27
+ ## Contributing
28
+
29
+ Contributions are welcome! Please file issues or submit pull requests on the GitHub repository.
30
+
31
+ ## License
32
+
33
+ See the [LICENSE](LICENSE) file for details.
package/bin/gstack.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import('../dist/cli/index.js');
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const builderAgent: GstackAgent;
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const ceoAgent: GstackAgent;
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const debuggerAgent: GstackAgent;
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const designerAgent: GstackAgent;
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const docEngineerAgent: GstackAgent;
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const engManagerAgent: GstackAgent;
@@ -0,0 +1,21 @@
1
+ import type { GstackAgent, AgentRole, SprintPhase } from '../types/agent.ts';
2
+ import type { CreateAgentsOptions } from './types.ts';
3
+ import { ceoAgent } from './ceo.ts';
4
+ import { engManagerAgent } from './eng-manager.ts';
5
+ import { designerAgent } from './designer.ts';
6
+ import { builderAgent } from './builder.ts';
7
+ import { reviewerAgent } from './reviewer.ts';
8
+ import { debuggerAgent } from './debugger.ts';
9
+ import { qaLeadAgent } from './qa-lead.ts';
10
+ import { releaseEngineerAgent } from './release-engineer.ts';
11
+ import { docEngineerAgent } from './doc-engineer.ts';
12
+ import { retroLeadAgent } from './retro-lead.ts';
13
+ import { safetyGuardAgent } from './safety-guard.ts';
14
+ import { upgraderAgent } from './upgrader.ts';
15
+ import { sessionManagerAgent } from './session-manager.ts';
16
+ export type { GstackAgent, AgentRole, SprintPhase };
17
+ export type { CreateAgentsOptions };
18
+ export { ceoAgent, engManagerAgent, designerAgent, builderAgent, reviewerAgent, debuggerAgent, qaLeadAgent, releaseEngineerAgent, docEngineerAgent, retroLeadAgent, safetyGuardAgent, upgraderAgent, sessionManagerAgent, };
19
+ export declare function createGstackAgents(options?: CreateAgentsOptions): GstackAgent[];
20
+ export declare function getAgentByRole(role: AgentRole): GstackAgent | undefined;
21
+ export declare function getAgentsByPhase(phase: SprintPhase): GstackAgent[];
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const qaLeadAgent: GstackAgent;
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const releaseEngineerAgent: GstackAgent;
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const retroLeadAgent: GstackAgent;
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const reviewerAgent: GstackAgent;
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const safetyGuardAgent: GstackAgent;
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const sessionManagerAgent: GstackAgent;
@@ -0,0 +1,7 @@
1
+ import type { GstackAgent, AgentRole, SprintPhase } from '../types/agent.ts';
2
+ import type { OrchestrationMode } from '../types/config.ts';
3
+ export type { GstackAgent, AgentRole, SprintPhase };
4
+ export interface CreateAgentsOptions {
5
+ disabledAgents?: Set<string>;
6
+ orchestrationMode?: OrchestrationMode;
7
+ }
@@ -0,0 +1,2 @@
1
+ import type { GstackAgent } from '../types/agent.ts';
2
+ export declare const upgraderAgent: GstackAgent;
@@ -0,0 +1 @@
1
+ export declare function runCli(): void;
@@ -0,0 +1,2 @@
1
+ import type { DoctorCheck } from '../types.ts';
2
+ export declare const configChecks: DoctorCheck[];
@@ -0,0 +1 @@
1
+ export declare const doctorChecks: import("../types.ts").DoctorCheck[];
@@ -0,0 +1,7 @@
1
+ import type { DoctorCheck, DoctorResult } from '../types.ts';
2
+ interface McpCheckEnv {
3
+ which: (command: string) => string | null;
4
+ }
5
+ declare function runBacklogCliCheckWithEnv(env: McpCheckEnv): Promise<DoctorResult>;
6
+ export declare const mcpChecks: DoctorCheck[];
7
+ export { runBacklogCliCheckWithEnv };
@@ -0,0 +1,2 @@
1
+ import type { DoctorCheck } from '../types.ts';
2
+ export declare const systemChecks: DoctorCheck[];
@@ -0,0 +1,2 @@
1
+ import type { DoctorCheck } from '../types.ts';
2
+ export declare const toolChecks: DoctorCheck[];
@@ -0,0 +1,2 @@
1
+ export { runDoctor } from './runner.ts';
2
+ export type { DoctorCheck, DoctorResult, DoctorCategory } from './types.ts';
@@ -0,0 +1,12 @@
1
+ import type { DoctorCheck } from './types.ts';
2
+ interface RunDoctorOptions {
3
+ checks?: DoctorCheck[];
4
+ stdout?: {
5
+ write: (chunk: string) => unknown;
6
+ };
7
+ stderr?: {
8
+ write: (chunk: string) => unknown;
9
+ };
10
+ }
11
+ export declare function runDoctor(options?: RunDoctorOptions): Promise<void>;
12
+ export {};
@@ -0,0 +1,11 @@
1
+ export type DoctorCategory = 'system' | 'config' | 'tools' | 'mcp';
2
+ export interface DoctorResult {
3
+ status: 'pass' | 'warn' | 'fail';
4
+ message: string;
5
+ detail?: string;
6
+ }
7
+ export interface DoctorCheck {
8
+ name: string;
9
+ category: DoctorCategory;
10
+ run: () => Promise<DoctorResult>;
11
+ }
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bun
2
+ export {};
@@ -0,0 +1,10 @@
1
+ interface InstallOptions {
2
+ cwd: string;
3
+ homeDir: string;
4
+ stdout: {
5
+ write: (chunk: string) => unknown;
6
+ };
7
+ }
8
+ export declare function runInstallWithOptions(options: InstallOptions): Promise<void>;
9
+ export declare function runInstall(): Promise<void>;
10
+ export {};