Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

docs: align authoring guidance and migration notes with 0.3.1

kashorindf3b506135c7
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d84df421..a365941a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -59,6 +59,27 @@ pnpm test # package and service-adapter tests
## Package the Distribution
+### SDK imports in 0.3.1
+
+For an existing video project, follow the [Agent migration guide](migrations/0.3.1.md)
+for the exact import mapping, dependency update and verification steps.
+
+Video-domain SDKs are independently installed packages. Component code using a former root subpath,
+such as `@hypit/hypit/composition`, must import from `@hypit/composition` and declare that package
+in its own `dependencies`. The same applies to Timeline, Temporal, Spatial, Media, Narrative,
+Caption, Generation, HTML Program, evidence and projection packages. Import the subpath exported by
+the owning package when using an API such as `@hypit/temporal/markup` or `@hypit/temporal/studio`.
+Generic host APIs remain under `@hypit/hypit/*`. Logical SVML module references retain their `@1`
+identities; this change concerns npm ownership and TypeScript imports.
+
+The root release is `0.3.1`, but this SDK import migration is not source-compatible with `0.3.0`.
+Update the root and affected component dependencies together, then regenerate the project's ordinary
+package-manager lockfile. New-architecture versions of existing domain packages use the `0.2.x`
+line so that old `^0.1.1` dependencies do not silently select them. Previously embedded domain
+packages start at `0.1.0`; packages that did not change keep their existing versions.
+
+### Build and publish
+
Run `npm run pack:distribution` to build public types and write the release tarball to
`dist/release/`. This stages npm's selected files in a temporary directory and adapts the English
README for the npm page: public image URLs, both GIFs, and a link to the full video examples.
@@ -73,7 +94,8 @@ and retains the temporary project on failure. The `npm package execution` workfl
and is reused by publication; publication uploads the same tarball that was installed and executed.
For a formal release, use the existing GitHub workflows. Commit the next stable npm version in
-`package.json` to `main`, then open
+`package.json` to `main`, then run **Actions → Publish npm → Run workflow** with **Publish to npm**
+unchecked to validate that exact commit on Linux and Windows. After it passes, open
**Releases → Draft a new release**, choose that commit with tag `v<version>` (for example `v0.1.8`),
write the release notes, and publish the Release. The tagged commit must contain this workflow.
`Publish npm` verifies the tag/version match and that the commit belongs to main's history, runs
@@ -100,6 +122,14 @@ Pushing main, pushing a tag alone, or saving a draft Release does not publish np
does not edit versions or create tags. A visible Release can precede successful npm publication;
check its Actions result before announcing that the npm version is available.
+For an independent-package update, use the workflow's **packages** input with the exact space-separated
+names to publish, such as `@hypit/studio`. The full candidate is still installed and checked, but only
+the selected packages are preflighted and published; this does not require a new root version when
+the existing root dependency ranges remain valid. Locally the equivalent selection is
+`node scripts/publish-release-candidate.mjs dist/release/release-plan.json --package=@hypit/studio`.
+Workspace release dependencies use explicit compatibility ranges, such as `workspace:^0.3.0`;
+packing removes the workspace prefix without raising the minimum to the current checkout version.
+
The npm package's Trusted Publisher settings must allow GitHub Actions from organization `hypit-ai`,
repository `hypit`, workflow `publish-npm.yml`, with direct `npm publish` enabled and no environment
name. The publishing job uses OIDC; no npm token secret is needed. An already published version
diff --git a/CONTRIBUTING.zh-CN.md b/CONTRIBUTING.zh-CN.md
index ae16bb2c..da1e2c10 100644
--- a/CONTRIBUTING.zh-CN.md
+++ b/CONTRIBUTING.zh-CN.md
@@ -53,6 +53,25 @@ pnpm test # 包与服务适配器测试
## 打包 Distribution
+### 0.3.1 的 SDK 导入迁移
+
+已有视频项目的准确导入映射、依赖调整与验证方法见
+[Agent 迁移指南](migrations/0.3.1.md)。
+
+视频领域 SDK 改为独立安装的包。组件代码使用 `@hypit/hypit/composition` 等旧根子路径时,
+需要改为从 `@hypit/composition` 导入,并在组件自己的 `dependencies` 中声明该包。
+Timeline、Temporal、Spatial、Media、Narrative、Caption、Generation、HTML Program、证据与
+投影包同理。使用子路径 API 时,以所属包实际导出为准,例如 `@hypit/temporal/markup`、
+`@hypit/temporal/studio`。通用宿主 API 继续由 `@hypit/hypit/*` 提供。
+SVML 的逻辑 Module 引用仍保持 `@1`,这里改变的是 npm 归属和 TypeScript 导入路径。
+
+根发行号定为 `0.3.1`,但上述 SDK 导入迁移与 `0.3.0` 并非源码兼容。
+需要一起更新根和受影响的组件依赖,然后由项目的普通包管理器更新 lockfile。
+已有领域包的新架构版本使用 `0.2.x`,避免旧 `^0.1.1` 依赖静默选择它们;
+原先内嵌的领域包从 `0.1.0` 开始,未变化的包保留原版本。
+
+### 构建与发布
+
运行 `npm run pack:distribution`,构建公共类型并将发布 tarball 写入 `dist/release/`。
脚本在临时目录中使用 npm 选定的文件,从英文 README 生成 npm 页面版本:使用公开图片地址,
保留两个 GIF,并将完整视频示例改为链接。仓库的两份 README 保持原样。
@@ -87,6 +106,12 @@ Linux/Windows 检查,构建并检查打包后的 CLI,预检发布计划中
push main、只 push 标签、或保存草稿 Release 都不会发布 npm。工作流不修改版本,也不创建标签。
可见的 Release 可以早于 npm 发布成功;对外宣布该 npm 版本可用前,先看这次 Actions 的结果。
+独立包更新可在工作流的 **packages** 输入中填写空格分隔的准确包名,例如 `@hypit/studio`。
+完整候选仍需安装检查,但只预检和发布所选包;现有根依赖范围仍适用时,不需要为此发布根包。
+本地对应命令是 `node scripts/publish-release-candidate.mjs dist/release/release-plan.json --package=@hypit/studio`。
+发行依赖使用明确的兼容范围,例如 `workspace:^0.3.0`;打包只去掉 workspace 前缀,
+不会自动把兼容下限抬高到当前源码版本。
+
npm 包的 Trusted Publisher 应配置 GitHub Actions:组织 `hypit-ai`、仓库 `hypit`、工作流
`publish-npm.yml`,允许直接 `npm publish`,环境名称留空。发布 job 使用 OIDC,不需要保存 npm Token。
已发布的版本不能覆盖;`0.1.2` 等 npm 版本与逻辑接口 `@1` 分开管理。
diff --git a/README.md b/README.md
index eab8e51f..dc798363 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,9 @@ npx skills add hypit-ai/hypit -g
This installs the Skill. On first use, your agent checks for the Hypit executable and helps prepare
it if needed. Your video project can live anywhere.
+Upgrading an existing project to 0.3.1? Give your agent the
+[migration guide](./migrations/0.3.1.md) before updating its installation and component dependencies.
+
Hypit is free to use; your Coding Agent and model services have their own accounts and charges.
HypiHub is our recommended hosted model service. You can also use your own API or local models;
tell your agent the service name and API documentation so it can set up the appropriate connection.
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 6ece2d83..bfb89e85 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -65,6 +65,9 @@ npx skills add hypit-ai/hypit -g
这条命令安装 Skill。首次使用时,Agent 会检查 Hypit 可执行程序,并按需协助安装。
视频项目可以放在任意位置。
+已有项目要升级到 0.3.1?先把[迁移指南](./migrations/0.3.1.md)
+交给 Agent,再一起调整安装版本和组件依赖。
+
Hypit 本身免费使用;Coding Agent 和模型服务各有自己的账号与费用。
HypiHub 是我们推荐的托管模型服务,也可以使用你自己的 API 或本地模型。
把服务名称和 API 文档告诉 Agent,它会据此配置合适的连接。
diff --git a/docs/guide/packages.md b/docs/guide/packages.md
index e1b39e83..689ca6d7 100644
--- a/docs/guide/packages.md
+++ b/docs/guide/packages.md
@@ -53,11 +53,15 @@ version selects the implementation; the logical `@1` identifies its author inter
video uses those installed versions. Missing packages are reported with the information needed to
install them.
+When upgrading an existing production, read the selected release's migration notes before changing
+its executable or component dependencies. The [0.3.1 project migration guide](https://github.com/hypit-ai/hypit/blob/main/migrations/0.3.1.md)
+covers SDK import changes and verification while preserving existing material and Results.
+
## Write and share an extension
An external package develops against the narrow public owners it uses, such as
`@hypit/hypit/author`, `@hypit/hypit/producer`, `@hypit/hypit/admission`,
-`@hypit/hypit/markup`, `@hypit/hypit/composition`, `@hypit/hypit/generation/model` or
+`@hypit/hypit/markup`, `@hypit/composition`, `@hypit/generation/model` or
`@hypit/hypit/endpoint`. Use the selected `@hypit/hypit` release as a
development dependency, compile the extension to JavaScript, and ship its own code and assets. Its
`package.json` names an activation entry describing what it provides. The active Distribution
diff --git a/docs/guide/providers.md b/docs/guide/providers.md
index d293cf04..c9f79bb0 100644
--- a/docs/guide/providers.md
+++ b/docs/guide/providers.md
@@ -60,7 +60,7 @@ deployment and executing a video Build have separate lifetimes.
## Add a Model
-Develop a project package against `@hypit/hypit/generation/model`, `@hypit/hypit/generation`,
+Develop a project package against `@hypit/generation/model`, `@hypit/generation`,
`@hypit/hypit/author`, `@hypit/hypit/producer`, `@hypit/hypit/admission` and `@hypit/hypit/markup`.
Declare the exact request ports, parameter values, result type and capability. Its author Surface
connects prompt Text and reference media to the request, then publishes the resulting media as a
diff --git a/docs/quickstart/preview.md b/docs/quickstart/preview.md
index ada7c766..4ea90489 100644
--- a/docs/quickstart/preview.md
+++ b/docs/quickstart/preview.md
@@ -66,7 +66,8 @@ media sampling and motion as an encoded render. Check the actual picture when ad
placement, graphic emphasis or coverage.
The Timeline shows component appearances on a shared clock. Domain projections can also contribute
-mapping and evidence rows, while authored Instants and Windows share a temporal row. Select an Item to seek to it; playback, frame stepping,
+mapping and evidence rows, while resolved named Instants share a locator row. Window intervals are
+shown by the Track Items that use them. Select an Item to seek to it; playback, frame stepping,
zoom and scrolling help examine a particular transition or layout.
The Inspector shows the selected Item's properties. Editable fields and timeline handles depend
diff --git a/docs/zh/guide/packages.md b/docs/zh/guide/packages.md
index b0603a99..113d44f1 100644
--- a/docs/zh/guide/packages.md
+++ b/docs/zh/guide/packages.md
@@ -34,9 +34,13 @@ Skill、可执行 Distribution 和视频项目分别安装与更新。`@hypit/hy
Source 使用 `@your-studio/scoreboard@1` 这样的逻辑 Module 地址。npm 安装的包版本决定实际实现,逻辑 `@1` 标识作者接口。视频 Build 使用这些已安装的版本;缺包时会报告安装所需的信息。
+升级已有作品前,先阅读目标发行版的迁移说明,再调整可执行程序和组件依赖。
+[0.3.1 项目迁移指南](https://github.com/hypit-ai/hypit/blob/main/migrations/0.3.1.md)
+说明 SDK 导入调整与验证方法,保留已有素材和 Results。
+
## 编写与分享扩展
-外部包只使用自己实际需要的窄公共所有者,例如 `@hypit/hypit/author`、`@hypit/hypit/producer`、`@hypit/hypit/admission`、`@hypit/hypit/markup`、`@hypit/hypit/composition`、`@hypit/hypit/generation/model` 或 `@hypit/hypit/endpoint`。将选定的 `@hypit/hypit` 版本作为开发依赖,把扩展编译为 JavaScript,分发它自己的代码与素材。`package.json` 中的 activation 入口描述它提供的能力;加载选中的扩展时,当前 Distribution 提供公开 Hypit API。
+外部包只使用自己实际需要的窄公共所有者,例如 `@hypit/hypit/author`、`@hypit/hypit/producer`、`@hypit/hypit/admission`、`@hypit/hypit/markup`、`@hypit/composition`、`@hypit/generation/model` 或 `@hypit/hypit/endpoint`。将选定的 `@hypit/hypit` 版本作为开发依赖,把扩展编译为 JavaScript,分发它自己的代码与素材。`package.json` 中的 activation 入口描述它提供的能力;加载选中的扩展时,当前 Distribution 提供公开 Hypit API。
- [添加作者包](./author-packages.md):从随发行包提供的可构建组件开始。
- [组件结构](./component-anatomy.md):组件内部各部分的职责。
diff --git a/docs/zh/guide/providers.md b/docs/zh/guide/providers.md
index 12b5de18..8dc4e108 100644
--- a/docs/zh/guide/providers.md
+++ b/docs/zh/guide/providers.md
@@ -38,7 +38,7 @@ Model 定义生成请求,Provider 实现推理服务的 API,Endpoint 选择
## 添加 Model
-项目包使用 `@hypit/hypit/generation/model`、`generation`、`author`、`producer`、`admission` 与 `markup` 等窄公共子路径。声明准确的请求端口、参数取值、输出类型和能力。作者 Surface 把 Prompt Text 与参考素材连接到请求,再将生成素材作为普通图输出公开。
+项目包使用 `@hypit/generation/model`、`@hypit/generation`、`@hypit/hypit/author`、`@hypit/hypit/producer`、`@hypit/hypit/admission` 与 `@hypit/hypit/markup` 等公共 API。声明准确的请求端口、参数取值、输出类型和能力。作者 Surface 把 Prompt Text 与参考素材连接到请求,再将生成素材作为普通图输出公开。
[Generation Model 作者 API](https://github.com/hypit-ai/hypit/blob/main/packages/generation/README.md#exact-model-authoring) 提供请求定义与 activation 示例。包拥有模型接口;凭据与 HTTP 映射由 Provider 负责。
diff --git a/docs/zh/quickstart/preview.md b/docs/zh/quickstart/preview.md
index 244a23ef..93b1580c 100644
--- a/docs/zh/quickstart/preview.md
+++ b/docs/zh/quickstart/preview.md
@@ -45,7 +45,7 @@ hypit studio --run build.svrun
中央 Preview 求值编排生成的 `HtmlProgram`;组件布局、素材采样和动作与编码成片来自同一份编排。调整字幕位置、图形重点或覆盖画面时,可以对照真实素材查看。
-Timeline 把组件的出现放在同一时钟上。领域投影还可以贡献映射行与证据行,作者声明的 Instant 和 Window 则共享一条时间行。选择 Item 即可定位;播放、逐帧、缩放和滚动便于查看具体转场或版面。
+Timeline 把组件的出现放在同一时钟上。领域投影还可以贡献映射行与证据行,已解析的具名 Instant 共享一条定位行,Window 区间由消费它的 Track Item 展示。选择 Item 即可定位;播放、逐帧、缩放和滚动便于查看具体转场或版面。
Inspector 显示所选 Item 的属性。可编辑字段与时间线手柄由组件的 **Studio Companion** 提供,它负责向 Studio 描述组件。项目组件可以随绘制代码一起提供自己的 Companion。组件能够渲染,与它开放了哪些编辑控件,是两件事:字段或手势需要明确可修改的 Source 值。
diff --git a/migrations/0.3.1.md b/migrations/0.3.1.md
new file mode 100644
index 00000000..8470fd8b
--- /dev/null
+++ b/migrations/0.3.1.md
@@ -0,0 +1,95 @@
+# Upgrade an existing project to 0.3.1
+
+Read this when upgrading a project from the 0.3.0 SDK, or when its component imports fail after
+selecting 0.3.1. Fresh projects use the current authoring references directly.
+Confirm that the selected release is available from the chosen registry or supplied release
+candidate before installing it. The [installation and update reference](../skills/hypit/references/environment/distribution.md)
+explains installation scope and updates.
+
+This release moves video-domain SDK imports into independent npm packages. It retains logical SVML
+Module addresses such as `@hypit/composition@1`; it does not translate the project's creative intent.
+Existing TypeScript components may need import and dependency edits. Explain those edits before
+upgrading an existing production; a patch-sized version number does not make this SDK migration
+source-compatible.
+
+## Locate the mismatch
+
+Identify the executable used by the production with `hypit version` and `hypit paths`. For a
+project-local installation, use its package-manager launcher; for npm this is
+`npm exec --no -- hypit version`. Inspect the project's manifests, lockfile and installed dependencies,
+including manifests inside `packages/`. For example, from the project root:
+
+```sh
+npm ls @hypit/hypit @hypit/video @hypit/studio @hypit/visual-track @hypit/script --all
+rg -n '@hypit/hypit/' packages --glob '*.{ts,tsx,js,mjs,cjs,json}' --glob '!node_modules/**' --glob '!dist/**'
+```
+
+These package names are examples to inspect, not an installation list. Follow the package actually
+named in the error. Project-selected packages take precedence over Distribution defaults; updating
+a global executable does not update the project's explicit component dependencies.
+
+| Observation | Likely repair to investigate |
+| --- | --- |
+| A former root domain subpath is not exported | Migrate that component's import using the table below |
+| A new domain package cannot be found | Declare and install it in the package that imports it |
+| The error originates inside an installed third-party package | Select an available migrated release, or explicitly arrange a source-level repair with the user |
+| Installation reports conflicting peer versions | Inspect the root and the named package's requirements together; choose a compatible set |
+| Files are updated but a running Studio or Worker still uses old code | Check the active process and installation, then restart that process when active work permits |
+
+## Move only the domain imports
+
+Match complete module specifiers in imports, re-exports, dynamic imports and type imports:
+
+| Before | After |
+| --- | --- |
+| `@hypit/hypit/caption` | `@hypit/caption` |
+| `@hypit/hypit/composition` | `@hypit/composition` |
+| `@hypit/hypit/generation` | `@hypit/generation` |
+| `@hypit/hypit/generation/model` | `@hypit/generation/model` |
+| `@hypit/hypit/html-program` | `@hypit/html-program` |
+| `@hypit/hypit/media` | `@hypit/media` |
+| `@hypit/hypit/narrative` | `@hypit/narrative` |
+| `@hypit/hypit/narrative-caption` | `@hypit/narrative-caption` |
+| `@hypit/hypit/narrative-temporal` | `@hypit/narrative-temporal` |
+| `@hypit/hypit/region-evidence` | `@hypit/region-evidence` |
+| `@hypit/hypit/spatial` | `@hypit/spatial` |
+| `@hypit/hypit/speech-evidence` | `@hypit/speech-evidence` |
+| `@hypit/hypit/temporal` | `@hypit/temporal` |
+| `@hypit/hypit/temporal/markup` | `@hypit/temporal/markup` |
+| `@hypit/hypit/timeline` | `@hypit/timeline` |
+
+Generic host imports, such as `@hypit/hypit/author`, `@hypit/hypit/producer` and
+`@hypit/hypit/protocol`, stay where they are. Apply the table to physical SDK imports, not to
+logical `@1` addresses in SVML or manifests. Edit a component's source and rebuild its declared
+JavaScript entry; a generated `dist` file or installed `node_modules` edit is not the durable source.
+
+Declare each newly imported domain package in that component's ordinary `dependencies`, including
+packages referenced by its public types. Their initial independent releases are `0.1.0`, so an
+appropriate compatible range is `^0.1.0`. A component using the new SDK should declare its Hypit
+host compatibility from `^0.3.1`. Preserve the project's package manager, dependency roles and
+workspace layout; installing everything globally does not satisfy a component's own dependencies.
+
+For existing official domain packages that the project explicitly selects, check their release
+requirements. The migrated Track, Script, Model, Video and Studio packages use the `0.2.0` line;
+their former `^0.1.1` ranges do not select it. Update affected explicit declarations together with
+the root. Unchanged Runtime, credential stores, Kits and Speech Estimate can remain on `0.1.1`.
+Use the package manager to update the existing lockfile and review the resulting changes.
+Peer-resolution overrides such as `--force` or `--legacy-peer-deps` do not establish compatibility.
+
+## Verify the project, preserving produced work
+
+Build each changed component with its own build command, run `hypit check` on the production's
+Source and Run, then inspect `hypit plan <run>` with its selected Runtime. Confirm that existing
+Run Candidates still reuse the intended Outputs before any paid Build. Open the actual Run in
+Studio and check its tracks, captions and a representative passage. Compilation alone does not
+establish that the intended picture and sound are intact.
+
+Keep Sources, assets, Profiles, credentials, Results and accepted Run selections. SDK package
+relocation is not a reason to regenerate media. If an Output cannot be reused, inspect the specific
+type or selection error; regeneration is a separate production decision. After installation changes,
+follow [process lifetimes](../skills/hypit/references/environment/profile.md#know-when-a-change-takes-effect)
+for Studio and Runtime restarts.
+
+If a required third-party component has no migrated release and a source repair is not in scope,
+keep the production on its known-working 0.3.0 installation and lockfile until it can be migrated.
+Pin the executable version explicitly when preserving that setup; `^0.3.0` also admits `0.3.1`.
diff --git a/skills/hypit/references/environment/model-and-provider.md b/skills/hypit/references/environment/model-and-provider.md
index d24cd1e0..c2809b96 100644
--- a/skills/hypit/references/environment/model-and-provider.md
+++ b/skills/hypit/references/environment/model-and-provider.md
@@ -250,8 +250,8 @@ silently changing an author's request.
| Public import | Accurate interface owner |
| --- | --- |
-| `@hypit/hypit/generation/model` | Model ports and Producer/Need construction |
-| `@hypit/hypit/generation` | Generated-media values and request/mapping helpers |
+| `@hypit/generation/model` | Model ports and Producer/Need construction |
+| `@hypit/generation` | Generated-media values and request/mapping helpers |
| `@hypit/hypit/endpoint` | Execution, resources, credentials, support, receipts and capacity |
| `@hypit/runtime-local/extension` | Profile activation, diagnostics and Managed Programs for the official local Runtime |
| `@hypit/hypit/author`, `producer`, `admission`, `markup` | Author graphs, deterministic Producers, Type admission and Markup Surfaces respectively |
diff --git a/skills/hypit/references/production/caption-authoring.md b/skills/hypit/references/production/caption-authoring.md
index 791da975..09ab4aef 100644
--- a/skills/hypit/references/production/caption-authoring.md
+++ b/skills/hypit/references/production/caption-authoring.md
@@ -62,7 +62,7 @@ speech Tokens with spaces or guessing from a writing system. Suppress a separato
a displayed Cue/line. Use the same authored boundaries in base glyphs, active layers and backgrounds.
Separators are display content, not timed Tokens.
-Use `@hypit/hypit/caption` for content timing and Use coverage, and `@hypit/hypit/narrative` for
+Use `@hypit/caption` for content timing and Use coverage, and `@hypit/narrative` for
Script document types. A family Track accepts `document`, resolved `timing`, `timeline` and ordered
`Use` children:
diff --git a/skills/hypit/references/production/component-sharing.md b/skills/hypit/references/production/component-sharing.md
index 2e496ab7..c5c123ca 100644
--- a/skills/hypit/references/production/component-sharing.md
+++ b/skills/hypit/references/production/component-sharing.md
@@ -122,9 +122,12 @@ JavaScript entry. Declare third-party runtime dependencies in `dependencies`. In
an actual Source example, the public outputs, any companion or asset requirements, and the Hypit
release used to check it. Inspect the tarball contents with `npm pack --dry-run`.
-An executable Author Package develops against the narrow `@hypit/hypit/author`, `producer`, `admission`
-and `markup` owners it actually needs, plus relevant domain subpaths, with `@hypit/hypit` as a development dependency. Its release contains its own code and assets;
-the active Hypit Distribution supplies the framework APIs when loading it. Check the package from a
+An executable Author Package uses the public APIs it needs, such as `@hypit/hypit/author`,
+`@hypit/hypit/producer`, `@hypit/hypit/admission` and `@hypit/hypit/markup`.
+Declare `@hypit/hypit` as a compatible peer and development dependency, and domain packages such as
+`@hypit/composition` or `@hypit/caption` as ordinary dependencies. A Studio Companion also declares
+compatibility with `@hypit/studio-companion` through a peer dependency. Its release contains its own
+code and assets; the selected host supplies the framework APIs. Check the package from a
separate consumer project so local source links do not conceal omitted files or dependencies.
Package code runs as trusted JavaScript in the host process. The recipient chooses which package and
@@ -141,10 +144,3 @@ A Prompt Kit can export an `.svs` Source through ordinary package `exports` with
That reads the selected package data. The same packing, installation, versioning, and file-completeness
rules apply. [Project handoff](../creation/project-files.md#hand-over-an-editable-production) explains
sharing the Sources, Runs, assets and Results needed to continue a video on another machine.
-
-## Official Distribution ownership is a separate decision
-
-A package maintained in the official Hypit Distribution becomes part of Hypit's product and release
-surface. A proposal for that ownership begins with an issue that explains the shared production need
-and maintenance boundary. Community reuse remains under the package owner's own releases, independent
-of that product decision.
diff --git a/skills/hypit/references/production/component-visuals.md b/skills/hypit/references/production/component-visuals.md
index d69e5237..7bff0ff3 100644
--- a/skills/hypit/references/production/component-visuals.md
+++ b/skills/hypit/references/production/component-visuals.md
@@ -38,7 +38,7 @@ visual relationships rather than the nesting of tags in Source.
## A working drawing function
[visuals.ts](examples/visuals.ts) contains `renderCard`, a complete pure drawing function using
-`sealVisualTrack` from `@hypit/hypit/composition`. It receives a projected span and a resolved Frame,
+`sealVisualTrack` from `@hypit/composition`. It receives a projected span and a resolved Frame,
draws a colored box with exact-font text, and optionally fades in relative to the Present's start.
Its colors, size, padding, layer and entrance duration are supplied by the caller. These drawing-function
arguments need not all become Surface parameters: the owning component can supply its fixed design
@@ -55,7 +55,7 @@ then publish the Track through the Fragment and Surface as described in
[Track authoring](track-authoring.md#connect-the-implementation-at-its-real-boundaries). Surface outputs
map the Fragment's export name to a public Source name such as `answers.track`.
-Use `timelineFrameCount` from `@hypit/hypit/timeline` for the full Timeline's frame count and
+Use `timelineFrameCount` from `@hypit/timeline` for the full Timeline's frame count and
`assertVisualTrackIdentity(track, timeline)` to check a produced Track against it. Direct seeking
and range rendering evaluate the same declared keyframes at the requested frame.
@@ -94,7 +94,7 @@ make the required materials available both in Studio and in a render of any sele
## Compose video and graphics in one HTML visual
When a scene's video viewport and graphics share motion or layout, one component can draw them
-together. `htmlVisual` from `@hypit/hypit/html-program` creates a `program` element's payload. Its HTML
+together. `htmlVisual` from `@hypit/html-program` creates a `program` element's payload. Its HTML
owns the local structure; CSS supplies layout, stacking, masks, filters and blending; optional
`setup(root, data)` code returns `render(localFrame)`. This function sets the complete state at that
frame synchronously. A range render may start in the middle, so compute state from the frame and authored inputs.
diff --git a/skills/hypit/references/production/examples/visuals.ts b/skills/hypit/references/production/examples/visuals.ts
index d16a7f49..dddab36a 100644
--- a/skills/hypit/references/production/examples/visuals.ts
+++ b/skills/hypit/references/production/examples/visuals.ts
@@ -1,8 +1,8 @@
-import { sealVisualTrack } from "@hypit/hypit/composition";
-import type { FrameSpan } from "@hypit/hypit/composition";
-import type { FontArtifactRef } from "@hypit/hypit/media";
-import type { Timeline } from "@hypit/hypit/timeline";
-import { VISUAL_IR_V1 } from "@hypit/hypit/composition";
+import { sealVisualTrack } from "@hypit/composition";
+import type { FrameSpan } from "@hypit/composition";
+import type { FontArtifactRef } from "@hypit/media";
+import type { Timeline } from "@hypit/timeline";
+import { VISUAL_IR_V1 } from "@hypit/composition";
// The caller supplies its projected Window, resolved Frame and selected font faces.
export function renderCard(input: {
diff --git a/skills/hypit/references/production/studio.md b/skills/hypit/references/production/studio.md
index 28801060..c98a138b 100644
--- a/skills/hypit/references/production/studio.md
+++ b/skills/hypit/references/production/studio.md
@@ -15,8 +15,8 @@ hypit studio --run build.svrun
Supply `--runtime <profile>` when intentionally using a different Profile from the project's
`hypit runtime use` selection. Studio needs a Run whose selected targets reach one Film with resolved
-composition and time. The Timeline supplies the clock and any placed Script anchors for component
-lanes, including a pure animation with no performance clips. An image-generation-only Run is not a Film view; several distinct
+composition and time. The Timeline supplies the work's clock and extent; optional projections
+provide domain evidence such as Script anchors. Pure animation uses the same editor. An image-generation-only Run is not a Film view; several distinct
Films need separate Runs or sessions.
Open the URL actually printed by the process and retain it with the Run it serves. For review, open
@@ -52,7 +52,7 @@ hypit studio --check-locale ./studio-ja.json
hypit studio --run build.svrun --locale-pack ./studio-ja.json
```
-For a new translation, copy `packages/studio/locales/en.json` from the installed Distribution.
+For a new translation, copy `locales/en.json` from the installed `@hypit/studio` package.
Set `locale`, the native language `name`, and `direction` (`ltr` or `rtl`); translate `messages`
while keeping their IDs and named variables such as `{count}`. Missing entries use English.
The check command reports missing entries, unknown IDs and invalid variables without opening a Run.
@@ -60,7 +60,7 @@ Relative file paths start at the command's working directory. Repeat `--locale-p
languages, or pass an installed package's JSON export instead, such as
`--locale-pack @your-scope/studio-ja/locale.json`. A local file is enough; sharing it as a package
is optional. Restart Studio to load changed language files. The installed
-`packages/studio/LOCALIZATION.md` covers plural forms and JSON package exports.
+`@hypit/studio` package's `LOCALIZATION.md` covers plural forms and JSON package exports.
## Discuss the work while composing
@@ -160,7 +160,7 @@ include when the user wants to continue editing on another machine.
| --- | --- |
| Source | The exact Run, Author and imported Source/Recipe files. Select a file and use Edit source; changes save automatically, and Cmd/Ctrl+S saves immediately. Check save/error state. This is not a project filesystem browser. |
| Preview | The selected Film composition evaluated from its compiled `HtmlProgram` in the browser. Play or seek with the transport or timeline. Selecting a component-declared visual part selects its corresponding timeline Item; adjust its exposed position in the Inspector. |
-| Timeline | Projected domain evidence, authored Instants and Windows, plus component-projected Track Items and their visible intervals, materials or event lanes. A rectangle may describe occupancy, activation or persistent visibility; read the component's meaning. |
+| Timeline | Projected domain evidence, resolved named Instants, plus component-projected Track Items and their visible intervals, materials or event lanes. A rectangle may describe occupancy, activation or persistent visibility; read the component's meaning. |
| Inspector | With nothing selected, project, Canvas, time and Run facts. For a selected Item, its declared read-only facts and adjustable fields, organized under Where, When and How where applicable. |
| Tasks | One card per Build, grouped into ongoing and finished. Active status and progress come from the selected Runtime; completed, failed and cancelled Builds come from project Results. Cards retain the source Run, times and any failure or attention reason. |
| Artifacts | Image, video and audio file Outputs from project Results, including those already published by ongoing Builds. Use the sidebar to choose all media, videos, images or audio. View media on a Build opens its Outputs; opening the Artifacts tab returns to project media. Structured Outputs such as normalized media and NarrativeAlignment stay intact and do not add their internal files to this gallery. Click a card to view it in the central preview; video and audio have playback and a time slider. Back to composition returns to the existing composition position. Previewing a file does not select it as a Candidate in the Run. |
@@ -168,9 +168,10 @@ include when the user wants to continue editing on another machine.
A declared lane stays one row even when items overlap. Later items cover earlier ones at equal
stacking order; selecting an item brings its full rectangle forward within that lane. This changes
editor selection, not the Film's paint order. The same behavior applies to attached child lanes.
-The time ruler, each projection's mapping and evidence rows, and the shared authored temporal row
-form one pinned Timeline area. Empty information rows are omitted; a work without a domain
-projection keeps the ordinary time ruler and its authored temporal declarations.
+The time ruler, each projection's mapping and evidence rows, and the shared Instant row
+form one pinned Timeline area. A work without a domain projection keeps the ruler and Instant row.
+Window intervals appear through the Track Items that consume them; their references remain available
+in the owning Source and declared Inspector fields.
Select an overlapping object to bring it forward, or right-click the overlap to choose one covered
by its peers. This changes editor selection, not the composition.
@@ -219,11 +220,11 @@ through the selected Style. It edits the shared font declaration; its weight and
available in the chosen family. A local font continues to use its exact file. A project component
can offer its own font or preset choices through Companion fields.
-Timeline's declared Instants, Windows and complete extent provide reference information. Edit their
+Named Instants provide timeline locators. Windows remain reusable interval values. Edit their
`at`, `from`, `until`, `for` and `end` declarations in Source when temporal construction should change.
Edit the Timeline declaration or domain projection declaration that owns a temporal relationship.
Clip editing handles its source occurrence; a component Companion handles its own Sources, Uses or
-events. Neither rewrites semantic projection or adjusts Canvas dimensions implicitly.
+events. Time handles follow the consumed value's declared inverse relationship to its owning Source.
Timing edits follow the authored relationship. A direct Selection or Moment edits that identity
in Script; a quoted expression edits its local clock value or offset; a duration changes independently.
diff --git a/skills/hypit/references/production/track-authoring.md b/skills/hypit/references/production/track-authoring.md
index a0f1f2ac..8a78872f 100644
--- a/skills/hypit/references/production/track-authoring.md
+++ b/skills/hypit/references/production/track-authoring.md
@@ -58,7 +58,7 @@ This separation lets one projected Instant drive an answer reveal, a short sound
Consumers can share that one value. Changed speech moves the upstream event without asking each
component to search for a word, carry a projector or inspect the Script parser.
-Use `resolveTemporalContext` from `@hypit/hypit/temporal/markup` to resolve the component's
+Use `resolveTemporalContext` from `@hypit/temporal/markup` to resolve the component's
`timeline` input. Pass that same Timeline to its Fragment and Producers, alongside projected
Instants/Windows. A component can combine directly authored and domain-produced named values without switching
time models. The installed `examples/semantic-composition/packages/chat-scene` demonstrates repeated
@@ -172,7 +172,7 @@ Keep each child's `subjectId` meaningful for inspection while qualifying graph i
Track, so multiple instances can coexist. Do not use it to reject a deliberately shared Window. A
finite create/append/finalize graph supports any authored number of messages or cards with ordinary
fixed Producer ports. The exact helpers and vocabulary
-live in `@hypit/hypit/temporal/markup`; the `@example/chat-scene` package demonstrates authored and semantic events on one Timeline.
+live in `@hypit/temporal/markup`; the `@example/chat-scene` package demonstrates authored and semantic events on one Timeline.
A scene may publish computed event times when another component needs them, just as it publishes a
Track. This shares pre-render data. When the author already specifies a common trigger, consumers
@@ -183,7 +183,7 @@ draw nothing; inside it, each slot shows its preset/activated answer or its plac
entrance motion relative to that slot's activation frame. Deriving state directly from declared inputs
and the requested frame keeps Studio scrubbing and partial or concurrent rendering deterministic.
-Emit the public VisualTrack representation through `@hypit/hypit/composition`.
+Emit the public VisualTrack representation through `@hypit/composition`.
[Component visuals](component-visuals.md) explains Presents, element trees, local animation,
prepared surfaces and a complete drawing function. [Spatial layout](spatial.md) explains incoming
Frames, and [Fonts and text](fonts-and-text.md) explains font resources.
diff --git a/skills/hypit/references/production/vocabulary.md b/skills/hypit/references/production/vocabulary.md
index af96f437..90f24abb 100644
--- a/skills/hypit/references/production/vocabulary.md
+++ b/skills/hypit/references/production/vocabulary.md
@@ -84,11 +84,12 @@ for an implementation example. Give the new package its own Module identity and
owner's scope; `@hypit/*` is the Hypit project's publishing namespace, not a scope for project packages.
TypeScript imports use public SDK paths such as `@hypit/hypit/author`, `@hypit/hypit/producer`,
-`@hypit/hypit/admission`, `@hypit/hypit/markup`, `@hypit/hypit/composition`,
-`@hypit/hypit/text` or `@hypit/hypit/caption`; Studio Companions use the independent
+`@hypit/hypit/admission`, `@hypit/hypit/markup`, `@hypit/composition`,
+`@hypit/hypit/text` or `@hypit/caption`; Studio Companions use the independent
`@hypit/studio-companion` package. Source imports instead name logical Modules,
-such as `@hypit/caption@1`. When learning from installed official source, translate its internal
-workspace imports to the corresponding public SDK paths in the project package.
+such as `@hypit/caption@1`. Declare the domain packages you import as ordinary dependencies;
+declare compatibility with the Hypit and Companion host APIs through peer dependencies. When learning
+from language-internal source, translate its private workspace imports to public Hypit SDK paths.
Describe the Surface's role, attributes and outputs with a small valid example so a future author
can select it. A visual preview makes its appearance recognizable; Studio shows the actual