@goodandready/dsh-github-ops 0.6.3 → 0.6.4

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 (2) hide show
  1. package/lib/client.js +0 -38
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -710,44 +710,6 @@ window.__ModuleLoader__.load({
710
710
  }, [])
711
711
 
712
712
  React.useEffect(() => { load() }, [load])
713
- const loadGraph = React.useCallback(() => {
714
- setGraphData((prev) => ({ ...prev, phase: 'loading' }))
715
- fetchWithTimeout(`/dsh-github-ops/graph?limit=15${cwdQuery ? `&${cwdQuery}` : ''}`, { headers: { accept: 'application/json' } })
716
- .then((res) => (res.ok ? res.json() : Promise.reject(new Error(`HTTP ${res.status}`))))
717
- .then((data) => setGraphData({ phase: 'ready', entries: data.entries || [] }))
718
- .catch((err) => setGraphData({ phase: 'error', entries: [], error: String((err && err.message) || err) }))
719
- }, [cwdQuery])
720
-
721
- React.useEffect(() => {
722
- if (typeof EventSource === 'undefined') return
723
- let es = null
724
- try {
725
- es = new EventSource('/dsh-github-ops/events')
726
- es.addEventListener('ci_status', (e) => {
727
- try {
728
- const data = JSON.parse(e.data)
729
- const title = data.conclusion === 'success' ? t('scmCiRunSuccess') : t('scmCiRunFailed')
730
- const msg = `${data.name || 'CI'} #${data.id} (${data.conclusion || data.status})`
731
- const tid = Date.now() + Math.random()
732
- setToasts((prev) => [...prev, { id: tid, type: data.conclusion === 'success' ? 'success' : 'warn', title, message: msg }])
733
- setTimeout(() => setToasts((prev) => prev.filter((x) => x.id !== tid)), 5000)
734
- load()
735
- } catch {}
736
- })
737
- es.addEventListener('pr_status', (e) => {
738
- try {
739
- const data = JSON.parse(e.data)
740
- const title = t('scmPrUpdated')
741
- const msg = `PR #${data.number}: ${data.title || ''}`
742
- const tid = Date.now() + Math.random()
743
- setToasts((prev) => [...prev, { id: tid, type: 'info', title, message: msg }])
744
- setTimeout(() => setToasts((prev) => prev.filter((x) => x.id !== tid)), 5000)
745
- load()
746
- } catch {}
747
- })
748
- } catch {}
749
- return () => { if (es) es.close() }
750
- }, [load, t])
751
713
 
752
714
 
753
715
  const payload = state.payload
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-github-ops",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "GitHub operations for DeepSeek Harness: releases, tags, a guarded generic API pass-through, workflow runs, secrets and sanitized mirror publication.",
5
5
  "license": "MIT",
6
6
  "type": "module",