@joplo-app/core 0.4.1 → 0.5.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/dist/compile.js +15 -2
- package/dist/guide.js +18 -4
- package/dist/outline.js +2 -1
- package/dist/pace.d.ts +7 -1
- package/dist/pace.js +9 -1
- package/dist/player.d.ts +15 -0
- package/dist/player.js +16 -1
- package/dist/schema.d.ts +10 -0
- package/dist/schema.js +4 -1
- package/dist/voice.js +3 -0
- package/package.json +2 -2
package/dist/compile.js
CHANGED
|
@@ -377,6 +377,7 @@ export function compile(src, mode, opts = {}) {
|
|
|
377
377
|
const ruleIds = [];
|
|
378
378
|
const explains = [];
|
|
379
379
|
const says = [];
|
|
380
|
+
let sayRole = null;
|
|
380
381
|
const narrates = [];
|
|
381
382
|
/** 插件效果声明的最短停留(D98):同一步取最大值。 */
|
|
382
383
|
let effectHoldMs = 0;
|
|
@@ -403,13 +404,24 @@ export function compile(src, mode, opts = {}) {
|
|
|
403
404
|
}
|
|
404
405
|
else if (e.type === 'set' || e.type === 'append')
|
|
405
406
|
effects.push({ type: e.type, path: e.path, value: e.value });
|
|
406
|
-
else if (e.type === 'stream')
|
|
407
|
-
|
|
407
|
+
else if (e.type === 'stream') {
|
|
408
|
+
if (e.pace !== undefined && e.pace !== 'voice')
|
|
409
|
+
err('STREAM_PACE_INVALID', `stream() pace must be 'voice' (got ${JSON.stringify(e.pace)}); omit it to stream at model-output speed`, st.source);
|
|
410
|
+
effects.push({ type: 'stream', path: e.path, value: e.value, ...(e.pace === 'voice' ? { pace: 'voice' } : {}) });
|
|
411
|
+
}
|
|
408
412
|
else if (e.type === 'toast')
|
|
409
413
|
effects.push({ type: 'toast', text: e.text, tone: e.tone });
|
|
410
414
|
else if (e.type === 'shot' || e.type === 'mark' || e.type === 'fork' || e.type === 'cue' || e.type === 'callout' || e.type === 'hold')
|
|
411
415
|
continue; // 镜头与焦点提示不是状态变化,下面单独归类
|
|
412
416
|
else if (e.type === 'say') {
|
|
417
|
+
if (e.role !== undefined) {
|
|
418
|
+
if (typeof e.role !== 'string' || !roleKeys.has(e.role))
|
|
419
|
+
err('ROLE_UNKNOWN', `say() role "${String(e.role)}" is not in feature.roles${roleKeys.size ? ` (available: ${[...roleKeys].join(', ')})` : ' (feature.roles must use { key: role(\'Name\') })'}`, st.source);
|
|
420
|
+
else if (sayRole !== null && sayRole !== e.role)
|
|
421
|
+
err('SAY_ROLE_CONFLICT', `One step has say() lines from two roles ("${sayRole}" and "${e.role}"); split them into two steps`, st.source);
|
|
422
|
+
else
|
|
423
|
+
sayRole = e.role;
|
|
424
|
+
}
|
|
413
425
|
if (typeof e.text === 'string' && e.text.trim())
|
|
414
426
|
says.push(e.text.trim());
|
|
415
427
|
else
|
|
@@ -611,6 +623,7 @@ export function compile(src, mode, opts = {}) {
|
|
|
611
623
|
...(holdMs !== undefined ? { hold: holdMs } : {}),
|
|
612
624
|
...(effectHoldMs > 0 ? { effectHold: effectHoldMs } : {}),
|
|
613
625
|
...(says.length ? { say: says.join(' ') } : {}),
|
|
626
|
+
...(says.length && sayRole ? { sayRole } : {}),
|
|
614
627
|
...(narrates.length ? { narrate: narrates.join(' ') } : {}),
|
|
615
628
|
...(st.source ? { source: rel(st.source) } : {}),
|
|
616
629
|
};
|
package/dist/guide.js
CHANGED
|
@@ -130,6 +130,7 @@ Declare both success and recovery cases in the feature. View code belongs to the
|
|
|
130
130
|
- .click(id), .type(id, value), .select(id, value), .toggle(id, boolean), .press(keys), .back(), .drag(id, destination), .hover(id, ms), .scroll(id, destination), .act(pluginAction, id, data). Read demo and the action-owning plugin skill for recognition requirements.
|
|
131
131
|
- .system('event', ...effects) models a response, not a real request. .card() creates a transition. Strings are captions; other arguments are effects. Step arguments and card accept effect arrays.
|
|
132
132
|
- set(path, value) replaces; push(path, value) appends; patch(path, object) expands to sets (nested objects replace, not deep-merge). go(route) navigates in this option; back returns to the prior route.
|
|
133
|
+
- stream(path, text, { pace? }) writes like set, but during playback the bound text appears character by character (a model answering, speech being transcribed); jumps, screenshots and deep links show the full text. When the new value starts with the old one, only the added characters stream, so write each step's full value (previous text + the new words) rather than juggling separate fragments. pace: 'voice' spreads the new characters over this step's narrate()/say() line, so the words land as they are spoken; the default pace is model-output speed. Only a plain text child bound to the path streams ({$.ui.reply}); stream values are translated like other on-screen text, so keep every language's successive values prefix-consistent.
|
|
133
134
|
- toast(text), toast.success/error/info(text) show an engine message. done(result, outcome?) ends a scenario; outcomes success/failure/cancelled must agree with flow's badge. uses(ruleKey, ...) links rules; it is an effect, not a flow method.
|
|
134
135
|
- free.click/type/select/toggle/drag/hover/scroll/act in option.free declare local reactions. free is a named object, not an array: free: { open: free.click('open', set($.ui.open, true)) }. Only set, push and toast are local effects; navigation, completion and media remain scripted. Play/jump/scenario/reset discard the local layer.
|
|
135
136
|
|
|
@@ -186,6 +187,7 @@ Backend behind the same feature: put a diagram component in its own layer and .s
|
|
|
186
187
|
- Scenario list, one line per scenario: Given (who, where, starting state) → When (the user's actions) → Then (the visible result), plus how it opens and how it ends.
|
|
187
188
|
- Length: a scenario is usually 5–12 steps, about 20–60 s at 1×. check flags one over 90 s; npx joplo outline prints every estimate.
|
|
188
189
|
- Unsure how to frame it? Offer two or three one-line framings and let the user pick.
|
|
190
|
+
- Recreating an existing video, GIF or screen recording: read it before planning. Extract frames into contact sheets (for example ffmpeg -i ref.gif -vf "fps=1,tile=3x3" sheet%02d.png, written outside the project) and list its chapters, the states each chapter passes through and every on-screen sentence; those become cases, steps and narration. Map the reference's own chrome to the player's instead of redrawing it: its chapter label → case title and the player's step title, its bottom progress → the player's chapter list, its key badge → the host key record after .press(), its spoken captions → narrate()/say(). Ask about anything the reference does not show (chapters cut off, unseen states) instead of inventing it; replace third-party logos with neutral shapes.
|
|
189
191
|
|
|
190
192
|
## 3. PM lens: from a need to roles, goal, cases, and scenarios
|
|
191
193
|
Joplo already has the parts of a user story; fill them in that spirit.
|
|
@@ -229,7 +231,11 @@ When the board or the published site reads a demo aloud, each step reads, in ord
|
|
|
229
231
|
- Transitions carry the story: role switches, time jumps, and closing cards need a line that tells the viewer why we moved.
|
|
230
232
|
- Plain and concrete, not flowery: no metaphors, slogans, or hype. Vivid means specific: real names, amounts, and times.
|
|
231
233
|
- Not every step needs its own line: a trivial step can keep its short caption, and a character's say() can carry a moment ('Count me in!').
|
|
234
|
+
- Once a piece will be heard, every step without narrate()/say() reads its caption aloud ('Hover the mic', 'Click Done'), which sounds like a screen reader. Listen for those: merge a hover or setup step into the step that explains it, give a short narrate() to the clicks that stay, or drop steps that only exist to show a tooltip.
|
|
235
|
+
- An on-screen headline and narration play together: narrate the point in spoken words (the why, the consequence) rather than reading the headline back, since the subtitle would show the same sentence twice.
|
|
232
236
|
- say() is first person, what the character would really say; narration about the characters goes in narrate().
|
|
237
|
+
- Who says it: a user action's say() uses the role of the layer it lands on. A system step has no acting person, so it reads in the narrator's voice unless you name the speaker: say('Book it for Friday', { role: 'me' }). Use that for a person talking to the product (voice input, a call, a voice assistant) while the screen reacts in system steps.
|
|
238
|
+
- Voice input / dictation: one system step per spoken phrase, say(phrase, { role }) plus stream($.ui.text, fullTextSoFar, { pace: 'voice' }), so the subtitle shows the phrase, the speaker's voice reads it and the transcript grows in step with the voice. Put the presenter's explanation in narrate() on separate steps (pauses, results); one step reads only one line, and narrate() wins over say().
|
|
233
239
|
- Open with the person and their goal; close with the one to three points, as speech, not a list read aloud. Write in the demo's language.
|
|
234
240
|
Wrong, it reads the interface: .click('share', 'Xiaoyu shares the itinerary', narrate('Click Share to share the itinerary.'))
|
|
235
241
|
Right, it says why: .click('share', 'Xiaoyu shares the itinerary', narrate('She sends it as a link, so Ajie needs no app.'))
|
|
@@ -280,6 +286,7 @@ The engine renders scripted state at step k, plus disposable local exploration.
|
|
|
280
286
|
- .drag(target, destination) accepts an element id or stage pixel point; .scroll(target, destination) accepts an element id or content offset. Declare the correct source and endpoint.
|
|
281
287
|
- .hover(target, ms) expresses a dwell; .act(name, target, data) uses the enabled plugin's data-only contract. Read its installed skill for field types, ranges, matching tolerance and presentation duration.
|
|
282
288
|
- Engine frames expose clock time, speed, running/paused state and gesture progress. Presenters sample it; independent timers must not drive the timeline. Pausing freezes cursor, gestures, media, text and plugin animation together.
|
|
289
|
+
- Only per-frame presenters re-render on every clock frame; ordinary elements re-render when state, run/pause or speed changes. If playback still stutters, measure before changing the piece: open the scenario in a browser, press Play, and record requestAnimationFrame intervals (fps, median, frames over 50 ms) or a CPU profile for 10–15 s. Time in React rendering points at the engine or a presenter re-rendering too much; time in paint points at heavy filters, masks or blend modes. A slow step change in the board can come from development-mode React; check the built site before cutting elements.
|
|
283
290
|
- Inputs belonging to another scenario prompt before switching. The default actionEntry: 'before' enters immediately before the matching action, useful for guided practice. For direct manipulation such as a chapter scrubber, set flow({ actionEntry: 'after' }) on the destination scenario: confirmation lands after the matched action exactly once, showing its scripted result and leaving subsequent steps pending. Cancel preserves exploration; confirm discards it. Before-action entry at step zero exposes the selected action without reopening the inert scenario cover; ordinary reset or chapter selection still shows the cover. This does not change autoplay, normal case selection or from continuity.
|
|
284
291
|
|
|
285
292
|
## A draggable chapter entry
|
|
@@ -307,7 +314,7 @@ Viewers call a piece "a slide deck" when pictures swap in one frame and then sit
|
|
|
307
314
|
- One main motion per beat; most beats 2–3 s. hold(seconds) is the author's pacing: a step with hold no longer gets the 3 s reading floor (caption reading time per character and narration still extend it). System steps show their event for about 0.9 s before committing; narration waits keep the engine clock (and therefore drift and transitions) running.
|
|
308
315
|
- Anti-deck gate: before building, write one line per beat — the main moving object, its start → end state, and the verb (push, morph, rise, swap…). If most beats are only fades or panels appearing, redesign them. A contact sheet that reads like slide thumbnails fails.
|
|
309
316
|
- Chapters: chain them with flow({ from }); sequential playback of a from chapter continues in the same shot (no countdown, no reset, music keeps playing). Bring the next chapter's music in on the beat before the visual swap (play the next score with fadeMs; the old track fades out under it — a J-cut). Play the same score again to keep it going. Stop music only at the real ending.
|
|
310
|
-
- Required review: run npx joplo render <dir> --scenario-id <first chapter> --film --chain --out film.png and read every page (one per chapter; red = one-frame full-screen change, grey = nothing visible changed for ≥ 1.5 s). The CLI prints every CUT and STILL with time and step; film.json beside it has the largest adjacent-frame change around every step. Fix every CUT that is not a deliberate signature and every STILL, then film again. Also record --video (real time) and watch it once start to end. Cells are samples on the engine clock; check a suspicious moment with --frames <dir> at full size before changing code — fine textures (1-px checkers, hairlines) shimmer as moiré under zoom or drift and show up as cuts.
|
|
317
|
+
- Required review: run npx joplo render <dir> --scenario-id <first chapter> --film --chain --out film.png and read every page (one per chapter; red = one-frame full-screen change, grey = nothing visible changed for ≥ 1.5 s). The CLI prints every CUT and STILL with time and step; film.json beside it has the largest adjacent-frame change around every step. Fix every CUT that is not a deliberate signature and every STILL, then film again. Also record --video (real time) and watch it once start to end. Cells are samples on the engine clock; check a suspicious moment with --frames <dir> at full size before changing code — fine textures (1-px checkers, hairlines) shimmer as moiré under zoom or drift and show up as cuts. The opposite also happens: in a product-recording piece the real change is a few characters, a caret or a timer, below the STILL threshold, so a typing sequence can be reported as one long STILL. Crop the changing area across consecutive --frames before adding motion only to satisfy the detector.
|
|
311
318
|
- Review as a picky viewer, not the author: list issues with time code, evidence (frame/metric), impact, severity (blocker / major / minor / note) and verdict (APPROVE / APPROVE_WITH_NOTES / REVISE). Check mechanics first (cuts, stills, overlaps, cropped text), then meaning, then taste; "not cinematic enough" without evidence is not a finding. Do at least two rounds of film → issues → fix, and finish one chapter seam to delivery quality before copying the technique to the others.
|
|
312
319
|
- Static frames (render, --sheet, thumbnails, deep links) show settled pictures: no drift, no half-finished transitions. That is deliberate and is why the film strip is the motion check.
|
|
313
320
|
- Boundary (D94): "like a video" is a quality bar, not a motion-graphics engine. Joplo's timeline is made of real, interactive states (steps), not frames. Reach the bar with the small set of glue tools above — transitions between states (enter/exit, match cuts), camera (framing, drift, safe area), media continuity, and the film/video review. There are no keyframe timelines, compositions, per-frame drawing APIs or particle effects; when a piece needs showy motion graphics, render that clip with another tool and embed it as an asset through a plugin. Ask of any new idea: does it describe how states change and are seen (fine), or how pixels are drawn over time (out of scope)?
|
|
@@ -323,7 +330,7 @@ A camera close-up must not enlarge or move the controls viewers need to pause, s
|
|
|
323
330
|
The host can draw an input/keyboard record after a type/press step, and toasts can move it upward. Reserve a clear band for those host overlays, then inspect the type step in both render --sheet and live playback. Do not infer safety from the authored tree alone or hide host overlays with project CSS. A camera can intentionally crop contextual menus during a close-up; the current action and its result still need to be visible and reachable.
|
|
324
331
|
|
|
325
332
|
## Frames, deep links and verification
|
|
326
|
-
- outline lists scenario and step ids. Use those ids in render/export; a deep link chooses where viewing starts and is not an access boundary.
|
|
333
|
+
- outline lists scenario and step ids. Use those ids in render/export; a deep link chooses where viewing starts and is not an access boundary. render takes qualified ids: --scenario-id <feature>.<option>.<scenario> and --step-id '<feature>.<option>.<scenario>#<n>' (the NOT_FOUND message lists the available scenario ids).
|
|
327
334
|
- joplo render --scenario-id <id> --step-id <id> --out frame.png renders timeline state. --sheet --columns 3 renders every step with captions/narration (settled frames only). --film [--chain] [--every 250] samples real playback on the engine clock for motion review; --video records a webm. Both need the export component (npx joplo setup).
|
|
328
335
|
- A full-size render can pass while a shorter board clips the input area. Check the actual visible hitbox with real pointer input in the board and the built site; DOM text existing is not proof it can be used.
|
|
329
336
|
- Fixed render dimensions are a capture size; viewport belongs to page/layer. In a browser wait for fonts and [data-jcamera][data-camera-settled="1"] plus two animation frames. Do not mistake DOM progress for painted pixels.
|
|
@@ -517,6 +524,8 @@ Example: features/invite/options/a.tsx:12:5 warning UNBOUND_INTERACTIVE Inter
|
|
|
517
524
|
- EXPLAIN_TOO_LONG: Shorten the explain note to about 48 units, using the same CJK 1 / other 0.5 calculation. Put detailed rationale in a separate explanation layer. See demo.
|
|
518
525
|
- SAY_TOO_LONG / NARRATE_TOO_LONG (warning): a say() or narrate() line over about 80 units (about 10 seconds aloud). Autoplay waits until it is read; say less or split the step.
|
|
519
526
|
- SAY_EMPTY / NARRATE_EMPTY: say() needs the character's words, narrate() the narrator's. Remove it to fall back to the caption.
|
|
527
|
+
- SAY_ROLE_CONFLICT: one step has say(…, { role }) lines from two different roles. A step reads one speaker; split the lines into consecutive steps.
|
|
528
|
+
- STREAM_PACE_INVALID: stream()'s pace is only 'voice' (follow this step's spoken line); omit it for model-output speed.
|
|
520
529
|
- VOICE_CONFIG_INVALID: config({ voice }) takes { profile?, narrator?, roles?: { roleKey: 'voice' }, locales?: { ja: { narrator?, roles? } } } with non-empty strings. API keys never go in the config.
|
|
521
530
|
- LOCALES_INVALID / LOCALES_UNDECLARED: config({ locales }) lists supported languages once each, source language first; every locales/<lang>.json must be listed there and must not be the source language. LOCALE_FILE_INVALID: the file must be one JSON object of "source text": "translation" strings.
|
|
522
531
|
- I18N_MISSING / I18N_STALE / I18N_UNUSED (warnings): texts with no translation (viewers see the source text), a source text that changed (the closest old entry is shown: rename the key and update the translation), entries nothing uses. npx joplo i18n add <lang> adds the missing keys.
|
|
@@ -524,7 +533,7 @@ Example: features/invite/options/a.tsx:12:5 warning UNBOUND_INTERACTIVE Inter
|
|
|
524
533
|
- CARD_TEXT_TOO_LONG (info): a transition card's sub is over 48 units, a point over 24, or more than 4 points. Keep one sentence and a few short points; move details into steps.
|
|
525
534
|
- SCENARIO_TOO_LONG (info): the scenario plays over 90 s at 1×. One scenario tells one thing: split it (happy path, then each recovery) or branch with fork(). npx joplo outline shows the pacing.
|
|
526
535
|
- HAPPY_PATH_ONLY (info): every case is a main-flow case and every scenario succeeds. Ask about input, permission, async, and lifecycle cases (see cases), then add an error-and-recovery scenario. Do not invent behavior. Explainers and other content whose chapters are all main-flow can ignore it (see content).
|
|
527
|
-
- ROLE_UNKNOWN: A layer or
|
|
536
|
+
- ROLE_UNKNOWN: A layer, card or say() role is not in feature.roles. Declare roles as { key: role('Name') }; see demo.
|
|
528
537
|
- ICON_UNKNOWN: A layer icon is not a preset. Use one of window, browser, mobile, desktop, terminal, chat, agent, server, data, email, doc, flow; see demo.
|
|
529
538
|
- FORK_UNKNOWN: fork must target another scenario key in the same option; it cannot reference itself.
|
|
530
539
|
- MARK_UNKNOWN: The mark target is absent from this step's route stage (after go() and back() in earlier steps) or, with layers, from every layer. Check the element id; currently hidden targets are valid references.
|
|
@@ -781,6 +790,7 @@ Deploy only dist output, not author source files. MCP, comments, and collaborati
|
|
|
781
790
|
- Voice sources are only: browser voice (free, local), Joplo Cloud narration (signed in, no key, billed in characters), and official OpenAI / ElevenLabs (the user's own key; the API address is fixed). AiHubMix, OpenAI-compatible gateways with a custom Base URL and custom HTTP providers were removed: an old one shows "No longer supported" in the board. Audio it already generated still plays and is still bundled by build and share; it cannot make new audio. Ask the user to switch sources; do not edit ~/.joplo/voice/profiles.json yourself. An old OpenAI / ElevenLabs entry pointed at another address (a proxy), headers or response format is also "No longer supported": its key was for that proxy and is never sent to the official API; deleting it in Manage keys restores the official provider.
|
|
782
791
|
- Default: a project that never chose a source and has no config voice.profile uses Joplo Cloud narration when the user is signed in, otherwise the browser voice. Choosing Browser voice in the board sticks. Re-sharing a project that never chose a source prefers valid audio already generated for the current default, then reuses matching text from the previous share. Different voices can coexist per language, role and text; the published playback index preserves their real fingerprints, including on a later update from another machine. Do not regenerate everything or explicitly change sources just to make an update include new clips; an explicit source change deliberately stops inheriting the old source.
|
|
783
792
|
- After changing an automatic caption's label, input/selected value or keys, rebuild before sharing: audio is eligible only if its text matches the current caption in that clip's language. Valid local audio takes priority over reusable published audio only after this check. Stale text, unknown languages or mismatched cache keys are excluded from the site files and playback index; a step with no valid clip counts as missing and uses the browser voice. Do not treat matching step IDs or a previous successful generation as proof that a clip is current; preserve valid clips in the other interface languages instead of deleting the whole cache.
|
|
793
|
+
- Roles need their own voice: a feature role without config({ voice: { roles: { key: '<voice id>' } } }) speaks in the narrator's voice, so a person talking and the presenter sound identical. Pick a contrasting voice (another gender or register) from the board's voice panel; with Joplo Cloud the ids are multilingual and apply to every content language unless voice.locales overrides them. Set this before generating, because changing a voice regenerates its clips.
|
|
784
794
|
- Joplo Cloud narration is requested only when the user clicks Generate missing audio or runs npx joplo voice: playback never generates or prefetches it (that would spend characters). Steps without audio use the browser voice, marked "Browser voice" in the caption area. OpenAI / ElevenLabs with the user's own key still generate the step being played and prefetch the next few.
|
|
785
795
|
- An old custom provider whose id was cloud keeps its original fingerprint and No longer supported state, including existing board/config references. To deliberately switch, choose Joplo Cloud in the board; when voice.profile is in config, set it to the unambiguous official name 'Joplo Cloud' (config still takes priority over the board). This does not send the old provider's key to the official service.
|
|
786
796
|
- Per-language voices are pinned: the first successful clip in a non-default content language records the Joplo Cloud voice picked for it (the cloud's recommended voice for that language: the current voice stays if it is recommended, otherwise the first recommended one of the same gender) in .joplo/voice/index.json (pins). Later builds, shares and machines use the pinned voice, so recommendation changes never invalidate audio or charge again; config({ voice: { locales } }) still overrides. Invalid pin languages, maps or voice IDs are ignored individually and valid entries remain; a missing/invalid entry uses the normal recommendation rule and is saved after successful generation. Do not delete the whole voice index or edit it by hand to recover pins, because it also indexes the audio cache.
|
|
@@ -825,6 +835,8 @@ Deploy only dist output, not author source files. MCP, comments, and collaborati
|
|
|
825
835
|
- Write the source files in one language. To add another: npx joplo i18n add <lang> (first time also --source <source lang>). It adds the language to config({ locales }) (the first entry is the source language) and writes locales/<lang>.json as "source text": "" for every text viewers see: screens, captions, narrate / say, cards, toasts, done, feature and scenario names, displayed sample data, and board-only texts (case titles and expected results, rules, questions, element notes).
|
|
826
836
|
- Translate every "" yourself, whole sentences, keeping on-screen names consistent where captions quote them; narration as people say it in that language. Do not put t() calls or per-language objects in the TSX. Then npx joplo check: I18N_MISSING lists what is left, I18N_STALE means a source text changed (it shows the closest old entry: rename the key and update the translation).
|
|
827
837
|
- After editing source texts, run npx joplo i18n add <lang> again for each language: it adds new keys and keeps existing translations (--prune drops unused ones).
|
|
838
|
+
- A sentence assembled from several state values (the words before the cursor + new words + the words after it, a label + a value) is joined with no separator. Chinese and Japanese need none; in languages that separate words with spaces, put the space inside the translations at the seams (a 'before' ending in a space, an 'after' starting with one). Successive stream() values must stay prefix-consistent in every language (each step's value = the previous one + the new words). Check both with a small script over locales/<lang>.json, then render --content <lang> the steps where pieces meet.
|
|
839
|
+
- Longer languages overflow layouts written for the source: let headlines wrap instead of white-space: nowrap, and break long words with overflow-wrap: anywhere rather than word-break: break-all.
|
|
828
840
|
- One link serves everyone: viewers get their browser language, ?lang=<lang> picks one, and languages the project lacks fall back to the source language. The board's content-language menu previews each language; npx joplo render --content <lang> screenshots one.
|
|
829
841
|
- Narration: generate audio per language in the board, or npx joplo voice (every content language; --locale <lang> for one). Joplo Cloud narration sends the content language with each clip and picks the cloud's recommended voice for that language (a voice already in the recommendation stays); other providers pick a native preset voice when they have one. config({ voice: { locales: { ja: { narrator } } } }) overrides both. Languages without audio use the viewer's browser voice. Re-sharing reuses the audio already in the previous share (same text and voice). On another computer (no .joplo/cloud.json) run npx joplo share --private --no-review --update <share link>: it updates that share (free and Pro alike) and reuses its audio instead of regenerating it.
|
|
830
842
|
|
|
@@ -872,7 +884,7 @@ The engine supplies authoring, compilation, state, scheduling and host services.
|
|
|
872
884
|
6. joplo components inspects only the enabled manifests; a named query gives that component's declarations and example. For full recipes/behavior read its plugin skill.
|
|
873
885
|
|
|
874
886
|
## Optional 3D
|
|
875
|
-
The starter does not include 3D or its large browser dependency. To add it: npm install @joplo-app/plugin-3d@0.
|
|
887
|
+
The starter does not include 3D or its large browser dependency. To add it: npm install @joplo-app/plugin-3d@0.5.0; default-import scene3d from that package in joplo.config.ts, add scene3d to config.plugins, then run npx joplo skill install. Read npx joplo skill scene3d, scene3d/models and scene3d/generation for rendering, existing assets and optional local generation. A key is unnecessary for existing assets; dry-run before approving any generation.
|
|
876
888
|
|
|
877
889
|
## Errors and trust
|
|
878
890
|
- UNKNOWN_PLUGIN: the element's author package is not enabled. Use its package provenance in the diagnostic to install/import it and add it to config.plugins. UNKNOWN_COMPONENT: no enabled manifest declares that element or intrinsic tag; read the installed catalogs.
|
|
@@ -898,6 +910,8 @@ The starter does not include 3D or its large browser dependency. To add it: npm
|
|
|
898
910
|
- To draw something attached to other elements (connectors, annotation rings), find them by data-jid inside your own container and measure the offsetLeft/offsetTop chain up to that container. This is the final layout, independent of camera zoom and in-flight FLIP transforms, so getBoundingClientRect is wrong here. Re-measure with ResizeObserver, a subtree MutationObserver (targets appear/disappear through when) and document.fonts.ready; skip a target that is not rendered instead of drawing to a stale point.
|
|
899
911
|
- For a canvas drag, report a named hit or stage CSS-pixel point through ctx.act. The host resolves points against declared drop-zone anchors, including ordinary DOM targets outside the canvas. Keep anchors current after camera/scale changes; do not report canvas-local pixels as stage pixels.
|
|
900
912
|
- frame contains resolved state, drawing snapshot, animate, clock/gesture, local playground and reset epoch. animate=false renders final layout; use ctx.hold while required assets load. Stop handled gesture propagation where ownership requires it.
|
|
913
|
+
- frame.clock (and useCtx().clock) is a coarse frame: its object changes only when running, paused or speed changes, while timeMs/elapsedMs/rawMs read the live engine time whenever you read them. The stage does not re-render every frame, so a large scene stays smooth during playback. A React presenter that must redraw every frame (a camera, a dot moving along a path, typed text) calls useEngineFrame() from @joplo-app/kit/renderer, and should memoize the children it renders so its subtree does not re-render with it. Imperative mount/update components already get update() every frame. Reading clock.timeMs in render or as an effect dependency without useEngineFrame() freezes the animation.
|
|
914
|
+
- Testing an engine or plugin change from your own checkout: npx joplo dev joins any board already running under the same JOPLO_HOME, and that board serves its own build, so your change will not appear. Start a separate board with JOPLO_HOME=<empty dir> npx joplo dev <dir> --port <free port>, and run feedback watch with the same JOPLO_HOME.
|
|
901
915
|
- Use @joplo-app/kit/renderer and renderer-style services instead of internal source imports. Share React through the published bridge; clean up observers/listeners and animation on destroy.
|
|
902
916
|
- properties declares literal types, constraints and namespaced DOM attributes. Attributes propagate to every anchor. An observe instance is local to a stage/runtime and updates after layout; switching/unmount destroys it. Exceptions disable that instance, not the engine.
|
|
903
917
|
- themes is named CSS; the engine namespaces it by plugin id. Keep visual semantics in the plugin. Same deterministic snapshot must draw identically in board, built site, render and video.
|
package/dist/outline.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { orderedFeatures } from "./features.js";
|
|
8
8
|
import { holdMsOf } from "./focus.js";
|
|
9
|
+
import { streamPlan } from "./player.js";
|
|
9
10
|
import { stepDwell, voiceMs } from "./pace.js";
|
|
10
11
|
import { JoploError } from "./result.js";
|
|
11
12
|
/** 一步停留时要读的文字:说明、explain,过渡卡再加副标题与要点(与看板封面的估算同一口径)。 */
|
|
@@ -14,7 +15,7 @@ export function stepTexts(step) {
|
|
|
14
15
|
}
|
|
15
16
|
/** 一个场景按 1× 自动播放大约多久(毫秒):每一步取 hold、阅读停留(stepDwell)与旁白朗读估算(narrate / say)中最长的,再求和。 */
|
|
16
17
|
export function scenarioEstimateMs(scenario) {
|
|
17
|
-
return scenario.steps.reduce((sum, step) => sum + Math.max(holdMsOf(step), voiceMs(step.narrate ?? step.say), stepDwell({ texts: stepTexts(step), paced: step.hold !== undefined, cameraMoved: step.shots.length > 0 || !!step.directorLayer,
|
|
18
|
+
return scenario.steps.reduce((sum, step) => sum + Math.max(holdMsOf(step), voiceMs(step.narrate ?? step.say), stepDwell({ texts: stepTexts(step), paced: step.hold !== undefined, cameraMoved: step.shots.length > 0 || !!step.directorLayer, streamMs: Math.max(0, ...streamPlan(step, null).map((x) => x.ms)) })), 0);
|
|
18
19
|
}
|
|
19
20
|
export function outline(project, opts = {}) {
|
|
20
21
|
if (opts.optionId && !Object.hasOwn(project.options, opts.optionId))
|
package/dist/pace.d.ts
CHANGED
|
@@ -31,7 +31,8 @@ export declare function stepDwell(o: {
|
|
|
31
31
|
speed?: number;
|
|
32
32
|
cameraMoved?: boolean;
|
|
33
33
|
dotMs?: number; /** 本步流式输出的文字(D56):等它们出完再加阅读时间。 */
|
|
34
|
-
streams?: string[]; /**
|
|
34
|
+
streams?: string[]; /** 已经算好的流式输出时长(1×,见 player 的 streamPlan,D100):给了就用它,不再按 streams 的字数算。 */
|
|
35
|
+
streamMs?: number; /** 作者写了 hold(D92):节奏由作者掌握,阅读时间不套 3 秒下限(仍按字数)。 */
|
|
35
36
|
paced?: boolean;
|
|
36
37
|
}): number;
|
|
37
38
|
/** 朗读估算(旁白 / 台词):中日韩约每秒 4.5 字、拉丁文字约每秒 13 个非空白字符(约 2.5 词),读完再留 0.45 秒换气。 */
|
|
@@ -39,3 +40,8 @@ export declare const VOICE_CJK_MS = 220;
|
|
|
39
40
|
export declare const VOICE_LATIN_MS = 75;
|
|
40
41
|
/** 一段旁白大约读多久(毫秒,1×);没有文字时为 0。自动播放以真实读完为准,这个只用于封面、outline 与 check 的估算。 */
|
|
41
42
|
export declare function voiceMs(text: string | null | undefined, speed?: number): number;
|
|
43
|
+
/**
|
|
44
|
+
* 跟着朗读出字(stream pace: 'voice',D100):一句话读完大约要多久(1×,不含换气),整段至少 STREAM_MIN。
|
|
45
|
+
* 用 voiceMs 的同一套估算,所以没开声音、或声音还没生成时,字出完的时间也和朗读估算一致。
|
|
46
|
+
*/
|
|
47
|
+
export declare function voicePacedMs(line: string | null | undefined): number;
|
package/dist/pace.js
CHANGED
|
@@ -59,7 +59,7 @@ export function stepDwell(o) {
|
|
|
59
59
|
const cam = o.cameraMoved ? CAMERA_MS + SETTLE : 0;
|
|
60
60
|
const dots = o.dotMs && o.dotMs > 0 ? o.dotMs + SETTLE : 0;
|
|
61
61
|
// 流式输出:先等最长的一段出完,再留出读完它的时间(按出完之后再读一遍的一半计)
|
|
62
|
-
const longest = Math.max(0, ...(o.streams ?? []).map((t) => streamMs(t, speed)));
|
|
62
|
+
const longest = o.streamMs !== undefined ? Math.round(o.streamMs / speed) : Math.max(0, ...(o.streams ?? []).map((t) => streamMs(t, speed)));
|
|
63
63
|
const streamed = longest ? longest + Math.max((o.paced ? 0 : MIN_DWELL) / speed, read / 2) : 0;
|
|
64
64
|
return Math.round(Math.max(read, cam, dots, streamed));
|
|
65
65
|
}
|
|
@@ -79,3 +79,11 @@ export function voiceMs(text, speed = 1) {
|
|
|
79
79
|
}
|
|
80
80
|
return ms ? Math.round((ms + VOICE_EST_BREATH_MS) / (speed > 0 ? speed : 1)) : 0;
|
|
81
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* 跟着朗读出字(stream pace: 'voice',D100):一句话读完大约要多久(1×,不含换气),整段至少 STREAM_MIN。
|
|
84
|
+
* 用 voiceMs 的同一套估算,所以没开声音、或声音还没生成时,字出完的时间也和朗读估算一致。
|
|
85
|
+
*/
|
|
86
|
+
export function voicePacedMs(line) {
|
|
87
|
+
const ms = voiceMs(line);
|
|
88
|
+
return ms ? Math.max(STREAM_MIN, ms - VOICE_EST_BREATH_MS) : 0;
|
|
89
|
+
}
|
package/dist/player.d.ts
CHANGED
|
@@ -160,7 +160,22 @@ export declare function roleOfScene(project: Project, sceneId: string | null | u
|
|
|
160
160
|
export declare function streamsOf(step: Step | undefined): {
|
|
161
161
|
path: string;
|
|
162
162
|
value: string;
|
|
163
|
+
pace?: 'voice';
|
|
163
164
|
}[];
|
|
165
|
+
/** 一段流式输出怎么出字:keep 个字一开始就在(原来的值),其余的字在 ms 毫秒(1×)里逐字出现。 */
|
|
166
|
+
export type StreamPlan = {
|
|
167
|
+
path: string;
|
|
168
|
+
value: string;
|
|
169
|
+
keep: number;
|
|
170
|
+
ms: number;
|
|
171
|
+
pace?: 'voice';
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* 这一步的流式输出怎么出字(D56,D100)。prev 是这一步之前的状态;不知道时传 null(整段重新出,用于估算)。
|
|
175
|
+
* - 接着往后写:新值以原来的值开头时,原有的字直接显示,只有新加的字逐字出现;
|
|
176
|
+
* - pace: 'voice':新加的字在这一步朗读(narrate ?? say)的估算时长里出完,读到哪写到哪;没有朗读时退回按字数。
|
|
177
|
+
*/
|
|
178
|
+
export declare function streamPlan(step: Step | undefined, prev: Pick<PlayState, 'ui' | 'data' | 'inputs'> | null): StreamPlan[];
|
|
164
179
|
/** 动作和业务效果完全相同的公共前缀步数;字幕、镜头、分叉等展示信息不参与。 */
|
|
165
180
|
export declare function commonPrefix(a: readonly Pick<Step, 'action' | 'effects'>[], b: readonly Pick<Step, 'action' | 'effects'>[]): number;
|
|
166
181
|
export declare function forksAt(project: Project, scenarioId: string | null | undefined, position: number): Step['forks'];
|
package/dist/player.js
CHANGED
|
@@ -8,6 +8,7 @@ import { pluginActionSpec, validActionData } from "./actions.js";
|
|
|
8
8
|
*/
|
|
9
9
|
import { DIRECTOR_LAYER, PAGE_LAYER, isInteractiveType, VIEWPORT_SIZE, atWidth, childWidth, breakpointPx, choicesFromData, hiddenAtWidth, matchChoice, nodeLabel } from "./catalog.js";
|
|
10
10
|
import { JoploError } from "./result.js";
|
|
11
|
+
import { streamMs, voicePacedMs } from "./pace.js";
|
|
11
12
|
// ---------- 查找 ----------
|
|
12
13
|
export function getScenario(project, scenarioId) {
|
|
13
14
|
const sc = project.scenarios[scenarioId];
|
|
@@ -558,7 +559,21 @@ export function roleOfScene(project, sceneId) {
|
|
|
558
559
|
}
|
|
559
560
|
/** 第 index 步(0 起)流式输出的状态路径与文字。 */
|
|
560
561
|
export function streamsOf(step) {
|
|
561
|
-
return (step?.effects ?? []).flatMap((e) => (e.type === 'stream' ? [{ path: e.path, value: e.value }] : []));
|
|
562
|
+
return (step?.effects ?? []).flatMap((e) => (e.type === 'stream' ? [{ path: e.path, value: e.value, ...(e.pace ? { pace: e.pace } : {}) }] : []));
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* 这一步的流式输出怎么出字(D56,D100)。prev 是这一步之前的状态;不知道时传 null(整段重新出,用于估算)。
|
|
566
|
+
* - 接着往后写:新值以原来的值开头时,原有的字直接显示,只有新加的字逐字出现;
|
|
567
|
+
* - pace: 'voice':新加的字在这一步朗读(narrate ?? say)的估算时长里出完,读到哪写到哪;没有朗读时退回按字数。
|
|
568
|
+
*/
|
|
569
|
+
export function streamPlan(step, prev) {
|
|
570
|
+
return streamsOf(step).map((s) => {
|
|
571
|
+
const before = prev ? readPath(prev, s.path) : undefined;
|
|
572
|
+
const keep = typeof before === 'string' && before && s.value.startsWith(before) ? [...before].length : 0;
|
|
573
|
+
const fresh = [...s.value].slice(keep).join('');
|
|
574
|
+
const voiced = s.pace === 'voice' ? voicePacedMs(step?.narrate ?? step?.say) : 0;
|
|
575
|
+
return { path: s.path, value: s.value, keep, ms: fresh ? (voiced || streamMs(fresh)) : 0, ...(s.pace ? { pace: s.pace } : {}) };
|
|
576
|
+
});
|
|
562
577
|
}
|
|
563
578
|
// ---------- 分叉、标注与变化(D56 P1) ----------
|
|
564
579
|
/** 动作和业务效果完全相同的公共前缀步数;字幕、镜头、分叉等展示信息不参与。 */
|
package/dist/schema.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ export declare const Effect: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
179
179
|
type: z.ZodLiteral<"stream">;
|
|
180
180
|
path: z.ZodString;
|
|
181
181
|
value: z.ZodString;
|
|
182
|
+
pace: z.ZodOptional<z.ZodLiteral<"voice">>;
|
|
182
183
|
}, z.core.$strict>], "type">;
|
|
183
184
|
/** 镜头(D43):这一步在某个层级里对准哪些元素;targets 为空 = 这一层的整体。 */
|
|
184
185
|
export declare const Shot: z.ZodObject<{
|
|
@@ -357,6 +358,7 @@ export declare const Step: z.ZodObject<{
|
|
|
357
358
|
type: z.ZodLiteral<"stream">;
|
|
358
359
|
path: z.ZodString;
|
|
359
360
|
value: z.ZodString;
|
|
361
|
+
pace: z.ZodOptional<z.ZodLiteral<"voice">>;
|
|
360
362
|
}, z.core.$strict>], "type">>>;
|
|
361
363
|
ruleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
362
364
|
shots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -404,6 +406,7 @@ export declare const Step: z.ZodObject<{
|
|
|
404
406
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
405
407
|
effectHold: z.ZodOptional<z.ZodNumber>;
|
|
406
408
|
say: z.ZodOptional<z.ZodString>;
|
|
409
|
+
sayRole: z.ZodOptional<z.ZodString>;
|
|
407
410
|
narrate: z.ZodOptional<z.ZodString>;
|
|
408
411
|
source: z.ZodOptional<z.ZodString>;
|
|
409
412
|
}, z.core.$strict>;
|
|
@@ -569,6 +572,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
569
572
|
type: z.ZodLiteral<"stream">;
|
|
570
573
|
path: z.ZodString;
|
|
571
574
|
value: z.ZodString;
|
|
575
|
+
pace: z.ZodOptional<z.ZodLiteral<"voice">>;
|
|
572
576
|
}, z.core.$strict>], "type">>>;
|
|
573
577
|
ruleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
574
578
|
shots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -616,6 +620,7 @@ export declare const Scenario: z.ZodObject<{
|
|
|
616
620
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
617
621
|
effectHold: z.ZodOptional<z.ZodNumber>;
|
|
618
622
|
say: z.ZodOptional<z.ZodString>;
|
|
623
|
+
sayRole: z.ZodOptional<z.ZodString>;
|
|
619
624
|
narrate: z.ZodOptional<z.ZodString>;
|
|
620
625
|
source: z.ZodOptional<z.ZodString>;
|
|
621
626
|
}, z.core.$strict>>>;
|
|
@@ -774,6 +779,7 @@ export declare const FreeReaction: z.ZodObject<{
|
|
|
774
779
|
type: z.ZodLiteral<"stream">;
|
|
775
780
|
path: z.ZodString;
|
|
776
781
|
value: z.ZodString;
|
|
782
|
+
pace: z.ZodOptional<z.ZodLiteral<"voice">>;
|
|
777
783
|
}, z.core.$strict>], "type">>>;
|
|
778
784
|
source: z.ZodOptional<z.ZodString>;
|
|
779
785
|
}, z.core.$strict>;
|
|
@@ -863,6 +869,7 @@ export declare const Option: z.ZodObject<{
|
|
|
863
869
|
type: z.ZodLiteral<"stream">;
|
|
864
870
|
path: z.ZodString;
|
|
865
871
|
value: z.ZodString;
|
|
872
|
+
pace: z.ZodOptional<z.ZodLiteral<"voice">>;
|
|
866
873
|
}, z.core.$strict>], "type">>>;
|
|
867
874
|
source: z.ZodOptional<z.ZodString>;
|
|
868
875
|
}, z.core.$strict>>>;
|
|
@@ -1227,6 +1234,7 @@ export declare const Project: z.ZodObject<{
|
|
|
1227
1234
|
type: z.ZodLiteral<"stream">;
|
|
1228
1235
|
path: z.ZodString;
|
|
1229
1236
|
value: z.ZodString;
|
|
1237
|
+
pace: z.ZodOptional<z.ZodLiteral<"voice">>;
|
|
1230
1238
|
}, z.core.$strict>], "type">>>;
|
|
1231
1239
|
source: z.ZodOptional<z.ZodString>;
|
|
1232
1240
|
}, z.core.$strict>>>;
|
|
@@ -1470,6 +1478,7 @@ export declare const Project: z.ZodObject<{
|
|
|
1470
1478
|
type: z.ZodLiteral<"stream">;
|
|
1471
1479
|
path: z.ZodString;
|
|
1472
1480
|
value: z.ZodString;
|
|
1481
|
+
pace: z.ZodOptional<z.ZodLiteral<"voice">>;
|
|
1473
1482
|
}, z.core.$strict>], "type">>>;
|
|
1474
1483
|
ruleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1475
1484
|
shots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1517,6 +1526,7 @@ export declare const Project: z.ZodObject<{
|
|
|
1517
1526
|
hold: z.ZodOptional<z.ZodNumber>;
|
|
1518
1527
|
effectHold: z.ZodOptional<z.ZodNumber>;
|
|
1519
1528
|
say: z.ZodOptional<z.ZodString>;
|
|
1529
|
+
sayRole: z.ZodOptional<z.ZodString>;
|
|
1520
1530
|
narrate: z.ZodOptional<z.ZodString>;
|
|
1521
1531
|
source: z.ZodOptional<z.ZodString>;
|
|
1522
1532
|
}, z.core.$strict>>>;
|
package/dist/schema.js
CHANGED
|
@@ -95,7 +95,8 @@ export const Effect = z.discriminatedUnion('type', [
|
|
|
95
95
|
z.strictObject({ type: z.literal('navigate'), sceneId: Qid }),
|
|
96
96
|
z.strictObject({ type: z.literal('complete'), text: z.string().min(1), outcome: z.enum(['success', 'failure', 'cancelled']) }),
|
|
97
97
|
/** 流式输出(D56):状态上等同 set;播放到这一步时绑定它的文字逐字出现。 */
|
|
98
|
-
|
|
98
|
+
/** pace: 'voice'(D100):新加的字跟着这一步的朗读出;没有时按模型输出的速度。 */
|
|
99
|
+
z.strictObject({ type: z.literal('stream'), path: StatePath, value: z.string(), pace: z.literal('voice').optional() }),
|
|
99
100
|
]);
|
|
100
101
|
/** 镜头(D43):这一步在某个层级里对准哪些元素;targets 为空 = 这一层的整体。 */
|
|
101
102
|
export const Shot = z.strictObject({ layer: z.string().min(1), targets: z.array(z.string().min(1)) });
|
|
@@ -156,6 +157,8 @@ export const Step = z.strictObject({
|
|
|
156
157
|
effectHold: z.number().int().positive().max(60_000).optional(),
|
|
157
158
|
/** 角色台词(D74,来自 say(),多个按空格连接):用这一步角色的声音读;没有时省略。发布站保留。 */
|
|
158
159
|
say: z.string().min(1).optional(),
|
|
160
|
+
/** 台词是谁说的(D100,来自 say(…, { role }),feature.roles 的键):优先于“操作步骤取导演层的角色”;没有时省略。 */
|
|
161
|
+
sayRole: z.string().min(1).optional(),
|
|
159
162
|
/** 旁白(D74,来自 narrate()):用旁白的声音读,优先于台词和字幕;没有时省略。发布站保留。 */
|
|
160
163
|
narrate: z.string().min(1).optional(),
|
|
161
164
|
source: Source,
|
package/dist/voice.js
CHANGED
|
@@ -49,6 +49,9 @@ export function narrationText(step, caption) {
|
|
|
49
49
|
/** 第 index 步(1 起)的说话角色:用户操作取这一步之后导演所在层画面的角色 id;没有角色、系统步骤与过渡卡为 null。say() 用它的声音。 */
|
|
50
50
|
export function speakerRoleAt(project, scenarioId, index) {
|
|
51
51
|
const step = project.scenarios[scenarioId]?.steps[index - 1];
|
|
52
|
+
// say(…, { role }) 写明了是谁(D100):任何步骤都以它为准(系统步骤没有“操作的人”)
|
|
53
|
+
if (step?.say && step.sayRole)
|
|
54
|
+
return step.sayRole;
|
|
52
55
|
if (!step || step.kind !== 'user')
|
|
53
56
|
return null;
|
|
54
57
|
const layer = cameraAt(project, scenarioId, index).directorLayer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joplo-app/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Joplo 编译器、校验器与播放器(IR v2)",
|
|
5
5
|
"license": "PolyForm-Shield-1.0.0",
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@joplo-app/kit": "0.
|
|
26
|
+
"@joplo-app/kit": "0.5.0",
|
|
27
27
|
"zod": "4.6.7"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|