teamshare-bridge 0.22.5 → 0.22.7

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 (62) hide show
  1. package/README.md +383 -383
  2. package/dist/bridge/install-verify.js +8 -8
  3. package/dist/lib/browser/human-input-guard.js +98 -98
  4. package/dist/lib/browser/screen-change.js +60 -60
  5. package/dist/lib/llm/usage-reader.js +4 -4
  6. package/package.json +70 -70
  7. package/skills/THIRD_PARTY_NOTICES.md +26 -26
  8. package/skills/architect/LICENSE +21 -21
  9. package/skills/codebase-design/LICENSE +21 -21
  10. package/skills/diagnosing-bugs/LICENSE +21 -21
  11. package/skills/domain-modeling/LICENSE +21 -21
  12. package/skills/improve-codebase-architecture/LICENSE +21 -21
  13. package/skills/recover/LICENSE +21 -21
  14. package/skills/review/LICENSE +21 -21
  15. package/skills/tdd/LICENSE +21 -21
  16. package/skills/teamshare-auth-rbac/SKILL.md +78 -78
  17. package/skills/teamshare-cdd/SKILL.md +205 -205
  18. package/skills/teamshare-modularity/SKILL.md +146 -146
  19. package/skills/teamshare-orchestrator-ask/SKILL.md +77 -77
  20. package/skills/teamshare-scaffold/SKILL.md +116 -116
  21. package/templates/backend/.env.example.tpl +13 -13
  22. package/templates/backend/nest-cli.json.tpl +8 -8
  23. package/templates/backend/package.json.tpl +41 -41
  24. package/templates/backend/prisma/schema.prisma.tpl +39 -39
  25. package/templates/backend/src/app.module.ts.tpl +24 -24
  26. package/templates/backend/src/common/filters/all-exceptions.filter.ts.tpl +59 -59
  27. package/templates/backend/src/common/guards/jwt-auth.guard.ts.tpl +27 -27
  28. package/templates/backend/src/common/guards/rbac.guard.ts.tpl +48 -48
  29. package/templates/backend/src/common/interceptors/transform.interceptor.ts.tpl +44 -44
  30. package/templates/backend/src/common/pipes/zod-validation.pipe.ts.tpl +29 -29
  31. package/templates/backend/src/common/swagger/envelope.schemas.ts.tpl +53 -53
  32. package/templates/backend/src/common/swagger/error.schemas.ts.tpl +62 -62
  33. package/templates/backend/src/main.ts.tpl +27 -27
  34. package/templates/backend/src/modules/example/example.controller.ts.tpl +102 -102
  35. package/templates/backend/src/modules/example/example.dto.ts.tpl +14 -14
  36. package/templates/backend/src/modules/example/example.module.ts.tpl +10 -10
  37. package/templates/backend/src/modules/example/example.service.ts.tpl +45 -45
  38. package/templates/backend/tsconfig.json.tpl +26 -26
  39. package/templates/common/.gitignore.tpl +42 -42
  40. package/templates/common/AGENTS.md.tpl +58 -58
  41. package/templates/common/docs/adr/README.md +25 -25
  42. package/templates/common/docs/api-contract.md.tpl +72 -72
  43. package/templates/web/next.config.ts.tpl +7 -7
  44. package/templates/web/package.json.tpl +37 -37
  45. package/templates/web/src/app/globals.css.tpl +48 -48
  46. package/templates/web/src/app/layout.tsx.tpl +25 -25
  47. package/templates/web/src/components/shared/app-button.tsx.tpl +59 -59
  48. package/templates/web/src/components/shared/app-empty-state.tsx.tpl +39 -39
  49. package/templates/web/src/components/shared/app-list-toolbar.tsx.tpl +63 -63
  50. package/templates/web/src/components/shared/app-skeleton.tsx.tpl +14 -14
  51. package/templates/web/src/components/shared/app-table.tsx.tpl +128 -128
  52. package/templates/web/src/components/shared/index.ts.tpl +5 -5
  53. package/templates/web/src/hooks/use-list-state.ts.tpl +72 -72
  54. package/templates/web/src/hooks/use-url-tab.ts.tpl +25 -25
  55. package/templates/web/src/lib/api/client.ts.tpl +123 -123
  56. package/templates/web/src/lib/providers.tsx.tpl +35 -35
  57. package/templates/web/src/lib/query-keys.ts.tpl +21 -21
  58. package/templates/web/src/lib/utils.ts.tpl +7 -7
  59. package/templates/web/src/lib/validation/schemas.ts.tpl +15 -15
  60. package/templates/web/src/modules/example/views/example-list-view.tsx.tpl +97 -97
  61. package/templates/web/tsconfig.json.tpl +23 -23
  62. package/tools/workspace-arbitration-check.mjs +389 -389
