opengstack 0.13.10 → 0.14.0

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 (151) hide show
  1. package/{skills/land-and-deploy/SKILL.md → commands/autoplan.md} +0 -16
  2. package/{skills/benchmark/SKILL.md → commands/benchmark.md} +0 -17
  3. package/{skills/browse/SKILL.md → commands/browse.md} +0 -17
  4. package/{skills/ship/SKILL.md → commands/canary.md} +0 -18
  5. package/{skills/careful/SKILL.md → commands/careful.md} +0 -20
  6. package/{skills/canary/SKILL.md → commands/codex.md} +0 -17
  7. package/{skills/connect-chrome/SKILL.md → commands/connect-chrome.md} +0 -15
  8. package/commands/cso.md +72 -0
  9. package/commands/design-consultation.md +72 -0
  10. package/commands/design-review.md +72 -0
  11. package/commands/design-shotgun.md +72 -0
  12. package/commands/document-release.md +72 -0
  13. package/{skills/freeze/SKILL.md → commands/freeze.md} +0 -26
  14. package/{skills/gstack-upgrade/SKILL.md → commands/gstack-upgrade.md} +0 -14
  15. package/{skills/guard/SKILL.md → commands/guard.md} +0 -31
  16. package/commands/investigate.md +72 -0
  17. package/commands/land-and-deploy.md +72 -0
  18. package/commands/office-hours.md +72 -0
  19. package/commands/plan-ceo-review.md +72 -0
  20. package/commands/plan-design-review.md +72 -0
  21. package/commands/plan-eng-review.md +72 -0
  22. package/commands/qa-only.md +72 -0
  23. package/commands/qa.md +72 -0
  24. package/commands/retro.md +72 -0
  25. package/commands/review.md +72 -0
  26. package/{skills/setup-browser-cookies/SKILL.md → commands/setup-browser-cookies.md} +0 -14
  27. package/commands/setup-deploy.md +72 -0
  28. package/commands/ship.md +72 -0
  29. package/{skills/unfreeze/SKILL.md → commands/unfreeze.md} +0 -12
  30. package/package.json +4 -4
  31. package/scripts/install-commands.js +45 -0
  32. package/skills/autoplan/SKILL.md +0 -96
  33. package/skills/autoplan/SKILL.md.tmpl +0 -694
  34. package/skills/benchmark/SKILL.md.tmpl +0 -222
  35. package/skills/browse/SKILL.md.tmpl +0 -131
  36. package/skills/browse/bin/find-browse +0 -21
  37. package/skills/browse/bin/remote-slug +0 -14
  38. package/skills/browse/scripts/build-node-server.sh +0 -48
  39. package/skills/browse/src/activity.ts +0 -208
  40. package/skills/browse/src/browser-manager.ts +0 -959
  41. package/skills/browse/src/buffers.ts +0 -137
  42. package/skills/browse/src/bun-polyfill.cjs +0 -109
  43. package/skills/browse/src/cli.ts +0 -678
  44. package/skills/browse/src/commands.ts +0 -128
  45. package/skills/browse/src/config.ts +0 -150
  46. package/skills/browse/src/cookie-import-browser.ts +0 -625
  47. package/skills/browse/src/cookie-picker-routes.ts +0 -230
  48. package/skills/browse/src/cookie-picker-ui.ts +0 -688
  49. package/skills/browse/src/find-browse.ts +0 -61
  50. package/skills/browse/src/meta-commands.ts +0 -550
  51. package/skills/browse/src/platform.ts +0 -17
  52. package/skills/browse/src/read-commands.ts +0 -358
  53. package/skills/browse/src/server.ts +0 -1192
  54. package/skills/browse/src/sidebar-agent.ts +0 -280
  55. package/skills/browse/src/sidebar-utils.ts +0 -21
  56. package/skills/browse/src/snapshot.ts +0 -407
  57. package/skills/browse/src/url-validation.ts +0 -95
  58. package/skills/browse/src/write-commands.ts +0 -364
  59. package/skills/browse/test/activity.test.ts +0 -120
  60. package/skills/browse/test/adversarial-security.test.ts +0 -32
  61. package/skills/browse/test/browser-manager-unit.test.ts +0 -17
  62. package/skills/browse/test/bun-polyfill.test.ts +0 -72
  63. package/skills/browse/test/commands.test.ts +0 -2075
  64. package/skills/browse/test/compare-board.test.ts +0 -342
  65. package/skills/browse/test/config.test.ts +0 -316
  66. package/skills/browse/test/cookie-import-browser.test.ts +0 -519
  67. package/skills/browse/test/cookie-picker-routes.test.ts +0 -260
  68. package/skills/browse/test/file-drop.test.ts +0 -271
  69. package/skills/browse/test/find-browse.test.ts +0 -50
  70. package/skills/browse/test/findport.test.ts +0 -191
  71. package/skills/browse/test/fixtures/basic.html +0 -33
  72. package/skills/browse/test/fixtures/cursor-interactive.html +0 -22
  73. package/skills/browse/test/fixtures/dialog.html +0 -15
  74. package/skills/browse/test/fixtures/empty.html +0 -2
  75. package/skills/browse/test/fixtures/forms.html +0 -55
  76. package/skills/browse/test/fixtures/iframe.html +0 -30
  77. package/skills/browse/test/fixtures/network-idle.html +0 -30
  78. package/skills/browse/test/fixtures/qa-eval-checkout.html +0 -108
  79. package/skills/browse/test/fixtures/qa-eval-spa.html +0 -98
  80. package/skills/browse/test/fixtures/qa-eval.html +0 -51
  81. package/skills/browse/test/fixtures/responsive.html +0 -49
  82. package/skills/browse/test/fixtures/snapshot.html +0 -55
  83. package/skills/browse/test/fixtures/spa.html +0 -24
  84. package/skills/browse/test/fixtures/states.html +0 -17
  85. package/skills/browse/test/fixtures/upload.html +0 -25
  86. package/skills/browse/test/gstack-config.test.ts +0 -138
  87. package/skills/browse/test/gstack-update-check.test.ts +0 -514
  88. package/skills/browse/test/handoff.test.ts +0 -235
  89. package/skills/browse/test/path-validation.test.ts +0 -91
  90. package/skills/browse/test/platform.test.ts +0 -37
  91. package/skills/browse/test/server-auth.test.ts +0 -65
  92. package/skills/browse/test/sidebar-agent-roundtrip.test.ts +0 -226
  93. package/skills/browse/test/sidebar-agent.test.ts +0 -199
  94. package/skills/browse/test/sidebar-integration.test.ts +0 -320
  95. package/skills/browse/test/sidebar-unit.test.ts +0 -96
  96. package/skills/browse/test/snapshot.test.ts +0 -467
  97. package/skills/browse/test/state-ttl.test.ts +0 -35
  98. package/skills/browse/test/test-server.ts +0 -57
  99. package/skills/browse/test/url-validation.test.ts +0 -72
  100. package/skills/browse/test/watch.test.ts +0 -129
  101. package/skills/canary/SKILL.md.tmpl +0 -212
  102. package/skills/careful/SKILL.md.tmpl +0 -56
  103. package/skills/careful/bin/check-careful.sh +0 -112
  104. package/skills/codex/SKILL.md +0 -90
  105. package/skills/codex/SKILL.md.tmpl +0 -417
  106. package/skills/connect-chrome/SKILL.md.tmpl +0 -195
  107. package/skills/cso/ACKNOWLEDGEMENTS.md +0 -14
  108. package/skills/cso/SKILL.md +0 -93
  109. package/skills/cso/SKILL.md.tmpl +0 -606
  110. package/skills/design-consultation/SKILL.md +0 -94
  111. package/skills/design-consultation/SKILL.md.tmpl +0 -415
  112. package/skills/design-review/SKILL.md +0 -94
  113. package/skills/design-review/SKILL.md.tmpl +0 -290
  114. package/skills/design-shotgun/SKILL.md +0 -91
  115. package/skills/design-shotgun/SKILL.md.tmpl +0 -285
  116. package/skills/document-release/SKILL.md +0 -91
  117. package/skills/document-release/SKILL.md.tmpl +0 -359
  118. package/skills/freeze/SKILL.md.tmpl +0 -77
  119. package/skills/freeze/bin/check-freeze.sh +0 -79
  120. package/skills/gstack-upgrade/SKILL.md.tmpl +0 -222
  121. package/skills/guard/SKILL.md.tmpl +0 -77
  122. package/skills/investigate/SKILL.md +0 -105
  123. package/skills/investigate/SKILL.md.tmpl +0 -194
  124. package/skills/land-and-deploy/SKILL.md.tmpl +0 -881
  125. package/skills/office-hours/SKILL.md +0 -96
  126. package/skills/office-hours/SKILL.md.tmpl +0 -645
  127. package/skills/plan-ceo-review/SKILL.md +0 -94
  128. package/skills/plan-ceo-review/SKILL.md.tmpl +0 -811
  129. package/skills/plan-design-review/SKILL.md +0 -92
  130. package/skills/plan-design-review/SKILL.md.tmpl +0 -446
  131. package/skills/plan-eng-review/SKILL.md +0 -93
  132. package/skills/plan-eng-review/SKILL.md.tmpl +0 -303
  133. package/skills/qa/SKILL.md +0 -95
  134. package/skills/qa/SKILL.md.tmpl +0 -316
  135. package/skills/qa/references/issue-taxonomy.md +0 -85
  136. package/skills/qa/templates/qa-report-template.md +0 -126
  137. package/skills/qa-only/SKILL.md +0 -89
  138. package/skills/qa-only/SKILL.md.tmpl +0 -101
  139. package/skills/retro/SKILL.md +0 -89
  140. package/skills/retro/SKILL.md.tmpl +0 -820
  141. package/skills/review/SKILL.md +0 -92
  142. package/skills/review/SKILL.md.tmpl +0 -281
  143. package/skills/review/TODOS-format.md +0 -62
  144. package/skills/review/checklist.md +0 -220
  145. package/skills/review/design-checklist.md +0 -132
  146. package/skills/review/greptile-triage.md +0 -220
  147. package/skills/setup-browser-cookies/SKILL.md.tmpl +0 -81
  148. package/skills/setup-deploy/SKILL.md +0 -92
  149. package/skills/setup-deploy/SKILL.md.tmpl +0 -215
  150. package/skills/ship/SKILL.md.tmpl +0 -636
  151. package/skills/unfreeze/SKILL.md.tmpl +0 -36
