@erclx/canon 5.77.0 → 5.79.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.
- package/CHANGELOG.md +43 -0
- package/claude/.claude-plugin/plugin.json +1 -1
- package/claude/skills/app-drive/REQUIREMENT.md +12 -0
- package/claude/skills/app-drive/SKILL.md +44 -8
- package/claude/skills/app-drive/references/config.md +18 -8
- package/claude/skills/app-drive/references/drive-record.md +4 -0
- package/claude/skills/auto-ship/REQUIREMENT.md +1 -1
- package/claude/skills/auto-ship/SKILL.md +5 -4
- package/claude/skills/auto-ship/references/draft-mark.md +33 -15
- package/claude/skills/auto-ship/references/failure-recovery.md +4 -2
- package/claude/skills/auto-ship/references/ui-checklist.md +9 -1
- package/claude/skills/code-craft/REQUIREMENT.md +1 -1
- package/claude/skills/code-craft/SKILL.md +7 -0
- package/claude/skills/code-craft/references/adopted.md +8 -0
- package/claude/skills/git-followup/SKILL.md +1 -0
- package/claude/skills/git-pr/REQUIREMENT.md +2 -0
- package/claude/skills/git-pr/SKILL.md +2 -0
- package/claude/skills/git-pr/references/final-command.md +34 -2
- package/claude/skills/git-pr/references/pr.md +1 -1
- package/claude/skills/git-ship/REQUIREMENT.md +2 -2
- package/claude/skills/git-ship/SKILL.md +16 -11
- package/claude/skills/git-ship/references/ci-watch.md +28 -4
- package/claude/skills/markdown-craft/references/markdown.md +4 -4
- package/claude/skills/plan-feature/references/plan.md +2 -0
- package/claude/skills/pr-evidence/SKILL.md +6 -1
- package/claude/skills/pr-evidence/references/evidence.md +1 -0
- package/claude/skills/pr-evidence/references/reel.md +9 -1
- package/claude/skills/review-address/SKILL.md +2 -1
- package/claude/skills/review-craft/references/ui.md +13 -1
- package/claude/skills/review-pr/references/body-variants.md +2 -0
- package/claude/skills/review-pr/references/close-out.md +2 -0
- package/claude/skills/review-pr/references/key-changes.md +2 -1
- package/claude/skills/review-pr/references/post.md +1 -0
- package/claude/skills/review-ui/REQUIREMENT.md +1 -0
- package/claude/skills/review-ui/SKILL.md +2 -2
- package/claude/skills/review-ui/references/driving.md +32 -4
- package/claude/skills/review-ui/references/post.md +6 -2
- package/claude/skills/role-orchestrator/REQUIREMENT.md +1 -1
- package/claude/skills/role-orchestrator/SKILL.md +4 -4
- package/claude/skills/role-orchestrator/references/orchestrator-hand-launch.md +2 -0
- package/claude/skills/role-orchestrator/references/orchestrator-handback.md +1 -1
- package/claude/skills/role-orchestrator/references/orchestrator-limit-stops.md +47 -0
- package/claude/skills/role-orchestrator/references/orchestrator-output.md +24 -1
- package/claude/skills/role-orchestrator/references/orchestrator-poll.md +3 -2
- package/claude/skills/role-orchestrator/references/orchestrator-review-dispatch.md +35 -4
- package/claude/skills/role-orchestrator/references/orchestrator-reviewer-launch.md +1 -1
- package/claude/skills/role-orchestrator/references/orchestrator-sweep.md +3 -1
- package/claude/skills/role-worker/SKILL.md +2 -1
- package/claude/skills/task-board/SKILL.md +1 -0
- package/claude/skills/task-board/references/tasks.md +1 -0
- package/claude/skills/test-craft/SKILL.md +1 -0
- package/claude/skills/ui-checklist/REQUIREMENT.md +1 -1
- package/claude/skills/ui-checklist/SKILL.md +2 -1
- package/claude/skills/ui-craft/references/capture.md +16 -0
- package/claude/skills/ui-film/REQUIREMENT.md +2 -2
- package/claude/skills/ui-film/SKILL.md +6 -1
- package/claude/skills/ui-film/references/compose-craft.md +68 -11
- package/claude/skills/ui-film/references/config.md +2 -2
- package/claude/skills/ui-film/references/handoff.md +1 -1
- package/claude/skills/ui-film/references/harness.md +71 -0
- package/claude/skills/ui-film/references/take-craft.md +42 -17
- package/docs/workflow/ai-workflow.md +1 -1
- package/docs/workflow/operating-model.md +6 -5
- package/docs/workflow/parallel-features.md +2 -1
- package/docs/workflow/visual-design-workflow.md +2 -1
- package/governance/ledger/skills/code-craft/SKILL.md +9 -0
- package/governance/ledger/skills/test-craft/SKILL.md +1 -0
- package/governance/ledger/skills/ui-craft/capture.md +18 -5
- package/package.json +4 -3
- package/src/commands/pr.ts +255 -46
- package/src/commands/sessions.ts +88 -6
- package/src/commands/take.ts +12 -1
- package/src/commands/tasks.ts +41 -2
- package/src/design/components.ts +5 -107
- package/src/design/favicon.ts +21 -17
- package/src/design/render.ts +9 -27
- package/src/design/template.ts +42 -0
- package/src/design/templates/favicon.svg +17 -0
- package/src/design/templates/hand-drawn-figure.css +54 -0
- package/src/design/templates/preview.html +27 -0
- package/src/design/templates/scrollbar.css +29 -0
- package/src/design/templates/status.css +24 -0
- package/src/gate/embedded.ts +400 -0
- package/src/gate/stages.ts +8 -0
- package/src/git/files.ts +5 -2
- package/src/indexes/frontmatter.ts +27 -6
- package/src/indexes/render.ts +21 -3
- package/src/markdown/colons.ts +14 -4
- package/src/markdown/heading-case.ts +9 -2
- package/src/pr/bijection.ts +8 -0
- package/src/pr/evidence.ts +81 -13
- package/src/pr/frames.ts +1 -6
- package/src/pr/health.ts +63 -15
- package/src/pr/lift.ts +77 -9
- package/src/pr/links.ts +160 -0
- package/src/pr/local.ts +17 -4
- package/src/pr/paths.ts +20 -2
- package/src/pr/rest.ts +2 -0
- package/src/pr/review-scope.ts +28 -0
- package/src/pr/review-state.ts +5 -5
- package/src/pr/waiver.ts +45 -0
- package/src/sessions/stop.ts +145 -0
- package/src/sessions/transfer/bundle.ts +1 -1
- package/src/take/camera.ts +337 -208
- package/src/take/encode.ts +16 -42
- package/src/take/film.ts +7 -1
- package/src/take/frame-clock.ts +46 -0
- package/src/take/log.ts +43 -2
- package/src/take/perform.ts +85 -13
- package/src/take/plan.ts +26 -5
- package/src/take/reel.ts +30 -5
- package/src/take/screencast.ts +223 -13
- package/src/take/stepper.ts +24 -4
- package/src/tasks/holders.ts +198 -0
- package/src/tasks/validate.ts +148 -0
- package/src/commands/fixtures/gh.sh +0 -64
- package/src/take/fixtures/busy.html +0 -107
- package/src/take/fixtures/fade.html +0 -49
- package/src/take/fixtures/fetch.html +0 -38
- package/src/take/fixtures/input.html +0 -138
- package/src/take/zoom/NOTICE.md +0 -45
- package/src/take/zoom/math-utils.ts +0 -69
- package/src/take/zoom/region-utils.ts +0 -55
- package/src/take/zoom/spring.ts +0 -133
- /package/src/sessions/{transfer/transcript.ts → transcript.ts} +0 -0
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// Vendored from OpenScreen at ca8104c, MIT. See NOTICE.md beside this file.
|
|
2
|
-
// Source: src/components/video-editor/videoPlayback/mathUtils.ts
|
|
3
|
-
|
|
4
|
-
export function clamp01(value: number) {
|
|
5
|
-
return Math.max(0, Math.min(1, value))
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function sampleCubicBezier(a1: number, a2: number, t: number) {
|
|
9
|
-
const oneMinusT = 1 - t
|
|
10
|
-
return (
|
|
11
|
-
3 * a1 * oneMinusT * oneMinusT * t + 3 * a2 * oneMinusT * t * t + t * t * t
|
|
12
|
-
)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function sampleCubicBezierDerivative(a1: number, a2: number, t: number) {
|
|
16
|
-
const oneMinusT = 1 - t
|
|
17
|
-
return (
|
|
18
|
-
3 * a1 * oneMinusT * oneMinusT +
|
|
19
|
-
6 * (a2 - a1) * oneMinusT * t +
|
|
20
|
-
3 * (1 - a2) * t * t
|
|
21
|
-
)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function cubicBezier(
|
|
25
|
-
x1: number,
|
|
26
|
-
y1: number,
|
|
27
|
-
x2: number,
|
|
28
|
-
y2: number,
|
|
29
|
-
t: number,
|
|
30
|
-
) {
|
|
31
|
-
const targetX = clamp01(t)
|
|
32
|
-
let solvedT = targetX
|
|
33
|
-
|
|
34
|
-
for (let i = 0; i < 8; i += 1) {
|
|
35
|
-
const currentX = sampleCubicBezier(x1, x2, solvedT) - targetX
|
|
36
|
-
const currentDerivative = sampleCubicBezierDerivative(x1, x2, solvedT)
|
|
37
|
-
|
|
38
|
-
if (Math.abs(currentX) < 1e-6 || Math.abs(currentDerivative) < 1e-6) {
|
|
39
|
-
break
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
solvedT -= currentX / currentDerivative
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
let lower = 0
|
|
46
|
-
let upper = 1
|
|
47
|
-
solvedT = clamp01(solvedT)
|
|
48
|
-
|
|
49
|
-
for (let i = 0; i < 10; i += 1) {
|
|
50
|
-
const currentX = sampleCubicBezier(x1, x2, solvedT)
|
|
51
|
-
if (Math.abs(currentX - targetX) < 1e-6) {
|
|
52
|
-
break
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if (currentX < targetX) {
|
|
56
|
-
lower = solvedT
|
|
57
|
-
} else {
|
|
58
|
-
upper = solvedT
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
solvedT = (lower + upper) / 2
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return sampleCubicBezier(y1, y2, solvedT)
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function easeOutScreenStudio(t: number) {
|
|
68
|
-
return cubicBezier(0.16, 1, 0.3, 1, t)
|
|
69
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// Vendored from OpenScreen at ca8104c, MIT. See NOTICE.md beside this file.
|
|
2
|
-
// Source: src/components/video-editor/videoPlayback/zoomRegionUtils.ts and the
|
|
3
|
-
// two window constants from constants.ts. The zoom-out window and the chained
|
|
4
|
-
// pan's duration carry the operator's tuning, and NOTICE.md lists both.
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
clamp01,
|
|
8
|
-
cubicBezier,
|
|
9
|
-
easeOutScreenStudio,
|
|
10
|
-
} from '@/take/zoom/math-utils'
|
|
11
|
-
|
|
12
|
-
/** OpenScreen's 1015.05 ms, shortened to 700 ms for a quicker zoom-out. */
|
|
13
|
-
export const TRANSITION_WINDOW_MS = 700
|
|
14
|
-
/** OpenScreen's zoom-in window, 1.5 times its original 1015.05 ms window. */
|
|
15
|
-
export const ZOOM_IN_TRANSITION_WINDOW_MS = 1015.05 * 1.5
|
|
16
|
-
|
|
17
|
-
export const CHAINED_ZOOM_PAN_GAP_MS = 1500
|
|
18
|
-
/** OpenScreen's 1000 ms, shortened to 600 ms. */
|
|
19
|
-
export const CONNECTED_ZOOM_PAN_DURATION_MS = 600
|
|
20
|
-
export const ZOOM_IN_OVERLAP_MS = 500
|
|
21
|
-
|
|
22
|
-
export interface ZoomRegion {
|
|
23
|
-
startMs: number
|
|
24
|
-
endMs: number
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function lerp(start: number, end: number, amount: number) {
|
|
28
|
-
return start + (end - start) * amount
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function easeConnectedPan(value: number) {
|
|
32
|
-
return cubicBezier(0.1, 0.0, 0.2, 1.0, value)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export function computeRegionStrength(region: ZoomRegion, timeMs: number) {
|
|
36
|
-
const zoomInEnd = region.startMs + ZOOM_IN_OVERLAP_MS
|
|
37
|
-
const leadInStart = zoomInEnd - ZOOM_IN_TRANSITION_WINDOW_MS
|
|
38
|
-
const leadOutEnd = region.endMs + TRANSITION_WINDOW_MS
|
|
39
|
-
|
|
40
|
-
if (timeMs < leadInStart || timeMs > leadOutEnd) {
|
|
41
|
-
return 0
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
if (timeMs < zoomInEnd) {
|
|
45
|
-
const progress = (timeMs - leadInStart) / ZOOM_IN_TRANSITION_WINDOW_MS
|
|
46
|
-
return easeOutScreenStudio(progress)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (timeMs <= region.endMs) {
|
|
50
|
-
return 1
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const progress = clamp01((timeMs - region.endMs) / TRANSITION_WINDOW_MS)
|
|
54
|
-
return 1 - easeOutScreenStudio(progress)
|
|
55
|
-
}
|
package/src/take/zoom/spring.ts
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
// Adapted from OpenScreen at ca8104c, MIT. See NOTICE.md beside this file.
|
|
2
|
-
// Source: getZoomSpringConfig, stepSpringValue, and clampDeltaMs in
|
|
3
|
-
// src/components/video-editor/videoPlayback/motionSmoothing.ts, and stepAxis in
|
|
4
|
-
// zoomSpring.ts. OpenScreen steps its spring through the `motion` package, and
|
|
5
|
-
// this solves the same damped spring in closed form instead, so a target
|
|
6
|
-
// inherits no dependency for one function.
|
|
7
|
-
|
|
8
|
-
export interface SpringState {
|
|
9
|
-
value: number
|
|
10
|
-
velocity: number
|
|
11
|
-
initialized: boolean
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface SpringConfig {
|
|
15
|
-
stiffness: number
|
|
16
|
-
damping: number
|
|
17
|
-
mass: number
|
|
18
|
-
restDelta: number
|
|
19
|
-
restSpeed: number
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const ZOOM_SPRING: SpringConfig = {
|
|
23
|
-
stiffness: 320,
|
|
24
|
-
damping: 40,
|
|
25
|
-
mass: 0.92,
|
|
26
|
-
restDelta: 0.0005,
|
|
27
|
-
restSpeed: 0.015,
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function createSpringState(initialValue = 0): SpringState {
|
|
31
|
-
return { value: initialValue, velocity: 0, initialized: false }
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function clampDeltaMs(deltaMs: number, fallbackMs = 1000 / 60) {
|
|
35
|
-
if (!Number.isFinite(deltaMs) || deltaMs <= 0) {
|
|
36
|
-
return fallbackMs
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return Math.min(80, Math.max(1, deltaMs))
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Advances one axis toward `target` by `deltaMs`. The first call snaps to the
|
|
44
|
-
* target, a spring at rest stays there, and a step that would cross a moving
|
|
45
|
-
* target lands on it with no velocity, which keeps a quick chase from wobbling
|
|
46
|
-
* on a reversal.
|
|
47
|
-
*/
|
|
48
|
-
export function stepSpring(
|
|
49
|
-
state: SpringState,
|
|
50
|
-
target: number,
|
|
51
|
-
deltaMs: number,
|
|
52
|
-
config: SpringConfig = ZOOM_SPRING,
|
|
53
|
-
): number {
|
|
54
|
-
if (!state.initialized || !Number.isFinite(state.value)) {
|
|
55
|
-
state.value = target
|
|
56
|
-
state.velocity = 0
|
|
57
|
-
state.initialized = true
|
|
58
|
-
return state.value
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (
|
|
62
|
-
Math.abs(target - state.value) <= config.restDelta &&
|
|
63
|
-
Math.abs(state.velocity) <= config.restSpeed
|
|
64
|
-
) {
|
|
65
|
-
state.value = target
|
|
66
|
-
state.velocity = 0
|
|
67
|
-
return state.value
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const before = state.value
|
|
71
|
-
const [offset, velocity] = solve(
|
|
72
|
-
state.value - target,
|
|
73
|
-
state.velocity,
|
|
74
|
-
clampDeltaMs(deltaMs) / 1000,
|
|
75
|
-
config,
|
|
76
|
-
)
|
|
77
|
-
const after = target + offset
|
|
78
|
-
|
|
79
|
-
const crossed =
|
|
80
|
-
(before <= target && after > target) || (before >= target && after < target)
|
|
81
|
-
if (crossed) {
|
|
82
|
-
state.value = target
|
|
83
|
-
state.velocity = 0
|
|
84
|
-
return target
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
state.value = after
|
|
88
|
-
state.velocity = velocity
|
|
89
|
-
return after
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* The displacement and velocity of a damped spring `seconds` after it sat at
|
|
94
|
-
* `x0` from rest length moving at `v0`, for each of the three damping regimes.
|
|
95
|
-
*/
|
|
96
|
-
function solve(
|
|
97
|
-
x0: number,
|
|
98
|
-
v0: number,
|
|
99
|
-
seconds: number,
|
|
100
|
-
{ stiffness, damping, mass }: SpringConfig,
|
|
101
|
-
): [number, number] {
|
|
102
|
-
const omega = Math.sqrt(stiffness / mass)
|
|
103
|
-
const zeta = damping / (2 * Math.sqrt(stiffness * mass))
|
|
104
|
-
const t = seconds
|
|
105
|
-
|
|
106
|
-
if (zeta < 1) {
|
|
107
|
-
const omegaD = omega * Math.sqrt(1 - zeta * zeta)
|
|
108
|
-
const decay = Math.exp(-zeta * omega * t)
|
|
109
|
-
const b = (v0 + zeta * omega * x0) / omegaD
|
|
110
|
-
const cos = Math.cos(omegaD * t)
|
|
111
|
-
const sin = Math.sin(omegaD * t)
|
|
112
|
-
const x = decay * (x0 * cos + b * sin)
|
|
113
|
-
const v =
|
|
114
|
-
decay *
|
|
115
|
-
(-zeta * omega * (x0 * cos + b * sin) + omegaD * (b * cos - x0 * sin))
|
|
116
|
-
return [x, v]
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (zeta === 1) {
|
|
120
|
-
const decay = Math.exp(-omega * t)
|
|
121
|
-
const b = v0 + omega * x0
|
|
122
|
-
return [(x0 + b * t) * decay, (b - omega * (x0 + b * t)) * decay]
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const root = Math.sqrt(zeta * zeta - 1)
|
|
126
|
-
const r1 = -omega * (zeta - root)
|
|
127
|
-
const r2 = -omega * (zeta + root)
|
|
128
|
-
const c1 = (v0 - r2 * x0) / (r1 - r2)
|
|
129
|
-
const c2 = x0 - c1
|
|
130
|
-
const e1 = Math.exp(r1 * t)
|
|
131
|
-
const e2 = Math.exp(r2 * t)
|
|
132
|
-
return [c1 * e1 + c2 * e2, c1 * r1 * e1 + c2 * r2 * e2]
|
|
133
|
-
}
|
|
File without changes
|