typebulb 0.62.1 → 0.62.3
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.
- package/SKILL.md +2 -2
- package/dist/agents/claude/client.js +231 -231
- package/dist/agents/claude/index.html +12 -6
- package/dist/agents/claude/styles.css +33 -20
- package/dist/agents/codex/client.js +199 -199
- package/dist/agents/codex/index.html +12 -6
- package/dist/agents/codex/styles.css +33 -20
- package/dist/agents/pi/client.js +196 -196
- package/dist/agents/pi/index.html +12 -6
- package/dist/agents/pi/styles.css +33 -20
- package/dist/index.js +288 -287
- package/package.json +1 -1
|
@@ -23,6 +23,12 @@
|
|
|
23
23
|
// the one thing they cannot see for themselves.
|
|
24
24
|
const say = text => { if (el.isConnected) why.textContent = text }
|
|
25
25
|
let retried = false
|
|
26
|
+
const refetch = src => setTimeout(() => {
|
|
27
|
+
const again = document.createElement('script')
|
|
28
|
+
again.type = 'module'
|
|
29
|
+
again.src = src.split('?')[0] + '?retry=' + Date.now() // past a cached bad response
|
|
30
|
+
document.body.appendChild(again)
|
|
31
|
+
}, 1000)
|
|
26
32
|
// A module script's FETCH failure fires on the element and never bubbles to window, hence capture.
|
|
27
33
|
// Untreated it is invisible: the page shimmers on over a bundle that is never coming.
|
|
28
34
|
addEventListener('error', e => {
|
|
@@ -33,12 +39,12 @@
|
|
|
33
39
|
// re-appending the script rather than reloading the page cannot loop and cannot cost the page.
|
|
34
40
|
if (retried) { say("The agent mirror didn't finish loading. Reload to retry."); return }
|
|
35
41
|
retried = true
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
refetch(script.src)
|
|
43
|
+
} else if (e.error instanceof SyntaxError && el.isConnected && !retried) {
|
|
44
|
+
// A bundle fetched mid-rewrite parses as half a file: the same transient, so the same one retry.
|
|
45
|
+
const bundle = document.querySelector('script[type=module][src]')
|
|
46
|
+
if (bundle) { retried = true; refetch(bundle.src); return }
|
|
47
|
+
say('The agent mirror stopped: ' + e.message)
|
|
42
48
|
} else if (e.message) {
|
|
43
49
|
say('The agent mirror stopped: ' + e.message)
|
|
44
50
|
}
|
|
@@ -1886,25 +1886,27 @@ a.agent-name:hover { text-decoration: underline; }
|
|
|
1886
1886
|
above, minus its row shape and cursor — this one is a label, not a toggle. */
|
|
1887
1887
|
.no-prose { color: var(--muted); font-size: .85rem; font-style: italic; padding: .15rem 0; }
|
|
1888
1888
|
|
|
1889
|
-
/* A child's Status view (childStatusView.ts): header,
|
|
1890
|
-
|
|
1889
|
+
/* A child's Status view (childStatusView.ts): a header, then Now, commands and files as tables, every
|
|
1890
|
+
heading and row on one left edge. Pills carry outcomes in the roles' own colours; anything wrong is
|
|
1891
|
+
--warn amber. */
|
|
1891
1892
|
.cs-header { padding: 1.2rem 0 .2rem; }
|
|
1892
|
-
.cs-title {
|
|
1893
|
-
|
|
1894
|
-
.cs-subtitle { color: var(--muted); margin-top: .
|
|
1895
|
-
|
|
1896
|
-
.cs-
|
|
1897
|
-
|
|
1898
|
-
.cs-
|
|
1899
|
-
|
|
1900
|
-
.cs-
|
|
1901
|
-
|
|
1902
|
-
.
|
|
1893
|
+
.cs-title { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
|
|
1894
|
+
/* The header's facts as tiles: flat and square-cornered, so they never read as the rows' outcome pills. */
|
|
1895
|
+
.cs-subtitle { color: var(--muted); margin-top: .5rem; display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; }
|
|
1896
|
+
.cs-tile { display: flex; align-items: center; gap: .6rem; padding: .35rem .75rem; border-radius: 6px; background: var(--veil); }
|
|
1897
|
+
.cs-tile-rule { align-self: stretch; width: 1px; background: var(--border); }
|
|
1898
|
+
/* The agents menu's state dot, in front of the state it colours. */
|
|
1899
|
+
.cs-subtitle .children-dot { display: inline-block; }
|
|
1900
|
+
/* Tools over model, a two-line stack beside the active time it splits. */
|
|
1901
|
+
.cs-time { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
|
|
1902
|
+
/* The groups' spacing is the container's gap alone: a section margin on top of .messages' gap doubled it. */
|
|
1903
|
+
.child-status { gap: 1.25rem; }
|
|
1903
1904
|
.cs-h { font-weight: 600; margin-bottom: .4rem; }
|
|
1904
1905
|
.cs-count { color: var(--muted); font-weight: 400; margin-left: .6rem; }
|
|
1905
|
-
.cs-more { color: var(--muted); padding: .4rem
|
|
1906
|
-
/* Under the tables, centred: a failed read, then the view's actions.
|
|
1907
|
-
|
|
1906
|
+
.cs-more { color: var(--muted); padding: .4rem 0; }
|
|
1907
|
+
/* Under the tables, centred: a failed read, then the view's actions. .messages' own bottom padding
|
|
1908
|
+
clears the overlaid statusbar; this adds only a little air between the actions and its pills. */
|
|
1909
|
+
.child-status-foot { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem 0 .75rem; }
|
|
1908
1910
|
.child-status-actions { display: flex; align-items: baseline; gap: 1.4rem; }
|
|
1909
1911
|
.child-status-actions a { cursor: pointer; color: var(--accent); }
|
|
1910
1912
|
.child-status-actions a:hover { text-decoration: underline; }
|
|
@@ -1913,20 +1915,31 @@ a.agent-name:hover { text-decoration: underline; }
|
|
|
1913
1915
|
.child-status-note.err { color: var(--err); }
|
|
1914
1916
|
/* Two-line items: the command or file, its outcome at the line's end; beneath, muted, what it said or
|
|
1915
1917
|
who else wrote it. Text wraps rather than cutting off, since the cut part is the part that explains. */
|
|
1916
|
-
|
|
1918
|
+
/* A list bleeds out by its rows' padding, so row text sits on the headings' edge and a hover still has room. */
|
|
1919
|
+
.cs-list { border-top: 1px solid var(--border); margin-left: -.4rem; margin-right: -.4rem; }
|
|
1917
1920
|
.cs-item { padding: .5rem .4rem; border-bottom: 1px solid var(--border); }
|
|
1918
1921
|
.cs-item:hover { background: var(--veil); }
|
|
1919
1922
|
.cs-item-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
|
|
1920
1923
|
.cs-item-main > .cs-mono { flex: 1 1 20rem; min-width: 0; overflow-wrap: anywhere; }
|
|
1921
|
-
.cs-item-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .5rem; }
|
|
1924
|
+
.cs-item-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .5rem; font-size: .85rem; }
|
|
1922
1925
|
.cs-item-sub { margin-top: .2rem; padding-left: 1rem; color: var(--muted); overflow-wrap: anywhere; }
|
|
1923
|
-
|
|
1926
|
+
/* File tables, written and read: one compact line a file and no rule between rows; a written file's
|
|
1927
|
+
who-else line still sits beneath it. */
|
|
1928
|
+
.cs-files { border-top: none; }
|
|
1929
|
+
.cs-files .cs-item { padding: .05rem .4rem; border-bottom: none; }
|
|
1930
|
+
/* A path is set as the diff pill's are (UI font, .85rem), and cuts from the left so the filename stays
|
|
1931
|
+
in view; the title and the link keep the whole path. */
|
|
1932
|
+
.cs-files .cs-item-main { flex-wrap: nowrap; }
|
|
1933
|
+
.cs-path { flex: 1 1 20rem; min-width: 0; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
|
|
1934
|
+
.cs-files .cs-item-meta { flex-shrink: 0; flex-wrap: nowrap; }
|
|
1935
|
+
/* Monospace sets larger than the UI font, so .82rem sits level with the paths' .85rem. */
|
|
1936
|
+
.cs-mono { font: .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
|
|
1924
1937
|
.cs-dim { color: var(--muted); }
|
|
1925
1938
|
.cs-bad { color: var(--warn); }
|
|
1926
1939
|
/* A command or open call cites its call, and a file opens in the editor: text that lights on hover. */
|
|
1927
1940
|
.cs-link { cursor: pointer; color: inherit; }
|
|
1928
1941
|
.cs-link:hover { color: var(--accent); text-decoration: underline; }
|
|
1929
|
-
.cs-pill { display: inline-block; padding: 0 .5rem; border-radius: 999px; font-size: .
|
|
1942
|
+
.cs-pill { display: inline-block; padding: 0 .5rem; border-radius: 999px; font-size: .8rem; line-height: 1.3; white-space: nowrap; background: var(--veil); color: var(--muted); }
|
|
1930
1943
|
.cs-pill.ok { color: var(--diff-add); background: color-mix(in srgb, var(--diff-add) 14%, transparent); }
|
|
1931
1944
|
.cs-pill.bad { color: var(--err); background: color-mix(in srgb, var(--err) 14%, transparent); }
|
|
1932
1945
|
.cs-pill.run { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
|