@yaks/browse 0.0.0-stage → 0.2.36
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/LICENSE +202 -0
- package/README.md +324 -2
- package/_dist/app.d.ts +8 -0
- package/_dist/app.d.ts.map +1 -0
- package/_dist/cli.d.ts +16 -0
- package/_dist/cli.d.ts.map +1 -0
- package/_dist/hosting.d.ts +24 -0
- package/_dist/hosting.d.ts.map +1 -0
- package/_dist/mod.d.ts +7 -0
- package/_dist/mod.d.ts.map +1 -0
- package/_dist/types.d.ts +5 -0
- package/_dist/types.d.ts.map +1 -0
- package/_dist/url.d.ts +2 -0
- package/_dist/url.d.ts.map +1 -0
- package/app.js +10 -0
- package/app.js.map +1 -0
- package/app.ts +10 -0
- package/browser-links.js +22 -0
- package/browser-links.js.map +1 -0
- package/browser-links.ts +28 -0
- package/cli.js +172 -0
- package/cli.js.map +1 -0
- package/cli.ts +168 -0
- package/client.js +748 -0
- package/client.js.map +1 -0
- package/client.ts +734 -0
- package/clipboard.js +18 -0
- package/clipboard.js.map +1 -0
- package/clipboard.ts +17 -0
- package/commands.js +1157 -0
- package/commands.js.map +1 -0
- package/commands.ts +1108 -0
- package/components/Ansi.tsx +160 -0
- package/components/App.tsx +446 -0
- package/components/Canvas.tsx +625 -0
- package/components/Card.tsx +276 -0
- package/components/Chat.tsx +205 -0
- package/components/Configuration.tsx +218 -0
- package/components/Decision.tsx +49 -0
- package/components/Dot.tsx +52 -0
- package/components/Entity.tsx +609 -0
- package/components/Fault.tsx +43 -0
- package/components/Filter.tsx +103 -0
- package/components/Keybindings.tsx +100 -0
- package/components/Keys.tsx +67 -0
- package/components/Markdown.tsx +90 -0
- package/components/Navigation.tsx +161 -0
- package/components/New.tsx +490 -0
- package/components/Peek.tsx +168 -0
- package/components/Prio.tsx +20 -0
- package/components/Run.tsx +263 -0
- package/components/Search.tsx +280 -0
- package/components/Stamp.tsx +44 -0
- package/components/Status.tsx +514 -0
- package/components/Sync.tsx +173 -0
- package/components/Tile.tsx +50 -0
- package/components/answered.js +23 -0
- package/components/answered.js.map +1 -0
- package/components/answered.ts +25 -0
- package/components/comp.js +11 -0
- package/components/comp.js.map +1 -0
- package/components/comp.ts +10 -0
- package/components/drag.js +173 -0
- package/components/drag.js.map +1 -0
- package/components/drag.ts +198 -0
- package/components/fields.tsx +90 -0
- package/components/fixtures/README.md +10 -0
- package/components/fixtures/archetypes.json +3646 -0
- package/components/hits.js +63 -0
- package/components/hits.js.map +1 -0
- package/components/hits.ts +84 -0
- package/components/icons.tsx +177 -0
- package/components/inspect.tsx +331 -0
- package/components/mount.ts +79 -0
- package/components/nav.tsx +479 -0
- package/components/offers.js +26 -0
- package/components/offers.js.map +1 -0
- package/components/offers.ts +54 -0
- package/components/page.js +21 -0
- package/components/page.js.map +1 -0
- package/components/page.ts +18 -0
- package/components/read.js +5 -0
- package/components/read.js.map +1 -0
- package/components/read.ts +7 -0
- package/components/registry.js +285 -0
- package/components/registry.js.map +1 -0
- package/components/registry.ts +317 -0
- package/components/session_status.tsx +115 -0
- package/components/subscriptions.js +149 -0
- package/components/subscriptions.js.map +1 -0
- package/components/subscriptions.ts +161 -0
- package/components/title.tsx +21 -0
- package/components/useQuery.js +166 -0
- package/components/useQuery.js.map +1 -0
- package/components/useQuery.ts +211 -0
- package/components/views/Board.tsx +450 -0
- package/components/views/BoardTile.tsx +65 -0
- package/components/views/Dashboard.tsx +148 -0
- package/components/views/Debug.tsx +445 -0
- package/components/views/Dependency.tsx +51 -0
- package/components/views/Entry.tsx +500 -0
- package/components/views/Gist.tsx +28 -0
- package/components/views/Inline.tsx +54 -0
- package/components/views/Json.tsx +19 -0
- package/components/views/Layout.tsx +211 -0
- package/components/views/List.tsx +238 -0
- package/components/views/Md.tsx +43 -0
- package/components/views/Media.tsx +48 -0
- package/components/views/Memory.tsx +32 -0
- package/components/views/Relate.tsx +205 -0
- package/components/views/Search.tsx +42 -0
- package/components/views/Session.tsx +850 -0
- package/components/views/SessionManage.tsx +127 -0
- package/components/views/Show.tsx +758 -0
- package/components/views/Shown.tsx +72 -0
- package/components/views/Split.tsx +58 -0
- package/components/views/TaskTile.tsx +37 -0
- package/components/views/Title.tsx +105 -0
- package/components/views/Wake.tsx +77 -0
- package/components/views/Web.tsx +49 -0
- package/components/wells.js +30 -0
- package/components/wells.js.map +1 -0
- package/components/wells.ts +33 -0
- package/configuration.js +38 -0
- package/configuration.js.map +1 -0
- package/configuration.ts +41 -0
- package/decision_sync.js +88 -0
- package/decision_sync.js.map +1 -0
- package/decision_sync.ts +93 -0
- package/deno.json +1 -0
- package/domain-host.tsx +108 -0
- package/edge.js +193 -0
- package/edge.js.map +1 -0
- package/edge.ts +196 -0
- package/entry_log.js +241 -0
- package/entry_log.js.map +1 -0
- package/entry_log.ts +214 -0
- package/failure.js +22 -0
- package/failure.js.map +1 -0
- package/failure.ts +34 -0
- package/front.json +61 -0
- package/highlight.js +143 -0
- package/highlight.js.map +1 -0
- package/highlight.ts +149 -0
- package/history.js +68 -0
- package/history.js.map +1 -0
- package/history.ts +72 -0
- package/host_commands.js +107 -0
- package/host_commands.js.map +1 -0
- package/host_commands.ts +38 -0
- package/hosting.js +53 -0
- package/hosting.js.map +1 -0
- package/hosting.ts +72 -0
- package/idb.js +14 -0
- package/idb.js.map +1 -0
- package/idb.ts +15 -0
- package/index.js +232 -0
- package/index.js.map +1 -0
- package/index.ts +252 -0
- package/keybindings.js +136 -0
- package/keybindings.js.map +1 -0
- package/keybindings.ts +37 -0
- package/kit.js +103 -0
- package/kit.js.map +1 -0
- package/kit.ts +119 -0
- package/layout.js +254 -0
- package/layout.js.map +1 -0
- package/layout.ts +210 -0
- package/legacy_outbox.js +53 -0
- package/legacy_outbox.js.map +1 -0
- package/legacy_outbox.ts +63 -0
- package/live.js +2883 -0
- package/live.js.map +1 -0
- package/live.ts +3334 -0
- package/live_archetypes.js +92 -0
- package/live_archetypes.js.map +1 -0
- package/live_archetypes.ts +113 -0
- package/live_client.js +145 -0
- package/live_client.js.map +1 -0
- package/live_client.ts +120 -0
- package/main.tsx +5 -0
- package/mod.js +7 -0
- package/mod.js.map +1 -0
- package/mod.ts +7 -0
- package/mount.tsx +50 -0
- package/navigation.js +120 -0
- package/navigation.js.map +1 -0
- package/navigation.ts +152 -0
- package/near.js +83 -0
- package/near.js.map +1 -0
- package/near.ts +83 -0
- package/new.js +295 -0
- package/new.js.map +1 -0
- package/new.ts +361 -0
- package/outbox.js +112 -0
- package/outbox.js.map +1 -0
- package/outbox.ts +129 -0
- package/owner.js +39 -0
- package/owner.js.map +1 -0
- package/owner.ts +37 -0
- package/package.json +81 -4
- package/paste.js +157 -0
- package/paste.js.map +1 -0
- package/paste.ts +122 -0
- package/props.js +303 -0
- package/props.js.map +1 -0
- package/props.ts +358 -0
- package/providers.js +136 -0
- package/providers.js.map +1 -0
- package/providers.ts +194 -0
- package/query.js +987 -0
- package/query.js.map +1 -0
- package/query.ts +1113 -0
- package/remote.js +37 -0
- package/remote.js.map +1 -0
- package/remote.ts +46 -0
- package/resolver.js +149 -0
- package/resolver.js.map +1 -0
- package/resolver.ts +213 -0
- package/rfc2047.js +37 -0
- package/rfc2047.js.map +1 -0
- package/rfc2047.ts +40 -0
- package/row_holds.js +107 -0
- package/row_holds.js.map +1 -0
- package/row_holds.ts +93 -0
- package/served.ts +42 -0
- package/session_worktree.js +7 -0
- package/session_worktree.js.map +1 -0
- package/session_worktree.ts +16 -0
- package/sessions.js +57 -0
- package/sessions.js.map +1 -0
- package/sessions.ts +53 -0
- package/sha.js +161 -0
- package/sha.js.map +1 -0
- package/sha.ts +164 -0
- package/styles.css +2823 -0
- package/subs.js +36 -0
- package/subs.js.map +1 -0
- package/subs.ts +40 -0
- package/terminal-route.js +13 -0
- package/terminal-route.js.map +1 -0
- package/terminal-route.ts +17 -0
- package/terminal.js +251 -0
- package/terminal.js.map +1 -0
- package/terminal.ts +186 -0
- package/time.js +142 -0
- package/time.js.map +1 -0
- package/time.ts +133 -0
- package/title.js +25 -0
- package/title.js.map +1 -0
- package/title.ts +50 -0
- package/tui/doc.ts +6 -0
- package/tui/testing.ts +19 -0
- package/twin.js +11 -0
- package/twin.js.map +1 -0
- package/twin.ts +13 -0
- package/types.js +456 -0
- package/types.js.map +1 -0
- package/types.ts +1370 -0
- package/url.js +77 -0
- package/url.js.map +1 -0
- package/url.ts +85 -0
- package/verb.js +82 -0
- package/verb.js.map +1 -0
- package/verb.ts +137 -0
- package/warmth.js +41 -0
- package/warmth.js.map +1 -0
- package/warmth.ts +54 -0
- package/wire.js +86 -0
- package/wire.js.map +1 -0
- package/wire.ts +63 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** @jsxRuntime automatic *//** @jsxImportSourceTypes npm:react@19.3.0 *//** @jsxImportSource npm:react@19.3.0 */
|
|
2
|
+
import { DecisionForm } from 'jsr:@yaks/task@0.2.36/form'
|
|
3
|
+
import { showing, shown } from 'jsr:@yaks/task@0.2.36'
|
|
4
|
+
import type { Bundle } from 'jsr:@yaks/graph@0.2.36'
|
|
5
|
+
import { useObserved } from 'jsr:@yaks/ux@0.2.36'
|
|
6
|
+
import { type Ent, vocab } from '../types.ts'
|
|
7
|
+
import { apply, ent, pendingDecisions } from '../live.ts'
|
|
8
|
+
import { useQueryResult } from './useQuery.ts'
|
|
9
|
+
import { drafts } from 'jsr:@yaks/draft@0.2.36/input'
|
|
10
|
+
import { bundle } from './registry.ts'
|
|
11
|
+
import { useReference } from './subscriptions.ts'
|
|
12
|
+
import { Entity } from './Entity.tsx'
|
|
13
|
+
|
|
14
|
+
/** The decision domain's form bound to this page's graph and drafts; what a
|
|
15
|
+
* choice shows is drawn by its components (Entity.tsx's `Shown`). */
|
|
16
|
+
export let Decision = ({ e, caret }: { e: Ent; caret?: number }) => {
|
|
17
|
+
let waiting = useQueryResult(
|
|
18
|
+
e.decision &&
|
|
19
|
+
['task', 'completed', 'cancelled', 'requires'].every((name) =>
|
|
20
|
+
vocab.comp(name)
|
|
21
|
+
)
|
|
22
|
+
? `.task !completed !cancelled .requires[<=1]->${e.eid}&.limit=1`
|
|
23
|
+
: '',
|
|
24
|
+
!!e.decision,
|
|
25
|
+
true,
|
|
26
|
+
)
|
|
27
|
+
let shows = useQueryResult(
|
|
28
|
+
e.decision && vocab.comp('shows') ? showing(e.eid) : '',
|
|
29
|
+
!!e.decision,
|
|
30
|
+
true,
|
|
31
|
+
)
|
|
32
|
+
useReference(e.decided?.by)
|
|
33
|
+
let pending = useObserved(pendingDecisions).has(e.eid)
|
|
34
|
+
// Sync reports refusals while the form waits for the write to settle.
|
|
35
|
+
let send = (bundles: Bundle[]) => apply(bundles).catch(() => {})
|
|
36
|
+
return (
|
|
37
|
+
<DecisionForm
|
|
38
|
+
e={bundle(e)}
|
|
39
|
+
drafts={drafts}
|
|
40
|
+
apply={send}
|
|
41
|
+
pending={pending}
|
|
42
|
+
name={(eid) => <Entity eid={eid} view='Decision.Author.Inline' />}
|
|
43
|
+
shown={shown(shows.eids.map((eid) => bundle(ent(eid))))}
|
|
44
|
+
show={(eid) => <Entity eid={eid} view='Decision.Shown' />}
|
|
45
|
+
blocking={waiting.ready ? waiting.eids.length > 0 : undefined}
|
|
46
|
+
caret={caret}
|
|
47
|
+
/>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** @jsxRuntime automatic *//** @jsxImportSourceTypes npm:react@19.3.0 *//** @jsxImportSource npm:react@19.3.0 */
|
|
2
|
+
import * as ui from 'jsr:@yaks/ui@0.2.36'
|
|
3
|
+
|
|
4
|
+
// How each state wears the pip (@yaks/ui Dot): a shape saying where it is and a
|
|
5
|
+
// tone. Task statuses first — ring open, half-moon wip, a check done, a cross
|
|
6
|
+
// cancelled — then the other lifecycles that borrow the pip: a session's (a
|
|
7
|
+
// ring while starting, the pulse while going, a glyph for how it ended) and a
|
|
8
|
+
// wake's. A state not named here is the plain dim disc.
|
|
9
|
+
let looks: Record<string, string[]> = {
|
|
10
|
+
open: ['ring', 'info'],
|
|
11
|
+
wip: ['half', 'active'],
|
|
12
|
+
done: ['check', 'positive'],
|
|
13
|
+
cancelled: ['cross'], // settled, but not a success: stays dim
|
|
14
|
+
idle: ['half', 'active'],
|
|
15
|
+
settled: ['half', 'active'],
|
|
16
|
+
pending: ['half', 'active'],
|
|
17
|
+
running: ['pulse', 'active'],
|
|
18
|
+
completed: ['check', 'positive'],
|
|
19
|
+
failed: ['cross', 'negative'],
|
|
20
|
+
interrupted: ['cross', 'caution'],
|
|
21
|
+
stopped: ['cross', 'caution'],
|
|
22
|
+
lost: ['dashed', 'special'],
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// A status pip. `live` says someone is on the work right now (live.ts crewed:
|
|
26
|
+
// the claim's session is awake), so the wip pip fills and breathes instead of
|
|
27
|
+
// sitting half; `gated` (the `blocked` facet: stuck on an external reason,
|
|
28
|
+
// D-17094) burns red whatever the status says. Both are facts about the
|
|
29
|
+
// entity, not statuses anyone maintains. Open `requires` deps are not gated:
|
|
30
|
+
// they are normal work, the calm deps tally (live.ts openDeps), never the
|
|
31
|
+
// alarm. The pip is paint; a click, a title or a class flows through.
|
|
32
|
+
export let Dot = (
|
|
33
|
+
{ status, gated, live, ...rest }: {
|
|
34
|
+
status: string
|
|
35
|
+
gated?: boolean
|
|
36
|
+
live?: boolean
|
|
37
|
+
[x: string]: unknown
|
|
38
|
+
},
|
|
39
|
+
) => {
|
|
40
|
+
let wipLive = live && status == 'wip' && !gated
|
|
41
|
+
return (
|
|
42
|
+
<ui.Dot
|
|
43
|
+
mod={gated
|
|
44
|
+
? ['alert', 'negative']
|
|
45
|
+
: wipLive
|
|
46
|
+
? ['pulse', 'active']
|
|
47
|
+
: looks[status]}
|
|
48
|
+
title={gated ? 'blocked' : wipLive ? 'wip · live' : status}
|
|
49
|
+
{...rest}
|
|
50
|
+
/>
|
|
51
|
+
)
|
|
52
|
+
}
|