@@ -64,14 +64,14 @@ function installRoot() {
64
64
  */
65
65
  function verifyInstall() {
66
66
  const root = installRoot();
67
- const script = `
68
- const mods = ${JSON.stringify(REQUIRED_MODULES)};
69
- const missing = [];
70
- for (const m of mods) {
71
- try { require.resolve(m, { paths: [${JSON.stringify(root)}] }); }
72
- catch (e) { missing.push({ module: m, error: String(e && e.message || e) }); }
73
- }
74
- process.stdout.write(JSON.stringify({ missing }));
67
+ const script = `
68
+ const mods = ${JSON.stringify(REQUIRED_MODULES)};
69
+ const missing = [];
70
+ for (const m of mods) {
71
+ try { require.resolve(m, { paths: [${JSON.stringify(root)}] }); }
72
+ catch (e) { missing.push({ module: m, error: String(e && e.message || e) }); }
73
+ }
74
+ process.stdout.write(JSON.stringify({ missing }));
75
75
  `;
76
76
  const res = (0, node_child_process_1.spawnSync)(process.execPath, ['-e', script], {
77
77
  stdio: ['ignore', 'pipe', 'pipe'],
@@ -148,12 +148,12 @@ class TypingGuard {
148
148
  async markOwn(char, key) {
149
149
  if (!this.enabled || this.osLevel || this.stoppedFlag)
150
150
  return;
151
- await (0, cdp_1.evaluateJs)(this.page, `(() => {
152
- const s = window[${JSON.stringify(this.key)}];
153
- if (!s) return false;
154
- s.exp = { ch: ${JSON.stringify(char)}, key: ${JSON.stringify(key ?? '')} };
155
- s.until = performance.now() + ${OS_BRACKET_MS};
156
- return true;
151
+ await (0, cdp_1.evaluateJs)(this.page, `(() => {
152
+ const s = window[${JSON.stringify(this.key)}];
153
+ if (!s) return false;
154
+ s.exp = { ch: ${JSON.stringify(char)}, key: ${JSON.stringify(key ?? '')} };
155
+ s.until = performance.now() + ${OS_BRACKET_MS};
156
+ return true;
157
157
  })()`).catch(() => false);
158
158
  }
159
159
  async dispose() {
@@ -161,20 +161,20 @@ class TypingGuard {
161
161
  return;
162
162
  const key = this.key;
163
163
  this.key = '';
164
- await (0, cdp_1.evaluateJs)(this.page, `(() => {
165
- const s = window[${JSON.stringify(key)}];
166
- if (s) {
167
- if (s.el && s.handler) s.el.removeEventListener('keydown', s.handler, true);
168
- if (s.el && s.handler) s.el.removeEventListener('input', s.handler, true);
169
- if (document && s.handler) {
170
- document.removeEventListener('keydown', s.handler, true);
171
- document.removeEventListener('beforeinput', s.handler, true);
172
- document.removeEventListener('input', s.handler, true);
173
- document.removeEventListener('paste', s.handler, true);
174
- }
175
- }
176
- try { delete window[${JSON.stringify(key)}]; } catch (e) {}
177
- return true;
164
+ await (0, cdp_1.evaluateJs)(this.page, `(() => {
165
+ const s = window[${JSON.stringify(key)}];
166
+ if (s) {
167
+ if (s.el && s.handler) s.el.removeEventListener('keydown', s.handler, true);
168
+ if (s.el && s.handler) s.el.removeEventListener('input', s.handler, true);
169
+ if (document && s.handler) {
170
+ document.removeEventListener('keydown', s.handler, true);
171
+ document.removeEventListener('beforeinput', s.handler, true);
172
+ document.removeEventListener('input', s.handler, true);
173
+ document.removeEventListener('paste', s.handler, true);
174
+ }
175
+ }
176
+ try { delete window[${JSON.stringify(key)}]; } catch (e) {}
177
+ return true;
178
178
  })()`).catch(() => false);
179
179
  }
180
180
  fail(reason) {
@@ -204,87 +204,87 @@ class TypingGuard {
204
204
  buildInstallScript(target, key) {
205
205
  const selector = JSON.stringify(target.selector ?? '');
206
206
  const isEditor = target.isCodeEditor === true;
207
- return `(() => {
208
- const KEY = ${JSON.stringify(key)};
209
- const findEl = () => {
210
- const sel = ${selector};
211
- if (sel) { try { const e = document.querySelector(sel); if (e) return e; } catch (err) {} }
212
- const a = document.activeElement;
213
- if (a && a !== document.body) return a;
214
- return document.body;
215
- };
216
- const readText = (el) => {
217
- try {
218
- const monacoNs = typeof monaco !== 'undefined' ? monaco : window.monaco;
219
- const editors = monacoNs && monacoNs.editor && monacoNs.editor.getEditors ? monacoNs.editor.getEditors() : null;
220
- if (${isEditor} && editors && editors.length) return editors[editors.length - 1].getValue();
221
- const cm6 = document.querySelector('.cm-content[contenteditable="true"]');
222
- if (${isEditor} && cm6 && (cm6 === el || cm6.contains(el))) return cm6.innerText || '';
223
- const cm5 = document.querySelector('.CodeMirror');
224
- if (${isEditor} && cm5 && cm5.CodeMirror) return cm5.CodeMirror.getValue();
225
- const ace = document.querySelector('.ace_editor');
226
- if (${isEditor} && ace && ace.env && ace.env.editor) return ace.env.editor.getValue();
227
- } catch (err) {}
228
- if (!el) return '';
229
- if (el.tagName === 'INPUT' || el.tagName === 'TEXTAREA') return el.value || '';
230
- return el.innerText || el.textContent || '';
231
- };
232
- const el = findEl();
233
- const state = { ext: false, info: '', exp: null, until: 0, el: el, handler: null };
234
- const describe = (ev) => {
235
- const t = ev.target && ev.target.tagName ? ev.target.tagName : '?';
236
- const k = ev.key || ev.data || ev.inputType || ev.type;
237
- return ev.type + ':' + t + ':' + String(k).slice(0, 24);
238
- };
239
- const handler = (ev) => {
240
- const s = window[KEY];
241
- if (!s) return;
242
- const now = performance.now();
243
- if (s.exp && now <= s.until) {
244
- const k = ev.key || '';
245
- const d = ev.data || '';
246
- if ((s.exp.ch && d === s.exp.ch) || (s.exp.key && k === s.exp.key) || (s.exp.ch && k === s.exp.ch)) {
247
- s.exp = null;
248
- return;
249
- }
250
- }
251
- s.ext = true;
252
- s.info = describe(ev);
253
- };
254
- state.handler = handler;
255
- Object.defineProperty(window, KEY, { value: state, enumerable: false, configurable: true });
256
- document.addEventListener('keydown', handler, true);
257
- document.addEventListener('beforeinput', handler, true);
258
- document.addEventListener('input', handler, true);
259
- document.addEventListener('paste', handler, true);
260
- return { text: readText(el) };
207
+ return `(() => {
208
+ const KEY = ${JSON.stringify(key)};
209
+ const findEl = () => {
210
+ const sel = ${selector};
211
+ if (sel) { try { const e = document.querySelector(sel); if (e) return e; } catch (err) {} }
212
+ const a = document.activeElement;
213
+ if (a && a !== document.body) return a;
214
+ return document.body;
215
+ };
216
+ const readText = (el) => {
217
+ try {
218
+ const monacoNs = typeof monaco !== 'undefined' ? monaco : window.monaco;
219
+ const editors = monacoNs && monacoNs.editor && monacoNs.editor.getEditors ? monacoNs.editor.getEditors() : null;
220
+ if (${isEditor} && editors && editors.length) return editors[editors.length - 1].getValue();
221
+ const cm6 = document.querySelector('.cm-content[contenteditable="true"]');
222
+ if (${isEditor} && cm6 && (cm6 === el || cm6.contains(el))) return cm6.innerText || '';
223
+ const cm5 = document.querySelector('.CodeMirror');
224
+ if (${isEditor} && cm5 && cm5.CodeMirror) return cm5.CodeMirror.getValue();
225
+ const ace = document.querySelector('.ace_editor');
226
+ if (${isEditor} && ace && ace.env && ace.env.editor) return ace.env.editor.getValue();
227
+ } catch (err) {}
228
+ if (!el) return '';
229
+ if (el.tagName === 'INPUT' || el.tagName === 'TEXTAREA') return el.value || '';
230
+ return el.innerText || el.textContent || '';
231
+ };
232
+ const el = findEl();
233
+ const state = { ext: false, info: '', exp: null, until: 0, el: el, handler: null };
234
+ const describe = (ev) => {
235
+ const t = ev.target && ev.target.tagName ? ev.target.tagName : '?';
236
+ const k = ev.key || ev.data || ev.inputType || ev.type;
237
+ return ev.type + ':' + t + ':' + String(k).slice(0, 24);
238
+ };
239
+ const handler = (ev) => {
240
+ const s = window[KEY];
241
+ if (!s) return;
242
+ const now = performance.now();
243
+ if (s.exp && now <= s.until) {
244
+ const k = ev.key || '';
245
+ const d = ev.data || '';
246
+ if ((s.exp.ch && d === s.exp.ch) || (s.exp.key && k === s.exp.key) || (s.exp.ch && k === s.exp.ch)) {
247
+ s.exp = null;
248
+ return;
249
+ }
250
+ }
251
+ s.ext = true;
252
+ s.info = describe(ev);
253
+ };
254
+ state.handler = handler;
255
+ Object.defineProperty(window, KEY, { value: state, enumerable: false, configurable: true });
256
+ document.addEventListener('keydown', handler, true);
257
+ document.addEventListener('beforeinput', handler, true);
258
+ document.addEventListener('input', handler, true);
259
+ document.addEventListener('paste', handler, true);
260
+ return { text: readText(el) };
261
261
  })()`;
262
262
  }
263
263
  buildReadScript(key) {
264
- return `(() => {
265
- const s = window[${JSON.stringify(key)}];
266
- if (!s) return null;
267
- const el = s.el && document.contains(s.el) ? s.el : document.activeElement;
268
- const read = (e) => {
269
- try {
270
- const monacoNs = typeof monaco !== 'undefined' ? monaco : window.monaco;
271
- const editors = monacoNs && monacoNs.editor && monacoNs.editor.getEditors ? monacoNs.editor.getEditors() : null;
272
- if (editors && editors.length) return editors[editors.length - 1].getValue();
273
- const cm6 = document.querySelector('.cm-content[contenteditable="true"]');
274
- if (cm6) return cm6.innerText || '';
275
- const cm5 = document.querySelector('.CodeMirror');
276
- if (cm5 && cm5.CodeMirror) return cm5.CodeMirror.getValue();
277
- const ace = document.querySelector('.ace_editor');
278
- if (ace && ace.env && ace.env.editor) return ace.env.editor.getValue();
279
- } catch (err) {}
280
- if (!e) return '';
281
- if (e.tagName === 'INPUT' || e.tagName === 'TEXTAREA') return e.value || '';
282
- return e.innerText || e.textContent || '';
283
- };
284
- const out = { text: read(el), external: s.ext === true, externalInfo: s.info || '' };
285
- s.ext = false;
286
- s.info = '';
287
- return out;
264
+ return `(() => {
265
+ const s = window[${JSON.stringify(key)}];
266
+ if (!s) return null;
267
+ const el = s.el && document.contains(s.el) ? s.el : document.activeElement;
268
+ const read = (e) => {
269
+ try {
270
+ const monacoNs = typeof monaco !== 'undefined' ? monaco : window.monaco;
271
+ const editors = monacoNs && monacoNs.editor && monacoNs.editor.getEditors ? monacoNs.editor.getEditors() : null;
272
+ if (editors && editors.length) return editors[editors.length - 1].getValue();
273
+ const cm6 = document.querySelector('.cm-content[contenteditable="true"]');
274
+ if (cm6) return cm6.innerText || '';
275
+ const cm5 = document.querySelector('.CodeMirror');
276
+ if (cm5 && cm5.CodeMirror) return cm5.CodeMirror.getValue();
277
+ const ace = document.querySelector('.ace_editor');
278
+ if (ace && ace.env && ace.env.editor) return ace.env.editor.getValue();
279
+ } catch (err) {}
280
+ if (!e) return '';
281
+ if (e.tagName === 'INPUT' || e.tagName === 'TEXTAREA') return e.value || '';
282
+ return e.innerText || e.textContent || '';
283
+ };
284
+ const out = { text: read(el), external: s.ext === true, externalInfo: s.info || '' };
285
+ s.ext = false;
286
+ s.info = '';
287
+ return out;
288
288
  })()`;
289
289
  }
290
290
  /**
@@ -62,66 +62,66 @@ function isMainFrameNavigation(params) {
62
62
  * on the current document.
63
63
  */
64
64
  function buildObserverScript() {
65
- return `
66
- (() => {
67
- const KEY = Symbol('__ts_obs');
68
- if (window[KEY]) return 'already attached';
69
- const IGNORE = /timer|countdown|elapsed|clock|animation|animate|transition|spinner|progress|loading|toast|notification|alert|banner|snackbar|cookie|consent|modal|overlay|popup|tooltip|badge|tag|avatar|icon|svg|img|video|audio|canvas|font|stylesheet|script|meta|link|head/i;
70
- const observerChangeScore = ${observerChangeScore.toString()};
71
- let timer = null;
72
- let lastText = '';
73
- function getText() {
74
- const els = document.querySelectorAll('input[type="radio"],input[type="checkbox"],input[type="text"],input[type="email"],input[type="password"],textarea,label,button');
75
- return [...els].map(e => {
76
- const t = (e.innerText || e.textContent || '').trim().replace(/\\s+/g, ' ').slice(0, 200);
77
- return e.type + '|' + t + '|' + (e.checked || false);
78
- }).join('\\n');
79
- }
80
- function check() {
81
- try {
82
- const curr = getText();
83
- if (curr === lastText) return;
84
- const prev = lastText;
85
- lastText = curr;
86
- if (observerChangeScore(prev, curr) >= ${exports.SCREEN_CHANGE_THRESHOLD}) {
87
- window[KEY].changed = Date.now();
88
- }
89
- } catch {}
90
- }
91
- const obs = new MutationObserver((mutations) => {
92
- let hasRelevant = false;
93
- for (const m of mutations) {
94
- if (m.target instanceof Element) {
95
- const tag = m.target.tagName;
96
- if (tag === 'SCRIPT' || tag === 'STYLE' || tag === 'HEAD') continue;
97
- const cls = m.target.className || '';
98
- if (typeof cls === 'string' && IGNORE.test(cls)) continue;
99
- const id = m.target.id || '';
100
- if (IGNORE.test(id)) continue;
101
- if (m.type === 'characterData' && m.target.parentElement) {
102
- const ptag = m.target.parentElement.tagName;
103
- if (ptag === 'SCRIPT' || ptag === 'STYLE') continue;
104
- }
105
- }
106
- hasRelevant = true;
107
- }
108
- if (hasRelevant) {
109
- // Raw "something relevant changed" stamp, set immediately (no
110
- // debounce, no score gate). Used to verify that a click had ANY
111
- // effect, including a selection that scores below the material
112
- // threshold - without waiting for a full question swap.
113
- window[KEY].mutated = Date.now();
114
- clearTimeout(timer);
115
- timer = setTimeout(check, 500);
116
- }
117
- });
118
- lastText = getText();
119
- window[KEY] = { observer: obs, changed: 0, mutated: 0 };
120
- obs.observe(document.body || document.documentElement, {
121
- childList: true, subtree: true, characterData: true
122
- });
123
- return 'ok';
124
- })()
65
+ return `
66
+ (() => {
67
+ const KEY = Symbol('__ts_obs');
68
+ if (window[KEY]) return 'already attached';
69
+ const IGNORE = /timer|countdown|elapsed|clock|animation|animate|transition|spinner|progress|loading|toast|notification|alert|banner|snackbar|cookie|consent|modal|overlay|popup|tooltip|badge|tag|avatar|icon|svg|img|video|audio|canvas|font|stylesheet|script|meta|link|head/i;
70
+ const observerChangeScore = ${observerChangeScore.toString()};
71
+ let timer = null;
72
+ let lastText = '';
73
+ function getText() {
74
+ const els = document.querySelectorAll('input[type="radio"],input[type="checkbox"],input[type="text"],input[type="email"],input[type="password"],textarea,label,button');
75
+ return [...els].map(e => {
76
+ const t = (e.innerText || e.textContent || '').trim().replace(/\\s+/g, ' ').slice(0, 200);
77
+ return e.type + '|' + t + '|' + (e.checked || false);
78
+ }).join('\\n');
79
+ }
80
+ function check() {
81
+ try {
82
+ const curr = getText();
83
+ if (curr === lastText) return;
84
+ const prev = lastText;
85
+ lastText = curr;
86
+ if (observerChangeScore(prev, curr) >= ${exports.SCREEN_CHANGE_THRESHOLD}) {
87
+ window[KEY].changed = Date.now();
88
+ }
89
+ } catch {}
90
+ }
91
+ const obs = new MutationObserver((mutations) => {
92
+ let hasRelevant = false;
93
+ for (const m of mutations) {
94
+ if (m.target instanceof Element) {
95
+ const tag = m.target.tagName;
96
+ if (tag === 'SCRIPT' || tag === 'STYLE' || tag === 'HEAD') continue;
97
+ const cls = m.target.className || '';
98
+ if (typeof cls === 'string' && IGNORE.test(cls)) continue;
99
+ const id = m.target.id || '';
100
+ if (IGNORE.test(id)) continue;
101
+ if (m.type === 'characterData' && m.target.parentElement) {
102
+ const ptag = m.target.parentElement.tagName;
103
+ if (ptag === 'SCRIPT' || ptag === 'STYLE') continue;
104
+ }
105
+ }
106
+ hasRelevant = true;
107
+ }
108
+ if (hasRelevant) {
109
+ // Raw "something relevant changed" stamp, set immediately (no
110
+ // debounce, no score gate). Used to verify that a click had ANY
111
+ // effect, including a selection that scores below the material
112
+ // threshold - without waiting for a full question swap.
113
+ window[KEY].mutated = Date.now();
114
+ clearTimeout(timer);
115
+ timer = setTimeout(check, 500);
116
+ }
117
+ });
118
+ lastText = getText();
119
+ window[KEY] = { observer: obs, changed: 0, mutated: 0 };
120
+ obs.observe(document.body || document.documentElement, {
121
+ childList: true, subtree: true, characterData: true
122
+ });
123
+ return 'ok';
124
+ })()
125
125
  `;
126
126
  }
127
127
  //# sourceMappingURL=screen-change.js.map
@@ -72,10 +72,10 @@ function readOpencode(dbPath, day, agentFilter) {
72
72
  const db = new Database(dbPath, { readonly: true, fileMustExist: true });
73
73
  try {
74
74
  const { startMs, endMs } = dayBounds(day);
75
- const rows = db.prepare(`SELECT title, model, cost, tokens_input, tokens_output,
76
- tokens_reasoning, tokens_cache_read, tokens_cache_write,
77
- time_created, time_updated
78
- FROM session WHERE time_created >= ? AND time_created < ?
75
+ const rows = db.prepare(`SELECT title, model, cost, tokens_input, tokens_output,
76
+ tokens_reasoning, tokens_cache_read, tokens_cache_write,
77
+ time_created, time_updated
78
+ FROM session WHERE time_created >= ? AND time_created < ?
79
79
  ORDER BY time_created`).all(startMs, endMs);
80
80
  const sessions = [];
81
81
  for (const row of rows) {
package/package.json CHANGED
@@ -1,70 +1,70 @@
1
- {
2
- "name": "teamshare-bridge",
3
- "version": "0.22.5",
4
- "description": "Local bridge for TeamShare agents - CLI session runner, auto-wake WebSocket daemon, and teamshare:// protocol handler.",
5
- "type": "commonjs",
6
- "license": "MIT",
7
- "keywords": [
8
- "teamshare",
9
- "agent",
10
- "bridge",
11
- "mcp",
12
- "ai",
13
- "automation"
14
- ],
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/dominionbanjo/teamshare-bridge.git"
18
- },
19
- "files": [
20
- "dist",
21
- "skills",
22
- "templates",
23
- "tools",
24
- "README.md"
25
- ],
26
- "bin": {
27
- "teamshare-agent": "dist/cli/index.js",
28
- "teamshare-bridge": "dist/bridge/index.js"
29
- },
30
- "engines": {
31
- "node": ">=18"
32
- },
33
- "scripts": {
34
- "build": "node --max-old-space-size=4096 ./node_modules/typescript/lib/tsc.js -p tsconfig.json",
35
- "prepare": "npm run build",
36
- "dev": "node --max-old-space-size=4096 ./node_modules/typescript/lib/tsc.js -p tsconfig.json --watch",
37
- "lint": "eslint src --ext .ts",
38
- "typecheck": "node --max-old-space-size=4096 ./node_modules/typescript/lib/tsc.js --noEmit -p tsconfig.json",
39
- "test:unit": "node --test \"tests/**/*.test.mjs\""
40
- },
41
- "dependencies": {
42
- "@matbee/libreoffice-converter": "^1.0.0",
43
- "@napi-rs/canvas": "^1.0.8",
44
- "@types/better-sqlite3": "^9.6.0",
45
- "@types/ws": "^8.18.1",
46
- "better-sqlite3": "^13.0.3",
47
- "chart.js": "^4.5.1",
48
- "docx": "^9.7.1",
49
- "jszip": "^3.10.2",
50
- "mammoth": "^1.12.3",
51
- "officeparser": "^7.6.2",
52
- "pdfkit": "^0.20.2",
53
- "pptxgenjs": "^4.0.1",
54
- "qrcode": "^1.5.4",
55
- "sharp": "^0.35.4",
56
- "socket.io-client": "^4.8.3",
57
- "ws": "^8.21.3",
58
- "xlsx-populate": "^1.21.0",
59
- "zod": "^4.6.5"
60
- },
61
- "optionalDependencies": {
62
- "@napi-rs/keyring": "^1.3.0"
63
- },
64
- "devDependencies": {
65
- "@types/node": "^22.20.1",
66
- "@types/pdfkit": "^0.17.6",
67
- "@types/qrcode": "^1.5.6",
68
- "typescript": "^5.6.0"
69
- }
70
- }
1
+ {
2
+ "name": "teamshare-bridge",
3
+ "version": "0.22.7",
4
+ "description": "Local bridge for TeamShare agents - CLI session runner, auto-wake WebSocket daemon, and teamshare:// protocol handler.",
5
+ "type": "commonjs",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "teamshare",
9
+ "agent",
10
+ "bridge",
11
+ "mcp",
12
+ "ai",
13
+ "automation"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/dominionbanjo/teamshare-bridge.git"
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "skills",
22
+ "templates",
23
+ "tools",
24
+ "README.md"
25
+ ],
26
+ "bin": {
27
+ "teamshare-agent": "dist/cli/index.js",
28
+ "teamshare-bridge": "dist/bridge/index.js"
29
+ },
30
+ "engines": {
31
+ "node": ">=18"
32
+ },
33
+ "scripts": {
34
+ "build": "node --max-old-space-size=4096 ./node_modules/typescript/lib/tsc.js -p tsconfig.json",
35
+ "prepare": "npm run build",
36
+ "dev": "node --max-old-space-size=4096 ./node_modules/typescript/lib/tsc.js -p tsconfig.json --watch",
37
+ "lint": "eslint src --ext .ts",
38
+ "typecheck": "node --max-old-space-size=4096 ./node_modules/typescript/lib/tsc.js --noEmit -p tsconfig.json",
39
+ "test:unit": "node --test \"tests/**/*.test.mjs\""
40
+ },
41
+ "dependencies": {
42
+ "@matbee/libreoffice-converter": "^1.0.0",
43
+ "@napi-rs/canvas": "^1.0.8",
44
+ "@types/better-sqlite3": "^9.6.0",
45
+ "@types/ws": "^8.18.1",
46
+ "better-sqlite3": "^13.0.3",
47
+ "chart.js": "^4.5.1",
48
+ "docx": "^9.7.1",
49
+ "jszip": "^3.10.2",
50
+ "mammoth": "^1.12.3",
51
+ "officeparser": "^7.6.2",
52
+ "pdfkit": "^0.20.2",
53
+ "pptxgenjs": "^4.0.1",
54
+ "qrcode": "^1.5.4",
55
+ "sharp": "^0.35.4",
56
+ "socket.io-client": "^4.8.3",
57
+ "ws": "^8.21.3",
58
+ "xlsx-populate": "^1.21.0",
59
+ "zod": "^4.6.5"
60
+ },
61
+ "optionalDependencies": {
62
+ "@napi-rs/keyring": "^1.3.0"
63
+ },
64
+ "devDependencies": {
65
+ "@types/node": "^22.20.1",
66
+ "@types/pdfkit": "^0.17.6",
67
+ "@types/qrcode": "^1.5.6",
68
+ "typescript": "^5.6.0"
69
+ }
70
+ }
@@ -1,26 +1,26 @@
1
- # Third-party skill notices
2
-
3
- `teamshare-bridge` bundles a curated set of agent skills under `skills/`. The
4
- `teamshare-*` skills are TeamShare originals. The skills below are vendored from
5
- public repositories and remain under their upstream licenses; each directory
6
- contains a copy of its license (MIT) or its upstream license file.
7
-
8
- | Skill | Upstream | Path | License | Copyright |
9
- |---|---|---|---|---|
10
- | `architect` | [JavaScript-Mastery-Pro/skills](https://github.com/JavaScript-Mastery-Pro/skills) | `skills/architect` | MIT | (c) 2026 JavaScript Mastery |
11
- | `codebase-design` | [mattpocock/skills](https://github.com/mattpocock/skills) | `skills/engineering/codebase-design` | MIT | (c) 2026 Matt Pocock |
12
- | `domain-modeling` | [mattpocock/skills](https://github.com/mattpocock/skills) | `skills/engineering/domain-modeling` | MIT | (c) 2026 Matt Pocock |
13
- | `diagnosing-bugs` | [mattpocock/skills](https://github.com/mattpocock/skills) | `skills/engineering/diagnosing-bugs` | MIT | (c) 2026 Matt Pocock |
14
- | `improve-codebase-architecture` | [mattpocock/skills](https://github.com/mattpocock/skills) | `skills/engineering/improve-codebase-architecture` | MIT | (c) 2026 Matt Pocock |
15
- | `tdd` | [mattpocock/skills](https://github.com/mattpocock/skills) | `skills/engineering/tdd` | MIT | (c) 2026 Matt Pocock |
16
- | `recover` | [JavaScript-Mastery-Pro/skills](https://github.com/JavaScript-Mastery-Pro/skills) | `skills/recover` | MIT | (c) 2026 JavaScript Mastery |
17
- | `review` | [JavaScript-Mastery-Pro/skills](https://github.com/JavaScript-Mastery-Pro/skills) | `skills/review` | MIT | (c) 2026 JavaScript Mastery |
18
- | `frontend-design` | [anthropics/skills](https://github.com/anthropics/skills) | `skills/frontend-design` | Apache-2.0 | see `skills/frontend-design/LICENSE.txt` |
19
-
20
- MIT-licensed skills are redistributed under the terms of the MIT License; the
21
- full text is included as `LICENSE` in each skill directory above. `frontend-design`
22
- is licensed under the Apache License 2.0; its `LICENSE.txt` is retained verbatim.
23
-
24
- Note: `improve-codebase-architecture` references the `grilling` skill. `grilling`
25
- is not bundled; agents should decide autonomously when that cross-skill flow is
26
- unavailable.
1
+ # Third-party skill notices
2
+
3
+ `teamshare-bridge` bundles a curated set of agent skills under `skills/`. The
4
+ `teamshare-*` skills are TeamShare originals. The skills below are vendored from
5
+ public repositories and remain under their upstream licenses; each directory
6
+ contains a copy of its license (MIT) or its upstream license file.
7
+
8
+ | Skill | Upstream | Path | License | Copyright |
9
+ |---|---|---|---|---|
10
+ | `architect` | [JavaScript-Mastery-Pro/skills](https://github.com/JavaScript-Mastery-Pro/skills) | `skills/architect` | MIT | (c) 2026 JavaScript Mastery |
11
+ | `codebase-design` | [mattpocock/skills](https://github.com/mattpocock/skills) | `skills/engineering/codebase-design` | MIT | (c) 2026 Matt Pocock |
12
+ | `domain-modeling` | [mattpocock/skills](https://github.com/mattpocock/skills) | `skills/engineering/domain-modeling` | MIT | (c) 2026 Matt Pocock |
13
+ | `diagnosing-bugs` | [mattpocock/skills](https://github.com/mattpocock/skills) | `skills/engineering/diagnosing-bugs` | MIT | (c) 2026 Matt Pocock |
14
+ | `improve-codebase-architecture` | [mattpocock/skills](https://github.com/mattpocock/skills) | `skills/engineering/improve-codebase-architecture` | MIT | (c) 2026 Matt Pocock |
15
+ | `tdd` | [mattpocock/skills](https://github.com/mattpocock/skills) | `skills/engineering/tdd` | MIT | (c) 2026 Matt Pocock |
16
+ | `recover` | [JavaScript-Mastery-Pro/skills](https://github.com/JavaScript-Mastery-Pro/skills) | `skills/recover` | MIT | (c) 2026 JavaScript Mastery |
17
+ | `review` | [JavaScript-Mastery-Pro/skills](https://github.com/JavaScript-Mastery-Pro/skills) | `skills/review` | MIT | (c) 2026 JavaScript Mastery |
18
+ | `frontend-design` | [anthropics/skills](https://github.com/anthropics/skills) | `skills/frontend-design` | Apache-2.0 | see `skills/frontend-design/LICENSE.txt` |
19
+
20
+ MIT-licensed skills are redistributed under the terms of the MIT License; the
21
+ full text is included as `LICENSE` in each skill directory above. `frontend-design`
22
+ is licensed under the Apache License 2.0; its `LICENSE.txt` is retained verbatim.
23
+
24
+ Note: `improve-codebase-architecture` references the `grilling` skill. `grilling`
25
+ is not bundled; agents should decide autonomously when that cross-skill flow is
26
+ unavailable.
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 JavaScript Mastery
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 JavaScript Mastery
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.