opengstack 0.13.9 → 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 (152) 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/scripts/install-skills.js +4 -7
  33. package/skills/autoplan/SKILL.md +0 -96
  34. package/skills/autoplan/SKILL.md.tmpl +0 -694
  35. package/skills/benchmark/SKILL.md.tmpl +0 -222
  36. package/skills/browse/SKILL.md.tmpl +0 -131
  37. package/skills/browse/bin/find-browse +0 -21
  38. package/skills/browse/bin/remote-slug +0 -14
  39. package/skills/browse/scripts/build-node-server.sh +0 -48
  40. package/skills/browse/src/activity.ts +0 -208
  41. package/skills/browse/src/browser-manager.ts +0 -959
  42. package/skills/browse/src/buffers.ts +0 -137
  43. package/skills/browse/src/bun-polyfill.cjs +0 -109
  44. package/skills/browse/src/cli.ts +0 -678
  45. package/skills/browse/src/commands.ts +0 -128
  46. package/skills/browse/src/config.ts +0 -150
  47. package/skills/browse/src/cookie-import-browser.ts +0 -625
  48. package/skills/browse/src/cookie-picker-routes.ts +0 -230
  49. package/skills/browse/src/cookie-picker-ui.ts +0 -688
  50. package/skills/browse/src/find-browse.ts +0 -61
  51. package/skills/browse/src/meta-commands.ts +0 -550
  52. package/skills/browse/src/platform.ts +0 -17
  53. package/skills/browse/src/read-commands.ts +0 -358
  54. package/skills/browse/src/server.ts +0 -1192
  55. package/skills/browse/src/sidebar-agent.ts +0 -280
  56. package/skills/browse/src/sidebar-utils.ts +0 -21
  57. package/skills/browse/src/snapshot.ts +0 -407
  58. package/skills/browse/src/url-validation.ts +0 -95
  59. package/skills/browse/src/write-commands.ts +0 -364
  60. package/skills/browse/test/activity.test.ts +0 -120
  61. package/skills/browse/test/adversarial-security.test.ts +0 -32
  62. package/skills/browse/test/browser-manager-unit.test.ts +0 -17
  63. package/skills/browse/test/bun-polyfill.test.ts +0 -72
  64. package/skills/browse/test/commands.test.ts +0 -2075
  65. package/skills/browse/test/compare-board.test.ts +0 -342
  66. package/skills/browse/test/config.test.ts +0 -316
  67. package/skills/browse/test/cookie-import-browser.test.ts +0 -519
  68. package/skills/browse/test/cookie-picker-routes.test.ts +0 -260
  69. package/skills/browse/test/file-drop.test.ts +0 -271
  70. package/skills/browse/test/find-browse.test.ts +0 -50
  71. package/skills/browse/test/findport.test.ts +0 -191
  72. package/skills/browse/test/fixtures/basic.html +0 -33
  73. package/skills/browse/test/fixtures/cursor-interactive.html +0 -22
  74. package/skills/browse/test/fixtures/dialog.html +0 -15
  75. package/skills/browse/test/fixtures/empty.html +0 -2
  76. package/skills/browse/test/fixtures/forms.html +0 -55
  77. package/skills/browse/test/fixtures/iframe.html +0 -30
  78. package/skills/browse/test/fixtures/network-idle.html +0 -30
  79. package/skills/browse/test/fixtures/qa-eval-checkout.html +0 -108
  80. package/skills/browse/test/fixtures/qa-eval-spa.html +0 -98
  81. package/skills/browse/test/fixtures/qa-eval.html +0 -51
  82. package/skills/browse/test/fixtures/responsive.html +0 -49
  83. package/skills/browse/test/fixtures/snapshot.html +0 -55
  84. package/skills/browse/test/fixtures/spa.html +0 -24
  85. package/skills/browse/test/fixtures/states.html +0 -17
  86. package/skills/browse/test/fixtures/upload.html +0 -25
  87. package/skills/browse/test/gstack-config.test.ts +0 -138
  88. package/skills/browse/test/gstack-update-check.test.ts +0 -514
  89. package/skills/browse/test/handoff.test.ts +0 -235
  90. package/skills/browse/test/path-validation.test.ts +0 -91
  91. package/skills/browse/test/platform.test.ts +0 -37
  92. package/skills/browse/test/server-auth.test.ts +0 -65
  93. package/skills/browse/test/sidebar-agent-roundtrip.test.ts +0 -226
  94. package/skills/browse/test/sidebar-agent.test.ts +0 -199
  95. package/skills/browse/test/sidebar-integration.test.ts +0 -320
  96. package/skills/browse/test/sidebar-unit.test.ts +0 -96
  97. package/skills/browse/test/snapshot.test.ts +0 -467
  98. package/skills/browse/test/state-ttl.test.ts +0 -35
  99. package/skills/browse/test/test-server.ts +0 -57
  100. package/skills/browse/test/url-validation.test.ts +0 -72
  101. package/skills/browse/test/watch.test.ts +0 -129
  102. package/skills/canary/SKILL.md.tmpl +0 -212
  103. package/skills/careful/SKILL.md.tmpl +0 -56
  104. package/skills/careful/bin/check-careful.sh +0 -112
  105. package/skills/codex/SKILL.md +0 -90
  106. package/skills/codex/SKILL.md.tmpl +0 -417
  107. package/skills/connect-chrome/SKILL.md.tmpl +0 -195
  108. package/skills/cso/ACKNOWLEDGEMENTS.md +0 -14
  109. package/skills/cso/SKILL.md +0 -93
  110. package/skills/cso/SKILL.md.tmpl +0 -606
  111. package/skills/design-consultation/SKILL.md +0 -94
  112. package/skills/design-consultation/SKILL.md.tmpl +0 -415
  113. package/skills/design-review/SKILL.md +0 -94
  114. package/skills/design-review/SKILL.md.tmpl +0 -290
  115. package/skills/design-shotgun/SKILL.md +0 -91
  116. package/skills/design-shotgun/SKILL.md.tmpl +0 -285
  117. package/skills/document-release/SKILL.md +0 -91
  118. package/skills/document-release/SKILL.md.tmpl +0 -359
  119. package/skills/freeze/SKILL.md.tmpl +0 -77
  120. package/skills/freeze/bin/check-freeze.sh +0 -79
  121. package/skills/gstack-upgrade/SKILL.md.tmpl +0 -222
  122. package/skills/guard/SKILL.md.tmpl +0 -77
  123. package/skills/investigate/SKILL.md +0 -105
  124. package/skills/investigate/SKILL.md.tmpl +0 -194
  125. package/skills/land-and-deploy/SKILL.md.tmpl +0 -881
  126. package/skills/office-hours/SKILL.md +0 -96
  127. package/skills/office-hours/SKILL.md.tmpl +0 -645
  128. package/skills/plan-ceo-review/SKILL.md +0 -94
  129. package/skills/plan-ceo-review/SKILL.md.tmpl +0 -811
  130. package/skills/plan-design-review/SKILL.md +0 -92
  131. package/skills/plan-design-review/SKILL.md.tmpl +0 -446
  132. package/skills/plan-eng-review/SKILL.md +0 -93
  133. package/skills/plan-eng-review/SKILL.md.tmpl +0 -303
  134. package/skills/qa/SKILL.md +0 -95
  135. package/skills/qa/SKILL.md.tmpl +0 -316
  136. package/skills/qa/references/issue-taxonomy.md +0 -85
  137. package/skills/qa/templates/qa-report-template.md +0 -126
  138. package/skills/qa-only/SKILL.md +0 -89
  139. package/skills/qa-only/SKILL.md.tmpl +0 -101
  140. package/skills/retro/SKILL.md +0 -89
  141. package/skills/retro/SKILL.md.tmpl +0 -820
  142. package/skills/review/SKILL.md +0 -92
  143. package/skills/review/SKILL.md.tmpl +0 -281
  144. package/skills/review/TODOS-format.md +0 -62
  145. package/skills/review/checklist.md +0 -220
  146. package/skills/review/design-checklist.md +0 -132
  147. package/skills/review/greptile-triage.md +0 -220
  148. package/skills/setup-browser-cookies/SKILL.md.tmpl +0 -81
  149. package/skills/setup-deploy/SKILL.md +0 -92
  150. package/skills/setup-deploy/SKILL.md.tmpl +0 -215
  151. package/skills/ship/SKILL.md.tmpl +0 -636
  152. 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
- };