@@ -1,137 +0,0 @@
1
- /**
2
- * Shared buffers and types — extracted to break circular dependency
3
- * between server.ts and browser-manager.ts
4
- *
5
- * CircularBuffer<T>: O(1) insert ring buffer with fixed capacity.
6
- *
7
- * ┌───┬───┬───┬───┬───┬───┐
8
- * │ 3 │ 4 │ 5 │ │ 1 │ 2 │ capacity=6, head=4, size=5
9
- * └───┴───┴───┴───┴─▲─┴───┘
10
- * │
11
- * head (oldest entry)
12
- *
13
- * push() writes at (head+size) % capacity, O(1)
14
- * toArray() returns entries in insertion order, O(n)
15
- * totalAdded keeps incrementing past capacity (flush cursor)
16
- */
17
-
18
- // ─── CircularBuffer ─────────────────────────────────────────
19
-
20
- export class CircularBuffer<T> {
21
- private buffer: (T | undefined)[];
22
- private head: number = 0;
23
- private _size: number = 0;
24
- private _totalAdded: number = 0;
25
- readonly capacity: number;
26
-
27
- constructor(capacity: number) {
28
- this.capacity = capacity;
29
- this.buffer = new Array(capacity);
30
- }
31
-
32
- push(entry: T): void {
33
- const index = (this.head + this._size) % this.capacity;
34
- this.buffer[index] = entry;
35
- if (this._size < this.capacity) {
36
- this._size++;
37
- } else {
38
- // Buffer full — advance head (overwrites oldest)
39
- this.head = (this.head + 1) % this.capacity;
40
- }
41
- this._totalAdded++;
42
- }
43
-
44
- /** Return entries in insertion order (oldest first) */
45
- toArray(): T[] {
46
- const result: T[] = [];
47
- for (let i = 0; i < this._size; i++) {
48
- result.push(this.buffer[(this.head + i) % this.capacity] as T);
49
- }
50
- return result;
51
- }
52
-
53
- /** Return the last N entries (most recent first → reversed to oldest first) */
54
- last(n: number): T[] {
55
- const count = Math.min(n, this._size);
56
- const result: T[] = [];
57
- const start = (this.head + this._size - count) % this.capacity;
58
- for (let i = 0; i < count; i++) {
59
- result.push(this.buffer[(start + i) % this.capacity] as T);
60
- }
61
- return result;
62
- }
63
-
64
- get length(): number {
65
- return this._size;
66
- }
67
-
68
- get totalAdded(): number {
69
- return this._totalAdded;
70
- }
71
-
72
- clear(): void {
73
- this.head = 0;
74
- this._size = 0;
75
- // Don't reset totalAdded — flush cursor depends on it
76
- }
77
-
78
- /** Get entry by index (0 = oldest) — used by network response matching */
79
- get(index: number): T | undefined {
80
- if (index < 0 || index >= this._size) return undefined;
81
- return this.buffer[(this.head + index) % this.capacity];
82
- }
83
-
84
- /** Set entry by index (0 = oldest) — used by network response matching */
85
- set(index: number, entry: T): void {
86
- if (index < 0 || index >= this._size) return;
87
- this.buffer[(this.head + index) % this.capacity] = entry;
88
- }
89
- }
90
-
91
- // ─── Entry Types ────────────────────────────────────────────
92
-
93
- export interface LogEntry {
94
- timestamp: number;
95
- level: string;
96
- text: string;
97
- }
98
-
99
- export interface NetworkEntry {
100
- timestamp: number;
101
- method: string;
102
- url: string;
103
- status?: number;
104
- duration?: number;
105
- size?: number;
106
- }
107
-
108
- export interface DialogEntry {
109
- timestamp: number;
110
- type: string; // 'alert' | 'confirm' | 'prompt' | 'beforeunload'
111
- message: string;
112
- defaultValue?: string;
113
- action: string; // 'accepted' | 'dismissed'
114
- response?: string; // text provided for prompt
115
- }
116
-
117
- // ─── Buffer Instances ───────────────────────────────────────
118
-
119
- const HIGH_WATER_MARK = 50_000;
120
-
121
- export const consoleBuffer = new CircularBuffer<LogEntry>(HIGH_WATER_MARK);
122
- export const networkBuffer = new CircularBuffer<NetworkEntry>(HIGH_WATER_MARK);
123
- export const dialogBuffer = new CircularBuffer<DialogEntry>(HIGH_WATER_MARK);
124
-
125
- // ─── Convenience add functions ──────────────────────────────
126
-
127
- export function addConsoleEntry(entry: LogEntry) {
128
- consoleBuffer.push(entry);
129
- }
130
-
131
- export function addNetworkEntry(entry: NetworkEntry) {
132
- networkBuffer.push(entry);
133
- }
134
-
135
- export function addDialogEntry(entry: DialogEntry) {
136
- dialogBuffer.push(entry);
137
- }
@@ -1,109 +0,0 @@
1
- /**
2
- * Bun API polyfill for Node.js — Windows compatibility layer.
3
- *
4
- * On Windows, Bun can't launch or connect to Playwright's Chromium
5
- * (oven-sh/bun#4253, #9911). The browse server falls back to running
6
- * under Node.js with this polyfill providing Bun API equivalents.
7
- *
8
- * Loaded via --require before the transpiled server bundle.
9
- */
10
-
11
- 'use strict';
12
-
13
- const http = require('http');
14
- const { spawnSync, spawn } = require('child_process');
15
-
16
- globalThis.Bun = {
17
- serve(options) {
18
- const { port, hostname = '127.0.0.1', fetch } = options;
19
-
20
- const server = http.createServer(async (nodeReq, nodeRes) => {
21
- try {
22
- const url = `http://${hostname}:${port}${nodeReq.url}`;
23
- const headers = new Headers();
24
- for (const [key, val] of Object.entries(nodeReq.headers)) {
25
- if (val) headers.set(key, Array.isArray(val) ? val[0] : val);
26
- }
27
-
28
- let body = null;
29
- if (nodeReq.method !== 'GET' && nodeReq.method !== 'HEAD') {
30
- body = await new Promise((resolve) => {
31
- const chunks = [];
32
- nodeReq.on('data', (chunk) => chunks.push(chunk));
33
- nodeReq.on('end', () => resolve(Buffer.concat(chunks)));
34
- });
35
- }
36
-
37
- const webReq = new Request(url, {
38
- method: nodeReq.method,
39
- headers,
40
- body,
41
- });
42
-
43
- const webRes = await fetch(webReq);
44
-
45
- nodeRes.statusCode = webRes.status;
46
- webRes.headers.forEach((val, key) => {
47
- nodeRes.setHeader(key, val);
48
- });
49
-
50
- const resBody = await webRes.arrayBuffer();
51
- nodeRes.end(Buffer.from(resBody));
52
- } catch (err) {
53
- nodeRes.statusCode = 500;
54
- nodeRes.end(JSON.stringify({ error: err.message }));
55
- }
56
- });
57
-
58
- server.listen(port, hostname);
59
-
60
- return {
61
- stop() { server.close(); },
62
- port,
63
- hostname,
64
- };
65
- },
66
-
67
- spawnSync(cmd, options = {}) {
68
- const [command, ...args] = cmd;
69
- const result = spawnSync(command, args, {
70
- stdio: [
71
- options.stdin || 'pipe',
72
- options.stdout === 'pipe' ? 'pipe' : 'ignore',
73
- options.stderr === 'pipe' ? 'pipe' : 'ignore',
74
- ],
75
- timeout: options.timeout,
76
- env: options.env,
77
- cwd: options.cwd,
78
- });
79
-
80
- return {
81
- exitCode: result.status,
82
- stdout: result.stdout || Buffer.from(''),
83
- stderr: result.stderr || Buffer.from(''),
84
- };
85
- },
86
-
87
- spawn(cmd, options = {}) {
88
- const [command, ...args] = cmd;
89
- const stdio = options.stdio || ['pipe', 'pipe', 'pipe'];
90
- const proc = spawn(command, args, {
91
- stdio,
92
- env: options.env,
93
- cwd: options.cwd,
94
- });
95
-
96
- return {
97
- pid: proc.pid,
98
- stdout: proc.stdout,
99
- stderr: proc.stderr,
100
- stdin: proc.stdin,
101
- unref() { proc.unref(); },
102
- kill(signal) { proc.kill(signal); },
103
- };
104
- },
105
-
106
- sleep(ms) {
107
- return new Promise((resolve) => setTimeout(resolve, ms));
108
- },
109
- };