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.

refactor: publish video-domain packages independently for 0.3.1

kashorin68f169364572
diff --git a/.github/workflows/automation-check.yml b/.github/workflows/automation-check.yml
index efad3c5e..67f1774d 100644
--- a/.github/workflows/automation-check.yml
+++ b/.github/workflows/automation-check.yml
@@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
package-manager-cache: false
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 480bdf85..5f149d78 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -40,13 +40,13 @@ jobs:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Set up pnpm
- uses: pnpm/action-setup@v4
+ uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
- name: Set up Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
cache: pnpm
diff --git a/.github/workflows/npm-package.yml b/.github/workflows/npm-package.yml
index ab61b7c8..83ac5167 100644
--- a/.github/workflows/npm-package.yml
+++ b/.github/workflows/npm-package.yml
@@ -27,11 +27,11 @@ jobs:
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
persist-credentials: false
- - uses: pnpm/action-setup@v4
- - uses: actions/setup-node@v4
+ - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24
cache: pnpm
@@ -41,7 +41,7 @@ jobs:
run: node --input-type=module -e 'import { readFileSync, appendFileSync } from "node:fs"; const { version } = JSON.parse(readFileSync("package.json", "utf8")); appendFileSync(process.env.GITHUB_OUTPUT, `version=${version}\n`);'
- name: Build the release candidate without publishing
run: npm run pack:release-candidate
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: npm-package
path: |
@@ -59,11 +59,11 @@ jobs:
os: [ubuntu-latest, windows-latest]
timeout-minutes: 25
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
persist-credentials: false
- - uses: pnpm/action-setup@v4
- - uses: actions/setup-node@v4
+ - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24
cache: pnpm
@@ -76,7 +76,7 @@ jobs:
- name: Prepare the local media toolchain on Windows
if: runner.os == 'Windows'
run: choco install ffmpeg --yes --no-progress
- - uses: actions/download-artifact@v4
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: npm-package
path: dist/release
diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml
index e397e7ad..bc5f8dc4 100644
--- a/.github/workflows/publish-npm.yml
+++ b/.github/workflows/publish-npm.yml
@@ -14,6 +14,10 @@ on:
description: "Publish to npm (unchecked: checks and downloadable package only)"
type: boolean
default: false
+ packages:
+ description: "Optional space-separated package names to publish; empty publishes the complete candidate"
+ type: string
+ required: false
permissions:
contents: read
@@ -29,12 +33,12 @@ jobs:
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
ref: ${{ github.sha }}
fetch-depth: 0
persist-credentials: false
- - uses: actions/setup-node@v4
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24
- name: Confirm version and main ancestry
@@ -79,22 +83,32 @@ jobs:
contents: read
id-token: write
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
ref: ${{ github.sha }}
persist-credentials: false
- - uses: actions/setup-node@v4
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24
registry-url: https://registry.npmjs.org
- name: Use npm with trusted publishing support
run: npm install --global npm@11
- - uses: actions/download-artifact@v4
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: npm-package
path: release
- - name: Preflight every package, then publish dependencies first and the Distribution last
- run: node scripts/publish-release-candidate.mjs release/release-plan.json
+ - name: Publish the explicitly selected packages in dependency order
+ env:
+ RELEASE_PACKAGES: ${{ inputs.packages }}
+ run: |
+ node --input-type=module <<'JS'
+ import { execFileSync } from 'node:child_process';
+ const names = (process.env.RELEASE_PACKAGES ?? '').trim().split(/\s+/).filter(Boolean);
+ execFileSync(process.execPath, [
+ 'scripts/publish-release-candidate.mjs', 'release/release-plan.json',
+ ...names.map(name => `--package=${name}`),
+ ], { stdio: 'inherit' });
+ JS
release-assets:
if: github.event_name == 'release'
@@ -103,7 +117,7 @@ jobs:
permissions:
contents: write
steps:
- - uses: actions/download-artifact@v4
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: npm-package
path: release
diff --git a/.github/workflows/repository-analysis.yml b/.github/workflows/repository-analysis.yml
index 80a6fa64..65e388a5 100644
--- a/.github/workflows/repository-analysis.yml
+++ b/.github/workflows/repository-analysis.yml
@@ -25,11 +25,11 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout the trusted workflow implementation
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
ref: ${{ github.workflow_sha }}
persist-credentials: false
- - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
package-manager-cache: false
diff --git a/.github/workflows/sync-hypihub-docs.yml b/.github/workflows/sync-hypihub-docs.yml
index 566b99a0..2a47710b 100644
--- a/.github/workflows/sync-hypihub-docs.yml
+++ b/.github/workflows/sync-hypihub-docs.yml
@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source commit
- uses: actions/checkout@v4
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
ref: ${{ github.sha }}
fetch-depth: 1
diff --git a/examples/complex-explainer/packages/launch-scenes/package.json b/examples/complex-explainer/packages/launch-scenes/package.json
index 314e0f1a..3040866a 100644
--- a/examples/complex-explainer/packages/launch-scenes/package.json
+++ b/examples/complex-explainer/packages/launch-scenes/package.json
@@ -15,6 +15,12 @@
],
"dependencies": {
"@hypit/hypit": "workspace:*",
- "@hypit/studio-companion": "workspace:*"
+ "@hypit/studio-companion": "workspace:*",
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/html-program": "workspace:^0.1.0"
}
}
diff --git a/examples/complex-explainer/packages/launch-scenes/src/activation.js b/examples/complex-explainer/packages/launch-scenes/src/activation.js
index c88264ba..d62750b5 100644
--- a/examples/complex-explainer/packages/launch-scenes/src/activation.js
+++ b/examples/complex-explainer/packages/launch-scenes/src/activation.js
@@ -5,11 +5,11 @@ import { createStudioTrackCompanionFacet } from "@hypit/studio-companion";
import { assertAttributes, assertEmptyElement, textAttribute, createMarkupSurfaceFacet } from "@hypit/hypit/markup";
import { canonicalize, sameType } from "@hypit/hypit/protocol";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { compositionTypes } from "@hypit/hypit/composition";
-import { mediaTypes } from "@hypit/hypit/media";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { temporalTypes, assertTemporalInstantFor } from "@hypit/hypit/temporal";
+import { compositionTypes } from "@hypit/composition";
+import { mediaTypes } from "@hypit/media";
+import { timelineTypes } from "@hypit/timeline";
+import { spatialTypes } from "@hypit/spatial";
+import { temporalTypes, assertTemporalInstantFor } from "@hypit/temporal";
import {
resolveTemporalContext,
resolveTemporalWindowReference,
@@ -19,7 +19,7 @@ import {
temporalContextAttributeVocabulary,
temporalInstantAttributeNames,
temporalInstantAttributeVocabulary,
-} from "@hypit/hypit/temporal/markup";
+} from "@hypit/temporal/markup";
import { renderPoster } from "./render.js";
const module = { name: "@explainer/launch-scenes", version: "1" },
type = (name) => ({ module, name }),
diff --git a/examples/complex-explainer/packages/launch-scenes/src/render.js b/examples/complex-explainer/packages/launch-scenes/src/render.js
index d082c7ff..dea9ce2c 100644
--- a/examples/complex-explainer/packages/launch-scenes/src/render.js
+++ b/examples/complex-explainer/packages/launch-scenes/src/render.js
@@ -1,6 +1,6 @@
-import { sealVisualTrack } from "@hypit/hypit/composition";
-import { htmlVisual } from "@hypit/hypit/html-program";
-import { assertTemporalWindowFor } from "@hypit/hypit/temporal";
+import { sealVisualTrack } from "@hypit/composition";
+import { htmlVisual } from "@hypit/html-program";
+import { assertTemporalWindowFor } from "@hypit/temporal";
const sty = (o) => Object.entries(o).map(([name, value]) => ({ name, value }));
const esc = (s) =>
String(s).replace(
diff --git a/examples/complex-explainer/packages/launch-scenes/src/studio.js b/examples/complex-explainer/packages/launch-scenes/src/studio.js
index 2455c631..21802ce6 100644
--- a/examples/complex-explainer/packages/launch-scenes/src/studio.js
+++ b/examples/complex-explainer/packages/launch-scenes/src/studio.js
@@ -1,4 +1,4 @@
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { textLayer, temporalLineageFor } from "@hypit/studio-companion";
const fields = {
PosterTitle: [
diff --git a/examples/complex-explainer/packages/opening-system/package.json b/examples/complex-explainer/packages/opening-system/package.json
index 6b4f5567..a22564f5 100644
--- a/examples/complex-explainer/packages/opening-system/package.json
+++ b/examples/complex-explainer/packages/opening-system/package.json
@@ -17,6 +17,12 @@
"@explainer/visual-language": "file:../visual-language",
"@hypit/hypit": "workspace:*",
"@hypit/studio-companion": "workspace:*",
- "@hypit/visual-track": "workspace:*"
+ "@hypit/visual-track": "workspace:*",
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/html-program": "workspace:^0.1.0"
}
}
diff --git a/examples/complex-explainer/packages/opening-system/src/activation.js b/examples/complex-explainer/packages/opening-system/src/activation.js
index f81b866b..db33dd3c 100644
--- a/examples/complex-explainer/packages/opening-system/src/activation.js
+++ b/examples/complex-explainer/packages/opening-system/src/activation.js
@@ -8,11 +8,11 @@ import { createProducerPackageFacet } from "@hypit/hypit/producer";
import { assertAttributes, assertEmptyElement, createMarkupSurfaceFacet, textAttribute } from "@hypit/hypit/markup";
import { canonicalize, sameType } from "@hypit/hypit/protocol";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { compositionTypes } from "@hypit/hypit/composition";
-import { mediaTypes } from "@hypit/hypit/media";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { compositionTypes } from "@hypit/composition";
+import { mediaTypes } from "@hypit/media";
+import { timelineTypes } from "@hypit/timeline";
+import { spatialTypes } from "@hypit/spatial";
+import { temporalTypes } from "@hypit/temporal";
import { visualTrackModuleRef } from "@hypit/visual-track";
import {
resolveTemporalWindowReference,
@@ -21,7 +21,7 @@ import {
temporalWindowAttributeNames,
temporalWindowAttributeVocabulary,
temporalContextAttributeVocabulary,
-} from "@hypit/hypit/temporal/markup";
+} from "@hypit/temporal/markup";
import { renderTitle, renderTimer, renderFlag, renderStage, renderVeil } from "./render.js";
import { module, defaults } from "./definition.js";
import { studioFacet } from "./studio.js";
diff --git a/examples/complex-explainer/packages/opening-system/src/portrait-inset.js b/examples/complex-explainer/packages/opening-system/src/portrait-inset.js
index f8a7a63e..31357710 100644
--- a/examples/complex-explainer/packages/opening-system/src/portrait-inset.js
+++ b/examples/complex-explainer/packages/opening-system/src/portrait-inset.js
@@ -4,11 +4,11 @@ import { assertAttributes, assertEmptyElement, textAttribute, createMarkupSurfac
import { canonicalize, sameType } from "@hypit/hypit/protocol";
import { sealGraphFragment } from "@hypit/hypit/author";
import { presenterStyle, presenterTypes } from "./presenter.js";
-import { sealVisualTrack, compositionTypes } from "@hypit/hypit/composition";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import { htmlVisual } from "@hypit/hypit/html-program";
+import { sealVisualTrack, compositionTypes } from "@hypit/composition";
+import { timelineTypes } from "@hypit/timeline";
+import { spatialTypes } from "@hypit/spatial";
+import { temporalTypes } from "@hypit/temporal";
+import { htmlVisual } from "@hypit/html-program";
const styles = (o) =>
Object.entries(o).map(([name, value]) => ({ name, value }));
export function installPortraitInset(module, manifest, component) {
diff --git a/examples/complex-explainer/packages/opening-system/src/portrait-transition.js b/examples/complex-explainer/packages/opening-system/src/portrait-transition.js
index 7a2de754..ca3d27d0 100644
--- a/examples/complex-explainer/packages/opening-system/src/portrait-transition.js
+++ b/examples/complex-explainer/packages/opening-system/src/portrait-transition.js
@@ -4,11 +4,11 @@ import { assertAttributes, assertEmptyElement, textAttribute, createMarkupSurfac
import { canonicalize, sameType } from "@hypit/hypit/protocol";
import { sealGraphFragment } from "@hypit/hypit/author";
import { presenterStyle, presenterTypes } from "./presenter.js";
-import { sealVisualTrack, compositionTypes } from "@hypit/hypit/composition";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import { htmlVisual } from "@hypit/hypit/html-program";
+import { sealVisualTrack, compositionTypes } from "@hypit/composition";
+import { timelineTypes } from "@hypit/timeline";
+import { spatialTypes } from "@hypit/spatial";
+import { temporalTypes } from "@hypit/temporal";
+import { htmlVisual } from "@hypit/html-program";
const styles = (o) =>
Object.entries(o).map(([name, value]) => ({ name, value }));
export function installPortraitTransition(module, manifest, component) {
diff --git a/examples/complex-explainer/packages/opening-system/src/presenter.js b/examples/complex-explainer/packages/opening-system/src/presenter.js
index b2658101..377f3a5e 100644
--- a/examples/complex-explainer/packages/opening-system/src/presenter.js
+++ b/examples/complex-explainer/packages/opening-system/src/presenter.js
@@ -1,18 +1,18 @@
import { assertAttributes, assertEmptyElement, createMarkupSurfaceFacet, optionalTextAttribute, textAttribute } from "@hypit/hypit/markup";
import { canonicalize, sameType } from "@hypit/hypit/protocol";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { compositionTypes, sealVisualTrack } from "@hypit/hypit/composition";
-import { mediaTypes, verifySynchronizedMedia } from "@hypit/hypit/media";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { compositionTypes, sealVisualTrack } from "@hypit/composition";
+import { mediaTypes, verifySynchronizedMedia } from "@hypit/media";
+import { spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
-import { temporalTypes, assertTemporalWindowFor } from "@hypit/hypit/temporal";
+import { temporalTypes, assertTemporalWindowFor } from "@hypit/temporal";
import {
resolveTemporalWindowReference,
resolveTemporalContext,
temporalWindowAttributeNames,
temporalWindowAttributeVocabulary,
-} from "@hypit/hypit/temporal/markup";
-import { timelineTypes } from "@hypit/hypit/timeline";
+} from "@hypit/temporal/markup";
+import { timelineTypes } from "@hypit/timeline";
import {
appendVisualClip,
appendTimedMediaLayer,
diff --git a/examples/complex-explainer/packages/opening-system/src/pullback.js b/examples/complex-explainer/packages/opening-system/src/pullback.js
index 1b5a7a8b..95f46da3 100644
--- a/examples/complex-explainer/packages/opening-system/src/pullback.js
+++ b/examples/complex-explainer/packages/opening-system/src/pullback.js
@@ -3,11 +3,11 @@ import { assertAttributes, assertEmptyElement, textAttribute, createMarkupSurfac
import { canonicalize } from "@hypit/hypit/protocol";
import { sealGraphFragment } from "@hypit/hypit/author";
import { presenterStyle, presenterTypes } from "./presenter.js";
-import { sealVisualTrack, compositionTypes } from "@hypit/hypit/composition";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import { htmlVisual } from "@hypit/hypit/html-program";
+import { sealVisualTrack, compositionTypes } from "@hypit/composition";
+import { timelineTypes } from "@hypit/timeline";
+import { spatialTypes } from "@hypit/spatial";
+import { temporalTypes } from "@hypit/temporal";
+import { htmlVisual } from "@hypit/html-program";
const styles = (o) =>
Object.entries(o).map(([name, value]) => ({ name, value }));
// A local Use owns the pullback's clock; media continues from its Source Window.
diff --git a/examples/complex-explainer/packages/opening-system/src/reframe.js b/examples/complex-explainer/packages/opening-system/src/reframe.js
index d8c9b2d2..a21d4d0e 100644
--- a/examples/complex-explainer/packages/opening-system/src/reframe.js
+++ b/examples/complex-explainer/packages/opening-system/src/reframe.js
@@ -3,11 +3,11 @@ import { assertAttributes, assertEmptyElement, textAttribute, createMarkupSurfac
import { canonicalize, sameType } from "@hypit/hypit/protocol";
import { sealGraphFragment } from "@hypit/hypit/author";
import { presenterStyle, presenterTypes } from "./presenter.js";
-import { sealVisualTrack, compositionTypes } from "@hypit/hypit/composition";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import { htmlVisual } from "@hypit/hypit/html-program";
+import { sealVisualTrack, compositionTypes } from "@hypit/composition";
+import { timelineTypes } from "@hypit/timeline";
+import { spatialTypes } from "@hypit/spatial";
+import { temporalTypes } from "@hypit/temporal";
+import { htmlVisual } from "@hypit/html-program";
const styles = (o) =>
Object.entries(o).map(([name, value]) => ({ name, value }));
export function installReframe(module, manifest, component) {
diff --git a/examples/complex-explainer/packages/opening-system/src/render.js b/examples/complex-explainer/packages/opening-system/src/render.js
index f47a3e87..3fe46a7e 100644
--- a/examples/complex-explainer/packages/opening-system/src/render.js
+++ b/examples/complex-explainer/packages/opening-system/src/render.js
@@ -1,8 +1,8 @@
import { palette } from "@explainer/visual-language";
import { flagSetup } from "./flag-cloth.js";
-import { sealVisualTrack } from "@hypit/hypit/composition";
-import { htmlVisual } from "@hypit/hypit/html-program";
-import { assertTemporalWindowFor } from "@hypit/hypit/temporal";
+import { sealVisualTrack } from "@hypit/composition";
+import { htmlVisual } from "@hypit/html-program";
+import { assertTemporalWindowFor } from "@hypit/temporal";
const digits = {
0: ["11111", "10001", "10001", "10001", "10001", "10001", "11111"],
diff --git a/examples/complex-explainer/packages/opening-system/src/studio.js b/examples/complex-explainer/packages/opening-system/src/studio.js
index 140dc693..d70e165e 100644
--- a/examples/complex-explainer/packages/opening-system/src/studio.js
+++ b/examples/complex-explainer/packages/opening-system/src/studio.js
@@ -1,4 +1,4 @@
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import {
createStudioCompanionFacet,
textLayer,
@@ -177,7 +177,7 @@ const tracks = Object.entries(layouts).map(([kind, inspector]) => ({
stackOrder: 0,
renderIds: [],
...(temporal ? { temporal } : {}),
- presentation: { entity: "material-stage", chrome: "standard" },
+ presentation: { kind: "material-stage", chrome: "standard" },
},
...children,
];
diff --git a/examples/complex-explainer/packages/single-line-captions/src/activation.js b/examples/complex-explainer/packages/single-line-captions/src/activation.js
index a21c5da2..a7191cd7 100644
--- a/examples/complex-explainer/packages/single-line-captions/src/activation.js
+++ b/examples/complex-explainer/packages/single-line-captions/src/activation.js
@@ -34,8 +34,8 @@ const manifest = {
],
};
const inline = (r) => r.value.value;
-export function singleLineSchedule(caption, program, document) {
- const schedule = scheduleFineCaption(caption, program, document);
+export function singleLineSchedule(timing, program, document) {
+ const schedule = scheduleFineCaption(timing, program, document);
const cues = [...schedule.cues].sort(
(a, b) => a.visibleStartFrame - b.visibleStartFrame,
);
@@ -105,7 +105,7 @@ const producers = {
kind: "inline",
value: canonicalize(
singleLineSchedule(
- inline(i.caption),
+ inline(i.timing),
inline(i.program),
inline(i.document),
),
diff --git a/examples/complex-explainer/packages/web-scenes/package.json b/examples/complex-explainer/packages/web-scenes/package.json
index b04dc68e..9e04e94e 100644
--- a/examples/complex-explainer/packages/web-scenes/package.json
+++ b/examples/complex-explainer/packages/web-scenes/package.json
@@ -12,6 +12,12 @@
"dependencies": {
"@explainer/visual-language": "file:../visual-language",
"@hypit/hypit": "workspace:*",
- "@hypit/studio-companion": "workspace:*"
+ "@hypit/studio-companion": "workspace:*",
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/html-program": "workspace:^0.1.0"
}
}
diff --git a/examples/complex-explainer/packages/web-scenes/src/activation.js b/examples/complex-explainer/packages/web-scenes/src/activation.js
index 3713a2ab..20019edc 100644
--- a/examples/complex-explainer/packages/web-scenes/src/activation.js
+++ b/examples/complex-explainer/packages/web-scenes/src/activation.js
@@ -11,11 +11,11 @@ import { renderRoad } from "./scenes/editor-route/index.js";
import { assertAttributes, assertEmptyElement, textAttribute, createMarkupSurfaceFacet } from "@hypit/hypit/markup";
import { canonicalize, sameType } from "@hypit/hypit/protocol";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { compositionTypes } from "@hypit/hypit/composition";
-import { mediaTypes } from "@hypit/hypit/media";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { temporalTypes, assertTemporalInstantFor } from "@hypit/hypit/temporal";
+import { compositionTypes } from "@hypit/composition";
+import { mediaTypes } from "@hypit/media";
+import { timelineTypes } from "@hypit/timeline";
+import { spatialTypes } from "@hypit/spatial";
+import { temporalTypes, assertTemporalInstantFor } from "@hypit/temporal";
import {
resolveTemporalContext,
resolveTemporalWindowReference,
@@ -25,7 +25,7 @@ import {
temporalContextAttributeVocabulary,
temporalInstantAttributeNames,
temporalInstantAttributeVocabulary,
-} from "@hypit/hypit/temporal/markup";
+} from "@hypit/temporal/markup";
import { renderIntro, renderComparison } from "./render.js";
const module = { name: "@explainer/web-scenes", version: "1" },
type = (name) => ({ module, name }),
diff --git a/examples/complex-explainer/packages/web-scenes/src/shared/scene.js b/examples/complex-explainer/packages/web-scenes/src/shared/scene.js
index 05677b14..bfd44534 100644
--- a/examples/complex-explainer/packages/web-scenes/src/shared/scene.js
+++ b/examples/complex-explainer/packages/web-scenes/src/shared/scene.js
@@ -1,8 +1,8 @@
import { terminalSetup } from "./terminal.js";
import { scene_styles } from "./scene-styles.js";
-import { sealVisualTrack } from "@hypit/hypit/composition";
-import { htmlVisual } from "@hypit/hypit/html-program";
-import { assertTemporalWindowFor } from "@hypit/hypit/temporal";
+import { sealVisualTrack } from "@hypit/composition";
+import { htmlVisual } from "@hypit/html-program";
+import { assertTemporalWindowFor } from "@hypit/temporal";
const styles = (o) => Object.entries(o).map(([name, value]) => ({ name, value }));
export function scene(t, within, w, font, o, html, css, setup, events, entries, extra = {}) {
assertTemporalWindowFor(w, { subjectId: o.id, timeline: t });
@@ -40,7 +40,7 @@ export function scene(t, within, w, font, o, html, css, setup, events, entries,
};
if (v.image) return { ...shared, kind: "image", artifact: v.image };
const m = v.media,
- src = m.timeline.frameRate,
+ src = m.frameDomain.frameRate,
start = Math.max(0, v.start ?? 0),
end = Math.min(count, v.end ?? count);
if (!m.visual) throw Error(id + " requires prepared picture");
@@ -51,7 +51,7 @@ export function scene(t, within, w, font, o, html, css, setup, events, entries,
if (
!v.loop &&
!v.holdLast &&
- ((end - start - 1) * rate.numerator) / rate.denominator >= m.timeline.frameCount
+ ((end - start - 1) * rate.numerator) / rate.denominator >= m.frameDomain.frameCount
)
throw Error(id + " source is too short");
return {
@@ -61,12 +61,12 @@ export function scene(t, within, w, font, o, html, css, setup, events, entries,
muted: true,
sourceTime: {
sourceFrameRate: src,
- sourceFrameCount: m.timeline.frameCount,
+ sourceFrameCount: m.frameDomain.frameCount,
pieces: v.holdLast
? (() => {
const played = Math.min(
end - start,
- Math.ceil((m.timeline.frameCount * rate.denominator) / rate.numerator),
+ Math.ceil((m.frameDomain.frameCount * rate.denominator) / rate.numerator),
),
segments = [
{
@@ -78,7 +78,7 @@ export function scene(t, within, w, font, o, html, css, setup, events, entries,
if (start + played < end)
segments.push({
target: { startFrame: start + played, endFrameExclusive: end },
- sourceAtStart: { numerator: m.timeline.frameCount - 1, denominator: 1 },
+ sourceAtStart: { numerator: m.frameDomain.frameCount - 1, denominator: 1 },
rate: { numerator: 0, denominator: 1 },
});
return segments;
@@ -88,11 +88,11 @@ export function scene(t, within, w, font, o, html, css, setup, events, entries,
{
length: Math.ceil(
(end - start) /
- Math.floor((m.timeline.frameCount * rate.denominator) / rate.numerator),
+ Math.floor((m.frameDomain.frameCount * rate.denominator) / rate.numerator),
),
},
(_, i) => {
- const n = Math.floor((m.timeline.frameCount * rate.denominator) / rate.numerator),
+ const n = Math.floor((m.frameDomain.frameCount * rate.denominator) / rate.numerator),
a = start + i * n;
return {
target: { startFrame: a, endFrameExclusive: Math.min(end, a + n) },
diff --git a/examples/complex-explainer/packages/web-scenes/src/studio.js b/examples/complex-explainer/packages/web-scenes/src/studio.js
index 9df93fc4..758eda2d 100644
--- a/examples/complex-explainer/packages/web-scenes/src/studio.js
+++ b/examples/complex-explainer/packages/web-scenes/src/studio.js
@@ -1,4 +1,4 @@
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { textLayer, temporalLineageFor } from "@hypit/studio-companion";
const scenes = {
ComponentWorkshop: ["Components in use", "Motion → components → library → another video"],
diff --git a/examples/interview/packages/flash/package.json b/examples/interview/packages/flash/package.json
index 50de9d48..aa78b7ea 100644
--- a/examples/interview/packages/flash/package.json
+++ b/examples/interview/packages/flash/package.json
@@ -10,9 +10,15 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/hypit": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/examples/interview/packages/flash/src/activation.ts b/examples/interview/packages/flash/src/activation.ts
index 142236a1..b225abc3 100644
--- a/examples/interview/packages/flash/src/activation.ts
+++ b/examples/interview/packages/flash/src/activation.ts
@@ -11,30 +11,30 @@ import {
assertVisualTrackIdentity,
compositionTypes,
sealVisualTrack,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import type {
VisualElement,
VisualStyleDeclaration,
-} from "@hypit/hypit/composition";
-import { assertSpatialFrame, spatialTypes } from "@hypit/hypit/spatial";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+} from "@hypit/composition";
+import { assertSpatialFrame, spatialTypes } from "@hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
import {
assertTemporalWindowFor,
temporalTypes,
-} from "@hypit/hypit/temporal";
-import type { TemporalWindow } from "@hypit/hypit/temporal";
+} from "@hypit/temporal";
+import type { TemporalWindow } from "@hypit/temporal";
import {
resolveTemporalWindowReference,
resolveTemporalContext,
temporalContextAttributeVocabulary,
temporalWindowAttributeNames,
temporalWindowAttributeVocabulary,
-} from "@hypit/hypit/temporal/markup";
+} from "@hypit/temporal/markup";
import {
assertTimelineIdentity,
timelineTypes,
-} from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+} from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
const moduleRef = { name: "@interview/flash", version: "1" } as const;
const optionsType = { module: moduleRef, name: "FlashOptions" } as const;
diff --git a/examples/minimal-author-package/README.md b/examples/minimal-author-package/README.md
index 59dc2538..3cc3f2fc 100644
--- a/examples/minimal-author-package/README.md
+++ b/examples/minimal-author-package/README.md
@@ -11,9 +11,10 @@ only after checking `record.value.kind === "inline"`. Image slots remain graph i
package files. Its visual Surfaces also receive an explicit `within` Frame; the example never relies
on a renderer root implicitly meaning the whole Canvas.
-The package builds against one public Hypit framework dependency, `hypit`, and emits JavaScript.
-`pnpm --dir packages/example-component pack` produces a tarball with no Runtime dependencies of its
-own. Installing that tarball in another project and importing `@example/example-component@1` loads
+The package builds against the public Hypit language SDK and declares its video-domain libraries as
+ordinary dependencies. `pnpm --dir packages/example-component pack` produces a JavaScript tarball;
+its dependencies are installed by the package manager, not bundled. Installing it in another project
+and importing `@example/example-component@1` loads
the same Module and Surface through the consumer's active Hypit Distribution. The packaged
`@example/example-component/preview` Source exists so this boundary can be checked without copying a
Source out of the package.
diff --git a/examples/minimal-author-package/packages/example-component/README.md b/examples/minimal-author-package/packages/example-component/README.md
index 3721f448..30551057 100644
--- a/examples/minimal-author-package/packages/example-component/README.md
+++ b/examples/minimal-author-package/packages/example-component/README.md
@@ -2,15 +2,15 @@
A small complete package for learning Manifest, Surface, Fragment, Producer and activation wiring. Framework-facing imports come from
the narrow `@hypit/hypit/author`, `producer`, `admission` and `markup` subpaths; video-domain imports
-use their owning `@hypit/hypit/*` subpaths. Its only Hypit
-framework dependency is the released `@hypit/hypit` Distribution; TypeScript and Node types are ordinary
-build tooling. No Runtime dependency is bundled into its tarball.
+use their owning packages, such as `@hypit/composition` and `@hypit/temporal`. Declare these libraries
+as ordinary dependencies and the language Host as a compatible peer. TypeScript and Node types are
+build tooling. Dependencies are installed by the package manager, not bundled into the tarball.
It contains a Module Manifest with nominal Types and deterministic Producers, validators, a structured
Surface decoder returning `records`, `components`, `fragments` and `exports`, and sealed Fragments with
literal `fragment-input`, `fragment-operation` and `output` references. `src/temporal.ts` shows the
-Surface-side `@hypit/hypit/temporal/markup` Window/Instant reference resolvers; that package is distinct from the
-graph-side `@hypit/hypit/temporal` Producers.
+Surface-side `@hypit/temporal/markup` Window/Instant reference resolvers; that package is distinct from the
+graph-side `@hypit/temporal` Producers.
The Surfaces demonstrate a box, a text surface, an image slot and a Style decoder. The slot is a graph
input; it is not a file bundled by the package. `preview/Box.png` is a real catalogue frame supplied
@@ -31,11 +31,12 @@ same whether the package is linked from the project workspace or installed from
## Use the included source outside the Hypit repository
Copy this directory into the video project's `packages/` and give the package and Module the owner's
-name. The checked-in fixture's `workspace:*` dependency connects it to the repository during Hypit
-development. In the copied package, replace that development dependency with the selected release:
+name. The fixture's `workspace:` ranges connect it to the repository during Hypit development. In the
+copied package, replace them with the selected installed releases before using npm. For example:
```bash
npm install --save-dev @hypit/hypit@<selected-release>
+npm install @hypit/composition@<version> @hypit/media@<version> @hypit/spatial@<version> @hypit/temporal@<version> @hypit/timeline@<version>
npm run build
npm pack
```
@@ -46,5 +47,5 @@ Distribution supplies the runtime APIs. The resulting component tarball contains
and preview assets. For registry publication, select a release version and remove the fixture's
`private: true` after the owner chooses to publish it.
-The active Distribution's `packages/ranking/README.md` is the richer example for resolved temporal
-inputs, persistent visual state and a Companion. Its README and source ship with that Distribution.
+The repository's Ranking package is a richer example of resolved temporal inputs, persistent visual
+state and a Companion; it is an independently shared component, not a required default dependency.
diff --git a/examples/minimal-author-package/packages/example-component/package.json b/examples/minimal-author-package/packages/example-component/package.json
index 56ef6198..27595bcf 100644
--- a/examples/minimal-author-package/packages/example-component/package.json
+++ b/examples/minimal-author-package/packages/example-component/package.json
@@ -23,5 +23,15 @@
"@types/node": "24.10.1",
"@hypit/hypit": "workspace:*",
"typescript": "5.9.3"
+ },
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0"
}
}
diff --git a/examples/minimal-author-package/packages/example-component/src/component.ts b/examples/minimal-author-package/packages/example-component/src/component.ts
index f39a73b3..8eb1086f 100644
--- a/examples/minimal-author-package/packages/example-component/src/component.ts
+++ b/examples/minimal-author-package/packages/example-component/src/component.ts
@@ -1,11 +1,11 @@
-import { sealVisualTrack } from "@hypit/hypit/composition";
-import type { Timeline } from "@hypit/hypit/timeline";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+import { sealVisualTrack } from "@hypit/composition";
+import type { Timeline } from "@hypit/timeline";
+import type { SpatialFrame } from "@hypit/spatial";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, TypedRecord } from "@hypit/hypit/protocol";
import type { ProducerPackage, ProducerHandler } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
-import { VISUAL_IR_V1 } from "@hypit/hypit/composition";
+import { VISUAL_IR_V1 } from "@hypit/composition";
import { exampleProducers, exampleTypes } from "./manifest.js";
const inline = <T>(record: { readonly value: { readonly kind: string; readonly value?: unknown } } | undefined): T => {
diff --git a/examples/minimal-author-package/packages/example-component/src/fragment.ts b/examples/minimal-author-package/packages/example-component/src/fragment.ts
index 7b6a882f..12eca367 100644
--- a/examples/minimal-author-package/packages/example-component/src/fragment.ts
+++ b/examples/minimal-author-package/packages/example-component/src/fragment.ts
@@ -1,8 +1,8 @@
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { blobTypes } from "@hypit/hypit/blob";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { timelineTypes } from "@hypit/timeline";
+import { spatialTypes } from "@hypit/spatial";
import { exampleProducers } from "./manifest.js";
import { exampleTypes } from "./manifest.js";
diff --git a/examples/minimal-author-package/packages/example-component/src/manifest.ts b/examples/minimal-author-package/packages/example-component/src/manifest.ts
index 23ea5764..632df011 100644
--- a/examples/minimal-author-package/packages/example-component/src/manifest.ts
+++ b/examples/minimal-author-package/packages/example-component/src/manifest.ts
@@ -1,12 +1,12 @@
import { readFile } from "node:fs/promises";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/hypit/protocol";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import { mediaTypes } from "@hypit/hypit/media";
+import { timelineTypes } from "@hypit/timeline";
+import { temporalTypes } from "@hypit/temporal";
+import { mediaTypes } from "@hypit/media";
import { recipeType } from "@hypit/hypit/recipe";
import { blobTypes } from "@hypit/hypit/blob";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { spatialTypes } from "@hypit/spatial";
const previewImage = (file: string) => ({
mediaType: "image/png",
diff --git a/examples/minimal-author-package/packages/example-component/src/style.ts b/examples/minimal-author-package/packages/example-component/src/style.ts
index ca6030c5..b1bbf4d8 100644
--- a/examples/minimal-author-package/packages/example-component/src/style.ts
+++ b/examples/minimal-author-package/packages/example-component/src/style.ts
@@ -1,4 +1,4 @@
-import type { FontStackRef } from "@hypit/hypit/media";
+import type { FontStackRef } from "@hypit/media";
import type { Recipe } from "@hypit/hypit/recipe";
/** The two values a Style decoder receives after author references are resolved. */
diff --git a/examples/minimal-author-package/packages/example-component/src/surface.ts b/examples/minimal-author-package/packages/example-component/src/surface.ts
index e5ce9732..2b7004e8 100644
--- a/examples/minimal-author-package/packages/example-component/src/surface.ts
+++ b/examples/minimal-author-package/packages/example-component/src/surface.ts
@@ -1,10 +1,10 @@
import type { StructuredElement, StructuredSurfaceHandler, SurfaceComponentDraft, SurfaceRecordDraft, SurfaceResolvedReference } from "@hypit/hypit/markup";
import { exampleBoxFragment, exampleImageFragment, exampleTextFragment } from "./fragment.js";
import { exampleMarkupSurfaces, exampleTypes } from "./manifest.js";
-import { mediaTypes } from "@hypit/hypit/media";
+import { mediaTypes } from "@hypit/media";
import { recipeType } from "@hypit/hypit/recipe";
import { blobTypes } from "@hypit/hypit/blob";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { spatialTypes } from "@hypit/spatial";
function text(element: StructuredElement, name: string): string {
const value = element.attributes[name];
diff --git a/examples/minimal-author-package/packages/example-component/src/temporal.ts b/examples/minimal-author-package/packages/example-component/src/temporal.ts
index 0b20f297..d2c3c275 100644
--- a/examples/minimal-author-package/packages/example-component/src/temporal.ts
+++ b/examples/minimal-author-package/packages/example-component/src/temporal.ts
@@ -1,4 +1,4 @@
-import { resolveTemporalInstantReference, resolveTemporalWindowReference, temporalInstantAttributeNames, temporalWindowAttributeNames } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalInstantReference, resolveTemporalWindowReference, temporalInstantAttributeNames, temporalWindowAttributeNames } from "@hypit/temporal/markup";
/** The fixture intentionally exposes both projection helpers and their vocabularies. */
export { temporalInstantAttributeNames, temporalWindowAttributeNames };
diff --git a/examples/provider-package/packages/provider-images/package.json b/examples/provider-package/packages/provider-images/package.json
index c88b4373..7e23918e 100644
--- a/examples/provider-package/packages/provider-images/package.json
+++ b/examples/provider-package/packages/provider-images/package.json
@@ -3,9 +3,26 @@
"version": "0.0.0",
"private": true,
"type": "module",
- "hypit": { "activation": "./dist/activation.js" },
- "exports": { ".": "./dist/provider.js" },
- "files": ["dist"],
- "scripts": { "build": "tsc -p tsconfig.json" },
- "devDependencies": { "@hypit/hypit": "workspace:*", "@hypit/runtime-local": "workspace:*", "typescript": "5.9.3", "@hypit/executor": "workspace:*", "@hypit/gpt-image": "workspace:*" }
+ "hypit": {
+ "activation": "./dist/activation.js"
+ },
+ "exports": {
+ ".": "./dist/provider.js"
+ },
+ "files": [
+ "dist"
+ ],
+ "scripts": {
+ "build": "tsc -p tsconfig.json"
+ },
+ "devDependencies": {
+ "@hypit/hypit": "workspace:*",
+ "@hypit/runtime-local": "workspace:*",
+ "typescript": "5.9.3",
+ "@hypit/executor": "workspace:*",
+ "@hypit/gpt-image": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
+ }
}
diff --git a/examples/provider-package/packages/provider-images/src/provider.ts b/examples/provider-package/packages/provider-images/src/provider.ts
index de057248..2e115144 100644
--- a/examples/provider-package/packages/provider-images/src/provider.ts
+++ b/examples/provider-package/packages/provider-images/src/provider.ts
@@ -1,7 +1,7 @@
import { canonicalize, defineEndpoint, wakeAfter } from "@hypit/hypit/endpoint";
import type { AsyncEndpoint, CredentialRef, EndpointRequest } from "@hypit/hypit/endpoint";
-import { compileWireRequest, generationTypes, sealGeneratedImageSet, selectWireModelForRequest } from "@hypit/hypit/generation";
-import type { GenerationRequest, GenerationWireMapping } from "@hypit/hypit/generation";
+import { compileWireRequest, generationTypes, sealGeneratedImageSet, selectWireModelForRequest } from "@hypit/generation";
+import type { GenerationRequest, GenerationWireMapping } from "@hypit/generation";
export const providerModule = { name: "@example/provider-images", version: "1" } as const;
export const capability = { module: { name: "@hypit/gpt-image", version: "1" }, name: "gpt-image-2" } as const;
diff --git a/examples/provider-package/packages/provider-images/test/provider.test.ts b/examples/provider-package/packages/provider-images/test/provider.test.ts
index 10da2d39..24dd113d 100644
--- a/examples/provider-package/packages/provider-images/test/provider.test.ts
+++ b/examples/provider-package/packages/provider-images/test/provider.test.ts
@@ -4,7 +4,7 @@ import { EndpointRegistry, MemoryResourceStore } from "@hypit/executor";
import { sealGptImage2Request } from "@hypit/gpt-image";
import type { BlobRef, EndpointStartContext } from "@hypit/hypit/endpoint";
import { canonicalize } from "@hypit/hypit/endpoint";
-import { generationTypes } from "@hypit/hypit/generation";
+import { generationTypes } from "@hypit/generation";
import { capability, createImageProvider } from "../src/provider.js";
test("project Provider maps a reference, retains its receipt and collects through the public resource port", async () => {
diff --git a/examples/provider-package/packages/provider-videos/package.json b/examples/provider-package/packages/provider-videos/package.json
index a1892b6a..008b891f 100644
--- a/examples/provider-package/packages/provider-videos/package.json
+++ b/examples/provider-package/packages/provider-videos/package.json
@@ -3,9 +3,26 @@
"version": "0.0.0",
"private": true,
"type": "module",
- "hypit": { "activation": "./dist/activation.js" },
- "exports": { ".": "./dist/provider.js" },
- "files": ["dist"],
- "scripts": { "build": "tsc -p tsconfig.json" },
- "devDependencies": { "@hypit/hypit": "workspace:*", "@hypit/runtime-local": "workspace:*", "typescript": "5.9.3", "@hypit/executor": "workspace:*", "@hypit/seedance": "workspace:*" }
+ "hypit": {
+ "activation": "./dist/activation.js"
+ },
+ "exports": {
+ ".": "./dist/provider.js"
+ },
+ "files": [
+ "dist"
+ ],
+ "scripts": {
+ "build": "tsc -p tsconfig.json"
+ },
+ "devDependencies": {
+ "@hypit/hypit": "workspace:*",
+ "@hypit/runtime-local": "workspace:*",
+ "typescript": "5.9.3",
+ "@hypit/executor": "workspace:*",
+ "@hypit/seedance": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
+ }
}
diff --git a/examples/provider-package/packages/provider-videos/src/provider.ts b/examples/provider-package/packages/provider-videos/src/provider.ts
index 2711da96..849fc96b 100644
--- a/examples/provider-package/packages/provider-videos/src/provider.ts
+++ b/examples/provider-package/packages/provider-videos/src/provider.ts
@@ -3,8 +3,8 @@ import type { AsyncEndpoint, CredentialRef, EndpointRequest } from "@hypit/hypit
import {
compileWireRequest, generationTypes, mappingSupportsRequest,
sealGeneratedVideoSet, selectWireModelForRequest,
-} from "@hypit/hypit/generation";
-import type { GenerationRequest, GenerationWireMapping } from "@hypit/hypit/generation";
+} from "@hypit/generation";
+import type { GenerationRequest, GenerationWireMapping } from "@hypit/generation";
export const providerModule = { name: "@example/provider-videos", version: "1" } as const;
export const capability = { module: { name: "@hypit/seedance", version: "1" }, name: "seedance-2-mini" } as const;
diff --git a/examples/provider-package/packages/provider-videos/test/provider.test.ts b/examples/provider-package/packages/provider-videos/test/provider.test.ts
index 1d26ce5a..1074e8c9 100644
--- a/examples/provider-package/packages/provider-videos/test/provider.test.ts
+++ b/examples/provider-package/packages/provider-videos/test/provider.test.ts
@@ -4,8 +4,8 @@ import { EndpointRegistry, MemoryResourceStore } from "@hypit/executor";
import { sealSeedanceRequest } from "@hypit/seedance";
import type { BlobRef, EndpointStartContext } from "@hypit/hypit/endpoint";
import { canonicalize } from "@hypit/hypit/endpoint";
-import { generationTypes } from "@hypit/hypit/generation";
-import { assertMappingCoversPorts } from "@hypit/hypit/generation";
+import { generationTypes } from "@hypit/generation";
+import { assertMappingCoversPorts } from "@hypit/generation";
import { seedancePorts } from "@hypit/seedance";
import { capability, createVideoProvider, mapping } from "../src/provider.js";
diff --git a/examples/semantic-composition/packages/chat-scene/package.json b/examples/semantic-composition/packages/chat-scene/package.json
index 65d51fa2..e8ad5f18 100644
--- a/examples/semantic-composition/packages/chat-scene/package.json
+++ b/examples/semantic-composition/packages/chat-scene/package.json
@@ -3,9 +3,31 @@
"version": "0.0.0-dev",
"private": true,
"type": "module",
- "hypit": { "activation": "./dist/activation.js" },
- "exports": { ".": "./dist/render.js" },
- "files": ["dist", "README.md"],
- "scripts": { "build": "tsc -p tsconfig.json", "prepack": "npm run build" },
- "devDependencies": { "@hypit/hypit": "workspace:*", "typescript": "5.9.3", "@types/node": "24.10.1" }
+ "hypit": {
+ "activation": "./dist/activation.js"
+ },
+ "exports": {
+ ".": "./dist/render.js"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "scripts": {
+ "build": "tsc -p tsconfig.json",
+ "prepack": "npm run build"
+ },
+ "devDependencies": {
+ "@hypit/hypit": "workspace:*",
+ "typescript": "5.9.3",
+ "@types/node": "24.10.1"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/html-program": "workspace:^0.1.0"
+ }
}
diff --git a/examples/semantic-composition/packages/chat-scene/src/activation.ts b/examples/semantic-composition/packages/chat-scene/src/activation.ts
index b1046396..dea5a30f 100644
--- a/examples/semantic-composition/packages/chat-scene/src/activation.ts
+++ b/examples/semantic-composition/packages/chat-scene/src/activation.ts
@@ -6,18 +6,18 @@ import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { FragmentOperation } from "@hypit/hypit/author";
import type { ModuleManifest, TypeRef } from "@hypit/hypit/protocol";
import type { StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
-import { compositionTypes } from "@hypit/hypit/composition";
-import { mediaTypes } from "@hypit/hypit/media";
-import type { FontStackRef } from "@hypit/hypit/media";
-import type { Timeline } from "@hypit/hypit/timeline";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
-import { assertTemporalInstantFor, temporalTypes } from "@hypit/hypit/temporal";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
+import { compositionTypes } from "@hypit/composition";
+import { mediaTypes } from "@hypit/media";
+import type { FontStackRef } from "@hypit/media";
+import type { Timeline } from "@hypit/timeline";
+import { timelineTypes } from "@hypit/timeline";
+import { spatialTypes } from "@hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
+import { assertTemporalInstantFor, temporalTypes } from "@hypit/temporal";
+import type { TemporalInstant, TemporalWindow } from "@hypit/temporal";
import { resolveTemporalInstantReference, resolveTemporalWindowReference, resolveTemporalContext,
temporalContextAttributeVocabulary, temporalInstantAttributeNames, temporalInstantAttributeVocabulary,
- temporalWindowAttributeNames, temporalWindowAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+ temporalWindowAttributeNames, temporalWindowAttributeVocabulary } from "@hypit/temporal/markup";
import { renderChat } from "./render.js";
import type { ChatOptions, Message } from "./render.js";
diff --git a/examples/semantic-composition/packages/chat-scene/src/render.ts b/examples/semantic-composition/packages/chat-scene/src/render.ts
index 02c1ef4f..3e9f37f4 100644
--- a/examples/semantic-composition/packages/chat-scene/src/render.ts
+++ b/examples/semantic-composition/packages/chat-scene/src/render.ts
@@ -1,11 +1,11 @@
-import { sealVisualTrack } from "@hypit/hypit/composition";
-import type { VisualElement } from "@hypit/hypit/composition";
-import { htmlVisual } from "@hypit/hypit/html-program";
-import type { FontStackRef } from "@hypit/hypit/media";
-import type { Timeline } from "@hypit/hypit/timeline";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
-import { assertTemporalWindowFor } from "@hypit/hypit/temporal";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
+import { sealVisualTrack } from "@hypit/composition";
+import type { VisualElement } from "@hypit/composition";
+import { htmlVisual } from "@hypit/html-program";
+import type { FontStackRef } from "@hypit/media";
+import type { Timeline } from "@hypit/timeline";
+import type { SpatialFrame } from "@hypit/spatial";
+import { assertTemporalWindowFor } from "@hypit/temporal";
+import type { TemporalInstant, TemporalWindow } from "@hypit/temporal";
export type Message = { id: string; sender: string; text: string; side: "left" | "right"; at: TemporalInstant };
export type ChatOptions = { id: string; title: string; entranceFrames: number };
diff --git a/examples/semantic-composition/packages/chat-scene/test/render.test.ts b/examples/semantic-composition/packages/chat-scene/test/render.test.ts
index 469a6432..b00ad025 100644
--- a/examples/semantic-composition/packages/chat-scene/test/render.test.ts
+++ b/examples/semantic-composition/packages/chat-scene/test/render.test.ts
@@ -1,6 +1,6 @@
import assert from "node:assert/strict";
import test from "node:test";
-import type { HtmlVisual } from "@hypit/hypit/html-program";
+import type { HtmlVisual } from "@hypit/html-program";
import type { FontStackRef } from "@hypit/media";
import type { Timeline } from "@hypit/timeline";
import { composeTemporalWindow, projectProgramInstant } from "@hypit/temporal";
diff --git a/examples/semantic-composition/packages/responsive-explainer/package.json b/examples/semantic-composition/packages/responsive-explainer/package.json
index 70432ae6..b7f7512f 100644
--- a/examples/semantic-composition/packages/responsive-explainer/package.json
+++ b/examples/semantic-composition/packages/responsive-explainer/package.json
@@ -3,9 +3,31 @@
"version": "0.0.0-dev",
"private": true,
"type": "module",
- "hypit": { "activation": "./dist/activation.js" },
- "exports": { ".": "./dist/render.js" },
- "files": ["dist", "README.md"],
- "scripts": { "build": "tsc -p tsconfig.json", "prepack": "npm run build" },
- "devDependencies": { "@hypit/hypit": "workspace:*", "typescript": "5.9.3", "@types/node": "24.10.1" }
+ "hypit": {
+ "activation": "./dist/activation.js"
+ },
+ "exports": {
+ ".": "./dist/render.js"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "scripts": {
+ "build": "tsc -p tsconfig.json",
+ "prepack": "npm run build"
+ },
+ "devDependencies": {
+ "@hypit/hypit": "workspace:*",
+ "typescript": "5.9.3",
+ "@types/node": "24.10.1"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/html-program": "workspace:^0.1.0"
+ }
}
diff --git a/examples/semantic-composition/packages/responsive-explainer/src/activation.ts b/examples/semantic-composition/packages/responsive-explainer/src/activation.ts
index e89c7c99..bccb491d 100644
--- a/examples/semantic-composition/packages/responsive-explainer/src/activation.ts
+++ b/examples/semantic-composition/packages/responsive-explainer/src/activation.ts
@@ -7,19 +7,19 @@ import type { ProducerPackage } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { ModuleManifest, TypeRef } from "@hypit/hypit/protocol";
import type { StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
-import { compositionTypes } from "@hypit/hypit/composition";
-import { mediaTypes } from "@hypit/hypit/media";
-import type { FontStackRef } from "@hypit/hypit/media";
-import type { SynchronizedMedia } from "@hypit/hypit/media";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
+import { compositionTypes } from "@hypit/composition";
+import { mediaTypes } from "@hypit/media";
+import type { FontStackRef } from "@hypit/media";
+import type { SynchronizedMedia } from "@hypit/media";
+import { timelineTypes } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
+import { spatialTypes } from "@hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
+import { temporalTypes } from "@hypit/temporal";
+import type { TemporalInstant, TemporalWindow } from "@hypit/temporal";
import { resolveTemporalInstantReference, resolveTemporalWindowReference, temporalWindowAttributeNames,
- temporalWindowAttributeVocabulary, resolveTemporalContext } from "@hypit/hypit/temporal/markup";
-import { temporalContextAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+ temporalWindowAttributeVocabulary, resolveTemporalContext } from "@hypit/temporal/markup";
+import { temporalContextAttributeVocabulary } from "@hypit/temporal/markup";
import { renderExplainer } from "./render.js";
import type { ExplainerOptions } from "./render.js";
diff --git a/examples/semantic-composition/packages/responsive-explainer/src/render.ts b/examples/semantic-composition/packages/responsive-explainer/src/render.ts
index 8a878f89..a38f7686 100644
--- a/examples/semantic-composition/packages/responsive-explainer/src/render.ts
+++ b/examples/semantic-composition/packages/responsive-explainer/src/render.ts
@@ -1,11 +1,11 @@
-import { sealVisualTrack } from "@hypit/hypit/composition";
-import type { VisualElement } from "@hypit/hypit/composition";
-import { htmlVisual } from "@hypit/hypit/html-program";
-import type { FontArtifactRef } from "@hypit/hypit/media";
-import type { SynchronizedMedia } from "@hypit/hypit/media";
-import type { Timeline } from "@hypit/hypit/timeline";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
+import { sealVisualTrack } from "@hypit/composition";
+import type { VisualElement } from "@hypit/composition";
+import { htmlVisual } from "@hypit/html-program";
+import type { FontArtifactRef } from "@hypit/media";
+import type { SynchronizedMedia } from "@hypit/media";
+import type { Timeline } from "@hypit/timeline";
+import type { SpatialFrame } from "@hypit/spatial";
+import type { TemporalInstant, TemporalWindow } from "@hypit/temporal";
export type ExplainerOptions = { id: string; title: string; transitionFrames: number; stackingOrder: number };
diff --git a/package.json b/package.json
index b3cb327e..b141c370 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/hypit",
- "version": "0.3.0",
+ "version": "0.3.1",
"homepage": "https://hypit.ai",
"repository": {
"type": "git",
@@ -115,16 +115,6 @@
"types": "./dist/public/result-node.d.ts",
"import": "./packages/result/src/node/index.ts"
},
- "./caption": {
- "hypit-source": "./packages/caption/src/index.ts",
- "types": "./dist/public/caption.d.ts",
- "import": "./packages/caption/src/index.ts"
- },
- "./composition": {
- "hypit-source": "./packages/composition/src/index.ts",
- "types": "./dist/public/composition.d.ts",
- "import": "./packages/composition/src/index.ts"
- },
"./endpoint": {
"hypit-source": "./packages/endpoint/src/index.ts",
"types": "./dist/public/endpoint.d.ts",
@@ -135,21 +125,6 @@
"types": "./dist/public/endpoint-http.d.ts",
"import": "./packages/endpoint/src/http.ts"
},
- "./generation": {
- "hypit-source": "./packages/generation/src/index.ts",
- "types": "./dist/public/generation.d.ts",
- "import": "./packages/generation/src/index.ts"
- },
- "./media": {
- "hypit-source": "./packages/media/src/index.ts",
- "types": "./dist/public/media.d.ts",
- "import": "./packages/media/src/index.ts"
- },
- "./generation/model": {
- "hypit-source": "./packages/generation/src/model.ts",
- "types": "./dist/public/generation-model.d.ts",
- "import": "./packages/generation/src/model.ts"
- },
"./loader": {
"hypit-source": "./packages/loader/src/index.ts",
"types": "./dist/public/loader.d.ts",
@@ -165,70 +140,20 @@
"types": "./dist/public/loader-node-module-scope.d.ts",
"import": "./packages/loader/src/node/module-scope.ts"
},
- "./narrative": {
- "hypit-source": "./packages/narrative/src/index.ts",
- "types": "./dist/public/narrative.d.ts",
- "import": "./packages/narrative/src/index.ts"
- },
- "./narrative-caption": {
- "hypit-source": "./packages/narrative-caption/src/index.ts",
- "types": "./dist/public/narrative-caption.d.ts",
- "import": "./packages/narrative-caption/src/index.ts"
- },
- "./narrative-temporal": {
- "hypit-source": "./packages/narrative-temporal/src/index.ts",
- "types": "./dist/public/narrative-temporal.d.ts",
- "import": "./packages/narrative-temporal/src/index.ts"
- },
"./atomic-file": {
"hypit-source": "./packages/atomic-file/src/index.ts",
"types": "./dist/public/atomic-file.d.ts",
"import": "./packages/atomic-file/src/index.ts"
},
- "./timeline": {
- "hypit-source": "./packages/timeline/src/index.ts",
- "types": "./dist/public/timeline.d.ts",
- "import": "./packages/timeline/src/index.ts"
- },
- "./spatial": {
- "hypit-source": "./packages/spatial/src/index.ts",
- "types": "./dist/public/spatial.d.ts",
- "import": "./packages/spatial/src/index.ts"
- },
- "./region-evidence": {
- "hypit-source": "./packages/region-evidence/src/index.ts",
- "types": "./dist/public/region-evidence.d.ts",
- "import": "./packages/region-evidence/src/index.ts"
- },
- "./speech-evidence": {
- "hypit-source": "./packages/speech-evidence/src/index.ts",
- "types": "./dist/public/speech-evidence.d.ts",
- "import": "./packages/speech-evidence/src/index.ts"
- },
"./recipe": {
"hypit-source": "./packages/recipe/src/index.ts",
"types": "./dist/public/recipe.d.ts",
"import": "./packages/recipe/src/index.ts"
},
- "./temporal": {
- "hypit-source": "./packages/temporal/src/index.ts",
- "types": "./dist/public/temporal.d.ts",
- "import": "./packages/temporal/src/index.ts"
- },
- "./temporal/markup": {
- "hypit-source": "./packages/temporal/src/markup/index.ts",
- "types": "./dist/public/temporal-markup.d.ts",
- "import": "./packages/temporal/src/markup/index.ts"
- },
"./text": {
"hypit-source": "./packages/text/src/index.ts",
"types": "./dist/public/text.d.ts",
"import": "./packages/text/src/index.ts"
- },
- "./html-program": {
- "hypit-source": "./packages/html-program/src/index.ts",
- "types": "./dist/public/html-program.d.ts",
- "import": "./packages/html-program/src/index.ts"
}
},
"bin": {
@@ -246,7 +171,10 @@
"@hypit/video/cli",
"@hypit/studio/cli"
]
- }
+ },
+ "packageSources": [
+ "@hypit/video"
+ ]
},
"packageManager": "[email protected]",
"files": [
@@ -382,49 +310,28 @@
"linkedom": "0.18.13",
"rollup": "4.62.4",
"rollup-plugin-dts": "6.2.3",
- "vitepress": "^1.6.4"
+ "vitepress": "^1.6.4",
+ "@hypit/fontsource": "workspace:*",
+ "@hypit/audio-track": "workspace:*",
+ "@hypit/caption-fine": "workspace:*",
+ "@hypit/film": "workspace:*",
+ "@hypit/provider-hypihub": "workspace:*",
+ "@hypit/seedance": "workspace:*",
+ "@hypit/seedance-kits": "workspace:*",
+ "@hypit/script": "workspace:*",
+ "@hypit/text-fine": "workspace:*",
+ "@hypit/timeline-author": "workspace:*",
+ "@hypit/visual-track": "workspace:*"
},
"dependencies": {
- "@hypit/browser-capture": "workspace:^",
- "@hypit/fontsource": "workspace:^",
- "@hypit/audio-track": "workspace:^",
- "@hypit/caption-fine": "workspace:^",
- "@hypit/credential-store-env": "workspace:^",
- "@hypit/credential-store-local": "workspace:^",
- "@hypit/film": "workspace:^",
- "@hypit/elevenlabs-speech": "workspace:^",
- "@hypit/fishaudio-speech": "workspace:^",
- "@hypit/gpt-image": "workspace:^",
- "@hypit/gpt-image-kits": "workspace:^",
- "@hypit/grok-imagine": "workspace:^",
- "@hypit/html-video": "workspace:^",
- "@hypit/image-operations": "workspace:^",
- "@hypit/media-operations": "workspace:^",
- "@hypit/speech-estimate": "workspace:^",
- "@hypit/mimo-speech": "workspace:^",
- "@hypit/minimax-h3": "workspace:^",
- "@hypit/nano-banana": "workspace:^",
- "@hypit/pixverse": "workspace:^",
- "@hypit/provider-html-local": "workspace:^",
- "@hypit/provider-image-opencv-local": "workspace:^",
- "@hypit/provider-hypihub": "workspace:^",
- "@hypit/media-local": "workspace:^",
- "@hypit/provider-whisperx-local": "workspace:^",
- "@hypit/seedance": "workspace:^",
- "@hypit/seedance-kits": "workspace:^",
- "@hypit/seedream": "workspace:^",
- "@hypit/script": "workspace:^",
- "@hypit/studio-companion": "workspace:^",
- "@hypit/runtime-local": "workspace:^",
- "@hypit/video": "workspace:^",
- "@hypit/studio": "workspace:^",
- "@hypit/text-fine": "workspace:^",
- "@hypit/timeline-author": "workspace:^",
- "@hypit/volcengine-matting": "workspace:^",
- "@hypit/visual-track": "workspace:^",
- "@hypit/wan": "workspace:^",
- "@hypit/whisperx": "workspace:^",
- "@hypit/yt-dlp": "workspace:^",
+ "@hypit/browser-capture": "workspace:^0.2.0",
+ "@hypit/speech-estimate": "workspace:^0.1.1",
+ "@hypit/media-local": "workspace:^0.2.0",
+ "@hypit/runtime-local": "workspace:^0.1.1",
+ "@hypit/video": "workspace:^0.2.0",
+ "@hypit/studio": "workspace:^0.2.0",
+ "@hypit/whisperx": "workspace:^0.2.0",
+ "@hypit/yt-dlp": "workspace:^0.2.0",
"@types/node": "24.10.1",
"koffi": "3.2.1",
"tsx": "4.21.0",
diff --git a/packages/audio-track/package.json b/packages/audio-track/package.json
index 59ac4da5..621e522d 100644
--- a/packages/audio-track/package.json
+++ b/packages/audio-track/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/audio-track",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -16,8 +16,8 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/compiler": "workspace:*",
@@ -42,5 +42,11 @@
"@hypit/temporal": "workspace:*",
"@hypit/timeline": "workspace:*",
"typescript": "5.9.3"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/packages/audio-track/src/component.ts b/packages/audio-track/src/component.ts
index 65c02f03..d8e47fb6 100644
--- a/packages/audio-track/src/component.ts
+++ b/packages/audio-track/src/component.ts
@@ -2,9 +2,9 @@ import type { ProducerPackage } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { StoredValue } from "@hypit/hypit/protocol";
import { canonicalize } from "@hypit/hypit/protocol";
-import type { SynchronizedMedia } from "@hypit/hypit/media";
-import type { TemporalWindow } from "@hypit/hypit/temporal";
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { SynchronizedMedia } from "@hypit/media";
+import type { TemporalWindow } from "@hypit/temporal";
+import type { Timeline } from "@hypit/timeline";
import { audioTrackProducers, audioTrackTypes } from "./manifest.js";
import {
diff --git a/packages/audio-track/src/fragment.ts b/packages/audio-track/src/fragment.ts
index 2e9f7271..0a83977f 100644
--- a/packages/audio-track/src/fragment.ts
+++ b/packages/audio-track/src/fragment.ts
@@ -1,10 +1,10 @@
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { timelineTypes } from "@hypit/timeline";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation } from "@hypit/hypit/author";
-import { mediaTypes } from "@hypit/hypit/media";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { mediaTypes } from "@hypit/media";
+import { temporalTypes } from "@hypit/temporal";
import { audioTrackProducers, audioTrackTypes } from "./manifest.js";
diff --git a/packages/audio-track/src/manifest.ts b/packages/audio-track/src/manifest.ts
index 347875ce..0cd84adc 100644
--- a/packages/audio-track/src/manifest.ts
+++ b/packages/audio-track/src/manifest.ts
@@ -1,13 +1,14 @@
-import { compositionDependency, compositionTypes } from "@hypit/hypit/composition";
-import { mediaDependency, mediaTypes } from "@hypit/hypit/media";
+import { compositionDependency, compositionTypes } from "@hypit/composition";
+import type { StructuredSurfaceDeclaration, SurfaceVocabulary } from "@hypit/hypit/markup";
+import { mediaDependency, mediaTypes } from "@hypit/media";
import { blobRefObjectSchema } from "@hypit/hypit/protocol";
import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
-import { temporalDependency, temporalTypes } from "@hypit/hypit/temporal";
+import { temporalDependency, temporalTypes } from "@hypit/temporal";
import {
temporalContextAttributeVocabulary,
temporalWindowAttributeVocabulary,
-} from "@hypit/hypit/temporal/markup";
-import { timelineDependency, timelineTypes } from "@hypit/hypit/timeline";
+} from "@hypit/temporal/markup";
+import { timelineDependency, timelineTypes } from "@hypit/timeline";
export const audioTrackModuleRef = { name: "@hypit/audio-track", version: "1" } as const;
export const audioTrackTypes = {
@@ -73,7 +74,7 @@ const clipInputs = [
{ name: "spec", type: audioTrackTypes.clipSpec }, { name: "window", type: temporalTypes.window },
] as const;
-export const audioTrackMarkupSurfaces = [{
+export const audioTrackMarkupSurfaces: readonly (StructuredSurfaceDeclaration & { readonly vocabulary: SurfaceVocabulary })[] = [{
name: "track", tag: "Track", mode: "structured",
outputs: [audioTrackTypes.header, audioTrackTypes.sourceTime, audioTrackTypes.clipSpec,
audioTrackTypes.program, compositionTypes.audioTrack],
diff --git a/packages/audio-track/src/program.ts b/packages/audio-track/src/program.ts
index b11510ff..3f26e089 100644
--- a/packages/audio-track/src/program.ts
+++ b/packages/audio-track/src/program.ts
@@ -1,12 +1,12 @@
-import { assertTimelineIdentity, timelineFrameSampleBoundary, timelineSampleFrames } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
-import { assertAudioTrackIdentity, sealAudioTrack } from "@hypit/hypit/composition";
-import type { AudioClip, AudioTrack } from "@hypit/hypit/composition";
-import { synchronizedMediaSampleFrames, verifySynchronizedMedia } from "@hypit/hypit/media";
-import type { SynchronizedMedia } from "@hypit/hypit/media";
+import { assertTimelineIdentity, timelineFrameSampleBoundary, timelineSampleFrames } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
+import { assertAudioTrackIdentity, sealAudioTrack } from "@hypit/composition";
+import type { AudioClip, AudioTrack } from "@hypit/composition";
+import { synchronizedMediaSampleFrames, verifySynchronizedMedia } from "@hypit/media";
+import type { SynchronizedMedia } from "@hypit/media";
import { canonicalize, isResourceId } from "@hypit/hypit/protocol";
-import { assertTemporalWindowFor, temporalDurationInSamples } from "@hypit/hypit/temporal";
-import type { TemporalWindow, TemporalDuration } from "@hypit/hypit/temporal";
+import { assertTemporalWindowFor, temporalDurationInSamples } from "@hypit/temporal";
+import type { TemporalWindow, TemporalDuration } from "@hypit/temporal";
import type {
AudioClipSpec,
diff --git a/packages/audio-track/src/source-time.ts b/packages/audio-track/src/source-time.ts
index 9a6350e1..6b9e6653 100644
--- a/packages/audio-track/src/source-time.ts
+++ b/packages/audio-track/src/source-time.ts
@@ -2,9 +2,9 @@ import type {
AudioSourceTimeMap,
AudioSourceTimePiece,
AudioSourceTimeRational,
-} from "@hypit/hypit/composition";
-import { temporalDurationInSamples } from "@hypit/hypit/temporal";
-import type { Timeline } from "@hypit/hypit/timeline";
+} from "@hypit/composition";
+import { temporalDurationInSamples } from "@hypit/temporal";
+import type { Timeline } from "@hypit/timeline";
import type {
AudioSourceTimeBounds,
diff --git a/packages/audio-track/src/studio.ts b/packages/audio-track/src/studio.ts
index 126d16de..487a62eb 100644
--- a/packages/audio-track/src/studio.ts
+++ b/packages/audio-track/src/studio.ts
@@ -1,4 +1,4 @@
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import type { StudioTrackCompanion, StudioTrackCompanionContext } from "@hypit/studio-companion";
import {
artifactPreview,
diff --git a/packages/audio-track/src/surface.ts b/packages/audio-track/src/surface.ts
index 6047195d..9fd9c93e 100644
--- a/packages/audio-track/src/surface.ts
+++ b/packages/audio-track/src/surface.ts
@@ -1,11 +1,11 @@
-import { mediaTypes } from "@hypit/hypit/media";
+import { mediaTypes } from "@hypit/media";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceRecordDraft, SurfaceResolvedReference } from "@hypit/hypit/markup";
-import type { TemporalDuration } from "@hypit/hypit/temporal";
+import type { TemporalDuration } from "@hypit/temporal";
import {
resolveTemporalWindowReference,
resolveTemporalContext,
temporalWindowAttributeNames,
-} from "@hypit/hypit/temporal/markup";
+} from "@hypit/temporal/markup";
import { createAudioTrackFragment } from "./fragment.js";
import { audioTrackTypes } from "./manifest.js";
diff --git a/packages/audio-track/src/types.ts b/packages/audio-track/src/types.ts
index 5b4e786b..4b2b5338 100644
--- a/packages/audio-track/src/types.ts
+++ b/packages/audio-track/src/types.ts
@@ -1,8 +1,8 @@
-import type { AudioSourceTimeMap, AudioSourceTimeRational, FrameSpan } from "@hypit/hypit/composition";
+import type { AudioSourceTimeMap, AudioSourceTimeRational, FrameSpan } from "@hypit/composition";
import type { BlobRef } from "@hypit/hypit/protocol";
import type {
TemporalDuration,
-} from "@hypit/hypit/temporal";
+} from "@hypit/temporal";
export type AudioSourceTimePoint = {
readonly edge: "start" | "end";
diff --git a/packages/browser-capture/package.json b/packages/browser-capture/package.json
index d5c3dcde..d9f5f83b 100644
--- a/packages/browser-capture/package.json
+++ b/packages/browser-capture/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/browser-capture",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -9,13 +9,13 @@
"./cli": "./src/cli.ts"
},
"dependencies": {
- "@hypit/media-local": "workspace:^",
+ "@hypit/media-local": "workspace:^0.2.0",
"@puppeteer/browsers": "3.2.2",
"puppeteer-core": "25.10.0",
"sharp": "0.35.4"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/hypit": "workspace:*"
diff --git a/packages/caption-fine/package.json b/packages/caption-fine/package.json
index bd47198b..efd6e5e0 100644
--- a/packages/caption-fine/package.json
+++ b/packages/caption-fine/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/caption-fine",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -17,8 +17,8 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/caption": "workspace:*",
@@ -39,5 +39,15 @@
"@hypit/script": "workspace:*",
"@hypit/browser-capture": "workspace:*",
"sharp": "0.35.4"
+ },
+ "dependencies": {
+ "@hypit/caption": "workspace:^0.1.0",
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/html-program": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/region-evidence": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/packages/caption-fine/src/component.ts b/packages/caption-fine/src/component.ts
index 305a25f5..b0d0e35a 100644
--- a/packages/caption-fine/src/component.ts
+++ b/packages/caption-fine/src/component.ts
@@ -1,11 +1,11 @@
-import type { Timeline } from "@hypit/hypit/timeline";
-import type { CaptionDocument, CaptionProgram, CaptionTiming } from "@hypit/hypit/caption";
+import type { Timeline } from "@hypit/timeline";
+import type { CaptionDocument, CaptionProgram, CaptionTiming } from "@hypit/caption";
import type { ProducerPackage } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { StoredValue } from "@hypit/hypit/protocol";
import { canonicalize } from "@hypit/hypit/protocol";
-import type { RegionEvidence } from "@hypit/hypit/region-evidence";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+import type { RegionEvidence } from "@hypit/region-evidence";
+import type { SpatialFrame } from "@hypit/spatial";
import { captionFineProducers } from "./manifest.js";
import { renderFineCaption } from "./render.js";
diff --git a/packages/caption-fine/src/fragment.ts b/packages/caption-fine/src/fragment.ts
index 2ddc805c..e2291fe3 100644
--- a/packages/caption-fine/src/fragment.ts
+++ b/packages/caption-fine/src/fragment.ts
@@ -1,9 +1,9 @@
-import { captionTypes } from "@hypit/hypit/caption";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { captionTypes } from "@hypit/caption";
+import { compositionTypes } from "@hypit/composition";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { regionEvidenceTypes } from "@hypit/hypit/region-evidence";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { timelineTypes } from "@hypit/timeline";
+import { regionEvidenceTypes } from "@hypit/region-evidence";
+import { spatialTypes } from "@hypit/spatial";
import { captionFineProducers, captionFineTypes } from "./manifest.js";
diff --git a/packages/caption-fine/src/manifest.ts b/packages/caption-fine/src/manifest.ts
index 3a25b139..58f6df51 100644
--- a/packages/caption-fine/src/manifest.ts
+++ b/packages/caption-fine/src/manifest.ts
@@ -1,16 +1,17 @@
-import { temporalDependency, temporalTypes } from "@hypit/hypit/temporal";
-import { temporalContextAttributeVocabulary, temporalWindowAttributeVocabulary } from "@hypit/hypit/temporal/markup";
-import { timelineDependency, timelineTypes } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+import { temporalDependency, temporalTypes } from "@hypit/temporal";
+import type { StructuredSurfaceDeclaration, SurfaceVocabulary } from "@hypit/hypit/markup";
+import { temporalContextAttributeVocabulary, temporalWindowAttributeVocabulary } from "@hypit/temporal/markup";
+import { timelineDependency, timelineTypes } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import { readFile } from "node:fs/promises";
-import { captionModuleRef, captionTypes } from "@hypit/hypit/caption";
-import { compositionDependency, compositionTypes } from "@hypit/hypit/composition";
-import { mediaDependency, mediaTypes } from "@hypit/hypit/media";
+import { captionModuleRef, captionTypes } from "@hypit/caption";
+import { compositionDependency, compositionTypes } from "@hypit/composition";
+import { mediaDependency, mediaTypes } from "@hypit/media";
import type { ModuleManifest, ProducerRef } from "@hypit/hypit/protocol";
-import { regionEvidenceDependency, regionEvidenceTypes } from "@hypit/hypit/region-evidence";
-import { spatialDependency, spatialTypes } from "@hypit/hypit/spatial";
+import { regionEvidenceDependency, regionEvidenceTypes } from "@hypit/region-evidence";
+import { spatialDependency, spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
import { fineCaptionOneShotMotions } from "./recipe.js";
@@ -31,7 +32,7 @@ export const captionFineProducers = {
renderWithRegions: { module: captionFineModuleRef, name: "render-fine-caption-with-regions" },
} satisfies Record<string, ProducerRef>;
-export const captionFineMarkupSurfaces = [
+export const captionFineMarkupSurfaces: readonly (StructuredSurfaceDeclaration & { readonly vocabulary: SurfaceVocabulary })[] = [
{
name: "style", tag: "Style", mode: "structured", outputs: [captionTypes.style],
vocabulary: {
diff --git a/packages/caption-fine/src/render.ts b/packages/caption-fine/src/render.ts
index cac27fd9..d4965d48 100644
--- a/packages/caption-fine/src/render.ts
+++ b/packages/caption-fine/src/render.ts
@@ -1,8 +1,8 @@
-import { assertTimelineIdentity, timelineFrameCount } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
-import { assertCaptionProgramForDocument } from "@hypit/hypit/caption";
-import type { CaptionProgram } from "@hypit/hypit/caption";
-import { assertVisualTrackIdentity, sealVisualTrack } from "@hypit/hypit/composition";
+import { assertTimelineIdentity, timelineFrameCount } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
+import { assertCaptionProgramForDocument } from "@hypit/caption";
+import type { CaptionProgram } from "@hypit/caption";
+import { assertVisualTrackIdentity, sealVisualTrack } from "@hypit/composition";
import type {
VisualAnimation,
VisualBoxElement,
@@ -14,17 +14,17 @@ import type {
VisualTextElement,
VisualTextPaintLayer,
VisualTrack,
-} from "@hypit/hypit/composition";
-import type { CaptionDocument, CaptionDisplayWord, CaptionUnit } from "@hypit/hypit/caption";
-import { assertRegionEvidence } from "@hypit/hypit/region-evidence";
-import type { RegionEvidence } from "@hypit/hypit/region-evidence";
-import { assertSpatialFrame } from "@hypit/hypit/spatial";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+} from "@hypit/composition";
+import type { CaptionDocument, CaptionDisplayWord, CaptionUnit } from "@hypit/caption";
+import { assertRegionEvidence } from "@hypit/region-evidence";
+import type { RegionEvidence } from "@hypit/region-evidence";
+import { assertSpatialFrame } from "@hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
import { assertFineCaptionParameters, FINE_CAPTION_FAMILY } from "./style.js";
import { assertFineCaptionSchedule } from "./schedule.js";
import { uniformGap, wordGaps } from "./spacing.js";
-import { htmlVisual } from "@hypit/hypit/html-program";
+import { htmlVisual } from "@hypit/html-program";
import { joinedBoxSetup } from "./joined-box.js";
import type {
FineCaptionActiveUnderline,
diff --git a/packages/caption-fine/src/schedule.ts b/packages/caption-fine/src/schedule.ts
index 43596a52..b7c75d33 100644
--- a/packages/caption-fine/src/schedule.ts
+++ b/packages/caption-fine/src/schedule.ts
@@ -1,6 +1,6 @@
-import { assertCaptionProgramForDocument, assertCaptionTimingForDocument, captionUseVisibility } from "@hypit/hypit/caption";
-import type { CaptionProgram, CaptionTiming } from "@hypit/hypit/caption";
-import type { CaptionDocument } from "@hypit/hypit/caption";
+import { assertCaptionProgramForDocument, assertCaptionTimingForDocument, captionUseVisibility } from "@hypit/caption";
+import type { CaptionProgram, CaptionTiming } from "@hypit/caption";
+import type { CaptionDocument } from "@hypit/caption";
import { assertFineCaptionParameters, FINE_CAPTION_FAMILY } from "./style.js";
import type { FineCaptionParameters, FineCaptionSchedule, FineCaptionScheduledCue } from "./types.js";
diff --git a/packages/caption-fine/src/spacing.ts b/packages/caption-fine/src/spacing.ts
index 10dc5039..eefa2335 100644
--- a/packages/caption-fine/src/spacing.ts
+++ b/packages/caption-fine/src/spacing.ts
@@ -1,4 +1,4 @@
-import type { CaptionDisplayWord } from "@hypit/hypit/caption";
+import type { CaptionDisplayWord } from "@hypit/caption";
type Surface = Pick<CaptionDisplayWord, "text" | "separatorBefore">;
diff --git a/packages/caption-fine/src/studio.ts b/packages/caption-fine/src/studio.ts
index e29fb051..d9970998 100644
--- a/packages/caption-fine/src/studio.ts
+++ b/packages/caption-fine/src/studio.ts
@@ -1,6 +1,6 @@
-import type { CaptionDocument, CaptionProgram, CaptionTiming } from "@hypit/hypit/caption";
-import { captionTypes } from "@hypit/hypit/caption";
-import { compositionTypes } from "@hypit/hypit/composition";
+import type { CaptionDocument, CaptionProgram, CaptionTiming } from "@hypit/caption";
+import { captionTypes } from "@hypit/caption";
+import { compositionTypes } from "@hypit/composition";
import { fineCaptionEditableDefaults } from "./recipe.js";
import { captionFineMarkupSurfaces, captionFineModuleRef } from "./manifest.js";
import type { FineCaptionSchedule } from "./types.js";
diff --git a/packages/caption-fine/src/style.ts b/packages/caption-fine/src/style.ts
index eef3eb86..b10250ee 100644
--- a/packages/caption-fine/src/style.ts
+++ b/packages/caption-fine/src/style.ts
@@ -1,7 +1,7 @@
-import type { CaptionStyleIntent } from "@hypit/hypit/caption";
-import { sealCaptionStyle } from "@hypit/hypit/caption";
-import { assertFontArtifactRef } from "@hypit/hypit/media";
-import type { FontArtifactRef } from "@hypit/hypit/media";
+import type { CaptionStyleIntent } from "@hypit/caption";
+import { sealCaptionStyle } from "@hypit/caption";
+import { assertFontArtifactRef } from "@hypit/media";
+import type { FontArtifactRef } from "@hypit/media";
import { canonicalStringify } from "@hypit/hypit/protocol";
import type { Recipe } from "@hypit/hypit/recipe";
diff --git a/packages/caption-fine/src/surface.ts b/packages/caption-fine/src/surface.ts
index d8c06959..743e1642 100644
--- a/packages/caption-fine/src/surface.ts
+++ b/packages/caption-fine/src/surface.ts
@@ -1,9 +1,9 @@
-import { captionProducers, captionTypes } from "@hypit/hypit/caption";
-import { assertFontArtifactRef, assertFontStackRef, mediaTypes } from "@hypit/hypit/media";
-import type { FontArtifactRef, FontStackRef } from "@hypit/hypit/media";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { regionEvidenceTypes } from "@hypit/hypit/region-evidence";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { captionProducers, captionTypes } from "@hypit/caption";
+import { assertFontArtifactRef, assertFontStackRef, mediaTypes } from "@hypit/media";
+import type { FontArtifactRef, FontStackRef } from "@hypit/media";
+import { timelineTypes } from "@hypit/timeline";
+import { regionEvidenceTypes } from "@hypit/region-evidence";
+import { spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
import type { Recipe } from "@hypit/hypit/recipe";
import type { StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference, MarkupAttributeValue } from "@hypit/hypit/markup";
@@ -12,9 +12,9 @@ import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation } from "@hypit/hypit/author";
import type { SurfaceRecordDraft, SurfaceComponentDraft } from "@hypit/hypit/markup";
import { assertEmptyElement, optionalTextAttribute } from "@hypit/hypit/markup";
-import { resolveTemporalContext, resolveTemporalWindowReference, temporalWindowAttributeNames } from "@hypit/hypit/temporal/markup";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { resolveTemporalContext, resolveTemporalWindowReference, temporalWindowAttributeNames } from "@hypit/temporal/markup";
+import { temporalTypes } from "@hypit/temporal";
+import { compositionTypes } from "@hypit/composition";
import { captionFineProducers, captionFineTypes } from "./manifest.js";
const input = (name: string) => ({ kind: "fragment-input" as const, name });
const operation = (id: string) => ({ kind: "fragment-operation" as const, operation: id });
diff --git a/packages/caption-fine/src/types.ts b/packages/caption-fine/src/types.ts
index b2839e8d..0f295bd3 100644
--- a/packages/caption-fine/src/types.ts
+++ b/packages/caption-fine/src/types.ts
@@ -1,5 +1,5 @@
-import type { CaptionTimingUnit } from "@hypit/hypit/caption";
-import type { FontArtifactRef } from "@hypit/hypit/media";
+import type { CaptionTimingUnit } from "@hypit/caption";
+import type { FontArtifactRef } from "@hypit/media";
export type FineCaptionGlyphPaint = {
readonly fill: string;
diff --git a/packages/caption-fine/test/caption-fine.test.ts b/packages/caption-fine/test/caption-fine.test.ts
index b642aefe..e0b8b51e 100644
--- a/packages/caption-fine/test/caption-fine.test.ts
+++ b/packages/caption-fine/test/caption-fine.test.ts
@@ -7,7 +7,7 @@ import test from "node:test";
import type { CaptionProgram, CaptionTiming } from "@hypit/caption";
import type { FontArtifactRef } from "@hypit/media";
import { captionDocument, parseScript } from "@hypit/script";
-import type { RegionEvidence } from "@hypit/hypit/region-evidence";
+import type { RegionEvidence } from "@hypit/region-evidence";
import type { Recipe } from "@hypit/recipe";
import { fixtureResource } from "../../../test/fixture-resource.js";
@@ -444,7 +444,7 @@ test("Caption Surface wires one Timeline to both ordinary and tracked-region ren
const { decodeFineCaptionTrackSurface } = await import("../src/surface.js");
const { timelineTypes } = await import("@hypit/timeline");
const { captionTypes } = await import("@hypit/caption");
- const { regionEvidenceTypes } = await import("@hypit/hypit/region-evidence");
+ const { regionEvidenceTypes } = await import("@hypit/region-evidence");
const { spatialTypes } = await import("@hypit/spatial");
const types = { timeline: timelineTypes.timeline, document: captionTypes.document,
timing: captionTypes.timing, within: spatialTypes.frame, program: captionTypes.program, regions: regionEvidenceTypes.evidence };
diff --git a/packages/caption/README.md b/packages/caption/README.md
index 6d9701c0..10fa2a88 100644
--- a/packages/caption/README.md
+++ b/packages/caption/README.md
@@ -1,6 +1,6 @@
# `@hypit/caption`
-External components import `@hypit/hypit/caption`. Source uses the `@hypit/caption@1` Module
+External components import `@hypit/caption`. Source uses the `@hypit/caption@1` Module
identity for shared declarations such as `Hidden`.
Caption has independent content, timing and presentation structures: CaptionDocument owns display
diff --git a/packages/caption/package.json b/packages/caption/package.json
index 353fac85..65ab93de 100644
--- a/packages/caption/package.json
+++ b/packages/caption/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/caption",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -11,11 +11,20 @@
"activation": "./src/activation.ts"
},
"dependencies": {
+ "@hypit/temporal": "workspace:^0.1.0"
+ },
+ "devDependencies": {
"@hypit/producer": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/markup": "workspace:*",
- "@hypit/temporal": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/admission": "workspace:*",
+ "@hypit/hypit": "workspace:*"
},
- "devDependencies": {}
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
+ }
}
diff --git a/packages/caption/src/activation.ts b/packages/caption/src/activation.ts
index 019b6b52..838e78eb 100644
--- a/packages/caption/src/activation.ts
+++ b/packages/caption/src/activation.ts
@@ -1,6 +1,6 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
-import { createMarkupSurfaceFacet } from "@hypit/markup";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
+import { createMarkupSurfaceFacet } from "@hypit/hypit/markup";
import {
captionComponent, captionManifest, captionModuleRef,
decodeHiddenCaptionStyleSurface,
diff --git a/packages/caption/src/component.ts b/packages/caption/src/component.ts
index 8bfb289f..3ef379c0 100644
--- a/packages/caption/src/component.ts
+++ b/packages/caption/src/component.ts
@@ -1,8 +1,8 @@
-import type { AdmissionPackage } from "@hypit/admission";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { TemporalWindow } from "@hypit/temporal";
-import type { ProducerPackage } from "@hypit/producer";
-import type { StoredValue } from "@hypit/protocol";
-import { canonicalize } from "@hypit/protocol";
+import type { ProducerPackage } from "@hypit/hypit/producer";
+import type { StoredValue } from "@hypit/hypit/protocol";
+import { canonicalize } from "@hypit/hypit/protocol";
import { captionProducers, captionTypes } from "./manifest.js";
import { appendCaptionUse, assertCaptionProgram, assertCaptionStyle } from "./style.js";
diff --git a/packages/caption/src/manifest.ts b/packages/caption/src/manifest.ts
index c9e7bb1b..410d2be1 100644
--- a/packages/caption/src/manifest.ts
+++ b/packages/caption/src/manifest.ts
@@ -1,5 +1,5 @@
import { temporalDependency, temporalTypes, temporalWindowSchema } from "@hypit/temporal";
-import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/protocol";
+import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
export const captionModuleRef = { name: "@hypit/caption", version: "1" } as const;
export const captionProducers = {
diff --git a/packages/caption/src/style.ts b/packages/caption/src/style.ts
index bedd46eb..074b4d0b 100644
--- a/packages/caption/src/style.ts
+++ b/packages/caption/src/style.ts
@@ -1,4 +1,4 @@
-import { canonicalStringify, canonicalize } from "@hypit/protocol";
+import { canonicalStringify, canonicalize } from "@hypit/hypit/protocol";
import { assertCaptionDocumentIdentity } from "./identity.js";
import { assertTemporalWindowFor } from "@hypit/temporal";
diff --git a/packages/caption/src/surface.ts b/packages/caption/src/surface.ts
index 9717a39e..606cd72b 100644
--- a/packages/caption/src/surface.ts
+++ b/packages/caption/src/surface.ts
@@ -1,5 +1,5 @@
-import type { StructuredSurfaceHandler } from "@hypit/markup";
-import { assertAttributes, assertEmptyElement, textAttribute } from "@hypit/markup";
+import type { StructuredSurfaceHandler } from "@hypit/hypit/markup";
+import { assertAttributes, assertEmptyElement, textAttribute } from "@hypit/hypit/markup";
import { captionTypes } from "./manifest.js";
import { sealCaptionStyle } from "./style.js";
diff --git a/packages/caption/src/types.ts b/packages/caption/src/types.ts
index 344a2e62..fed1a275 100644
--- a/packages/caption/src/types.ts
+++ b/packages/caption/src/types.ts
@@ -1,4 +1,4 @@
-import type { CanonicalValue } from "@hypit/protocol";
+import type { CanonicalValue } from "@hypit/hypit/protocol";
/** One author-visible word surface. Punctuation owned by the surface is preserved. */
export type CaptionDisplayWord = {
diff --git a/packages/cli/README.md b/packages/cli/README.md
index 8ffe9ae7..fde56bbc 100644
--- a/packages/cli/README.md
+++ b/packages/cli/README.md
@@ -161,6 +161,9 @@ adds no-charge request details, full request names and original documents. JSON
and `noChargeRequestCount` describe the whole Run, while `groups[]` holds Provider selection facts,
`requests[]` with known parameters and pending inputs, and `pricingDocuments[]` with source and data.
JSON includes every group regardless of `--limit`; no-charge requests are included with `--verbose`.
+Producer failures are reported independently of requests, including failures that produce no Need.
+They are never hidden by `--limit`; JSON includes `producerFailureCount` and `producerFailures`.
+If any Producer fails during planning, `pricing` still reports available rates and exits with code 1.
The implementation follows those same boundaries: `command.ts` defines the generic semantic command
union, while argument parsing and option ownership live in `arguments.ts`; project Result
diff --git a/packages/cli/src/main.ts b/packages/cli/src/main.ts
index a3e79e23..130cc9d1 100644
--- a/packages/cli/src/main.ts
+++ b/packages/cli/src/main.ts
@@ -514,8 +514,10 @@ export async function runCli(
...(args.limit === undefined ? {} : { limit: args.limit }),
machine: createPricingOutput(
projectPath(loaded.path, effectiveWorkspaceRoot), pricing, needs, args.presentation.verbose,
+ evaluated.producerFailures,
),
});
+ if (evaluated.producerFailures.length > 0) io.setExitCode?.(1);
return;
}
const providers = planHost === undefined ? undefined : await describePlanProviders(planHost, evaluated.state, evaluated);
diff --git a/packages/cli/src/output.ts b/packages/cli/src/output.ts
index c88c4982..0aed439b 100644
--- a/packages/cli/src/output.ts
+++ b/packages/cli/src/output.ts
@@ -191,6 +191,8 @@ export type PricingOutput = {
readonly run: string;
readonly requestCount: number;
readonly noChargeRequestCount: number;
+ readonly producerFailureCount: number;
+ readonly producerFailures: PlanOutput["producerFailures"];
readonly groups: readonly (Omit<PricingEntry, "request"> & {
readonly requests: readonly PlanNeed[];
})[];
@@ -694,6 +696,7 @@ export function createPricingOutput(
entries: readonly PricingEntry[],
needs: readonly PlanNeed[],
includeNoCharge = false,
+ producerFailures: PricingOutput["producerFailures"] = [],
): PricingOutput {
const needsByRequest = new Map(needs.map((need) => [need.request, need]));
const groups = new Map<string, Omit<PricingEntry, "request"> & { requests: PlanNeed[] }>();
@@ -715,6 +718,7 @@ export function createPricingOutput(
return {
format: "hypit.cli-pricing@1", run, requestCount: entries.length,
noChargeRequestCount, groups: [...groups.values()],
+ producerFailureCount: producerFailures.length, producerFailures,
};
}
@@ -730,7 +734,14 @@ function renderPricing(
["Run", shortPath(machine.run)],
["Requests", String(machine.requestCount)],
["No Provider charge", `${machine.noChargeRequestCount} requests`],
+ ...(machine.producerFailureCount === 0 ? [] : [["Producer failures", String(machine.producerFailureCount)] as const]),
], colors));
+ if (machine.producerFailures.length > 0) {
+ lines.push("", colors.strong("Producer failures"));
+ for (const failure of machine.producerFailures) {
+ lines.push(` ${colors.error(glyph(io, "×", "x"))} ${colors.accent(stepLabel(failure.step))}: ${failure.message}`);
+ }
+ }
if (machine.noChargeRequestCount > 0 && !verbose) {
lines.push(` ${colors.dim("No-charge request details: --verbose")}`);
}
diff --git a/packages/cli/test/build-programs.test.ts b/packages/cli/test/build-programs.test.ts
index c607056e..c01d40e5 100644
--- a/packages/cli/test/build-programs.test.ts
+++ b/packages/cli/test/build-programs.test.ts
@@ -6,6 +6,7 @@ import test from "node:test";
import { FileBuildResultRepository } from "@hypit/result/node";
import { createRunFrontendFacet } from "@hypit/run";
+import { createProducerPackageFacet } from "@hypit/producer";
import { runCli as runCliEngine } from "../src/main.js";
import { commandHint } from "../src/command-hint.js";
@@ -28,6 +29,7 @@ function distribution(
diagnostics: readonly RuntimeDoctorDiagnostic[],
authorSource = "./main.svml",
execution?: object,
+ producerError?: string,
): CliDistribution {
return {
bootstrapPackages: [{
@@ -45,7 +47,12 @@ function distribution(
candidates: [],
satisfactions: [],
} }),
- })],
+ }), ...(producerError === undefined ? [] : [createProducerPackageFacet({
+ producers: [{
+ producer: { module: { name: "example.value", version: "1" }, name: "produce" },
+ handler() { throw new Error(producerError); },
+ }],
+ })])],
},
}],
createCompiler: () => ({
@@ -72,7 +79,10 @@ function distribution(
dependencies: [],
types: [{ name: "Value" }],
capabilities: [],
- producers: [],
+ producers: producerError === undefined ? [] : [{
+ name: "produce", inputs: [], needs: [],
+ outputs: [{ name: "result", type: { module: { name: "example.value", version: "1" }, name: "Value" } }],
+ }],
} }] }, records: [] },
graph: {
format: "hypit.graph@1",
@@ -84,12 +94,16 @@ function distribution(
candidates: [{
id: "provided-result",
type: { module: { name: "example.value", version: "1" }, name: "Value" },
- root: { kind: "value", value: {
+ root: producerError === undefined ? { kind: "value", value: {
id: "record-result",
value: { kind: "inline", value: "ready" },
- } },
+ } } : { kind: "operation", result: { kind: "operation-result", operation: "produce-result" } },
+ }],
+ operations: producerError === undefined ? [] : [{
+ id: "produce-result",
+ producer: { module: { name: "example.value", version: "1" }, name: "produce" },
+ inputs: {}, result: { kind: "output", name: "result", record: "record-result" },
}],
- operations: [],
},
exports: [{
name: "result",
@@ -135,6 +149,7 @@ function distribution(
preflight: async () => ({ dataRoot: "/tmp", diagnostics }),
doctor: async () => ({ dataRoot: "/tmp", diagnostics: [] }),
providers: async () => [],
+ pricing: async () => [],
invoke: async () => { throw new Error("creation-time invocation is not part of this test"); },
createRuntime: async () => {
if (execution !== undefined) return execution;
@@ -281,3 +296,29 @@ test("plan preserves the selected work summary but exits non-zero when cheap pre
assert.equal("steps" in value, false);
assert.equal(exitCode, 1);
});
+
+test("pricing reports a Producer failure with no external Need and exits non-zero in human and JSON modes", async () => {
+ const source = await runSource();
+ for (const json of [false, true]) {
+ for (const producerError of [undefined, "Timeline end must be after its start"]) {
+ let output = "";
+ let exitCode = 0;
+ await runCli([
+ "pricing", source, "--runtime", "/p/hypit.runtime.json", "--limit", "1",
+ ...(json ? ["--json"] : []),
+ ], {
+ write(text) { output += text; },
+ setExitCode(code) { exitCode = code; },
+ }, distribution([], [], "./main.svml", undefined, producerError));
+ assert.equal(exitCode, producerError === undefined ? 0 : 1);
+ if (producerError !== undefined) assert.ok(output.includes(producerError));
+ if (json) {
+ const value = JSON.parse(output);
+ assert.equal(value.requestCount, 0);
+ assert.deepEqual(value.groups, []);
+ assert.equal(value.producerFailureCount, producerError === undefined ? 0 : 1);
+ assert.equal(value.producerFailures.length, value.producerFailureCount);
+ }
+ }
+ }
+});
diff --git a/packages/cli/test/output.test.ts b/packages/cli/test/output.test.ts
index c2015217..cf66679d 100644
--- a/packages/cli/test/output.test.ts
+++ b/packages/cli/test/output.test.ts
@@ -208,6 +208,33 @@ test("pricing presents Provider-owned material beside the corresponding Needs",
assert.match(verbose, /"per_second_usd": 0\.1045/u);
});
+test("pricing preserves every Producer failure alongside rates regardless of the group limit", () => {
+ const failures = [
+ { step: "timeline", message: "Timeline end must be after its start" },
+ { step: "layout", message: "Frame width must be positive" },
+ ];
+ const machine = createPricingOutput("build.svrun", [{
+ request: "video", capability: "example.video@1#create", status: "resolved",
+ endpoint: "vendor", pricing: { kind: "page", url: "https://vendor.example/pricing" },
+ }, {
+ request: "image", capability: "example.image@1#create", status: "unresolved",
+ }], [], false, failures);
+ const presentation = { kind: "pricing", machine, limit: 1 } as const;
+ const output = capture(human, presentation);
+ assert.match(output, /Producer failures\s+2/u);
+ for (const failure of failures) assert.ok(output.includes(failure.message));
+ assert.match(output, /1 more groups/u);
+ const json = JSON.parse(capture({ ...human, json: true }, presentation));
+ assert.equal(json.producerFailureCount, 2);
+ assert.deepEqual(json.producerFailures, failures);
+ assert.equal(json.groups.length, 2);
+
+ const clean = createPricingOutput("build.svrun", [], []);
+ assert.equal(clean.producerFailureCount, 0);
+ assert.deepEqual(clean.producerFailures, []);
+ assert.doesNotMatch(capture(human, { kind: "pricing", machine: clean }), /Producer failures/u);
+});
+
test("pricing summarizes 24 no-charge requests and retains all 15 priced requests with shared rate documents", () => {
const entries: PricingEntry[] = [];
const needs: PlanNeed[] = [];
diff --git a/packages/comment-sticker/package.json b/packages/comment-sticker/package.json
index 62eb228b..a6742fe5 100644
--- a/packages/comment-sticker/package.json
+++ b/packages/comment-sticker/package.json
@@ -17,8 +17,8 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -33,5 +33,12 @@
"@hypit/text": "workspace:*",
"@hypit/timeline": "workspace:*",
"typescript": "5.9.3"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/packages/comment-sticker/src/author.ts b/packages/comment-sticker/src/author.ts
index 46ff4088..7e09ec8b 100644
--- a/packages/comment-sticker/src/author.ts
+++ b/packages/comment-sticker/src/author.ts
@@ -1,5 +1,5 @@
-import { assertFontStackRef } from "@hypit/hypit/media";
-import type { FontStackRef } from "@hypit/hypit/media";
+import { assertFontStackRef } from "@hypit/media";
+import type { FontStackRef } from "@hypit/media";
import type { Recipe } from "@hypit/hypit/recipe";
import { sealCommentStickerStyle } from "./program.js";
diff --git a/packages/comment-sticker/src/component.ts b/packages/comment-sticker/src/component.ts
index e10506fe..f0f022d2 100644
--- a/packages/comment-sticker/src/component.ts
+++ b/packages/comment-sticker/src/component.ts
@@ -1,9 +1,9 @@
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import type { ProducerPackage, ProducerHandlerContext } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, StoredValue } from "@hypit/hypit/protocol";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
import type { Text } from "@hypit/hypit/text";
import { commentStickerProducers, commentStickerTypes } from "./manifest.js";
@@ -16,7 +16,7 @@ import type {
CommentStickerSet,
CommentStickerStyle,
} from "./types.js";
-import type { TemporalWindow } from "@hypit/hypit/temporal";
+import type { TemporalWindow } from "@hypit/temporal";
function inline<T>(value: StoredValue | undefined, label: string): T {
if (value?.kind !== "inline") throw new Error(`${label} must be inline.`);
diff --git a/packages/comment-sticker/src/fragment.ts b/packages/comment-sticker/src/fragment.ts
index bfe090f1..33695d4b 100644
--- a/packages/comment-sticker/src/fragment.ts
+++ b/packages/comment-sticker/src/fragment.ts
@@ -1,13 +1,13 @@
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { timelineTypes } from "@hypit/timeline";
import { blobTypes } from "@hypit/hypit/blob";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation } from "@hypit/hypit/author";
import type { TypeRef } from "@hypit/hypit/protocol";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { spatialTypes } from "@hypit/spatial";
import { textTypes } from "@hypit/hypit/text";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { temporalTypes } from "@hypit/temporal";
import { commentStickerProducers, commentStickerTypes } from "./manifest.js";
diff --git a/packages/comment-sticker/src/manifest.ts b/packages/comment-sticker/src/manifest.ts
index 68cda29d..4d3c1ce4 100644
--- a/packages/comment-sticker/src/manifest.ts
+++ b/packages/comment-sticker/src/manifest.ts
@@ -1,16 +1,16 @@
-import { timelineTypes, timelineDependency } from "@hypit/hypit/timeline";
-import { temporalContextAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { timelineTypes, timelineDependency } from "@hypit/timeline";
+import { temporalContextAttributeVocabulary } from "@hypit/temporal/markup";
import { readFile } from "node:fs/promises";
import { blobDependency, blobTypes } from "@hypit/hypit/blob";
-import { compositionDependency, compositionTypes } from "@hypit/hypit/composition";
-import { fontArtifactSchema, mediaDependency, mediaTypes } from "@hypit/hypit/media";
+import { compositionDependency, compositionTypes } from "@hypit/composition";
+import { fontArtifactSchema, mediaDependency, mediaTypes } from "@hypit/media";
import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
-import { spatialDependency, spatialFrameSchema, spatialTypes } from "@hypit/hypit/spatial";
+import { spatialDependency, spatialFrameSchema, spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
-import { temporalDependency, temporalTypes } from "@hypit/hypit/temporal";
-import { temporalWindowAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { temporalDependency, temporalTypes } from "@hypit/temporal";
+import { temporalWindowAttributeVocabulary } from "@hypit/temporal/markup";
import { textDependency, textTypes } from "@hypit/hypit/text";
const previewImage = (file: string) => ({
diff --git a/packages/comment-sticker/src/program.ts b/packages/comment-sticker/src/program.ts
index 9ea50666..d10c975f 100644
--- a/packages/comment-sticker/src/program.ts
+++ b/packages/comment-sticker/src/program.ts
@@ -1,9 +1,9 @@
-import { assertTimelineIdentity } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+import { assertTimelineIdentity } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import {
assertVisualTrackIdentity,
sealVisualTrack,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import type {
VisualAnimation,
VisualElement,
@@ -11,14 +11,14 @@ import type {
VisualTextFlow,
VisualTextTypography,
VisualTrack,
-} from "@hypit/hypit/composition";
-import { assertFontArtifactRef } from "@hypit/hypit/media";
+} from "@hypit/composition";
+import { assertFontArtifactRef } from "@hypit/media";
import { canonicalize, isResourceId } from "@hypit/hypit/protocol";
import type { BlobRef } from "@hypit/hypit/protocol";
-import { assertSpatialFrame } from "@hypit/hypit/spatial";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
-import { assertTemporalWindowFor } from "@hypit/hypit/temporal";
-import type { TemporalWindow } from "@hypit/hypit/temporal";
+import { assertSpatialFrame } from "@hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
+import { assertTemporalWindowFor } from "@hypit/temporal";
+import type { TemporalWindow } from "@hypit/temporal";
import { verifyText } from "@hypit/hypit/text";
import type { Text } from "@hypit/hypit/text";
diff --git a/packages/comment-sticker/src/studio.ts b/packages/comment-sticker/src/studio.ts
index 1d70f9ca..8843e74e 100644
--- a/packages/comment-sticker/src/studio.ts
+++ b/packages/comment-sticker/src/studio.ts
@@ -1,6 +1,6 @@
import { commentStickerMarkupSurfaces, commentStickerModuleRef, commentStickerTypes } from "./index.js";
import type { CommentStickerProgram } from "./index.js";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import type { StudioTrackCompanion, StudioTrackCompanionContext, StudioItemDraft, StudioInspectorFieldDeclaration, StudioSourceBindingDeclaration } from "@hypit/studio-companion";
import { artifactPreview, childItems, previewLayer, requiredSurfaceValue, temporalLineageFor, temporalDomainSource, textLayer } from "@hypit/studio-companion";
diff --git a/packages/comment-sticker/src/surface.ts b/packages/comment-sticker/src/surface.ts
index 3fb55078..f54c9cdb 100644
--- a/packages/comment-sticker/src/surface.ts
+++ b/packages/comment-sticker/src/surface.ts
@@ -1,13 +1,13 @@
-import { resolveTemporalContext } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalContext } from "@hypit/temporal/markup";
import { blobTypes } from "@hypit/hypit/blob";
-import { mediaTypes } from "@hypit/hypit/media";
-import type { FontStackRef } from "@hypit/hypit/media";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { mediaTypes } from "@hypit/media";
+import type { FontStackRef } from "@hypit/media";
+import { spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
import type { Recipe } from "@hypit/hypit/recipe";
import { sealText, textTypes } from "@hypit/hypit/text";
import type { StructuredElement, StructuredSurfaceHandler, SurfaceRecordDraft, SurfaceResolvedReference, MarkupAttributeValue } from "@hypit/hypit/markup";
-import { resolveTemporalWindowReference, temporalWindowAttributeNames } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalWindowReference, temporalWindowAttributeNames } from "@hypit/temporal/markup";
import { decodeCommentStickerStyle } from "./author.js";
import { createCommentStickerFragment } from "./fragment.js";
diff --git a/packages/comment-sticker/src/types.ts b/packages/comment-sticker/src/types.ts
index 47298a89..bfcc46c3 100644
--- a/packages/comment-sticker/src/types.ts
+++ b/packages/comment-sticker/src/types.ts
@@ -1,7 +1,7 @@
-import type { FrameSpan } from "@hypit/hypit/composition";
-import type { FontArtifactRef } from "@hypit/hypit/media";
+import type { FrameSpan } from "@hypit/composition";
+import type { FontArtifactRef } from "@hypit/media";
import type { BlobRef } from "@hypit/hypit/protocol";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
export type CommentStickerTextStyle = {
readonly fonts: readonly FontArtifactRef[];
diff --git a/packages/composition/package.json b/packages/composition/package.json
index 85172929..e73dc667 100644
--- a/packages/composition/package.json
+++ b/packages/composition/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/composition",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -11,11 +11,8 @@
"activation": "./src/activation.ts"
},
"dependencies": {
- "@hypit/admission": "workspace:*",
- "@hypit/producer": "workspace:*",
- "@hypit/media": "workspace:*",
- "@hypit/protocol": "workspace:*",
- "@hypit/timeline": "workspace:*"
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -23,6 +20,17 @@
"@hypit/narrative": "workspace:*",
"@hypit/recipe": "workspace:*",
"@hypit/spatial": "workspace:*",
- "@hypit/speech-evidence": "workspace:*"
+ "@hypit/speech-evidence": "workspace:*",
+ "@hypit/admission": "workspace:*",
+ "@hypit/producer": "workspace:*",
+ "@hypit/protocol": "workspace:*",
+ "@hypit/hypit": "workspace:*"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
}
}
diff --git a/packages/composition/src/activation.ts b/packages/composition/src/activation.ts
index 1daef63b..9e9b392a 100644
--- a/packages/composition/src/activation.ts
+++ b/packages/composition/src/activation.ts
@@ -1,4 +1,4 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
import { compositionComponent, compositionManifest } from "./index.js";
export const hypitPackage = {
format: "hypit.package@1" as const,
diff --git a/packages/composition/src/component.ts b/packages/composition/src/component.ts
index f2209004..152690d6 100644
--- a/packages/composition/src/component.ts
+++ b/packages/composition/src/component.ts
@@ -1,5 +1,5 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import type { ProducerPackage } from "@hypit/producer";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import type { ProducerPackage } from "@hypit/hypit/producer";
import { compositionTypes } from "./manifest.js";
import { assertAudioTrackIdentity, assertCompositionIdentity, assertVisualTrackIdentity } from "./track.js";
import type { AudioTrack, Composition, VisualTrack } from "./track.js";
diff --git a/packages/composition/src/introspection.ts b/packages/composition/src/introspection.ts
index f4dc48a4..fa25551e 100644
--- a/packages/composition/src/introspection.ts
+++ b/packages/composition/src/introspection.ts
@@ -1,4 +1,4 @@
-import type { ValueSchema } from "@hypit/protocol";
+import type { ValueSchema } from "@hypit/hypit/protocol";
import {
visualBoxSchema,
diff --git a/packages/composition/src/manifest.ts b/packages/composition/src/manifest.ts
index 33e62c60..ddba5624 100644
--- a/packages/composition/src/manifest.ts
+++ b/packages/composition/src/manifest.ts
@@ -1,5 +1,5 @@
import { mediaDependency, timelineDependency } from "./schema.js";
-import type { ModuleManifest, TypeRef } from "@hypit/protocol";
+import type { ModuleManifest, TypeRef } from "@hypit/hypit/protocol";
import { audioTrackSchema, compositionSchema, visualTrackSchema } from "./schema.js";
export const compositionModuleRef = { name: "@hypit/composition", version: "1" } as const;
export const compositionTypes = { visualTrack: { module: compositionModuleRef, name: "VisualTrack" }, audioTrack: { module: compositionModuleRef, name: "AudioTrack" }, composition: { module: compositionModuleRef, name: "Composition" } } satisfies Record<string, TypeRef>;
diff --git a/packages/composition/src/schema.ts b/packages/composition/src/schema.ts
index f4063ccd..7f534b90 100644
--- a/packages/composition/src/schema.ts
+++ b/packages/composition/src/schema.ts
@@ -1,6 +1,6 @@
import { compositableSurfaceSchema, fontArtifactSchema, mediaDependency } from "@hypit/media";
import { timelineDependency } from "@hypit/timeline";
-import type { ValueSchema } from "@hypit/protocol";
+import type { ValueSchema } from "@hypit/hypit/protocol";
import { VISUAL_IR_V1, VISUAL_STYLE_ENUM_VALUES_V1, VISUAL_STYLE_NAMES_V1 } from "./visual.js";
export { mediaDependency, timelineDependency };
const string = { kind: "string", minLength: 1 } as const; const number = { kind: "number", minimum: 0 } as const;
diff --git a/packages/composition/src/track.ts b/packages/composition/src/track.ts
index 12d07446..ca07d7d1 100644
--- a/packages/composition/src/track.ts
+++ b/packages/composition/src/track.ts
@@ -1,7 +1,7 @@
import { assertAudioLevelAutomation } from "./audio-level-automation.js";
import type { AudioLevelAutomation, AudioSampleSpan } from "./audio-level-automation.js";
-import { canonicalStringify, isResourceId } from "@hypit/protocol";
-import type { BlobRef, CanonicalValue } from "@hypit/protocol";
+import { canonicalStringify, isResourceId } from "@hypit/hypit/protocol";
+import type { BlobRef, CanonicalValue } from "@hypit/hypit/protocol";
import {
assertVisualStyleV1,
diff --git a/packages/credential-store-env/package.json b/packages/credential-store-env/package.json
index 0276d7bb..042df528 100644
--- a/packages/credential-store-env/package.json
+++ b/packages/credential-store-env/package.json
@@ -7,12 +7,15 @@
"exports": {
".": "./src/index.ts"
},
- "files": ["dist", "README.md"],
+ "files": [
+ "dist",
+ "README.md"
+ ],
"hypit": {
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/runtime-local": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/hypit": "workspace:*",
diff --git a/packages/credential-store-local/package.json b/packages/credential-store-local/package.json
index 2a7343a3..b6e89e76 100644
--- a/packages/credential-store-local/package.json
+++ b/packages/credential-store-local/package.json
@@ -16,8 +16,8 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.0",
+ "@hypit/runtime-local": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/atomic-file": "workspace:*",
diff --git a/packages/depth-stack/package.json b/packages/depth-stack/package.json
index c3624820..f9f377d6 100644
--- a/packages/depth-stack/package.json
+++ b/packages/depth-stack/package.json
@@ -17,11 +17,16 @@
"activation": "./src/activation.ts"
},
"dependencies": {
- "@hypit/visual-track": "workspace:^"
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0",
+ "@hypit/visual-track": "workspace:^0.2.0"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
diff --git a/packages/depth-stack/src/author.ts b/packages/depth-stack/src/author.ts
index fdce5fb2..5320ac12 100644
--- a/packages/depth-stack/src/author.ts
+++ b/packages/depth-stack/src/author.ts
@@ -9,7 +9,7 @@ import type {
MediaPaintLayerSpec,
MediaSampleLayerSpec,
} from "@hypit/visual-track";
-import type { ContentFit } from "@hypit/hypit/spatial";
+import type { ContentFit } from "@hypit/spatial";
import type { Recipe } from "@hypit/hypit/recipe";
import {
diff --git a/packages/depth-stack/src/component.ts b/packages/depth-stack/src/component.ts
index ec03e01b..3eb11a57 100644
--- a/packages/depth-stack/src/component.ts
+++ b/packages/depth-stack/src/component.ts
@@ -1,10 +1,10 @@
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import { canonicalize } from "@hypit/hypit/protocol";
import type { ProducerPackage, ProducerHandlerContext } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { StoredValue } from "@hypit/hypit/protocol";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
-import type { TemporalInstant } from "@hypit/hypit/temporal";
+import type { SpatialFrame } from "@hypit/spatial";
+import type { TemporalInstant } from "@hypit/temporal";
import type { MediaLayerSet } from "@hypit/visual-track";
import type { Text } from "@hypit/hypit/text";
diff --git a/packages/depth-stack/src/fragment.ts b/packages/depth-stack/src/fragment.ts
index 07ebe65f..041303c2 100644
--- a/packages/depth-stack/src/fragment.ts
+++ b/packages/depth-stack/src/fragment.ts
@@ -1,13 +1,13 @@
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { timelineTypes } from "@hypit/timeline";
import { blobTypes } from "@hypit/hypit/blob";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation, GraphFragment } from "@hypit/hypit/author";
-import { mediaTypes } from "@hypit/hypit/media";
+import { mediaTypes } from "@hypit/media";
import { visualTrackProducers, visualTrackTypes } from "@hypit/visual-track";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { spatialTypes } from "@hypit/spatial";
+import { temporalTypes } from "@hypit/temporal";
import { depthStackProducers, depthStackTypes } from "./manifest.js";
diff --git a/packages/depth-stack/src/lower.ts b/packages/depth-stack/src/lower.ts
index 5d60b4dd..1c4ecc7c 100644
--- a/packages/depth-stack/src/lower.ts
+++ b/packages/depth-stack/src/lower.ts
@@ -1,15 +1,15 @@
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import {
assertVisualTrackIdentity,
sealVisualTrack,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import type {
VisualAnimation,
VisualElement,
VisualSourceTimeMap,
VisualStyleDeclaration,
VisualTrack,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import {
lowerVisualClipElements,
resolveMediaLayerPrograms,
@@ -19,7 +19,7 @@ import type {
VisualClipProgram,
MediaSampleLayer,
} from "@hypit/visual-track";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
import {
assertDepthStackProgramIdentity,
diff --git a/packages/depth-stack/src/manifest.ts b/packages/depth-stack/src/manifest.ts
index debf0231..0011f07c 100644
--- a/packages/depth-stack/src/manifest.ts
+++ b/packages/depth-stack/src/manifest.ts
@@ -1,5 +1,5 @@
-import { timelineTypes, timelineDependency } from "@hypit/hypit/timeline";
-import { temporalContextAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { timelineTypes, timelineDependency } from "@hypit/timeline";
+import { temporalContextAttributeVocabulary } from "@hypit/temporal/markup";
import { readFile } from "node:fs/promises";
import { blobTypes } from "@hypit/hypit/blob";
@@ -10,8 +10,8 @@ import {
visualTextFlowSchema,
visualTextPaintSchema,
visualTextTypographySchema,
-} from "@hypit/hypit/composition";
-import { mediaDependency, mediaTypes } from "@hypit/hypit/media";
+} from "@hypit/composition";
+import { mediaDependency, mediaTypes } from "@hypit/media";
import {
visualFrameTreatmentSchema,
mediaLayerSetSchema,
@@ -20,10 +20,10 @@ import {
} from "@hypit/visual-track";
import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
-import { spatialDependency, spatialFrameSchema, spatialTypes } from "@hypit/hypit/spatial";
+import { spatialDependency, spatialFrameSchema, spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
-import { temporalDependency, temporalTypes } from "@hypit/hypit/temporal";
-import { temporalInstantAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { temporalDependency, temporalTypes } from "@hypit/temporal";
+import { temporalInstantAttributeVocabulary } from "@hypit/temporal/markup";
import { textDependency, textTypes } from "@hypit/hypit/text";
const previewImage = (file: string) => ({
diff --git a/packages/depth-stack/src/program.ts b/packages/depth-stack/src/program.ts
index 170c9ac4..a2b3033d 100644
--- a/packages/depth-stack/src/program.ts
+++ b/packages/depth-stack/src/program.ts
@@ -1,8 +1,8 @@
-import { assertTimelineIdentity, timelineFrameCount } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+import { assertTimelineIdentity, timelineFrameCount } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import {
assertFontArtifactRef,
-} from "@hypit/hypit/media";
+} from "@hypit/media";
import {
assertVisualFrameTreatment,
assertMediaLayerSet,
@@ -10,10 +10,10 @@ import {
import { canonicalize } from "@hypit/hypit/protocol";
import { verifyText } from "@hypit/hypit/text";
import type { Text } from "@hypit/hypit/text";
-import { assertSpatialFrame } from "@hypit/hypit/spatial";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
-import { assertTemporalInstantFor } from "@hypit/hypit/temporal";
-import type { TemporalInstant } from "@hypit/hypit/temporal";
+import { assertSpatialFrame } from "@hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
+import { assertTemporalInstantFor } from "@hypit/temporal";
+import type { TemporalInstant } from "@hypit/temporal";
import type {
DeckCardTone,
diff --git a/packages/depth-stack/src/studio.ts b/packages/depth-stack/src/studio.ts
index fb90fe96..42f6b1c0 100644
--- a/packages/depth-stack/src/studio.ts
+++ b/packages/depth-stack/src/studio.ts
@@ -1,6 +1,6 @@
import { depthStackMarkupSurfaces, depthStackModuleRef } from "./index.js";
import type { DepthStackProgram } from "./index.js";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import type { StudioTrackCompanion, StudioTrackCompanionContext, StudioItemDraft, StudioInspectorFieldDeclaration } from "@hypit/studio-companion";
import { requiredSurfaceValue, temporalLineageFor, temporalDomainSource } from "@hypit/studio-companion";
diff --git a/packages/depth-stack/src/surface.ts b/packages/depth-stack/src/surface.ts
index b6054fc4..25f92144 100644
--- a/packages/depth-stack/src/surface.ts
+++ b/packages/depth-stack/src/surface.ts
@@ -1,12 +1,12 @@
-import { resolveTemporalContext } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalContext } from "@hypit/temporal/markup";
import { blobTypes } from "@hypit/hypit/blob";
-import { mediaTypes } from "@hypit/hypit/media";
-import type { FontStackRef } from "@hypit/hypit/media";
+import { mediaTypes } from "@hypit/media";
+import type { FontStackRef } from "@hypit/media";
import { visualTrackTypes } from "@hypit/visual-track";
import type { TypeRef } from "@hypit/hypit/protocol";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
-import { resolveTemporalInstantReference, temporalInstantAttributeNames } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalInstantReference, temporalInstantAttributeNames } from "@hypit/temporal/markup";
import type { Recipe } from "@hypit/hypit/recipe";
import { sealText, textTypes } from "@hypit/hypit/text";
import { sealGraphFragment } from "@hypit/hypit/author";
diff --git a/packages/depth-stack/src/types.ts b/packages/depth-stack/src/types.ts
index 9054c894..b04eb7c6 100644
--- a/packages/depth-stack/src/types.ts
+++ b/packages/depth-stack/src/types.ts
@@ -4,12 +4,12 @@ import type {
VisualTextFlow,
VisualTextPaintLayer,
VisualTextTypography,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import type {
VisualFrameTreatment,
MediaLayerSet,
} from "@hypit/visual-track";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
export type DepthStackVisibility = {
readonly previous: number;
diff --git a/packages/elevenlabs-speech/package.json b/packages/elevenlabs-speech/package.json
index 0ae62164..0403a1cc 100644
--- a/packages/elevenlabs-speech/package.json
+++ b/packages/elevenlabs-speech/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/elevenlabs-speech",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,7 +15,7 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -24,5 +24,8 @@
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*",
"@hypit/markup": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/elevenlabs-speech/src/fragment.ts b/packages/elevenlabs-speech/src/fragment.ts
index bb606c1e..972007c7 100644
--- a/packages/elevenlabs-speech/src/fragment.ts
+++ b/packages/elevenlabs-speech/src/fragment.ts
@@ -1,5 +1,5 @@
-import { createExactModelPrimaryGenerationFragment } from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/hypit/generation/model";
+import { createExactModelPrimaryGenerationFragment } from "@hypit/generation/model";
+import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/generation/model";
/** Model result projection over the same graph-native request assembly as every exact model. */
export function createElevenLabsSpeechAudioFragment(
diff --git a/packages/elevenlabs-speech/src/index.ts b/packages/elevenlabs-speech/src/index.ts
index 66eeec60..7dc1cacf 100644
--- a/packages/elevenlabs-speech/src/index.ts
+++ b/packages/elevenlabs-speech/src/index.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationPortRequest, sealGenerationRequestDraft, sealGenerationPortTable } from "@hypit/hypit/generation";
-import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/hypit/generation";
+import { sealGenerationPortRequest, sealGenerationRequestDraft, sealGenerationPortTable } from "@hypit/generation";
+import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/generation";
import type { SurfaceAttributeVocabulary, SurfacePortVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { textTypes } from "@hypit/hypit/text";
export const elevenLabsSpeechModuleRef = { name: "@hypit/elevenlabs-speech", version: "1" } as const;
diff --git a/packages/elevenlabs-speech/src/surface.ts b/packages/elevenlabs-speech/src/surface.ts
index 9dbb0d8d..8680ca93 100644
--- a/packages/elevenlabs-speech/src/surface.ts
+++ b/packages/elevenlabs-speech/src/surface.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { generationPort, sealGenerationMediaBinding } from "@hypit/hypit/generation";
-import type { GenerationMediaPort } from "@hypit/hypit/generation";
-import { exactModelMediaInputNames, exactModelTextInputName } from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/hypit/generation/model";
+import { generationPort, sealGenerationMediaBinding } from "@hypit/generation";
+import type { GenerationMediaPort } from "@hypit/generation";
+import { exactModelMediaInputNames, exactModelTextInputName } from "@hypit/generation/model";
+import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/generation/model";
import { textTypes, verifyText } from "@hypit/hypit/text";
import type { CanonicalValue } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
diff --git a/packages/endpoint/README.md b/packages/endpoint/README.md
index b9a0d33d..dd0afa4c 100644
--- a/packages/endpoint/README.md
+++ b/packages/endpoint/README.md
@@ -10,7 +10,7 @@ No Hypit checkout is needed to develop or install the extension.
```ts
import { defineEndpoint } from "@hypit/hypit/endpoint";
import type { AsyncEndpoint, CredentialRef, EndpointRequest } from "@hypit/hypit/endpoint";
-import { generationTypes, compileWireRequest, sealGeneratedImageSet } from "@hypit/hypit/generation";
+import { generationTypes, compileWireRequest, sealGeneratedImageSet } from "@hypit/generation";
```
The shipped [project Provider example](../../examples/provider-package/README.md) follows an image
@@ -21,7 +21,7 @@ This SDK also exports `canonicalize`, `BlobRef`, `ResourceId`, `credentialRef` a
For an existing model, name its exact versioned Capability and expected result Type. Map its request
ports into the service's wire format; the Provider need not import the model's implementation.
-`@hypit/hypit/generation` supplies the common generated-media values and optional wire-mapping helpers.
+`@hypit/generation` supplies the common generated-media values and optional wire-mapping helpers.
One Provider can implement multiple capabilities, and another Provider can implement those same
capabilities. The Profile selects the implementation used by a project.
diff --git a/packages/film/package.json b/packages/film/package.json
index 90fa5dde..8bb67bcf 100644
--- a/packages/film/package.json
+++ b/packages/film/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/film",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -16,8 +16,8 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/compiler": "workspace:*",
@@ -39,5 +39,11 @@
"@hypit/text-fine": "workspace:*",
"@hypit/timeline": "workspace:*",
"@hypit/admission": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/packages/film/src/component.ts b/packages/film/src/component.ts
index 2b77a18f..f192dbf4 100644
--- a/packages/film/src/component.ts
+++ b/packages/film/src/component.ts
@@ -2,9 +2,9 @@ import { canonicalize } from "@hypit/hypit/protocol";
import type { ProducerPackage } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { StoredValue } from "@hypit/hypit/protocol";
-import type { AudioTrack, VisualTrack } from "@hypit/hypit/composition";
-import type { Canvas } from "@hypit/hypit/spatial";
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { AudioTrack, VisualTrack } from "@hypit/composition";
+import type { Canvas } from "@hypit/spatial";
+import type { Timeline } from "@hypit/timeline";
import { filmProducers } from "./manifest.js";
import { appendFilmAudioTrack, appendFilmVisualTrack, compileFilmComposition, createFilmTrackSet } from "./program.js";
diff --git a/packages/film/src/fragment.ts b/packages/film/src/fragment.ts
index 1a136688..b26170e2 100644
--- a/packages/film/src/fragment.ts
+++ b/packages/film/src/fragment.ts
@@ -1,9 +1,9 @@
import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation } from "@hypit/hypit/author";
-import { compositionTypes } from "@hypit/hypit/composition";
-import type { Track } from "@hypit/hypit/composition";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { compositionTypes } from "@hypit/composition";
+import type { Track } from "@hypit/composition";
+import { spatialTypes } from "@hypit/spatial";
+import { timelineTypes } from "@hypit/timeline";
import { filmProducers, filmTypes } from "./manifest.js";
import type { FilmAssemblyFragmentOptions, FilmTrackInput } from "./types.js";
diff --git a/packages/film/src/manifest.ts b/packages/film/src/manifest.ts
index f7f10ec5..c4b0756e 100644
--- a/packages/film/src/manifest.ts
+++ b/packages/film/src/manifest.ts
@@ -1,10 +1,10 @@
import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
-import { audioTrackSchema, compositionDependency, compositionTypes, visualTrackSchema } from "@hypit/hypit/composition";
-import { spatialDependency, spatialTypes } from "@hypit/hypit/spatial";
+import { audioTrackSchema, compositionDependency, compositionTypes, visualTrackSchema } from "@hypit/composition";
+import { spatialDependency, spatialTypes } from "@hypit/spatial";
import { recipeManifest, recipeModuleRef, recipeType } from "@hypit/hypit/recipe";
-import { temporalContextAttributeVocabulary } from "@hypit/hypit/temporal/markup";
-import { timelineTypes, timelineDependency } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+import { temporalContextAttributeVocabulary } from "@hypit/temporal/markup";
+import { timelineTypes, timelineDependency } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
export const filmModuleRef = { name: "@hypit/film", version: "1" } as const;
export const filmTypes = {
diff --git a/packages/film/src/program.ts b/packages/film/src/program.ts
index e87242d6..5252ea04 100644
--- a/packages/film/src/program.ts
+++ b/packages/film/src/program.ts
@@ -1,9 +1,9 @@
-import { assertAudioTrackIdentity, assertCompositionIdentity, assertVisualTrackIdentity, sealComposition } from "@hypit/hypit/composition";
-import type { AudioTrack, Composition, Track, VisualTrack } from "@hypit/hypit/composition";
-import { assertCanvas } from "@hypit/hypit/spatial";
-import type { Canvas } from "@hypit/hypit/spatial";
-import { assertTimelineIdentity } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+import { assertAudioTrackIdentity, assertCompositionIdentity, assertVisualTrackIdentity, sealComposition } from "@hypit/composition";
+import type { AudioTrack, Composition, Track, VisualTrack } from "@hypit/composition";
+import { assertCanvas } from "@hypit/spatial";
+import type { Canvas } from "@hypit/spatial";
+import { assertTimelineIdentity } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import type { FilmProgram, FilmTrackSet } from "./types.js";
diff --git a/packages/film/src/recipe.ts b/packages/film/src/recipe.ts
index d72dc647..bd1c3d2c 100644
--- a/packages/film/src/recipe.ts
+++ b/packages/film/src/recipe.ts
@@ -1,5 +1,5 @@
import type { Recipe } from "@hypit/hypit/recipe";
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
/**
* The Film Recipe owns Film appearance only. Canvas geometry and Timeline
diff --git a/packages/film/src/studio.ts b/packages/film/src/studio.ts
index 0d3ffb6c..68f53d4b 100644
--- a/packages/film/src/studio.ts
+++ b/packages/film/src/studio.ts
@@ -1,6 +1,6 @@
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import type { StudioFilmCompanion } from "@hypit/studio-companion";
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { timelineTypes } from "@hypit/timeline";
import { filmModuleRef } from "./manifest.js";
diff --git a/packages/film/src/surface.ts b/packages/film/src/surface.ts
index 8d224120..f0f0ab0a 100644
--- a/packages/film/src/surface.ts
+++ b/packages/film/src/surface.ts
@@ -1,9 +1,9 @@
-import { compositionTypes } from "@hypit/hypit/composition";
-import type { AudioTrack, Track, VisualTrack } from "@hypit/hypit/composition";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { compositionTypes } from "@hypit/composition";
+import type { AudioTrack, Track, VisualTrack } from "@hypit/composition";
+import { spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
import type { Recipe } from "@hypit/hypit/recipe";
-import { resolveTemporalContext } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalContext } from "@hypit/temporal/markup";
import type { StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference, MarkupAttributeValue } from "@hypit/hypit/markup";
import { createFilmAssemblyFragment } from "./fragment.js";
diff --git a/packages/film/src/types.ts b/packages/film/src/types.ts
index dd95c5a5..fc8e1e47 100644
--- a/packages/film/src/types.ts
+++ b/packages/film/src/types.ts
@@ -1,4 +1,4 @@
-import type { Track } from "@hypit/hypit/composition";
+import type { Track } from "@hypit/composition";
/** Package-owned authoring value. A future Film Surface may produce this record. */
export type FilmProgram = {
diff --git a/packages/fishaudio-speech/package.json b/packages/fishaudio-speech/package.json
index 46e3638a..9cbe2f14 100644
--- a/packages/fishaudio-speech/package.json
+++ b/packages/fishaudio-speech/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/fishaudio-speech",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,7 +15,7 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -24,5 +24,8 @@
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*",
"@hypit/markup": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/fishaudio-speech/src/fragment.ts b/packages/fishaudio-speech/src/fragment.ts
index 9113d09c..2f867744 100644
--- a/packages/fishaudio-speech/src/fragment.ts
+++ b/packages/fishaudio-speech/src/fragment.ts
@@ -1,5 +1,5 @@
-import { createExactModelPrimaryGenerationFragment } from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/hypit/generation/model";
+import { createExactModelPrimaryGenerationFragment } from "@hypit/generation/model";
+import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/generation/model";
/** Model result projection over the same graph-native request assembly as every exact model. */
export function createFishAudioSpeechAudioFragment(
diff --git a/packages/fishaudio-speech/src/index.ts b/packages/fishaudio-speech/src/index.ts
index a176d33c..dfcd3738 100644
--- a/packages/fishaudio-speech/src/index.ts
+++ b/packages/fishaudio-speech/src/index.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationPortRequest, sealGenerationRequestDraft, sealGenerationPortTable } from "@hypit/hypit/generation";
-import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/hypit/generation";
+import { sealGenerationPortRequest, sealGenerationRequestDraft, sealGenerationPortTable } from "@hypit/generation";
+import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/generation";
import type { SurfaceAttributeVocabulary, SurfacePortVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { textTypes } from "@hypit/hypit/text";
export const fishAudioSpeechModuleRef = { name: "@hypit/fishaudio-speech", version: "1" } as const;
diff --git a/packages/fishaudio-speech/src/surface.ts b/packages/fishaudio-speech/src/surface.ts
index 090b7970..ac370b70 100644
--- a/packages/fishaudio-speech/src/surface.ts
+++ b/packages/fishaudio-speech/src/surface.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { generationPort, sealGenerationMediaBinding } from "@hypit/hypit/generation";
-import type { GenerationMediaPort } from "@hypit/hypit/generation";
-import { exactModelMediaInputNames, exactModelTextInputName } from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/hypit/generation/model";
+import { generationPort, sealGenerationMediaBinding } from "@hypit/generation";
+import type { GenerationMediaPort } from "@hypit/generation";
+import { exactModelMediaInputNames, exactModelTextInputName } from "@hypit/generation/model";
+import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/generation/model";
import { textTypes, verifyText } from "@hypit/hypit/text";
import type { CanonicalValue } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
diff --git a/packages/fontsource/package.json b/packages/fontsource/package.json
index 8bd469a4..3bc57b0b 100644
--- a/packages/fontsource/package.json
+++ b/packages/fontsource/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/fontsource",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,11 +15,14 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
- "@hypit/hypit": "workspace:^",
+ "@hypit/hypit": "workspace:*",
"@hypit/studio-companion": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/media": "workspace:^0.1.0"
}
}
diff --git a/packages/fontsource/src/manifest.ts b/packages/fontsource/src/manifest.ts
index 95c73472..f62e902f 100644
--- a/packages/fontsource/src/manifest.ts
+++ b/packages/fontsource/src/manifest.ts
@@ -1,4 +1,4 @@
-import { mediaDependency, mediaTypes } from "@hypit/hypit/media";
+import { mediaDependency, mediaTypes } from "@hypit/media";
import type { ModuleManifest } from "@hypit/hypit/protocol";
export const fontsourceModuleRef = { name: "@hypit/fontsource", version: "1" } as const;
diff --git a/packages/fontsource/src/surface.ts b/packages/fontsource/src/surface.ts
index 0eaec657..0b06d75e 100644
--- a/packages/fontsource/src/surface.ts
+++ b/packages/fontsource/src/surface.ts
@@ -2,8 +2,8 @@ import { readFile } from "node:fs/promises";
import type { StructuredElement, StructuredSurfaceHandler } from "@hypit/hypit/markup";
import { assertAttributes, assertEmptyElement } from "@hypit/hypit/markup";
-import { assertFontArtifactRef, mediaTypes } from "@hypit/hypit/media";
-import type { FontArtifactRef } from "@hypit/hypit/media";
+import { assertFontArtifactRef, mediaTypes } from "@hypit/media";
+import type { FontArtifactRef } from "@hypit/media";
import {
NodePackageNotFoundError,
resolveNodePackageResource,
diff --git a/packages/fontsource/test/fontsource.test.ts b/packages/fontsource/test/fontsource.test.ts
index ae1d2e82..d1250a06 100644
--- a/packages/fontsource/test/fontsource.test.ts
+++ b/packages/fontsource/test/fontsource.test.ts
@@ -3,7 +3,7 @@ import { fileURLToPath } from "node:url";
import test from "node:test";
import { fixtureResource } from "../../../test/fixture-resource.js";
-import { mediaTypes } from "@hypit/hypit/media";
+import { mediaTypes } from "@hypit/media";
import { decodeFontsourceFaceSurface } from "../src/index.js";
const range = { start: 0, end: 120 };
diff --git a/packages/generation/README.md b/packages/generation/README.md
index 42595ea6..cd60f325 100644
--- a/packages/generation/README.md
+++ b/packages/generation/README.md
@@ -1,8 +1,8 @@
-# `@hypit/hypit/generation`
+# `@hypit/generation`
Provider-neutral generated-media contracts shared by exact image, video and audio model packages.
-External Model and Provider packages import this public subpath from the `@hypit/hypit` Distribution.
+Model and Provider packages declare `@hypit/generation` as an ordinary npm dependency.
It gives both sides the same request and result vocabulary without a dependency between their
implementations. `sealGenerationPortTable` describes a model's inputs; `GenerationWireMapping` and
`compileWireRequest` can translate those inputs to one Provider's documented wire fields.
@@ -30,14 +30,14 @@ Capabilities in a selected Runtime Profile.
## Exact Model authoring
-`@hypit/hypit/generation/model` is the author-model subpath for defining an exact generated-media
+`@hypit/generation/model` is the author-model subpath for defining an exact generated-media
Model without repeating the nominal Type → Producer → Need → Graph Fragment shell. It belongs to
Generation because it derives request Types, validation, facets and author bindings directly from
one `GenerationPortTable`; it is not a second Model registry or a generic kit.
```ts
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
-import { sealGenerationPortTable } from "@hypit/hypit/generation";
+import { defineExactModelModule } from "@hypit/generation/model";
+import { sealGenerationPortTable } from "@hypit/generation";
```
The Model still owns its exact name, accepted ports, constraints and validation. The selected
diff --git a/packages/generation/package.json b/packages/generation/package.json
index 939f0a04..2120451b 100644
--- a/packages/generation/package.json
+++ b/packages/generation/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/generation",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -11,17 +11,22 @@
"hypit": {
"activation": "./src/activation.ts"
},
- "dependencies": {
+ "devDependencies": {
+ "@hypit/executor": "workspace:*",
+ "@hypit/admission": "workspace:*",
"@hypit/author": "workspace:*",
"@hypit/blob": "workspace:*",
"@hypit/facet": "workspace:*",
"@hypit/producer": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/hypit": "workspace:*"
},
- "devDependencies": {
- "@hypit/executor": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
}
}
diff --git a/packages/generation/src/activation.ts b/packages/generation/src/activation.ts
index 1fd646c0..50142a87 100644
--- a/packages/generation/src/activation.ts
+++ b/packages/generation/src/activation.ts
@@ -1,5 +1,5 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
import { generationComponent, generationManifest } from "./index.js";
export const hypitPackage = {
diff --git a/packages/generation/src/component.ts b/packages/generation/src/component.ts
index a7c28123..d2429ce5 100644
--- a/packages/generation/src/component.ts
+++ b/packages/generation/src/component.ts
@@ -1,5 +1,5 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import type { ProducerPackage } from "@hypit/producer";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import type { ProducerPackage } from "@hypit/hypit/producer";
import {
verifyGeneratedAudioSet,
@@ -16,12 +16,12 @@ function inline(value: { readonly kind: string; readonly value?: unknown }, subj
function primary(
value: { readonly kind: string; readonly value?: unknown },
kind: "audio" | "image" | "video",
-): import("@hypit/protocol").BlobRef {
+): import("@hypit/hypit/protocol").BlobRef {
const label = kind === "audio" ? "Audio" : kind === "image" ? "Image" : "Video";
const content = inline(value, `Generated${label}Set`) as {
- readonly images?: readonly import("@hypit/protocol").BlobRef[];
- readonly videos?: readonly import("@hypit/protocol").BlobRef[];
- readonly audios?: readonly import("@hypit/protocol").BlobRef[];
+ readonly images?: readonly import("@hypit/hypit/protocol").BlobRef[];
+ readonly videos?: readonly import("@hypit/hypit/protocol").BlobRef[];
+ readonly audios?: readonly import("@hypit/hypit/protocol").BlobRef[];
};
const selected = kind === "audio"
? content.audios?.[0]
diff --git a/packages/generation/src/identity.ts b/packages/generation/src/identity.ts
index 1b54dbc4..57cc2bf1 100644
--- a/packages/generation/src/identity.ts
+++ b/packages/generation/src/identity.ts
@@ -1,8 +1,8 @@
import {
canonicalize,
isResourceId,
-} from "@hypit/protocol";
-import type { BlobRef } from "@hypit/protocol";
+} from "@hypit/hypit/protocol";
+import type { BlobRef } from "@hypit/hypit/protocol";
import type {
GeneratedAudioSet,
diff --git a/packages/generation/src/manifest.ts b/packages/generation/src/manifest.ts
index cf99e6b8..ca84505e 100644
--- a/packages/generation/src/manifest.ts
+++ b/packages/generation/src/manifest.ts
@@ -1,8 +1,8 @@
import {
blobDependency,
blobTypes,
-} from "@hypit/blob";
-import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/protocol";
+} from "@hypit/hypit/blob";
+import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/hypit/protocol";
import { generatedAudioSetSchema, generatedImageSetSchema, generatedVideoSetSchema } from "./schema.js";
diff --git a/packages/generation/src/mapping.ts b/packages/generation/src/mapping.ts
index 5bdf776e..c43db187 100644
--- a/packages/generation/src/mapping.ts
+++ b/packages/generation/src/mapping.ts
@@ -1,5 +1,5 @@
-import { canonicalize } from "@hypit/protocol";
-import type { BlobRef, CanonicalValue, CapabilityRef } from "@hypit/protocol";
+import { canonicalize } from "@hypit/hypit/protocol";
+import type { BlobRef, CanonicalValue, CapabilityRef } from "@hypit/hypit/protocol";
import { isMediaPort } from "./ports.js";
import type { GenerationMediaValue, GenerationPortTable } from "./ports.js";
diff --git a/packages/generation/src/model.ts b/packages/generation/src/model.ts
index 393e50be..6e6789a5 100644
--- a/packages/generation/src/model.ts
+++ b/packages/generation/src/model.ts
@@ -1,4 +1,4 @@
-import type { AdmissionPackage, TypeValidatorFacet } from "@hypit/admission";
+import type { AdmissionPackage, TypeValidatorFacet } from "@hypit/hypit/admission";
import type {
ProducerPackage,
PlannedNeedFacet,
@@ -6,10 +6,10 @@ import type {
PlannedNeedSpecification,
ProducerFacet,
ProducerHandlerContext,
-} from "@hypit/producer";
-import { blobDependency, blobTypes } from "@hypit/blob";
-import { sealGraphFragment } from "@hypit/author";
-import type { Facet } from "@hypit/facet";
+} from "@hypit/hypit/producer";
+import { blobDependency, blobTypes } from "@hypit/hypit/blob";
+import { sealGraphFragment } from "@hypit/hypit/author";
+import type { Facet } from "@hypit/hypit/facet";
import {
bindGenerationMedia,
bindGenerationText,
@@ -31,11 +31,11 @@ import type {
GenerationRequest,
GenerationRequestDraft,
} from "@hypit/generation";
-import { textDependency, textTypes } from "@hypit/text";
-import type { Text } from "@hypit/text";
+import { textDependency, textTypes } from "@hypit/hypit/text";
+import type { Text } from "@hypit/hypit/text";
import {
canonicalize,
-} from "@hypit/protocol";
+} from "@hypit/hypit/protocol";
import type {
CanonicalValue,
CapabilityRef,
@@ -44,7 +44,7 @@ import type {
ModuleRef,
ProducerRef,
TypeRef,
-} from "@hypit/protocol";
+} from "@hypit/hypit/protocol";
export type PlannedExactModelMediaReference = {
readonly port: string;
diff --git a/packages/generation/src/ports.ts b/packages/generation/src/ports.ts
index 65301799..d41a0d8c 100644
--- a/packages/generation/src/ports.ts
+++ b/packages/generation/src/ports.ts
@@ -1,4 +1,4 @@
-import type { BlobRef } from "@hypit/protocol";
+import type { BlobRef } from "@hypit/hypit/protocol";
/**
* The closed vocabulary describing what one exact generation model accepts.
diff --git a/packages/generation/src/request.ts b/packages/generation/src/request.ts
index 8ef51af5..35a7583b 100644
--- a/packages/generation/src/request.ts
+++ b/packages/generation/src/request.ts
@@ -1,7 +1,7 @@
-import { canonicalize } from "@hypit/protocol";
-import type { BlobRef, ObjectFieldSchema, ValueSchema } from "@hypit/protocol";
-import { verifyText } from "@hypit/text";
-import type { Text } from "@hypit/text";
+import { canonicalize } from "@hypit/hypit/protocol";
+import type { BlobRef, ObjectFieldSchema, ValueSchema } from "@hypit/hypit/protocol";
+import { verifyText } from "@hypit/hypit/text";
+import type { Text } from "@hypit/hypit/text";
import { assertGenerationBlobRef, sealGenerationRequest } from "./identity.js";
import { generationBlobRefSchema, generationObjectSchema } from "./schema.js";
diff --git a/packages/generation/src/schema.ts b/packages/generation/src/schema.ts
index 5f12765a..075ae867 100644
--- a/packages/generation/src/schema.ts
+++ b/packages/generation/src/schema.ts
@@ -1,4 +1,4 @@
-import type { ObjectFieldSchema, ValueSchema } from "@hypit/protocol";
+import type { ObjectFieldSchema, ValueSchema } from "@hypit/hypit/protocol";
export const generationResourceSchema = {
kind: "string",
diff --git a/packages/generation/src/types.ts b/packages/generation/src/types.ts
index 7bcdbc04..5be73be9 100644
--- a/packages/generation/src/types.ts
+++ b/packages/generation/src/types.ts
@@ -1,4 +1,4 @@
-import type { BlobRef } from "@hypit/protocol";
+import type { BlobRef } from "@hypit/hypit/protocol";
export type GeneratedImageSet = {
readonly images: readonly BlobRef[];
diff --git a/packages/gpt-image-kits/package.json b/packages/gpt-image-kits/package.json
index 2249758e..85eaa1cf 100644
--- a/packages/gpt-image-kits/package.json
+++ b/packages/gpt-image-kits/package.json
@@ -7,7 +7,10 @@
"exports": {
"./phone-ugc-v1": "./kits/phone-ugc-v1.svs"
},
- "files": ["kits", "README.md"],
+ "files": [
+ "kits",
+ "README.md"
+ ],
"devDependencies": {
"@hypit/recipe": "workspace:*",
"@hypit/text": "workspace:*"
diff --git a/packages/gpt-image/README.md b/packages/gpt-image/README.md
index 02f05476..ee7ff3b5 100644
--- a/packages/gpt-image/README.md
+++ b/packages/gpt-image/README.md
@@ -52,5 +52,5 @@ generic image-operations package owns the Program shape and operation semantics;
the selected cleanup recipe.
The Surface implementation belongs to this package. The public
-`@hypit/hypit/generation/model` helpers remain responsible only for the exact request and Fragment
+`@hypit/generation/model` helpers remain responsible only for the exact request and Fragment
shell; they own no author-Surface registry or model syntax.
diff --git a/packages/gpt-image/package.json b/packages/gpt-image/package.json
index f0d52f07..1a192dc7 100644
--- a/packages/gpt-image/package.json
+++ b/packages/gpt-image/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/gpt-image",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,10 +15,11 @@
"README.md"
],
"dependencies": {
- "@hypit/image-operations": "workspace:^"
+ "@hypit/generation": "workspace:^0.1.0",
+ "@hypit/image-operations": "workspace:^0.2.0"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
diff --git a/packages/gpt-image/src/fragment.ts b/packages/gpt-image/src/fragment.ts
index 2d4e98c0..583b4bcb 100644
--- a/packages/gpt-image/src/fragment.ts
+++ b/packages/gpt-image/src/fragment.ts
@@ -1,9 +1,9 @@
import { blobTypes } from "@hypit/hypit/blob";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { generationProducers } from "@hypit/hypit/generation";
+import { generationProducers } from "@hypit/generation";
import { imageTransformProducers, imageTransformTypes } from "@hypit/image-operations";
-import { exactModelMediaInputNames, exactModelTextInputName } from "@hypit/hypit/generation/model";
-import type { ExactModelMediaInput, ExactModelTextInput } from "@hypit/hypit/generation/model";
+import { exactModelMediaInputNames, exactModelTextInputName } from "@hypit/generation/model";
+import type { ExactModelMediaInput, ExactModelTextInput } from "@hypit/generation/model";
import type { FragmentOperation } from "@hypit/hypit/author";
import { textTypes } from "@hypit/hypit/text";
diff --git a/packages/gpt-image/src/index.ts b/packages/gpt-image/src/index.ts
index 2150e5b1..906881ec 100644
--- a/packages/gpt-image/src/index.ts
+++ b/packages/gpt-image/src/index.ts
@@ -3,10 +3,10 @@ import {
sealGenerationPortRequest,
sealGenerationRequestDraft,
sealGenerationPortTable,
-} from "@hypit/hypit/generation";
-import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/hypit/generation";
+} from "@hypit/generation";
+import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/generation";
import type { SurfaceAttributeVocabulary, SurfaceChildVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { imageOperationsModuleRef, imageTransformTypes } from "@hypit/image-operations";
import { textTypes } from "@hypit/hypit/text";
diff --git a/packages/gpt-image/src/surface.ts b/packages/gpt-image/src/surface.ts
index f4444787..5786bedb 100644
--- a/packages/gpt-image/src/surface.ts
+++ b/packages/gpt-image/src/surface.ts
@@ -2,14 +2,14 @@ import { blobTypes } from "@hypit/hypit/blob";
import {
generationPort,
sealGenerationMediaBinding,
-} from "@hypit/hypit/generation";
-import type { GenerationMediaPort } from "@hypit/hypit/generation";
+} from "@hypit/generation";
+import type { GenerationMediaPort } from "@hypit/generation";
import { imageTransformTypes } from "@hypit/image-operations";
import {
exactModelMediaInputNames,
exactModelTextInputName,
createExactModelPrimaryGenerationFragment,
-} from "@hypit/hypit/generation/model";
+} from "@hypit/generation/model";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
import type { CanonicalValue, TypeRef } from "@hypit/hypit/protocol";
import { textTypes, verifyText } from "@hypit/hypit/text";
diff --git a/packages/grok-imagine/package.json b/packages/grok-imagine/package.json
index 02c3a1e4..f92abdc2 100644
--- a/packages/grok-imagine/package.json
+++ b/packages/grok-imagine/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/grok-imagine",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,7 +15,7 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -24,5 +24,8 @@
"@hypit/markup": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/grok-imagine/src/index.ts b/packages/grok-imagine/src/index.ts
index 8e29bcc1..6903e98b 100644
--- a/packages/grok-imagine/src/index.ts
+++ b/packages/grok-imagine/src/index.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/hypit/generation";
-import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/hypit/generation";
+import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/generation";
+import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/generation";
import type { SurfaceAttributeVocabulary, SurfaceChildVocabulary, SurfacePortVocabulary, SurfaceVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { textTypes } from "@hypit/hypit/text";
export const grokImagineModuleRef = { name: "@hypit/grok-imagine", version: "1" } as const;
diff --git a/packages/grok-imagine/src/surface.ts b/packages/grok-imagine/src/surface.ts
index c3d3b9fe..4eaca59b 100644
--- a/packages/grok-imagine/src/surface.ts
+++ b/packages/grok-imagine/src/surface.ts
@@ -1,12 +1,12 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/hypit/generation";
-import type { GenerationMediaPort, GenerationPortValue } from "@hypit/hypit/generation";
+import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/generation";
+import type { GenerationMediaPort, GenerationPortValue } from "@hypit/generation";
import {
createExactModelPrimaryGenerationFragment,
exactModelMediaInputNames,
exactModelTextInputName,
-} from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint } from "@hypit/hypit/generation/model";
+} from "@hypit/generation/model";
+import type { ExactModelEndpoint } from "@hypit/generation/model";
import type { CanonicalValue, TypeRef } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
import { textTypes, verifyText } from "@hypit/hypit/text";
diff --git a/packages/html-program/package.json b/packages/html-program/package.json
index 256a6636..e224940f 100644
--- a/packages/html-program/package.json
+++ b/packages/html-program/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/html-program",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -11,13 +11,9 @@
"activation": "./src/activation.ts"
},
"dependencies": {
- "@hypit/producer": "workspace:*",
- "@hypit/composition": "workspace:*",
- "@hypit/author": "workspace:*",
- "@hypit/media": "workspace:*",
- "@hypit/protocol": "workspace:*",
- "@hypit/timeline": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
},
"devDependencies": {
"@hypit/caption": "workspace:*",
@@ -29,6 +25,18 @@
"@hypit/spatial": "workspace:*",
"@hypit/recipe": "workspace:*",
"@hypit/text-fine": "workspace:*",
- "linkedom": "0.18.13"
+ "linkedom": "0.18.13",
+ "@hypit/producer": "workspace:*",
+ "@hypit/author": "workspace:*",
+ "@hypit/protocol": "workspace:*",
+ "@hypit/admission": "workspace:*",
+ "@hypit/hypit": "workspace:*"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
}
}
diff --git a/packages/html-program/src/activation.ts b/packages/html-program/src/activation.ts
index db03fb16..07a57979 100644
--- a/packages/html-program/src/activation.ts
+++ b/packages/html-program/src/activation.ts
@@ -1,5 +1,5 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
import { htmlProgramComponent, htmlProgramManifest } from "./index.js";
export const hypitPackage = {
diff --git a/packages/html-program/src/component.ts b/packages/html-program/src/component.ts
index 588f9aa2..78b070f1 100644
--- a/packages/html-program/src/component.ts
+++ b/packages/html-program/src/component.ts
@@ -1,10 +1,10 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import { plannedNeedInputs } from "@hypit/producer";
-import type { ProducerPackage } from "@hypit/producer";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import { plannedNeedInputs } from "@hypit/hypit/producer";
+import type { ProducerPackage } from "@hypit/hypit/producer";
import type { Composition } from "@hypit/composition";
import type { Timeline } from "@hypit/timeline";
-import type { CanonicalValue, StoredValue } from "@hypit/protocol";
-import { canonicalize } from "@hypit/protocol";
+import type { CanonicalValue, StoredValue } from "@hypit/hypit/protocol";
+import { canonicalize } from "@hypit/hypit/protocol";
import { compileHtmlProgram } from "./document.js";
import type { MediaFrameRange } from "@hypit/media";
diff --git a/packages/html-program/src/document.ts b/packages/html-program/src/document.ts
index 709acfe0..dd35ae45 100644
--- a/packages/html-program/src/document.ts
+++ b/packages/html-program/src/document.ts
@@ -15,8 +15,8 @@ import type {
VisualStyleDeclaration,
VisualTrack,
} from "@hypit/composition";
-import { canonicalStringify, isResourceId } from "@hypit/protocol";
-import type { BlobRef, ResourceId } from "@hypit/protocol";
+import { canonicalStringify, isResourceId } from "@hypit/hypit/protocol";
+import type { BlobRef, ResourceId } from "@hypit/hypit/protocol";
import { VISUAL_IR_V1 } from "@hypit/composition";
import { readHtmlVisual, htmlVisualHtml, htmlVisualScript } from "./html-visual.js";
import { presentationCaptureScopeRuntime } from "./capture-scope.js";
diff --git a/packages/html-program/src/execution.ts b/packages/html-program/src/execution.ts
index 62324b11..b4685913 100644
--- a/packages/html-program/src/execution.ts
+++ b/packages/html-program/src/execution.ts
@@ -1,5 +1,5 @@
-import type { CanonicalValue, BlobRef } from "@hypit/protocol";
-import { isResourceId } from "@hypit/protocol";
+import type { CanonicalValue, BlobRef } from "@hypit/hypit/protocol";
+import { isResourceId } from "@hypit/hypit/protocol";
import { verifyMediaFrameRange } from "@hypit/media";
import type { MediaFrameRange } from "@hypit/media";
import { assertHtmlProgram } from "./document.js";
diff --git a/packages/html-program/src/fragment.ts b/packages/html-program/src/fragment.ts
index ff4b9e6a..c601bdc4 100644
--- a/packages/html-program/src/fragment.ts
+++ b/packages/html-program/src/fragment.ts
@@ -1,6 +1,6 @@
import { compositionTypes } from "@hypit/composition";
import type { Composition } from "@hypit/composition";
-import { sealGraphFragment } from "@hypit/author";
+import { sealGraphFragment } from "@hypit/hypit/author";
import { timelineTypes } from "@hypit/timeline";
import { htmlProgramProducers, htmlProgramTypes } from "./manifest.js";
diff --git a/packages/html-program/src/html-visual.ts b/packages/html-program/src/html-visual.ts
index 2e74d469..7bbe9a01 100644
--- a/packages/html-program/src/html-visual.ts
+++ b/packages/html-program/src/html-visual.ts
@@ -1,5 +1,5 @@
-import { canonicalize } from "@hypit/protocol";
-import type { BlobRef, CanonicalValue } from "@hypit/protocol";
+import { canonicalize } from "@hypit/hypit/protocol";
+import type { BlobRef, CanonicalValue } from "@hypit/hypit/protocol";
import type { VisualProgramElement } from "@hypit/composition";
export const HTML_VISUAL_FORMAT = "hypit.html-visual@1" as const;
diff --git a/packages/html-program/src/manifest.ts b/packages/html-program/src/manifest.ts
index aa324af6..ee67a91a 100644
--- a/packages/html-program/src/manifest.ts
+++ b/packages/html-program/src/manifest.ts
@@ -1,6 +1,6 @@
import { compositionDependency, compositionTypes, VISUAL_IR_V1 } from "@hypit/composition";
import { compositableSurfaceSchema, mediaDependency, mediaTypes } from "@hypit/media";
-import type { CapabilityRef, ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/protocol";
+import type { CapabilityRef, ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
import { timelineDependency, timelineTypes } from "@hypit/timeline";
export const htmlProgramModuleRef = { name: "@hypit/html-program", version: "1" } as const;
diff --git a/packages/html-program/src/text.ts b/packages/html-program/src/text.ts
index 21643e86..f731514f 100644
--- a/packages/html-program/src/text.ts
+++ b/packages/html-program/src/text.ts
@@ -10,7 +10,7 @@ import type {
VisualTextTypography,
VisualVectorPathCommand,
} from "@hypit/composition";
-import { canonicalStringify } from "@hypit/protocol";
+import { canonicalStringify } from "@hypit/hypit/protocol";
type TerminalTextElement = VisualTextFlowElement | VisualPathTextElement;
diff --git a/packages/html-program/src/types.ts b/packages/html-program/src/types.ts
index b143b6b1..73ad738e 100644
--- a/packages/html-program/src/types.ts
+++ b/packages/html-program/src/types.ts
@@ -1,5 +1,5 @@
-import type { BlobRef, ResourceId } from "@hypit/protocol";
+import type { BlobRef, ResourceId } from "@hypit/hypit/protocol";
import type { CompositableSurfaceRef } from "@hypit/media";
import { VISUAL_IR_V1 } from "@hypit/composition";
diff --git a/packages/html-video/package.json b/packages/html-video/package.json
index 97450924..2a099fa4 100644
--- a/packages/html-video/package.json
+++ b/packages/html-video/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/html-video",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,10 +15,15 @@
"activation": "./src/activation.ts"
},
"dependencies": {
- "@hypit/media-operations": "workspace:^"
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/html-program": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/media-operations": "workspace:^0.2.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/compiler": "workspace:*",
diff --git a/packages/html-video/src/fragment.ts b/packages/html-video/src/fragment.ts
index e90b18dd..5498fdcd 100644
--- a/packages/html-video/src/fragment.ts
+++ b/packages/html-video/src/fragment.ts
@@ -1,10 +1,10 @@
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { mediaTypes } from "@hypit/hypit/media";
+import { timelineTypes } from "@hypit/timeline";
+import { mediaTypes } from "@hypit/media";
import { blobTypes } from "@hypit/hypit/blob";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { htmlProgramProducers } from "@hypit/hypit/html-program";
+import { htmlProgramProducers } from "@hypit/html-program";
import { mediaOperationsProducers } from "@hypit/media-operations";
const input = (name: string) => ({ kind: "fragment-input" as const, name });
diff --git a/packages/html-video/src/manifest.ts b/packages/html-video/src/manifest.ts
index 08139279..f120410f 100644
--- a/packages/html-video/src/manifest.ts
+++ b/packages/html-video/src/manifest.ts
@@ -1,9 +1,9 @@
-import { temporalContextAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { temporalContextAttributeVocabulary } from "@hypit/temporal/markup";
import { blobDependency, blobTypes } from "@hypit/hypit/blob";
-import { mediaDependency, mediaTypes } from "@hypit/hypit/media";
-import { compositionDependency, compositionTypes } from "@hypit/hypit/composition";
-import { timelineDependency } from "@hypit/hypit/timeline";
-import { htmlProgramModuleRef } from "@hypit/hypit/html-program";
+import { mediaDependency, mediaTypes } from "@hypit/media";
+import { compositionDependency, compositionTypes } from "@hypit/composition";
+import { timelineDependency } from "@hypit/timeline";
+import { htmlProgramModuleRef } from "@hypit/html-program";
import type { ModuleManifest } from "@hypit/hypit/protocol";
import {
mediaOperationsModuleRef,
diff --git a/packages/html-video/src/surface.ts b/packages/html-video/src/surface.ts
index 1da63cb9..8360ad4c 100644
--- a/packages/html-video/src/surface.ts
+++ b/packages/html-video/src/surface.ts
@@ -1,6 +1,6 @@
-import { resolveTemporalContext } from "@hypit/hypit/temporal/markup";
-import { compositionTypes } from "@hypit/hypit/composition";
-import { mediaTypes, verifyMediaFrameRange } from "@hypit/hypit/media";
+import { resolveTemporalContext } from "@hypit/temporal/markup";
+import { compositionTypes } from "@hypit/composition";
+import { mediaTypes, verifyMediaFrameRange } from "@hypit/media";
import type { StructuredElement, StructuredSurfaceHandler, MarkupAttributeValue } from "@hypit/hypit/markup";
import { createHtmlVideoFragment } from "./fragment.js";
diff --git a/packages/image-operations/package.json b/packages/image-operations/package.json
index 3a4f528b..fb15f5fd 100644
--- a/packages/image-operations/package.json
+++ b/packages/image-operations/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/image-operations",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,7 +15,7 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -25,5 +25,8 @@
"@hypit/markup": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/spatial": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/spatial": "workspace:^0.1.0"
}
}
diff --git a/packages/image-operations/src/compose-component.ts b/packages/image-operations/src/compose-component.ts
index 04412943..018bd96c 100644
--- a/packages/image-operations/src/compose-component.ts
+++ b/packages/image-operations/src/compose-component.ts
@@ -3,7 +3,7 @@ import type { BlobRef, CanonicalValue, StoredValue } from "@hypit/hypit/protocol
import type { ProducerPackage, ProducerHandlerContext } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
import { canonicalize } from "@hypit/hypit/protocol";
-import type { Canvas, SpatialFrame } from "@hypit/hypit/spatial";
+import type { Canvas, SpatialFrame } from "@hypit/spatial";
import { imageComposeRequest } from "./execution.js";
import { imageComposeProducers, imageComposeTypes, imageOperationsCapabilities } from "./refs.js";
diff --git a/packages/image-operations/src/compose-declaration.ts b/packages/image-operations/src/compose-declaration.ts
index 693a2a38..567e2208 100644
--- a/packages/image-operations/src/compose-declaration.ts
+++ b/packages/image-operations/src/compose-declaration.ts
@@ -1,5 +1,5 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { spatialTypes } from "@hypit/spatial";
import { imageComposeTypes } from "./refs.js";
diff --git a/packages/image-operations/src/compose-fragment.ts b/packages/image-operations/src/compose-fragment.ts
index 4e41ad9f..ca8cf804 100644
--- a/packages/image-operations/src/compose-fragment.ts
+++ b/packages/image-operations/src/compose-fragment.ts
@@ -1,7 +1,7 @@
import { blobTypes } from "@hypit/hypit/blob";
import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation } from "@hypit/hypit/author";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { spatialTypes } from "@hypit/spatial";
import { imageComposeProducers, imageComposeTypes } from "./refs.js";
diff --git a/packages/image-operations/src/compose-program.ts b/packages/image-operations/src/compose-program.ts
index 8f2e1807..9a1baa55 100644
--- a/packages/image-operations/src/compose-program.ts
+++ b/packages/image-operations/src/compose-program.ts
@@ -1,4 +1,4 @@
-import { assertSpatialFrame } from "@hypit/hypit/spatial";
+import { assertSpatialFrame } from "@hypit/spatial";
import { canonicalize, isResourceId } from "@hypit/hypit/protocol";
import type {
diff --git a/packages/image-operations/src/compose-surface.ts b/packages/image-operations/src/compose-surface.ts
index 07793ba7..f5e5a16d 100644
--- a/packages/image-operations/src/compose-surface.ts
+++ b/packages/image-operations/src/compose-surface.ts
@@ -1,7 +1,7 @@
import { blobTypes } from "@hypit/hypit/blob";
import type { CanonicalValue } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { spatialTypes } from "@hypit/spatial";
import { createImageComposeFragment } from "./compose-fragment.js";
import { sealImageComposeLayerSpec, sealImageComposeOptions } from "./compose-program.js";
diff --git a/packages/image-operations/src/compose-types.ts b/packages/image-operations/src/compose-types.ts
index cbffb87d..ae934871 100644
--- a/packages/image-operations/src/compose-types.ts
+++ b/packages/image-operations/src/compose-types.ts
@@ -1,5 +1,5 @@
import type { BlobRef } from "@hypit/hypit/protocol";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
export type ImageComposeOptions = {
readonly background: string;
diff --git a/packages/image-operations/src/execution-types.ts b/packages/image-operations/src/execution-types.ts
index 88ac4b9b..b7f3b2dd 100644
--- a/packages/image-operations/src/execution-types.ts
+++ b/packages/image-operations/src/execution-types.ts
@@ -1,5 +1,5 @@
import type { BlobRef } from "@hypit/hypit/protocol";
-import type { Canvas, SpatialFrame } from "@hypit/hypit/spatial";
+import type { Canvas, SpatialFrame } from "@hypit/spatial";
export type ImageInterpolation = "nearest" | "linear" | "cubic" | "area" | "lanczos";
export type ImageFit = "contain" | "cover" | "stretch";
diff --git a/packages/image-operations/src/execution.ts b/packages/image-operations/src/execution.ts
index c0024ac5..be1e3674 100644
--- a/packages/image-operations/src/execution.ts
+++ b/packages/image-operations/src/execution.ts
@@ -1,5 +1,5 @@
import { canonicalize, isResourceId } from "@hypit/hypit/protocol";
-import { assertCanvas, assertSpatialFrame } from "@hypit/hypit/spatial";
+import { assertCanvas, assertSpatialFrame } from "@hypit/spatial";
import type {
ImageComposeExecutionLayer, ImageComposeRequest, ImageEncodeOperation,
diff --git a/packages/image-operations/src/manifest.ts b/packages/image-operations/src/manifest.ts
index c477c1f0..74c83dcb 100644
--- a/packages/image-operations/src/manifest.ts
+++ b/packages/image-operations/src/manifest.ts
@@ -1,5 +1,5 @@
import { blobDependency, blobTypes } from "@hypit/hypit/blob";
-import { spatialDependency, spatialTypes } from "@hypit/hypit/spatial";
+import { spatialDependency, spatialTypes } from "@hypit/spatial";
import type { ModuleManifest, ValueSchema } from "@hypit/hypit/protocol";
import { imageComposeMarkupSurface } from "./compose-declaration.js";
diff --git a/packages/interview-emoji-reveal/package.json b/packages/interview-emoji-reveal/package.json
index 05a36035..22d00201 100644
--- a/packages/interview-emoji-reveal/package.json
+++ b/packages/interview-emoji-reveal/package.json
@@ -15,10 +15,16 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/hypit": "workspace:*",
"typescript": "5.9.3"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/packages/interview-emoji-reveal/src/component.ts b/packages/interview-emoji-reveal/src/component.ts
index 2764e36a..fd94a504 100644
--- a/packages/interview-emoji-reveal/src/component.ts
+++ b/packages/interview-emoji-reveal/src/component.ts
@@ -1,10 +1,10 @@
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import type { ProducerPackage } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, StoredValue } from "@hypit/hypit/protocol";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
+import type { SpatialFrame } from "@hypit/spatial";
+import type { TemporalInstant, TemporalWindow } from "@hypit/temporal";
import { emojiRevealProducers, emojiRevealTypes } from "./manifest.js";
import { appendEmojiRevealItem, appendPresetEmojiRevealItem, assertEmojiRevealProgram, createEmojiRevealSet, finalizeEmojiReveal, renderEmojiReveal } from "./program.js";
diff --git a/packages/interview-emoji-reveal/src/fragment.ts b/packages/interview-emoji-reveal/src/fragment.ts
index 7de70b59..364f2f0c 100644
--- a/packages/interview-emoji-reveal/src/fragment.ts
+++ b/packages/interview-emoji-reveal/src/fragment.ts
@@ -1,11 +1,11 @@
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { timelineTypes } from "@hypit/timeline";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { blobTypes } from "@hypit/hypit/blob";
import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation } from "@hypit/hypit/author";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { spatialTypes } from "@hypit/spatial";
+import { temporalTypes } from "@hypit/temporal";
import { emojiRevealProducers, emojiRevealTypes } from "./manifest.js";
diff --git a/packages/interview-emoji-reveal/src/manifest.ts b/packages/interview-emoji-reveal/src/manifest.ts
index d54172e0..a7b4a7e5 100644
--- a/packages/interview-emoji-reveal/src/manifest.ts
+++ b/packages/interview-emoji-reveal/src/manifest.ts
@@ -1,15 +1,15 @@
-import { timelineTypes, timelineDependency } from "@hypit/hypit/timeline";
-import { temporalContextAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { timelineTypes, timelineDependency } from "@hypit/timeline";
+import { temporalContextAttributeVocabulary } from "@hypit/temporal/markup";
import { readFile } from "node:fs/promises";
import { blobDependency, blobTypes } from "@hypit/hypit/blob";
-import { compositionDependency, compositionTypes } from "@hypit/hypit/composition";
+import { compositionDependency, compositionTypes } from "@hypit/composition";
import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
-import { spatialDependency, spatialTypes } from "@hypit/hypit/spatial";
+import { spatialDependency, spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
-import { temporalDependency, temporalInstantSchema, temporalTypes, temporalWindowSchema } from "@hypit/hypit/temporal";
-import { temporalWindowAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { temporalDependency, temporalInstantSchema, temporalTypes, temporalWindowSchema } from "@hypit/temporal";
+import { temporalWindowAttributeVocabulary } from "@hypit/temporal/markup";
const previewImage = (file: string) => ({
mediaType: "image/png",
diff --git a/packages/interview-emoji-reveal/src/program.ts b/packages/interview-emoji-reveal/src/program.ts
index 24d59c74..613e518d 100644
--- a/packages/interview-emoji-reveal/src/program.ts
+++ b/packages/interview-emoji-reveal/src/program.ts
@@ -1,13 +1,13 @@
-import { assertTimelineIdentity } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
-import { assertVisualTrackIdentity, sealVisualTrack } from "@hypit/hypit/composition";
-import type { VisualAnimation, VisualElement, VisualTrack } from "@hypit/hypit/composition";
+import { assertTimelineIdentity } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
+import { assertVisualTrackIdentity, sealVisualTrack } from "@hypit/composition";
+import type { VisualAnimation, VisualElement, VisualTrack } from "@hypit/composition";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef } from "@hypit/hypit/protocol";
-import { assertSpatialFrame } from "@hypit/hypit/spatial";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
-import { assertTemporalInstantFor, assertTemporalWindowFor } from "@hypit/hypit/temporal";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
+import { assertSpatialFrame } from "@hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
+import { assertTemporalInstantFor, assertTemporalWindowFor } from "@hypit/temporal";
+import type { TemporalInstant, TemporalWindow } from "@hypit/temporal";
import type { EmojiRevealHeader, EmojiRevealItemSpec, EmojiRevealProgram, EmojiRevealSet, EmojiRevealStyle } from "./types.js";
diff --git a/packages/interview-emoji-reveal/src/surface.ts b/packages/interview-emoji-reveal/src/surface.ts
index d703076e..6785ca70 100644
--- a/packages/interview-emoji-reveal/src/surface.ts
+++ b/packages/interview-emoji-reveal/src/surface.ts
@@ -1,11 +1,11 @@
-import { resolveTemporalContext } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalContext } from "@hypit/temporal/markup";
import { assertAttributes, assertEmptyElement, optionalTextAttribute, textAttribute, type MarkupAttributeValue, type StructuredSurfaceHandler, type SurfaceComponentDraft, type SurfaceRecordDraft, type SurfaceResolvedReference } from "@hypit/hypit/markup";
import { blobTypes } from "@hypit/hypit/blob";
import { sameType, type CanonicalValue, type TypeRef } from "@hypit/hypit/protocol";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
import type { Recipe } from "@hypit/hypit/recipe";
-import { resolveTemporalInstantReference, resolveTemporalWindowReference, temporalWindowAttributeNames } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalInstantReference, resolveTemporalWindowReference, temporalWindowAttributeNames } from "@hypit/temporal/markup";
import { createEmojiRevealFragment } from "./fragment.js";
import { emojiRevealTypes } from "./manifest.js";
diff --git a/packages/interview-emoji-reveal/src/types.ts b/packages/interview-emoji-reveal/src/types.ts
index ef87bc45..a0da3b63 100644
--- a/packages/interview-emoji-reveal/src/types.ts
+++ b/packages/interview-emoji-reveal/src/types.ts
@@ -1,5 +1,5 @@
import type { BlobRef } from "@hypit/hypit/protocol";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
+import type { TemporalInstant, TemporalWindow } from "@hypit/temporal";
export type EmojiRevealHeader = { readonly id: string };
diff --git a/packages/loader/README.md b/packages/loader/README.md
index 3ebc0742..579d8cff 100644
--- a/packages/loader/README.md
+++ b/packages/loader/README.md
@@ -1,5 +1,16 @@
# `@hypit/loader`
+## Installed ownership
+
+The Distribution's public exports into its internal `packages/` identify embedded host modules.
+An unrelated directory in a development checkout is not embedded ownership. Independent packages
+remain ordinary project-overridable dependencies in both development and installed releases.
+
+A product may explicitly name dependency owners with `hypit.packageSources` in its package.json.
+Each name must be a declared dependency. Lookup uses those installed package locations after project
+selection; it does not scan for plugins, install anything or activate an owner merely to locate bytes.
+Logical Module dependencies are resolved from the package that declares them.
+
Defines the package contribution value consumed by Hypit Hosts. It contains logical Modules and
opaque Facets, but no package-manager policy or platform I/O. `verifyPackageContributions()` checks
the selected declarations without interpreting executable Facets.
diff --git a/packages/loader/src/node/distribution-resolution.ts b/packages/loader/src/node/distribution-resolution.ts
index ca98f0cb..5d20ef51 100644
--- a/packages/loader/src/node/distribution-resolution.ts
+++ b/packages/loader/src/node/distribution-resolution.ts
@@ -4,7 +4,7 @@ import { existsSync, readFileSync } from "node:fs";
import { pathToFileURL } from "node:url";
import {
- distributionPackageDirectory,
+ embeddedPackageDirectory,
setActiveDistributionPackageRoots,
} from "./location.js";
@@ -22,7 +22,7 @@ function packageAddress(specifier: string): { readonly name: string; readonly su
function distributionPackageEntry(root: string, specifier: string): string | undefined {
const address = packageAddress(specifier);
if (address === undefined) return undefined;
- const packageRoot = distributionPackageDirectory(root, address.name);
+ const packageRoot = embeddedPackageDirectory(root, address.name);
if (packageRoot === undefined) return undefined;
const manifestPath = join(packageRoot, "package.json");
const manifest = JSON.parse(readFileSync(manifestPath, "utf8")) as {
diff --git a/packages/loader/src/node/loader.ts b/packages/loader/src/node/loader.ts
index 3646b046..018252fd 100644
--- a/packages/loader/src/node/loader.ts
+++ b/packages/loader/src/node/loader.ts
@@ -11,7 +11,7 @@ import type {
PackageContribution,
} from "../types.js";
import type { NodePackageLoadOptions, NodePackageSelectionRequest } from "./types.js";
-import { distributionPackageDirectory, locateNodePackage } from "./location.js";
+import { embeddedPackageDirectory, distributionPackageRoots, locateNodePackage } from "./location.js";
type PackageJson = {
readonly name: string;
@@ -82,9 +82,9 @@ function resolutionRoots(
): readonly string[] {
// Protect only exact packages physically embedded by the active Distribution. Its ordinary npm
// dependencies are independently versioned extensions, so an explicit project install wins.
- return distributionRoots.some((root) => distributionPackageDirectory(root, specifier) !== undefined)
+ return distributionRoots.some((root) => embeddedPackageDirectory(root, specifier) !== undefined)
? distributionRoots
- : [...projectRoots, ...distributionRoots];
+ : [...projectRoots, ...distributionRoots.flatMap(distributionPackageRoots)];
}
function activationPath(item: ResolvedPackage): string {
@@ -102,13 +102,13 @@ function embeddedByDistribution(
distributionRoots: readonly string[],
): boolean {
return distributionRoots.some((root) => {
- const directory = distributionPackageDirectory(root, item.json.name);
+ const directory = embeddedPackageDirectory(root, item.json.name);
return directory !== undefined && realpathSync.native(directory) === item.root;
});
}
function embeddedPackageNamed(name: string, distributionRoots: readonly string[]): boolean {
- return distributionRoots.some((root) => distributionPackageDirectory(root, name) !== undefined);
+ return distributionRoots.some((root) => embeddedPackageDirectory(root, name) !== undefined);
}
async function importContribution(
diff --git a/packages/loader/src/node/location.ts b/packages/loader/src/node/location.ts
index 85d22e1f..6651c0e3 100644
--- a/packages/loader/src/node/location.ts
+++ b/packages/loader/src/node/location.ts
@@ -154,6 +154,54 @@ export function distributionPackageDirectory(root: string, name: string): string
return undefined;
}
+/** Root public exports, not the contents of a checkout, define embedded implementation ownership. */
+export function embeddedPackageDirectory(root: string, name: string): string | undefined {
+ const manifestPath = join(root, "package.json");
+ if (!existsSync(manifestPath)) return undefined;
+ const manifest = JSON.parse(readFileSync(manifestPath, "utf8")) as { exports?: unknown };
+ const targets = (value: unknown): string[] => typeof value === "string" ? [value]
+ : value !== null && typeof value === "object" ? Object.values(value).flatMap(targets) : [];
+ for (const target of targets(manifest.exports)) {
+ const match = /^\.\/(packages|services)\/([^/]+)\//u.exec(target);
+ if (match === null) continue;
+ const directory = join(root, match[1]!, match[2]!);
+ if (readPackage(directory, name) !== undefined) return directory;
+ }
+ return undefined;
+}
+
+/** Explicit installed default owners. This never searches for plugins or loads their code. */
+export function distributionPackageRoots(root: string): readonly string[] {
+ const roots: string[] = [];
+ const visit = (candidate: string): void => {
+ const current = resolve(candidate);
+ if (roots.includes(current)) return;
+ roots.push(current);
+ const path = join(current, "package.json");
+ if (!existsSync(path)) return;
+ const manifest = JSON.parse(readFileSync(path, "utf8")) as {
+ dependencies?: Readonly<Record<string, string>>;
+ hypit?: { packageSources?: unknown };
+ };
+ const sources = manifest.hypit?.packageSources;
+ if (sources === undefined) return;
+ if (!Array.isArray(sources) || sources.some((name) => typeof name !== "string")) {
+ throw new Error(`${path}.hypit.packageSources must be package names`);
+ }
+ for (const source of sources as string[]) {
+ const name = packageName(source);
+ if (manifest.dependencies?.[name] === undefined) {
+ throw new Error(`${path} must declare default package source ${name} as a dependency`);
+ }
+ const located = ancestorPackage(name, join(current, "__hypit_defaults__.mjs"));
+ if (located === undefined) throw new NodePackageNotFoundError(name);
+ visit(located.root);
+ }
+ };
+ visit(root);
+ return roots;
+}
+
function distributionPackage(root: string, name: string): LocatedNodePackage | undefined {
const directory = distributionPackageDirectory(root, name);
return directory === undefined ? nodeModulesPackage(root, name) : readPackage(directory, name);
@@ -174,7 +222,7 @@ export function locateNodePackage(nameValue: string, options: LocateNodePackageO
if (name.startsWith("@hypit/")) {
for (const root of distributionRoots) {
- const directory = distributionPackageDirectory(root, name);
+ const directory = embeddedPackageDirectory(root, name);
const embedded = directory === undefined ? undefined : readPackage(directory, name);
if (embedded !== undefined) return embedded;
}
@@ -186,8 +234,11 @@ export function locateNodePackage(nameValue: string, options: LocateNodePackageO
if (found !== undefined) return found;
}
for (const root of distributionRoots) {
- const found = distributionPackage(root, name);
- if (found !== undefined) return found;
+ for (const source of distributionPackageRoots(root)) {
+ const embedded = embeddedPackageDirectory(source, name);
+ const found = embedded === undefined ? nodeModulesPackage(source, name) : readPackage(embedded, name);
+ if (found !== undefined) return found;
+ }
}
throw new NodePackageNotFoundError(name);
}
diff --git a/packages/loader/src/node/public.ts b/packages/loader/src/node/public.ts
index 424ef400..32869c00 100644
--- a/packages/loader/src/node/public.ts
+++ b/packages/loader/src/node/public.ts
@@ -17,6 +17,7 @@ export {
} from "./distribution-resolution.js";
export {
locateNodePackage,
+ distributionPackageRoots,
NodePackageNotFoundError,
resolveNodePackageResource,
resolveNodePackageResourceSpecifier,
diff --git a/packages/loader/test/distribution-resolution.test.ts b/packages/loader/test/distribution-resolution.test.ts
index 7c9c4fc0..d4bbf1ef 100644
--- a/packages/loader/test/distribution-resolution.test.ts
+++ b/packages/loader/test/distribution-resolution.test.ts
@@ -18,12 +18,14 @@ test("one Distribution resolves its internal and public package spellings", () =
resolve(process.cwd(), "packages/recipe/src/index.ts"),
);
assert.equal(resolveDistributionPackageImport(process.cwd(), "example-package"), undefined);
+ assert.equal(resolveDistributionPackageImport(process.cwd(), "@hypit/script"), undefined);
+ assert.equal(resolveDistributionPackageImport(process.cwd(), "@hypit/temporal"), undefined);
});
test("an external Author Package imports the active Distribution public API", async () => {
installDistributionPackageResolution([process.cwd()]);
const author = await import(String("@hypit/hypit/author")) as { readonly sealGraphFragment?: unknown };
- const composition = await import(String("@hypit/hypit/composition")) as { readonly sealVisualTrack?: unknown };
+ const composition = await import(String("@hypit/composition")) as { readonly sealVisualTrack?: unknown };
assert.equal(typeof author.sealGraphFragment, "function");
assert.equal(typeof composition.sealVisualTrack, "function");
});
diff --git a/packages/loader/test/loader.test.ts b/packages/loader/test/loader.test.ts
index 905912a1..04f8b8c8 100644
--- a/packages/loader/test/loader.test.ts
+++ b/packages/loader/test/loader.test.ts
@@ -43,6 +43,12 @@ async function projectPackage(
await writeFile(join(directory, "activation.mjs"), `export default ${contribution};\n`, "utf8");
}
+async function exposeEmbeddedPackage(root: string, name: string): Promise<void> {
+ await writeFile(join(root, "package.json"), JSON.stringify({
+ name: "test-distribution", exports: { "./embedded": `./packages/${name.split("/").at(-1)}/activation.mjs` },
+ }));
+}
+
test("loads an explicitly selected installed package", async () => {
const root = await mkdtemp(join(tmpdir(), "hypit-package-loader-"));
try {
@@ -168,6 +174,7 @@ test("an exact package embedded by the active Distribution cannot be shadowed",
format: "hypit.package@1",
facets: [{ abi: "example.cards@1", offers: ["embedded-host"] }]
}`);
+ await exposeEmbeddedPackage(distribution, "@hypit/cards");
const loaded = await loadNodePackageSelection(["@hypit/cards"], project, {
fallbackRoots: [distribution],
});
@@ -184,6 +191,7 @@ test("official extensions use the Build module scope while embedded host package
try {
await installedPackage(distribution, "@hypit/cards", `{ format: "hypit.package@1" }`);
await projectPackage(distribution, "@hypit/facet-cards", `{ format: "hypit.package@1" }`);
+ await exposeEmbeddedPackage(distribution, "@hypit/facet-cards");
const scoped: string[] = [];
const importModule = async (url: string): Promise<unknown> => {
scoped.push(url);
@@ -202,3 +210,28 @@ test("official extensions use the Build module scope while embedded host package
await rm(distribution, { recursive: true, force: true });
}
});
+
+test("explicit default owners resolve nested capabilities without node_modules hoisting", async () => {
+ const project = await mkdtemp(join(tmpdir(), "hypit-default-project-"));
+ const distribution = await mkdtemp(join(tmpdir(), "hypit-default-distribution-"));
+ try {
+ await writeFile(join(distribution, "package.json"), JSON.stringify({
+ name: "test-distribution", dependencies: { "video-defaults": "1.0.0" },
+ hypit: { packageSources: ["video-defaults"] },
+ }));
+ await installedPackage(distribution, "video-defaults", `{ format: "hypit.package@1" }`, { "example-cards": "1.0.0" });
+ const owner = join(distribution, "node_modules", "video-defaults");
+ await installedPackage(owner, "example-cards", `{
+ format: "hypit.package@1", facets: [{ abi: "cards@1", offers: ["default"] }]
+ }`);
+ const options = { fallbackRoots: [distribution] };
+ assert.deepEqual((await loadNodePackageSelection(["example-cards"], project, options))[0]!.contribution.facets?.[0]?.offers, ["default"]);
+ await installedPackage(project, "example-cards", `{
+ format: "hypit.package@1", facets: [{ abi: "cards@1", offers: ["project"] }]
+ }`);
+ assert.deepEqual((await loadNodePackageSelection(["example-cards"], project, options))[0]!.contribution.facets?.[0]?.offers, ["project"]);
+ } finally {
+ await rm(project, { recursive: true, force: true });
+ await rm(distribution, { recursive: true, force: true });
+ }
+});
diff --git a/packages/media-local/package.json b/packages/media-local/package.json
index e47cc401..cc10e7a8 100644
--- a/packages/media-local/package.json
+++ b/packages/media-local/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/media-local",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -9,17 +9,23 @@
"./cli": "./src/cli.ts",
"./files": "./src/files.ts"
},
- "files": ["dist", "README.md"],
+ "files": [
+ "dist",
+ "README.md"
+ ],
"hypit": {
"activation": "./src/activation.ts"
},
"dependencies": {
- "@hypit/media-operations": "workspace:^",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/media-operations": "workspace:^0.2.0",
+ "@hypit/speech-evidence": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0",
"sharp": "0.35.4"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/runtime-local": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
diff --git a/packages/media-local/src/execute.ts b/packages/media-local/src/execute.ts
index 2dc77ac3..48b26e74 100644
--- a/packages/media-local/src/execute.ts
+++ b/packages/media-local/src/execute.ts
@@ -4,11 +4,11 @@ import { createReadStream } from "node:fs";
import { mkdtemp, open, readFile, rm, stat, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
-import { verifyMediaFrameRange, mediaFrameRangeSamples, mediaTypes, sealMediaInspection, sealMuxedMedia, sealSynchronizedMedia, sealTimelineAudio, verifyMediaInspection, verifyMediaStreamSelection, verifyTimelineVisual, verifySynchronizedMedia, verifyTimelineAudio } from "@hypit/hypit/media";
-import type { MediaAudioStream, MediaInspection, MediaRational, MediaStream, MediaStreamSelection, MediaTimestamp, MediaVideoStream, MuxedMedia, TimelineVisual, SynchronizedMedia, TimelineAudio } from "@hypit/hypit/media";
-import type { Timeline } from "@hypit/hypit/timeline";
-import { assertSpeechEvidenceAudioIdentity, sealSpeechEvidenceAudio, speechEvidenceSampleBoundary } from "@hypit/hypit/speech-evidence";
-import type { ProjectSpeechEvidenceAudioNeed, SpeechEvidenceAudio } from "@hypit/hypit/speech-evidence";
+import { verifyMediaFrameRange, mediaFrameRangeSamples, mediaTypes, sealMediaInspection, sealMuxedMedia, sealSynchronizedMedia, sealTimelineAudio, verifyMediaInspection, verifyMediaStreamSelection, verifyTimelineVisual, verifySynchronizedMedia, verifyTimelineAudio } from "@hypit/media";
+import type { MediaAudioStream, MediaInspection, MediaRational, MediaStream, MediaStreamSelection, MediaTimestamp, MediaVideoStream, MuxedMedia, TimelineVisual, SynchronizedMedia, TimelineAudio } from "@hypit/media";
+import type { Timeline } from "@hypit/timeline";
+import { assertSpeechEvidenceAudioIdentity, sealSpeechEvidenceAudio, speechEvidenceSampleBoundary } from "@hypit/speech-evidence";
+import type { ProjectSpeechEvidenceAudioNeed, SpeechEvidenceAudio } from "@hypit/speech-evidence";
import {
verifyAudioExtractionRequest,
verifyAudioProgramPlan,
diff --git a/packages/media-local/src/files.ts b/packages/media-local/src/files.ts
index 279e0885..a1483bbb 100644
--- a/packages/media-local/src/files.ts
+++ b/packages/media-local/src/files.ts
@@ -8,8 +8,8 @@ import sharp from "sharp";
import { decodeMediaFrames } from "./file-frames.js";
import { writeFrameGrid } from "./frame-grid.js";
import { runProcess, runProcessOutput, runProcessWithInput } from "./process.js";
-import { parseTranscriptWords, phraseRanges, wordsAt } from "@hypit/hypit/speech-evidence";
-import type { FrameWords, TranscriptWord } from "@hypit/hypit/speech-evidence";
+import { parseTranscriptWords, phraseRanges, wordsAt } from "@hypit/speech-evidence";
+import type { FrameWords, TranscriptWord } from "@hypit/speech-evidence";
/**
* Local views of media at chosen times and scales. Transcript annotations use the same seconds as
diff --git a/packages/media-local/src/probe.ts b/packages/media-local/src/probe.ts
index da29a052..e24418da 100644
--- a/packages/media-local/src/probe.ts
+++ b/packages/media-local/src/probe.ts
@@ -1,5 +1,5 @@
-import { sealMediaInspection } from "@hypit/hypit/media";
-import type { MediaAudioStream, MediaInspection, MediaOtherStream, MediaRational, MediaStream, MediaTimestamp, MediaVideoStream } from "@hypit/hypit/media";
+import { sealMediaInspection } from "@hypit/media";
+import type { MediaAudioStream, MediaInspection, MediaOtherStream, MediaRational, MediaStream, MediaTimestamp, MediaVideoStream } from "@hypit/media";
import type { BlobRef } from "@hypit/hypit/protocol";
type JsonObject = Record<string, unknown>;
diff --git a/packages/media-local/src/provider.ts b/packages/media-local/src/provider.ts
index 0e8bd170..c7c6ddf9 100644
--- a/packages/media-local/src/provider.ts
+++ b/packages/media-local/src/provider.ts
@@ -1,4 +1,4 @@
-import { mediaTypes } from "@hypit/hypit/media";
+import { mediaTypes } from "@hypit/media";
import { blobTypes } from "@hypit/hypit/blob";
import {
executeExtractAudio,
@@ -14,7 +14,7 @@ import {
import type { MediaExecutionEnvironment, MediaOperationResult } from "./execute.js";
import { mediaOperationsCapabilities } from "@hypit/media-operations";
import { isStreamingResourceStore } from "@hypit/hypit/endpoint";
-import { speechEvidenceCapabilities, speechEvidenceTypes } from "@hypit/hypit/speech-evidence";
+import { speechEvidenceCapabilities, speechEvidenceTypes } from "@hypit/speech-evidence";
import { defineEndpoint } from "@hypit/hypit/endpoint";
import type { EndpointFulfillment, EndpointInvocationContext } from "@hypit/hypit/endpoint";
diff --git a/packages/media-operations/package.json b/packages/media-operations/package.json
index fda268fd..b23d2446 100644
--- a/packages/media-operations/package.json
+++ b/packages/media-operations/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/media-operations",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,7 +15,7 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -30,5 +30,11 @@
"@hypit/timeline": "workspace:*",
"@hypit/temporal": "workspace:*",
"@hypit/hypit": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/packages/media-operations/src/audio-plan.ts b/packages/media-operations/src/audio-plan.ts
index 1fd5f76f..0b69cb8b 100644
--- a/packages/media-operations/src/audio-plan.ts
+++ b/packages/media-operations/src/audio-plan.ts
@@ -1,7 +1,7 @@
-import { clockFrameSampleBoundary, timelineFrameCount, timelineFrameSampleBoundary } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
-import { assertAudioLevelAutomation, assertCompositionIdentity } from "@hypit/hypit/composition";
-import type { Composition } from "@hypit/hypit/composition";
+import { clockFrameSampleBoundary, timelineFrameCount, timelineFrameSampleBoundary } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
+import { assertAudioLevelAutomation, assertCompositionIdentity } from "@hypit/composition";
+import type { Composition } from "@hypit/composition";
import { canonicalize, isResourceId } from "@hypit/hypit/protocol";
import type { AudioProgramPlan } from "./types.js";
diff --git a/packages/media-operations/src/component.ts b/packages/media-operations/src/component.ts
index a8644c38..bfdfb6e3 100644
--- a/packages/media-operations/src/component.ts
+++ b/packages/media-operations/src/component.ts
@@ -1,15 +1,15 @@
-import { mediaFrameRangeSamples, verifyMediaFrameRange } from "@hypit/hypit/media";
-import { mediaComponent } from "@hypit/hypit/media";
+import { mediaFrameRangeSamples, verifyMediaFrameRange } from "@hypit/media";
+import { mediaComponent } from "@hypit/media";
import { plannedNeedInputs } from "@hypit/hypit/producer";
import type { ProducerPackage, PlannedNeedFacet } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
-import { verifyMediaInspection, verifyMediaStreamSelection, verifyMuxedMedia, verifyTimelineVisual, verifySynchronizedMedia, verifyTimelineAudio } from "@hypit/hypit/media";
-import type { MediaInspection, MediaStreamSelection, MuxedMedia, TimelineVisual, TimelineAudio } from "@hypit/hypit/media";
-import { assertClockIdentity } from "@hypit/hypit/timeline";
-import type { Clock, Timeline } from "@hypit/hypit/timeline";
-import { durationInFrames } from "@hypit/hypit/temporal";
-import type { TemporalDuration } from "@hypit/hypit/temporal";
-import type { Composition } from "@hypit/hypit/composition";
+import { verifyMediaInspection, verifyMediaStreamSelection, verifyMuxedMedia, verifyTimelineVisual, verifySynchronizedMedia, verifyTimelineAudio } from "@hypit/media";
+import type { MediaInspection, MediaStreamSelection, MuxedMedia, TimelineVisual, TimelineAudio } from "@hypit/media";
+import { assertClockIdentity } from "@hypit/timeline";
+import type { Clock, Timeline } from "@hypit/timeline";
+import { durationInFrames } from "@hypit/temporal";
+import type { TemporalDuration } from "@hypit/temporal";
+import type { Composition } from "@hypit/composition";
import type { BlobRef, CanonicalValue, CapabilityRef, ProducerRef, StoredValue } from "@hypit/hypit/protocol";
import { canonicalize } from "@hypit/hypit/protocol";
diff --git a/packages/media-operations/src/fragment.ts b/packages/media-operations/src/fragment.ts
index 9ba7feb1..3f355827 100644
--- a/packages/media-operations/src/fragment.ts
+++ b/packages/media-operations/src/fragment.ts
@@ -1,7 +1,7 @@
-import { mediaProducers, mediaTypes } from "@hypit/hypit/media";
-import { temporalProducers, temporalTypes } from "@hypit/hypit/temporal";
+import { mediaProducers, mediaTypes } from "@hypit/media";
+import { temporalProducers, temporalTypes } from "@hypit/temporal";
import { blobTypes } from "@hypit/hypit/blob";
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { timelineTypes } from "@hypit/timeline";
import { sealGraphFragment } from "@hypit/hypit/author";
import {
diff --git a/packages/media-operations/src/manifest.ts b/packages/media-operations/src/manifest.ts
index c201f256..fecb0fce 100644
--- a/packages/media-operations/src/manifest.ts
+++ b/packages/media-operations/src/manifest.ts
@@ -1,9 +1,9 @@
import { blobDependency } from "@hypit/hypit/blob";
-import { mediaDependency, mediaTypes } from "@hypit/hypit/media";
-import { timelineDependency, timelineTypes } from "@hypit/hypit/timeline";
+import { mediaDependency, mediaTypes } from "@hypit/media";
+import { timelineDependency, timelineTypes } from "@hypit/timeline";
import { recipeModuleRef, recipeType } from "@hypit/hypit/recipe";
-import { compositionDependency, compositionTypes, audioSampleSpanSchema, audioGainEnvelopeSchema } from "@hypit/hypit/composition";
-import { temporalDependency, temporalTypes } from "@hypit/hypit/temporal";
+import { compositionDependency, compositionTypes, audioSampleSpanSchema, audioGainEnvelopeSchema } from "@hypit/composition";
+import { temporalDependency, temporalTypes } from "@hypit/temporal";
import { blobTypes } from "@hypit/hypit/blob";
import type { CapabilityRef, ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
diff --git a/packages/media-operations/src/operations.ts b/packages/media-operations/src/operations.ts
index 7842b7b6..27deac05 100644
--- a/packages/media-operations/src/operations.ts
+++ b/packages/media-operations/src/operations.ts
@@ -1,5 +1,5 @@
-import { verifyMediaInspection } from "@hypit/hypit/media";
-import type { MediaAudioStream, MediaInspection, MediaVideoStream } from "@hypit/hypit/media";
+import { verifyMediaInspection } from "@hypit/media";
+import type { MediaAudioStream, MediaInspection, MediaVideoStream } from "@hypit/media";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef } from "@hypit/hypit/protocol";
diff --git a/packages/media-operations/src/selection.ts b/packages/media-operations/src/selection.ts
index bdd51714..c4623c11 100644
--- a/packages/media-operations/src/selection.ts
+++ b/packages/media-operations/src/selection.ts
@@ -1,5 +1,5 @@
-import { sealMediaStreamSelection, verifyMediaInspection } from "@hypit/hypit/media";
-import type { MediaAudioStream, MediaInspection, MediaStreamSelection, MediaVideoStream } from "@hypit/hypit/media";
+import { sealMediaStreamSelection, verifyMediaInspection } from "@hypit/media";
+import type { MediaAudioStream, MediaInspection, MediaStreamSelection, MediaVideoStream } from "@hypit/media";
import { canonicalize } from "@hypit/hypit/protocol";
import type { MediaSelectionRequest } from "./types.js";
diff --git a/packages/media-operations/src/surface.ts b/packages/media-operations/src/surface.ts
index b0ab1ccd..c21b4908 100644
--- a/packages/media-operations/src/surface.ts
+++ b/packages/media-operations/src/surface.ts
@@ -1,10 +1,10 @@
import { assertEmptyElement as empty, localName, textAttribute as text, type StructuredElement, type StructuredSurfaceHandler, type SurfaceResolvedReference, type MarkupAttributeValue } from "@hypit/hypit/markup";
import { sameType, type CanonicalValue } from "@hypit/hypit/protocol";
import { blobTypes } from "@hypit/hypit/blob";
-import { mediaTypes } from "@hypit/hypit/media";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import { parseTemporalDuration } from "@hypit/hypit/temporal/markup";
-import { timelineTypes, type Clock } from "@hypit/hypit/timeline";
+import { mediaTypes } from "@hypit/media";
+import { temporalTypes } from "@hypit/temporal";
+import { parseTemporalDuration } from "@hypit/temporal/markup";
+import { timelineTypes, type Clock } from "@hypit/timeline";
import { recipeType, type Recipe } from "@hypit/hypit/recipe";
import {
diff --git a/packages/media-operations/src/types.ts b/packages/media-operations/src/types.ts
index 6f2af8dd..16ab4808 100644
--- a/packages/media-operations/src/types.ts
+++ b/packages/media-operations/src/types.ts
@@ -1,6 +1,6 @@
-import type { AudioLevelAutomation } from "@hypit/hypit/composition";
+import type { AudioLevelAutomation } from "@hypit/composition";
import type { BlobRef } from "@hypit/hypit/protocol";
-import type { MediaFrameRange, MediaInspection, MediaRational, MediaStreamSelection, TimelineVisual, TimelineAudio } from "@hypit/hypit/media";
+import type { MediaFrameRange, MediaInspection, MediaRational, MediaStreamSelection, TimelineVisual, TimelineAudio } from "@hypit/media";
export type MediaSelectionRequest = {
readonly video:
@@ -92,7 +92,7 @@ export type StillVideoRequest = {
};
export type TransformMediaNeed = {
- readonly media: import("@hypit/hypit/media").SynchronizedMedia;
+ readonly media: import("@hypit/media").SynchronizedMedia;
readonly program: MediaTransformProgram;
};
diff --git a/packages/media/package.json b/packages/media/package.json
index 6839378d..30f61842 100644
--- a/packages/media/package.json
+++ b/packages/media/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/media",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -11,11 +11,21 @@
"activation": "./src/activation.ts"
},
"dependencies": {
+ "@hypit/temporal": "workspace:^0.1.0"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
+ },
+ "devDependencies": {
"@hypit/blob": "workspace:*",
"@hypit/producer": "workspace:*",
"@hypit/protocol": "workspace:*",
- "@hypit/temporal": "workspace:*",
"@hypit/markup": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/admission": "workspace:*",
+ "@hypit/hypit": "workspace:*"
}
}
diff --git a/packages/media/src/activation.ts b/packages/media/src/activation.ts
index b7a34a8a..0e3a3304 100644
--- a/packages/media/src/activation.ts
+++ b/packages/media/src/activation.ts
@@ -1,6 +1,6 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
-import { createMarkupSurfaceFacet } from "@hypit/markup";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
+import { createMarkupSurfaceFacet } from "@hypit/hypit/markup";
import {
decodeMediaAudioSurface, decodeMediaFontStackSurface, decodeMediaFontSurface, decodeMediaImageSurface, decodeMediaVideoSurface, mediaComponent,
diff --git a/packages/media/src/component.ts b/packages/media/src/component.ts
index 40ba5916..743b6e24 100644
--- a/packages/media/src/component.ts
+++ b/packages/media/src/component.ts
@@ -1,9 +1,9 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import type { ProducerPackage } from "@hypit/producer";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import type { ProducerPackage } from "@hypit/hypit/producer";
import { verifyMediaInspection, verifyMediaStreamSelection, verifyMuxedMedia, verifyTimelineVisual, verifySynchronizedMedia, verifyTimelineAudio } from "./identity.js";
import { mediaLocalTemporalDomain } from "./domain.js";
import type { MediaDomainSpec, SynchronizedMedia } from "./types.js";
-import { canonicalize } from "@hypit/protocol";
+import { canonicalize } from "@hypit/hypit/protocol";
import { mediaProducers } from "./manifest.js";
import { mediaTypes } from "./manifest.js";
import { verifyMediaFrameRange } from "./frame-range.js";
diff --git a/packages/media/src/identity.ts b/packages/media/src/identity.ts
index db417835..c7eb4acc 100644
--- a/packages/media/src/identity.ts
+++ b/packages/media/src/identity.ts
@@ -1,8 +1,8 @@
import {
canonicalize,
isResourceId,
-} from "@hypit/protocol";
-import type { BlobRef } from "@hypit/protocol";
+} from "@hypit/hypit/protocol";
+import type { BlobRef } from "@hypit/hypit/protocol";
import type {
MediaInspection,
diff --git a/packages/media/src/manifest.ts b/packages/media/src/manifest.ts
index 85cf8325..f1249f41 100644
--- a/packages/media/src/manifest.ts
+++ b/packages/media/src/manifest.ts
@@ -1,5 +1,5 @@
-import { blobDependency, blobTypes } from "@hypit/blob";
-import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/protocol";
+import { blobDependency, blobTypes } from "@hypit/hypit/blob";
+import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/hypit/protocol";
import { compositableSurfaceSchema, fontArtifactSchema, fontStackSchema, mediaInspectionSchema, mediaStreamSelectionSchema, muxedMediaSchema, timelineVisualSchema, synchronizedMediaSchema, timelineAudioSchema } from "./schema.js";
import { temporalDependency, temporalTypes } from "@hypit/temporal";
export const mediaModuleRef = { name: "@hypit/media", version: "1" } as const;
diff --git a/packages/media/src/render.ts b/packages/media/src/render.ts
index 22d0cc0e..b3ef11a6 100644
--- a/packages/media/src/render.ts
+++ b/packages/media/src/render.ts
@@ -1,5 +1,5 @@
-import { isResourceId } from "@hypit/protocol";
-import type { BlobRef } from "@hypit/protocol";
+import { isResourceId } from "@hypit/hypit/protocol";
+import type { BlobRef } from "@hypit/hypit/protocol";
const FONT_MEDIA_TYPES = new Set([
"font/otf",
diff --git a/packages/media/src/schema.ts b/packages/media/src/schema.ts
index 5b24c6f3..2abaf740 100644
--- a/packages/media/src/schema.ts
+++ b/packages/media/src/schema.ts
@@ -1,4 +1,4 @@
-import type { ValueSchema } from "@hypit/protocol";
+import type { ValueSchema } from "@hypit/hypit/protocol";
const string = { kind: "string", minLength: 1 } as const;
const number = { kind: "number", minimum: 0 } as const;
const seconds = { kind: "number", minimum: 0 } as const;
diff --git a/packages/media/src/surface.ts b/packages/media/src/surface.ts
index af087109..0712fab7 100644
--- a/packages/media/src/surface.ts
+++ b/packages/media/src/surface.ts
@@ -1,5 +1,5 @@
-import { blobTypes } from "@hypit/blob";
-import type { StructuredElement, StructuredSurfaceHandler } from "@hypit/markup";
+import { blobTypes } from "@hypit/hypit/blob";
+import type { StructuredElement, StructuredSurfaceHandler } from "@hypit/hypit/markup";
import type { FontArtifactRef } from "./render.js";
import { assertFontArtifactRef, assertFontStackRef } from "./render.js";
import { mediaTypes } from "./manifest.js";
diff --git a/packages/media/src/types.ts b/packages/media/src/types.ts
index 1edc0251..9722d1a0 100644
--- a/packages/media/src/types.ts
+++ b/packages/media/src/types.ts
@@ -1,4 +1,4 @@
-import type { BlobRef } from "@hypit/protocol";
+import type { BlobRef } from "@hypit/hypit/protocol";
export type MediaRational = {
readonly numerator: number;
diff --git a/packages/mimo-speech/package.json b/packages/mimo-speech/package.json
index 4129a456..40afbb4a 100644
--- a/packages/mimo-speech/package.json
+++ b/packages/mimo-speech/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/mimo-speech",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,7 +15,7 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -24,5 +24,8 @@
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*",
"@hypit/markup": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/mimo-speech/src/fragment.ts b/packages/mimo-speech/src/fragment.ts
index 9c0fc293..dc9c6b54 100644
--- a/packages/mimo-speech/src/fragment.ts
+++ b/packages/mimo-speech/src/fragment.ts
@@ -1,5 +1,5 @@
-import { createExactModelPrimaryGenerationFragment } from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/hypit/generation/model";
+import { createExactModelPrimaryGenerationFragment } from "@hypit/generation/model";
+import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/generation/model";
/** Model result projection over the same graph-native request assembly as every exact model. */
export function createMimoSpeechAudioFragment(
diff --git a/packages/mimo-speech/src/index.ts b/packages/mimo-speech/src/index.ts
index b34a0486..39d3e8eb 100644
--- a/packages/mimo-speech/src/index.ts
+++ b/packages/mimo-speech/src/index.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationPortRequest, sealGenerationRequestDraft, sealGenerationPortTable } from "@hypit/hypit/generation";
-import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/hypit/generation";
+import { sealGenerationPortRequest, sealGenerationRequestDraft, sealGenerationPortTable } from "@hypit/generation";
+import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/generation";
import type { SurfaceAttributeVocabulary, SurfacePortVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { textTypes } from "@hypit/hypit/text";
export const mimoSpeechModuleRef = { name: "@hypit/mimo-speech", version: "1" } as const;
diff --git a/packages/mimo-speech/src/surface.ts b/packages/mimo-speech/src/surface.ts
index 5673ff91..db619c20 100644
--- a/packages/mimo-speech/src/surface.ts
+++ b/packages/mimo-speech/src/surface.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { generationPort, sealGenerationMediaBinding } from "@hypit/hypit/generation";
-import type { GenerationMediaPort, GenerationPortValue } from "@hypit/hypit/generation";
-import { exactModelMediaInputNames, exactModelTextInputName } from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/hypit/generation/model";
+import { generationPort, sealGenerationMediaBinding } from "@hypit/generation";
+import type { GenerationMediaPort, GenerationPortValue } from "@hypit/generation";
+import { exactModelMediaInputNames, exactModelTextInputName } from "@hypit/generation/model";
+import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/generation/model";
import { textTypes, verifyText } from "@hypit/hypit/text";
import type { CanonicalValue } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
diff --git a/packages/minimax-h3/package.json b/packages/minimax-h3/package.json
index 3a67b825..46003ca0 100644
--- a/packages/minimax-h3/package.json
+++ b/packages/minimax-h3/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/minimax-h3",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,7 +15,7 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -24,5 +24,8 @@
"@hypit/markup": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/minimax-h3/src/index.ts b/packages/minimax-h3/src/index.ts
index 903a256a..9355db87 100644
--- a/packages/minimax-h3/src/index.ts
+++ b/packages/minimax-h3/src/index.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/hypit/generation";
-import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/hypit/generation";
+import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/generation";
+import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/generation";
import type { SurfaceAttributeVocabulary, SurfacePortVocabulary, SurfaceVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { textTypes } from "@hypit/hypit/text";
export const minimaxH3ModuleRef = { name: "@hypit/minimax-h3", version: "1" } as const;
diff --git a/packages/minimax-h3/src/surface.ts b/packages/minimax-h3/src/surface.ts
index 44d24dc8..35e72fbc 100644
--- a/packages/minimax-h3/src/surface.ts
+++ b/packages/minimax-h3/src/surface.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/hypit/generation";
-import type { GenerationMediaPort, GenerationMediaRole, GenerationPortValue } from "@hypit/hypit/generation";
-import { createExactModelPrimaryGenerationFragment, exactModelMediaInputNames, exactModelTextInputName } from "@hypit/hypit/generation/model";
-import type { ExactModelMediaInput } from "@hypit/hypit/generation/model";
+import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/generation";
+import type { GenerationMediaPort, GenerationMediaRole, GenerationPortValue } from "@hypit/generation";
+import { createExactModelPrimaryGenerationFragment, exactModelMediaInputNames, exactModelTextInputName } from "@hypit/generation/model";
+import type { ExactModelMediaInput } from "@hypit/generation/model";
import type { CanonicalValue, TypeRef } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
import { textTypes, verifyText } from "@hypit/hypit/text";
diff --git a/packages/nano-banana/package.json b/packages/nano-banana/package.json
index 7c89122f..6a28f366 100644
--- a/packages/nano-banana/package.json
+++ b/packages/nano-banana/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/nano-banana",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,7 +15,7 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -24,5 +24,8 @@
"@hypit/markup": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/nano-banana/src/index.ts b/packages/nano-banana/src/index.ts
index d0affab9..8d67d1de 100644
--- a/packages/nano-banana/src/index.ts
+++ b/packages/nano-banana/src/index.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/hypit/generation";
-import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/hypit/generation";
+import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/generation";
+import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/generation";
import type { SurfaceAttributeVocabulary, SurfaceChildVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { textTypes } from "@hypit/hypit/text";
export const nanoBananaModuleRef = { name: "@hypit/nano-banana", version: "1" } as const;
diff --git a/packages/nano-banana/src/surface.ts b/packages/nano-banana/src/surface.ts
index 32e6c42a..ac857f0e 100644
--- a/packages/nano-banana/src/surface.ts
+++ b/packages/nano-banana/src/surface.ts
@@ -1,12 +1,12 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/hypit/generation";
-import type { GenerationMediaPort } from "@hypit/hypit/generation";
+import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/generation";
+import type { GenerationMediaPort } from "@hypit/generation";
import {
createExactModelPrimaryGenerationFragment,
exactModelMediaInputNames,
exactModelTextInputName,
-} from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint } from "@hypit/hypit/generation/model";
+} from "@hypit/generation/model";
+import type { ExactModelEndpoint } from "@hypit/generation/model";
import type { CanonicalValue, TypeRef } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
import { textTypes, verifyText } from "@hypit/hypit/text";
diff --git a/packages/narrative-caption/package.json b/packages/narrative-caption/package.json
index 341b9ae8..7954db40 100644
--- a/packages/narrative-caption/package.json
+++ b/packages/narrative-caption/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/narrative-caption",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -11,13 +11,23 @@
"activation": "./src/activation.ts"
},
"dependencies": {
- "@hypit/caption": "workspace:*",
+ "@hypit/caption": "workspace:^0.1.0",
+ "@hypit/narrative": "workspace:^0.1.0",
+ "@hypit/narrative-temporal": "workspace:^0.1.0"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
+ },
+ "devDependencies": {
"@hypit/producer": "workspace:*",
"@hypit/author": "workspace:*",
"@hypit/markup": "workspace:*",
- "@hypit/narrative": "workspace:*",
"@hypit/protocol": "workspace:*",
- "@hypit/narrative-temporal": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/admission": "workspace:*",
+ "@hypit/hypit": "workspace:*"
}
}
diff --git a/packages/narrative-caption/src/activation.ts b/packages/narrative-caption/src/activation.ts
index dbf6100d..1c8badca 100644
--- a/packages/narrative-caption/src/activation.ts
+++ b/packages/narrative-caption/src/activation.ts
@@ -1,6 +1,6 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
-import { createMarkupSurfaceFacet } from "@hypit/markup";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
+import { createMarkupSurfaceFacet } from "@hypit/hypit/markup";
import {
decodeNarrativeCaptionTimingSurface,
diff --git a/packages/narrative-caption/src/component.ts b/packages/narrative-caption/src/component.ts
index 0d0c2759..4689a96a 100644
--- a/packages/narrative-caption/src/component.ts
+++ b/packages/narrative-caption/src/component.ts
@@ -1,8 +1,8 @@
-import type { AdmissionPackage } from "@hypit/admission";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { CaptionDocument, CaptionTiming } from "@hypit/caption";
-import type { ProducerPackage } from "@hypit/producer";
-import type { StoredValue } from "@hypit/protocol";
-import { canonicalize } from "@hypit/protocol";
+import type { ProducerPackage } from "@hypit/hypit/producer";
+import type { StoredValue } from "@hypit/hypit/protocol";
+import { canonicalize } from "@hypit/hypit/protocol";
import type { NarrativeProjection } from "@hypit/narrative-temporal";
import { assertNarrativeCaptionBindingIdentity } from "./identity.js";
diff --git a/packages/narrative-caption/src/manifest.ts b/packages/narrative-caption/src/manifest.ts
index 6bdf7b32..d8f06b47 100644
--- a/packages/narrative-caption/src/manifest.ts
+++ b/packages/narrative-caption/src/manifest.ts
@@ -1,6 +1,6 @@
import { captionDependency, captionTypes } from "@hypit/caption";
import { narrativeDependency } from "@hypit/narrative";
-import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/protocol";
+import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/hypit/protocol";
import { narrativeTemporalDependency, narrativeTemporalTypes } from "@hypit/narrative-temporal";
export const narrativeCaptionModuleRef = { name: "@hypit/narrative-caption", version: "1" } as const;
diff --git a/packages/narrative-caption/src/schema.ts b/packages/narrative-caption/src/schema.ts
index 341f9178..a23677c2 100644
--- a/packages/narrative-caption/src/schema.ts
+++ b/packages/narrative-caption/src/schema.ts
@@ -1,4 +1,4 @@
-import type { ValueSchema } from "@hypit/protocol";
+import type { ValueSchema } from "@hypit/hypit/protocol";
const string = { kind: "string", minLength: 1 } as const;
const object = (
diff --git a/packages/narrative-caption/src/surface.ts b/packages/narrative-caption/src/surface.ts
index 90dc7b80..18b96cdc 100644
--- a/packages/narrative-caption/src/surface.ts
+++ b/packages/narrative-caption/src/surface.ts
@@ -1,13 +1,13 @@
import { captionTypes } from "@hypit/caption";
-import { sealGraphFragment } from "@hypit/author";
+import { sealGraphFragment } from "@hypit/hypit/author";
import {
assertAttributes,
assertEmptyElement,
textAttribute,
type StructuredSurfaceHandler,
type SurfaceResolvedReference,
-} from "@hypit/markup";
-import { sameType, type TypeRef } from "@hypit/protocol";
+} from "@hypit/hypit/markup";
+import { sameType, type TypeRef } from "@hypit/hypit/protocol";
import { narrativeTemporalTypes } from "@hypit/narrative-temporal";
import { narrativeCaptionProducers, narrativeCaptionTypes } from "./manifest.js";
diff --git a/packages/narrative-speech-alignment/package.json b/packages/narrative-speech-alignment/package.json
index 3437ccd1..91f60bb6 100644
--- a/packages/narrative-speech-alignment/package.json
+++ b/packages/narrative-speech-alignment/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/narrative-speech-alignment",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,12 +15,18 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/hypit": "workspace:*",
"@hypit/script": "workspace:*",
"@hypit/narrative": "workspace:*",
"@hypit/speech-evidence": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/narrative": "workspace:^0.1.0",
+ "@hypit/narrative-temporal": "workspace:^0.1.0",
+ "@hypit/speech-evidence": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0"
}
}
diff --git a/packages/narrative-speech-alignment/src/align.ts b/packages/narrative-speech-alignment/src/align.ts
index fcbbd0c1..24e650f4 100644
--- a/packages/narrative-speech-alignment/src/align.ts
+++ b/packages/narrative-speech-alignment/src/align.ts
@@ -1,5 +1,5 @@
-import type { NarrativeToken } from "@hypit/hypit/narrative";
-import type { SpeechWordEvidence } from "@hypit/hypit/speech-evidence";
+import type { NarrativeToken } from "@hypit/narrative";
+import type { SpeechWordEvidence } from "@hypit/speech-evidence";
import { editDistance, normalizeForAlignment } from "./normalize.js";
import type { AlignmentGroup, AlignmentRelation } from "./types.js";
diff --git a/packages/narrative-speech-alignment/src/component.ts b/packages/narrative-speech-alignment/src/component.ts
index 19af80a4..c907c51b 100644
--- a/packages/narrative-speech-alignment/src/component.ts
+++ b/packages/narrative-speech-alignment/src/component.ts
@@ -1,10 +1,10 @@
import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { ProducerPackage } from "@hypit/hypit/producer";
-import type { Narrative, NarrativeSegmentRef } from "@hypit/hypit/narrative";
+import type { Narrative, NarrativeSegmentRef } from "@hypit/narrative";
import type { StoredValue } from "@hypit/hypit/protocol";
import { canonicalize } from "@hypit/hypit/protocol";
-import type { AlignedTranscriptEvidence } from "@hypit/hypit/speech-evidence";
-import type { LocalTemporalDomain } from "@hypit/hypit/temporal";
+import type { AlignedTranscriptEvidence } from "@hypit/speech-evidence";
+import type { LocalTemporalDomain } from "@hypit/temporal";
import { alignNarrative } from "./local.js";
import { speechAlignmentProducers } from "./manifest.js";
diff --git a/packages/narrative-speech-alignment/src/local.ts b/packages/narrative-speech-alignment/src/local.ts
index 3a210ddd..2f6e60a2 100644
--- a/packages/narrative-speech-alignment/src/local.ts
+++ b/packages/narrative-speech-alignment/src/local.ts
@@ -1,7 +1,7 @@
-import type { Narrative, NarrativeSegmentRef } from "@hypit/hypit/narrative";
-import type { NarrativeAlignment } from "@hypit/hypit/narrative-temporal";
-import type { AlignedTranscriptEvidence } from "@hypit/hypit/speech-evidence";
-import type { LocalTemporalDomain } from "@hypit/hypit/temporal";
+import type { Narrative, NarrativeSegmentRef } from "@hypit/narrative";
+import type { NarrativeAlignment } from "@hypit/narrative-temporal";
+import type { AlignedTranscriptEvidence } from "@hypit/speech-evidence";
+import type { LocalTemporalDomain } from "@hypit/temporal";
import { locateAlignedSegmentTiming } from "./locate.js";
import { materializeNarrativeAlignment } from "./materialize.js";
diff --git a/packages/narrative-speech-alignment/src/locate.ts b/packages/narrative-speech-alignment/src/locate.ts
index a2885f1d..e19714dc 100644
--- a/packages/narrative-speech-alignment/src/locate.ts
+++ b/packages/narrative-speech-alignment/src/locate.ts
@@ -1,4 +1,4 @@
-import type { Narrative, NarrativeToken } from "@hypit/hypit/narrative";
+import type { Narrative, NarrativeToken } from "@hypit/narrative";
import type { NarrativeAlignmentTiming } from "./types.js";
import type {
AlignedTranscriptEvidence,
@@ -6,7 +6,7 @@ import type {
SpeechCharacterEvidence,
SpeechTranscriptPassage,
SpeechWordEvidence,
-} from "@hypit/hypit/speech-evidence";
+} from "@hypit/speech-evidence";
import { alignWordGroups } from "./align.js";
import { SpeechAlignmentError } from "./error.js";
diff --git a/packages/narrative-speech-alignment/src/manifest.ts b/packages/narrative-speech-alignment/src/manifest.ts
index 14045657..0d242da2 100644
--- a/packages/narrative-speech-alignment/src/manifest.ts
+++ b/packages/narrative-speech-alignment/src/manifest.ts
@@ -1,7 +1,7 @@
-import { narrativeDependency, narrativeTypes } from "@hypit/hypit/narrative";
-import { narrativeTemporalDependency, narrativeTemporalTypes } from "@hypit/hypit/narrative-temporal";
-import { speechEvidenceDependency, speechEvidenceTypes } from "@hypit/hypit/speech-evidence";
-import { temporalDependency, temporalTypes } from "@hypit/hypit/temporal";
+import { narrativeDependency, narrativeTypes } from "@hypit/narrative";
+import { narrativeTemporalDependency, narrativeTemporalTypes } from "@hypit/narrative-temporal";
+import { speechEvidenceDependency, speechEvidenceTypes } from "@hypit/speech-evidence";
+import { temporalDependency, temporalTypes } from "@hypit/temporal";
import type { ModuleManifest, ProducerRef } from "@hypit/hypit/protocol";
export const speechAlignmentModuleRef = { name: "@hypit/narrative-speech-alignment", version: "1" } as const;
diff --git a/packages/narrative-speech-alignment/src/materialize.ts b/packages/narrative-speech-alignment/src/materialize.ts
index 99fb849a..e2f3aab1 100644
--- a/packages/narrative-speech-alignment/src/materialize.ts
+++ b/packages/narrative-speech-alignment/src/materialize.ts
@@ -1,8 +1,8 @@
-import type { Narrative, NarrativeSegmentRef } from "@hypit/hypit/narrative";
-import { sealNarrativeAlignment } from "@hypit/hypit/narrative-temporal";
-import type { NarrativeAlignment } from "@hypit/hypit/narrative-temporal";
-import { assertLocalTemporalDomain } from "@hypit/hypit/temporal";
-import type { LocalTemporalDomain } from "@hypit/hypit/temporal";
+import type { Narrative, NarrativeSegmentRef } from "@hypit/narrative";
+import { sealNarrativeAlignment } from "@hypit/narrative-temporal";
+import type { NarrativeAlignment } from "@hypit/narrative-temporal";
+import { assertLocalTemporalDomain } from "@hypit/temporal";
+import type { LocalTemporalDomain } from "@hypit/temporal";
import type { NarrativeAlignmentTiming } from "./types.js";
diff --git a/packages/narrative-speech-alignment/src/types.ts b/packages/narrative-speech-alignment/src/types.ts
index 3b2c0960..585493e8 100644
--- a/packages/narrative-speech-alignment/src/types.ts
+++ b/packages/narrative-speech-alignment/src/types.ts
@@ -4,7 +4,7 @@ export type {
SpeechCharacterEvidence,
SpeechTranscriptPassage,
SpeechWordEvidence,
-} from "@hypit/hypit/speech-evidence";
+} from "@hypit/speech-evidence";
/** Private vocabulary of the alignment implementation, not part of the public alignment value. */
export type AlignmentRelation =
| "exact"
diff --git a/packages/narrative-temporal/package.json b/packages/narrative-temporal/package.json
index 43ee8e2a..ea50c4b4 100644
--- a/packages/narrative-temporal/package.json
+++ b/packages/narrative-temporal/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/narrative-temporal",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -11,14 +11,24 @@
"activation": "./src/activation.ts"
},
"dependencies": {
+ "@hypit/narrative": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
+ },
+ "devDependencies": {
"@hypit/producer": "workspace:*",
"@hypit/author": "workspace:*",
"@hypit/markup": "workspace:*",
- "@hypit/narrative": "workspace:*",
"@hypit/protocol": "workspace:*",
- "@hypit/temporal": "workspace:*",
- "@hypit/timeline": "workspace:*",
"@hypit/admission": "workspace:*",
- "@hypit/studio-companion": "workspace:*"
+ "@hypit/hypit": "workspace:*"
}
}
diff --git a/packages/narrative-temporal/src/activation.ts b/packages/narrative-temporal/src/activation.ts
index f5274b00..ffc5a3af 100644
--- a/packages/narrative-temporal/src/activation.ts
+++ b/packages/narrative-temporal/src/activation.ts
@@ -1,6 +1,6 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
-import { createMarkupSurfaceFacet } from "@hypit/markup";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
+import { createMarkupSurfaceFacet } from "@hypit/hypit/markup";
import { createStudioCompanionFacet } from "@hypit/studio-companion";
import { decodeNarrativeInstantSurface, decodeNarrativeProjectionSurface, decodeNarrativeWindowSurface,
narrativeProjectionMarkupSurfaces, narrativeTemporalComponent,
diff --git a/packages/narrative-temporal/src/component.ts b/packages/narrative-temporal/src/component.ts
index eecd71b5..dd980e29 100644
--- a/packages/narrative-temporal/src/component.ts
+++ b/packages/narrative-temporal/src/component.ts
@@ -1,8 +1,8 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import type { ProducerPackage } from "@hypit/producer";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import type { ProducerPackage } from "@hypit/hypit/producer";
import type { Narrative, NarrativeSegmentRef, NarrativeMomentRef, NarrativeSelectionRef } from "@hypit/narrative";
-import { canonicalize } from "@hypit/protocol";
-import type { ProducerRef, StoredValue } from "@hypit/protocol";
+import { canonicalize } from "@hypit/hypit/protocol";
+import type { ProducerRef, StoredValue } from "@hypit/hypit/protocol";
import type { LocalTemporalDomain, TemporalWindow } from "@hypit/temporal";
import type { Timeline } from "@hypit/timeline";
diff --git a/packages/narrative-temporal/src/manifest.ts b/packages/narrative-temporal/src/manifest.ts
index cc7305a7..4ea715ef 100644
--- a/packages/narrative-temporal/src/manifest.ts
+++ b/packages/narrative-temporal/src/manifest.ts
@@ -1,5 +1,5 @@
import { narrativeDependency, narrativeTypes } from "@hypit/narrative";
-import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/protocol";
+import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/hypit/protocol";
import { temporalDependency, temporalTypes } from "@hypit/temporal";
import { timelineDependency, timelineTypes } from "@hypit/timeline";
diff --git a/packages/narrative-temporal/src/schema.ts b/packages/narrative-temporal/src/schema.ts
index bb4fb7a8..c7c8b473 100644
--- a/packages/narrative-temporal/src/schema.ts
+++ b/packages/narrative-temporal/src/schema.ts
@@ -1,4 +1,4 @@
-import type { ValueSchema } from "@hypit/protocol";
+import type { ValueSchema } from "@hypit/hypit/protocol";
const string = { kind: "string", minLength: 1 } as const;
const integer = { kind: "number", integer: true, minimum: 0 } as const;
diff --git a/packages/narrative-temporal/src/studio.ts b/packages/narrative-temporal/src/studio.ts
index 419aa4e3..26d286b5 100644
--- a/packages/narrative-temporal/src/studio.ts
+++ b/packages/narrative-temporal/src/studio.ts
@@ -22,13 +22,6 @@ function output(
}
export const narrativeStudioTemporalDeclarations: readonly StudioTemporalDeclarationCompanion[] = [{
- id: "window-declaration",
- match: { module: narrativeTemporalModuleRef, surface: "narrative-window" },
- project: ({ placement }) => {
- const found = output(placement, "window");
- return found === undefined ? [] : [found];
- },
-}, {
id: "instant-declaration",
match: { module: narrativeTemporalModuleRef, surface: "narrative-instant" },
project: ({ placement }) => {
diff --git a/packages/narrative-temporal/src/surface.ts b/packages/narrative-temporal/src/surface.ts
index e12f2834..bf1dcd5d 100644
--- a/packages/narrative-temporal/src/surface.ts
+++ b/packages/narrative-temporal/src/surface.ts
@@ -1,11 +1,11 @@
-import { sealGraphFragment } from "@hypit/author";
-import type { FragmentOperation, GraphFragment } from "@hypit/author";
+import { sealGraphFragment } from "@hypit/hypit/author";
+import type { FragmentOperation, GraphFragment } from "@hypit/hypit/author";
import {
assertAttributes, assertEmptyElement, localName, textAttribute,
type StructuredElement, type StructuredSurfaceHandler, type SurfaceResolvedReference,
-} from "@hypit/markup";
+} from "@hypit/hypit/markup";
import { narrativeTypes } from "@hypit/narrative";
-import { canonicalize, sameType, type TypeRef } from "@hypit/protocol";
+import { canonicalize, sameType, type TypeRef } from "@hypit/hypit/protocol";
import { temporalProducers, temporalTypes } from "@hypit/temporal";
import { timelineTypes } from "@hypit/timeline";
diff --git a/packages/narrative-temporal/test/studio.test.ts b/packages/narrative-temporal/test/studio.test.ts
index 1fd9f389..9e770993 100644
--- a/packages/narrative-temporal/test/studio.test.ts
+++ b/packages/narrative-temporal/test/studio.test.ts
@@ -17,11 +17,9 @@ const placement = (surface: string, port: string): StudioPlacement => ({
children: [], attributes: {}, attributeValueRanges: {}, referenceAttributes: {}, referenceTypes: {}, references: [],
});
-test("Narrative temporal companions expose semantic Window and Instant as the same declaration shape", () => {
- const window = narrativeStudioTemporalDeclarations.find((item) => item.match.surface === "narrative-window")!;
+test("Narrative temporal companions contribute only primary Instants to the common row", () => {
const instant = narrativeStudioTemporalDeclarations.find((item) => item.match.surface === "narrative-instant")!;
- assert.deepEqual(window.project({ placement: placement("Window", "window") }),
- [{ id: "claim", label: "claim", output: "claim", range: { start: 4, end: 24 } }]);
+ assert.equal(narrativeStudioTemporalDeclarations.some(item => item.match.surface === "narrative-window"), false);
assert.deepEqual(instant.project({ placement: placement("Instant", "instant") }),
[{ id: "claim", label: "claim", output: "claim", range: { start: 4, end: 24 } }]);
});
diff --git a/packages/narrative/README.md b/packages/narrative/README.md
index 10cfb5d4..1bd5b620 100644
--- a/packages/narrative/README.md
+++ b/packages/narrative/README.md
@@ -1,6 +1,6 @@
# `@hypit/narrative`
-External components use `@hypit/hypit/narrative` from their `@hypit/hypit` development dependency. The package
+External components declare `@hypit/narrative` as an ordinary npm dependency. The package
owns the types and helpers below; Source imports retain the `@hypit/narrative@1` Module identity.
diff --git a/packages/narrative/package.json b/packages/narrative/package.json
index 47e43902..65cbee57 100644
--- a/packages/narrative/package.json
+++ b/packages/narrative/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/narrative",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -10,9 +10,17 @@
"hypit": {
"activation": "./src/activation.ts"
},
- "dependencies": {
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
+ },
+ "devDependencies": {
"@hypit/producer": "workspace:*",
"@hypit/protocol": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/admission": "workspace:*",
+ "@hypit/hypit": "workspace:*"
}
}
diff --git a/packages/narrative/src/activation.ts b/packages/narrative/src/activation.ts
index de8f5ce4..8836846b 100644
--- a/packages/narrative/src/activation.ts
+++ b/packages/narrative/src/activation.ts
@@ -1,5 +1,5 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
import { narrativeComponent, narrativeManifest } from "./index.js";
export const hypitPackage = {
format: "hypit.package@1" as const,
diff --git a/packages/narrative/src/component.ts b/packages/narrative/src/component.ts
index 01b5300a..750aee15 100644
--- a/packages/narrative/src/component.ts
+++ b/packages/narrative/src/component.ts
@@ -1,6 +1,6 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import type { ProducerPackage } from "@hypit/producer";
-import type { StoredValue } from "@hypit/protocol";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import type { ProducerPackage } from "@hypit/hypit/producer";
+import type { StoredValue } from "@hypit/hypit/protocol";
import {
assertNarrativeSegmentRefIdentity,
diff --git a/packages/narrative/src/manifest.ts b/packages/narrative/src/manifest.ts
index 44bea287..34abb98f 100644
--- a/packages/narrative/src/manifest.ts
+++ b/packages/narrative/src/manifest.ts
@@ -1,4 +1,4 @@
-import type { ModuleManifest, TypeRef } from "@hypit/protocol";
+import type { ModuleManifest, TypeRef } from "@hypit/hypit/protocol";
import {
narrativeSegmentRefSchema,
narrativeSchema,
diff --git a/packages/narrative/src/schema.ts b/packages/narrative/src/schema.ts
index 0308d4bb..6f8701ce 100644
--- a/packages/narrative/src/schema.ts
+++ b/packages/narrative/src/schema.ts
@@ -1,4 +1,4 @@
-import type { ValueSchema } from "@hypit/protocol";
+import type { ValueSchema } from "@hypit/hypit/protocol";
const string = { kind: "string", minLength: 1 } as const;
const integer = { kind: "number", integer: true, minimum: 0 } as const;
diff --git a/packages/pixverse/package.json b/packages/pixverse/package.json
index 54642174..d527db5f 100644
--- a/packages/pixverse/package.json
+++ b/packages/pixverse/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/pixverse",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -10,9 +10,12 @@
"hypit": {
"activation": "./src/activation.ts"
},
- "files": ["dist", "README.md"],
+ "files": [
+ "dist",
+ "README.md"
+ ],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -21,5 +24,8 @@
"@hypit/markup": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/pixverse/src/index.ts b/packages/pixverse/src/index.ts
index 71153a2c..44a7a8aa 100644
--- a/packages/pixverse/src/index.ts
+++ b/packages/pixverse/src/index.ts
@@ -1,14 +1,14 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/hypit/generation";
+import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/generation";
import type {
GenerationPort,
GenerationPortRequirement,
GenerationPortTable,
GenerationPortValue,
GenerationRequest,
-} from "@hypit/hypit/generation";
+} from "@hypit/generation";
import type { SurfaceAttributeVocabulary, SurfacePortVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { textTypes } from "@hypit/hypit/text";
import { pixverseRequestValidator } from "./validation.js";
diff --git a/packages/pixverse/src/surface.ts b/packages/pixverse/src/surface.ts
index c4db6b36..b0c21a0c 100644
--- a/packages/pixverse/src/surface.ts
+++ b/packages/pixverse/src/surface.ts
@@ -1,12 +1,12 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/hypit/generation";
-import type { GenerationMediaPort, GenerationMediaRole, GenerationPortValue } from "@hypit/hypit/generation";
+import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/generation";
+import type { GenerationMediaPort, GenerationMediaRole, GenerationPortValue } from "@hypit/generation";
import {
createExactModelPrimaryGenerationFragment,
exactModelMediaInputNames,
exactModelTextInputName,
-} from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint } from "@hypit/hypit/generation/model";
+} from "@hypit/generation/model";
+import type { ExactModelEndpoint } from "@hypit/generation/model";
import type { CanonicalValue, TypeRef } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
import { textTypes, verifyText } from "@hypit/hypit/text";
diff --git a/packages/pixverse/src/validation.ts b/packages/pixverse/src/validation.ts
index 547a3322..cae60802 100644
--- a/packages/pixverse/src/validation.ts
+++ b/packages/pixverse/src/validation.ts
@@ -1,4 +1,4 @@
-import type { GenerationRequest } from "@hypit/hypit/generation";
+import type { GenerationRequest } from "@hypit/generation";
import type { PixverseModel } from "./index.js";
/**
diff --git a/packages/producer/README.md b/packages/producer/README.md
index d776cd95..7deb6adb 100644
--- a/packages/producer/README.md
+++ b/packages/producer/README.md
@@ -32,8 +32,8 @@ Author Kit; import only the owner of each responsibility:
| `@hypit/hypit/admission` | package-owned Type validators and Admission package facets |
| `@hypit/hypit/author` | sealed Author Graph Fragments |
| `@hypit/hypit/markup` | Markup Surface declarations and handlers |
-| `@hypit/hypit/temporal/markup` | author-time semantic Window/Instant projection helpers |
-| `@hypit/hypit/composition` | peer Track values and renderer-independent visual representation |
+| `@hypit/temporal/markup` | author-time semantic Window/Instant projection helpers |
+| `@hypit/composition` | peer Track values and renderer-independent visual representation |
| `@hypit/studio-companion` (optional, in Companion code) | editor Item projection, Inspector bindings and executed temporal lineage |
The Author Package keeps `@hypit/hypit` as its framework development dependency. A package that
diff --git a/packages/provider-beatapi/package.json b/packages/provider-beatapi/package.json
index a425356d..00f784c9 100644
--- a/packages/provider-beatapi/package.json
+++ b/packages/provider-beatapi/package.json
@@ -4,12 +4,19 @@
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
- "exports": { ".": "./src/index.ts" },
- "files": ["dist", "README.md"],
- "hypit": { "activation": "./src/activation.ts" },
+ "exports": {
+ ".": "./src/index.ts"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "hypit": {
+ "activation": "./src/activation.ts"
+ },
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/runtime-local": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/endpoint": "workspace:*",
@@ -23,5 +30,8 @@
"@hypit/minimax-h3": "workspace:*",
"@hypit/nano-banana": "workspace:*",
"@hypit/seedance": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/provider-beatapi/src/mapping.ts b/packages/provider-beatapi/src/mapping.ts
index 6b88c5e9..b3d32d66 100644
--- a/packages/provider-beatapi/src/mapping.ts
+++ b/packages/provider-beatapi/src/mapping.ts
@@ -1,5 +1,5 @@
import type { ModuleRef } from "@hypit/hypit/protocol";
-import type { GenerationWireMapping } from "@hypit/hypit/generation";
+import type { GenerationWireMapping } from "@hypit/generation";
const SEEDANCE: ModuleRef = { name: "@hypit/seedance", version: "1" };
const MINIMAX: ModuleRef = { name: "@hypit/minimax-h3", version: "1" };
diff --git a/packages/provider-beatapi/src/provider.ts b/packages/provider-beatapi/src/provider.ts
index 4122e6b9..303b6835 100644
--- a/packages/provider-beatapi/src/provider.ts
+++ b/packages/provider-beatapi/src/provider.ts
@@ -1,7 +1,7 @@
import type { AsyncEndpoint, EndpointCredential, EndpointInvocationContext, EndpointOutcome } from "@hypit/hypit/endpoint";
import { EndpointServiceError, defineEndpoint, wakeAfter } from "@hypit/hypit/endpoint";
import { EndpointHttpError, EndpointResponseError, EndpointTransportError, withRequestDeadline } from "@hypit/hypit/endpoint/http";
-import type { GenerationArtifactUrlResolver } from "@hypit/hypit/generation";
+import type { GenerationArtifactUrlResolver } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CanonicalValue, CapabilityRef } from "@hypit/hypit/protocol";
import { credentialRef } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-beatapi/src/routes.ts b/packages/provider-beatapi/src/routes.ts
index fb37f8bc..23f4ffae 100644
--- a/packages/provider-beatapi/src/routes.ts
+++ b/packages/provider-beatapi/src/routes.ts
@@ -4,8 +4,8 @@ import {
generationTypes,
sealGeneratedImageSet,
sealGeneratedVideoSet,
-} from "@hypit/hypit/generation";
-import type { GenerationArtifactUrlResolver, GenerationRequest, GenerationWireMapping } from "@hypit/hypit/generation";
+} from "@hypit/generation";
+import type { GenerationArtifactUrlResolver, GenerationRequest, GenerationWireMapping } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CapabilityRef, CanonicalValue, StoredValue, TypeRef } from "@hypit/hypit/protocol";
import type { EndpointRequest, EndpointSupport } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-hiapi/package.json b/packages/provider-hiapi/package.json
index 3bb1553d..8152d10b 100644
--- a/packages/provider-hiapi/package.json
+++ b/packages/provider-hiapi/package.json
@@ -4,12 +4,19 @@
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
- "exports": { ".": "./src/index.ts" },
- "files": ["dist", "README.md"],
- "hypit": { "activation": "./src/activation.ts" },
+ "exports": {
+ ".": "./src/index.ts"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "hypit": {
+ "activation": "./src/activation.ts"
+ },
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/runtime-local": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/endpoint": "workspace:*",
@@ -24,5 +31,8 @@
"@hypit/nano-banana": "workspace:*",
"@hypit/seedance": "workspace:*",
"@hypit/seedream": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/provider-hiapi/src/mapping.ts b/packages/provider-hiapi/src/mapping.ts
index 8b7789a8..1308dcf4 100644
--- a/packages/provider-hiapi/src/mapping.ts
+++ b/packages/provider-hiapi/src/mapping.ts
@@ -1,5 +1,5 @@
import type { ModuleRef } from "@hypit/hypit/protocol";
-import type { GenerationWireMapping } from "@hypit/hypit/generation";
+import type { GenerationWireMapping } from "@hypit/generation";
const SEEDANCE: ModuleRef = { name: "@hypit/seedance", version: "1" };
const SEEDREAM: ModuleRef = { name: "@hypit/seedream", version: "1" };
diff --git a/packages/provider-hiapi/src/provider.ts b/packages/provider-hiapi/src/provider.ts
index ef69396e..72be973d 100644
--- a/packages/provider-hiapi/src/provider.ts
+++ b/packages/provider-hiapi/src/provider.ts
@@ -1,7 +1,7 @@
import type { AsyncEndpoint, EndpointCredential, EndpointInvocationContext, EndpointOutcome } from "@hypit/hypit/endpoint";
import { EndpointServiceError, defineEndpoint, wakeAfter } from "@hypit/hypit/endpoint";
import { EndpointHttpError, EndpointResponseError, EndpointTransportError, withRequestDeadline } from "@hypit/hypit/endpoint/http";
-import type { GenerationArtifactUrlResolver } from "@hypit/hypit/generation";
+import type { GenerationArtifactUrlResolver } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CanonicalValue, CapabilityRef } from "@hypit/hypit/protocol";
import { credentialRef } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-hiapi/src/routes.ts b/packages/provider-hiapi/src/routes.ts
index 38bdf809..e791028b 100644
--- a/packages/provider-hiapi/src/routes.ts
+++ b/packages/provider-hiapi/src/routes.ts
@@ -4,8 +4,8 @@ import {
generationTypes,
sealGeneratedImageSet,
sealGeneratedVideoSet,
-} from "@hypit/hypit/generation";
-import type { GenerationArtifactUrlResolver, GenerationRequest, GenerationWireMapping } from "@hypit/hypit/generation";
+} from "@hypit/generation";
+import type { GenerationArtifactUrlResolver, GenerationRequest, GenerationWireMapping } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CapabilityRef, CanonicalValue, StoredValue, TypeRef } from "@hypit/hypit/protocol";
import type { EndpointRequest, EndpointSupport } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-html-local/package.json b/packages/provider-html-local/package.json
index 6d5a6de1..cfb8838f 100644
--- a/packages/provider-html-local/package.json
+++ b/packages/provider-html-local/package.json
@@ -1,13 +1,16 @@
{
"name": "@hypit/provider-html-local",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
"exports": {
".": "./src/index.ts"
},
- "files": ["dist", "README.md"],
+ "files": [
+ "dist",
+ "README.md"
+ ],
"hypit": {
"activation": "./src/activation.ts",
"htmlBrowser": {
@@ -15,13 +18,15 @@
}
},
"dependencies": {
+ "@hypit/html-program": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
"@puppeteer/browsers": "3.2.2",
"puppeteer-core": "25.10.0",
"tsx": "4.21.0"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/runtime-local": "workspace:^0.1.1"
},
"devDependencies": {
"@fontsource-variable/inter": "5.3.0",
diff --git a/packages/provider-html-local/src/capture.ts b/packages/provider-html-local/src/capture.ts
index 3c4b7512..449378e5 100644
--- a/packages/provider-html-local/src/capture.ts
+++ b/packages/provider-html-local/src/capture.ts
@@ -2,8 +2,8 @@ import { mkdir, rm, stat, writeFile } from "node:fs/promises";
import { join, relative, resolve, sep } from "node:path";
import puppeteer from "puppeteer-core";
import type { Browser } from "puppeteer-core";
-import type { HtmlProgram } from "@hypit/hypit/html-program";
-import type { MediaFrameRange } from "@hypit/hypit/media";
+import type { HtmlProgram } from "@hypit/html-program";
+import type { MediaFrameRange } from "@hypit/media";
import type { HtmlRasterProgress, resolveExecutionOptions } from "./render.js";
import { assert, mediaExecutablePath, openProcessInput } from "./process.js";
import { verifyOutput } from "./output.js";
diff --git a/packages/provider-html-local/src/output.ts b/packages/provider-html-local/src/output.ts
index 1fcb82f9..294d9286 100644
--- a/packages/provider-html-local/src/output.ts
+++ b/packages/provider-html-local/src/output.ts
@@ -1,4 +1,4 @@
-import type { HtmlProgram } from "@hypit/hypit/html-program";
+import type { HtmlProgram } from "@hypit/html-program";
import { assert, runProcess } from "./process.js";
type ProbeStream = {
diff --git a/packages/provider-html-local/src/provider.ts b/packages/provider-html-local/src/provider.ts
index f2e6dadb..1f441890 100644
--- a/packages/provider-html-local/src/provider.ts
+++ b/packages/provider-html-local/src/provider.ts
@@ -1,6 +1,6 @@
import { defineEndpoint } from "@hypit/hypit/endpoint";
-import { mediaTypes } from "@hypit/hypit/media";
-import { htmlProgramCapabilities, htmlProgramTypes, verifyHtmlFrameRequest, verifyHtmlRasterRequest } from "@hypit/hypit/html-program";
+import { mediaTypes } from "@hypit/media";
+import { htmlProgramCapabilities, htmlProgramTypes, verifyHtmlFrameRequest, verifyHtmlRasterRequest } from "@hypit/html-program";
import { canonicalize } from "@hypit/hypit/protocol";
import { rasterizeHtmlProgram, rasterizeHtmlFrames, resolveExecutionOptions } from "./render.js";
import { renderWorkerLimit } from "./concurrency.js";
diff --git a/packages/provider-html-local/src/render.ts b/packages/provider-html-local/src/render.ts
index 7ea15fa9..e9d6604f 100644
--- a/packages/provider-html-local/src/render.ts
+++ b/packages/provider-html-local/src/render.ts
@@ -3,11 +3,11 @@ import { mkdtemp, readFile, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import type { EndpointInvocationContext } from "@hypit/hypit/endpoint";
-import { sealTimelineVisual } from "@hypit/hypit/media";
-import type { MediaFrameRange, TimelineVisual } from "@hypit/hypit/media";
+import { sealTimelineVisual } from "@hypit/media";
+import type { MediaFrameRange, TimelineVisual } from "@hypit/media";
import { verifyCompositableSurfaceFile } from "./surface-validation.js";
-import { htmlFrameSelectionPrelude, verifyHtmlRasterRequest, verifyHtmlFrameRequest } from "@hypit/hypit/html-program";
-import type { HtmlRasterRequest, HtmlFrameRequest, HtmlFrameImages } from "@hypit/hypit/html-program";
+import { htmlFrameSelectionPrelude, verifyHtmlRasterRequest, verifyHtmlFrameRequest } from "@hypit/html-program";
+import type { HtmlRasterRequest, HtmlFrameRequest, HtmlFrameImages } from "@hypit/html-program";
import { isStreamingResourceStore } from "@hypit/hypit/endpoint";
import type { HtmlExecutionOptions } from "./options.js";
import { assert, positiveInteger } from "./process.js";
diff --git a/packages/provider-html-local/src/sampling.ts b/packages/provider-html-local/src/sampling.ts
index 21deaac3..c54b06ac 100644
--- a/packages/provider-html-local/src/sampling.ts
+++ b/packages/provider-html-local/src/sampling.ts
@@ -1,5 +1,5 @@
-import type { MediaFrameRange } from "@hypit/hypit/media";
-import type { HtmlFrameSource } from "@hypit/hypit/html-program";
+import type { MediaFrameRange } from "@hypit/media";
+import type { HtmlFrameSource } from "@hypit/html-program";
import { FrameSpanIndex } from "./frame-span-index.js";
import { assert } from "./process.js";
diff --git a/packages/provider-html-local/src/stage.ts b/packages/provider-html-local/src/stage.ts
index 216aaa2f..87e80a31 100644
--- a/packages/provider-html-local/src/stage.ts
+++ b/packages/provider-html-local/src/stage.ts
@@ -1,9 +1,9 @@
import { mkdir, open, writeFile } from "node:fs/promises";
import { join } from "node:path";
-import { materializeHtmlProgram, selectHtmlArtifacts } from "@hypit/hypit/html-program";
-import type { HtmlProgram, HtmlFrameSpan } from "@hypit/hypit/html-program";
-import type { CompositableSurfaceRef } from "@hypit/hypit/media";
+import { materializeHtmlProgram, selectHtmlArtifacts } from "@hypit/html-program";
+import type { HtmlProgram, HtmlFrameSpan } from "@hypit/html-program";
+import type { CompositableSurfaceRef } from "@hypit/media";
import type { BlobRef } from "@hypit/hypit/protocol";
/** Reads one execution resource. Whose store it comes from is the caller's business. */
diff --git a/packages/provider-html-local/src/surface-validation.ts b/packages/provider-html-local/src/surface-validation.ts
index daa8e1f7..166e8001 100644
--- a/packages/provider-html-local/src/surface-validation.ts
+++ b/packages/provider-html-local/src/surface-validation.ts
@@ -1,7 +1,7 @@
import { stat } from "node:fs/promises";
-import { assertCompositableSurfaceRef } from "@hypit/hypit/media";
-import type { CompositableSurfaceRef } from "@hypit/hypit/media";
+import { assertCompositableSurfaceRef } from "@hypit/media";
+import type { CompositableSurfaceRef } from "@hypit/media";
import { runProcess } from "./process.js";
type JsonObject = Record<string, unknown>;
diff --git a/packages/provider-hypihub/README.md b/packages/provider-hypihub/README.md
index a8686c6f..2b47c6d6 100644
--- a/packages/provider-hypihub/README.md
+++ b/packages/provider-hypihub/README.md
@@ -4,8 +4,8 @@ Thin Hypit Runtime Provider for a HypiHub deployment. It is an optional default
paid generation and WhisperX alignment requests. Select it for a chosen HypiHub account, with OAuth
or an API key in the configured Credential Store; other Providers remain ordinary Profile choices.
-The implementation uses only the public `@hypit/hypit/*` Provider APIs. Its one cross-package
-contract is an explicit peer on `@hypit/whisperx`, whose capability identity, request validation and
+The implementation uses public Hypit Provider APIs and the Generation and Speech Evidence packages.
+It also declares an explicit peer on `@hypit/whisperx`, whose capability identity, request validation and
wire-response interpretation it implements remotely. Compatible published releases use an ordinary
SemVer range; the consuming project's npm/pnpm lockfile fixes the installed pair. Hypit performs no
Provider download, version resolution or Build-time upgrade. The Provider reads its own package
diff --git a/packages/provider-hypihub/package.json b/packages/provider-hypihub/package.json
index 652310c2..7ae03668 100644
--- a/packages/provider-hypihub/package.json
+++ b/packages/provider-hypihub/package.json
@@ -1,16 +1,23 @@
{
"name": "@hypit/provider-hypihub",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
- "exports": { ".": "./src/index.ts" },
- "files": ["dist", "README.md"],
- "hypit": { "activation": "./src/activation.ts" },
+ "exports": {
+ ".": "./src/index.ts"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "hypit": {
+ "activation": "./src/activation.ts"
+ },
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/runtime-local": "workspace:^",
- "@hypit/whisperx": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/runtime-local": "workspace:^0.1.1",
+ "@hypit/whisperx": "workspace:^0.2.0"
},
"devDependencies": {
"@hypit/endpoint": "workspace:*",
@@ -30,5 +37,9 @@
"@hypit/volcengine-matting": "workspace:*",
"@hypit/gpt-image": "workspace:*",
"typescript": "5.9.3"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0",
+ "@hypit/speech-evidence": "workspace:^0.1.0"
}
}
diff --git a/packages/provider-hypihub/src/mapping.ts b/packages/provider-hypihub/src/mapping.ts
index 4b701c9e..c52c346d 100644
--- a/packages/provider-hypihub/src/mapping.ts
+++ b/packages/provider-hypihub/src/mapping.ts
@@ -1,5 +1,5 @@
import type { CapabilityRef, ModuleRef } from "@hypit/hypit/protocol";
-import type { GenerationWireMapping } from "@hypit/hypit/generation";
+import type { GenerationWireMapping } from "@hypit/generation";
/** HypiHub model IDs and the normalized request fields they accept. */
const SEEDANCE: ModuleRef = { name: "@hypit/seedance", version: "1" };
diff --git a/packages/provider-hypihub/src/provider.ts b/packages/provider-hypihub/src/provider.ts
index e42946dc..8d067965 100644
--- a/packages/provider-hypihub/src/provider.ts
+++ b/packages/provider-hypihub/src/provider.ts
@@ -3,11 +3,11 @@ import type { RuntimeDoctorDiagnostic } from "@hypit/runtime-local/extension";
import type { AsyncEndpoint, CredentialRef, EndpointCredential, EndpointFulfillment, EndpointInvocationContext, EndpointPollContext, EndpointPricingReader, EndpointStartContext, EndpointOutcome, ImmediateEndpointHandler, ResourceStore } from "@hypit/hypit/endpoint";
import { credentialRef, EndpointServiceError, defineEndpoint, wakeAfter } from "@hypit/hypit/endpoint";
import { EndpointHttpError, EndpointResponseError, EndpointTransportError, withRequestDeadline } from "@hypit/hypit/endpoint/http";
-import { selectWireModelForRequest } from "@hypit/hypit/generation";
-import type { GenerationRequest } from "@hypit/hypit/generation";
+import { selectWireModelForRequest } from "@hypit/generation";
+import type { GenerationRequest } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CanonicalValue, CapabilityRef } from "@hypit/hypit/protocol";
-import { sealAlignedTranscriptEvidence, speechEvidenceTypes } from "@hypit/hypit/speech-evidence";
+import { sealAlignedTranscriptEvidence, speechEvidenceTypes } from "@hypit/speech-evidence";
import {
assertWhisperXEvidenceWav,
interpretWhisperXTranscript,
diff --git a/packages/provider-hypihub/src/routes.ts b/packages/provider-hypihub/src/routes.ts
index ac457f52..eb348a8e 100644
--- a/packages/provider-hypihub/src/routes.ts
+++ b/packages/provider-hypihub/src/routes.ts
@@ -5,8 +5,8 @@ import {
sealGeneratedAudioSet,
sealGeneratedImageSet,
sealGeneratedVideoSet,
-} from "@hypit/hypit/generation";
-import type { GenerationArtifactUrlResolver, GenerationRequest, GenerationWireMapping } from "@hypit/hypit/generation";
+} from "@hypit/generation";
+import type { GenerationArtifactUrlResolver, GenerationRequest, GenerationWireMapping } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CapabilityRef, CanonicalValue, StoredValue, TypeRef } from "@hypit/hypit/protocol";
import type { EndpointRequest, EndpointSupport } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-image-opencv-local/package.json b/packages/provider-image-opencv-local/package.json
index 9243da78..ffdb30c3 100644
--- a/packages/provider-image-opencv-local/package.json
+++ b/packages/provider-image-opencv-local/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/provider-image-opencv-local",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -10,11 +10,15 @@
"hypit": {
"activation": "./src/activation.ts"
},
- "files": ["dist", "runtime", "README.md"],
+ "files": [
+ "dist",
+ "runtime",
+ "README.md"
+ ],
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/image-operations": "workspace:^",
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/image-operations": "workspace:^0.2.0",
+ "@hypit/runtime-local": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
diff --git a/packages/provider-monid/package.json b/packages/provider-monid/package.json
index 7178db33..4ce62278 100644
--- a/packages/provider-monid/package.json
+++ b/packages/provider-monid/package.json
@@ -4,12 +4,19 @@
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
- "exports": { ".": "./src/index.ts" },
- "files": ["dist", "README.md"],
- "hypit": { "activation": "./src/activation.ts" },
+ "exports": {
+ ".": "./src/index.ts"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "hypit": {
+ "activation": "./src/activation.ts"
+ },
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/runtime-local": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/endpoint": "workspace:*",
@@ -21,5 +28,8 @@
"@hypit/runtime-local": "workspace:*",
"@hypit/wan": "workspace:*",
"@hypit/seedance": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/provider-monid/src/mapping.ts b/packages/provider-monid/src/mapping.ts
index fc2cb194..a7aaccfc 100644
--- a/packages/provider-monid/src/mapping.ts
+++ b/packages/provider-monid/src/mapping.ts
@@ -1,5 +1,5 @@
import type { ModuleRef } from "@hypit/hypit/protocol";
-import type { GenerationWireMapping } from "@hypit/hypit/generation";
+import type { GenerationWireMapping } from "@hypit/generation";
const SEEDANCE: ModuleRef = { name: "@hypit/seedance", version: "1" };
const MINIMAX_H3: ModuleRef = { name: "@hypit/minimax-h3", version: "1" };
diff --git a/packages/provider-monid/src/provider.ts b/packages/provider-monid/src/provider.ts
index 43725c98..e1019ed4 100644
--- a/packages/provider-monid/src/provider.ts
+++ b/packages/provider-monid/src/provider.ts
@@ -1,7 +1,7 @@
import type { AsyncEndpoint, EndpointCredential, EndpointInvocationContext, EndpointOutcome } from "@hypit/hypit/endpoint";
import { EndpointServiceError, defineEndpoint, wakeAfter } from "@hypit/hypit/endpoint";
import { EndpointHttpError, EndpointResponseError, EndpointTransportError, withRequestDeadline } from "@hypit/hypit/endpoint/http";
-import type { GenerationArtifactUrlResolver } from "@hypit/hypit/generation";
+import type { GenerationArtifactUrlResolver } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CanonicalValue, CapabilityRef } from "@hypit/hypit/protocol";
import { credentialRef } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-monid/src/routes.ts b/packages/provider-monid/src/routes.ts
index 284a3528..92bea9e6 100644
--- a/packages/provider-monid/src/routes.ts
+++ b/packages/provider-monid/src/routes.ts
@@ -4,8 +4,8 @@ import {
generationTypes,
sealGeneratedImageSet,
sealGeneratedVideoSet,
-} from "@hypit/hypit/generation";
-import type { GenerationArtifactUrlResolver, GenerationRequest } from "@hypit/hypit/generation";
+} from "@hypit/generation";
+import type { GenerationArtifactUrlResolver, GenerationRequest } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CapabilityRef, CanonicalValue, StoredValue, TypeRef } from "@hypit/hypit/protocol";
import type { EndpointRequest, EndpointSupport } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-pollo/package.json b/packages/provider-pollo/package.json
index 7de025e6..200d28e0 100644
--- a/packages/provider-pollo/package.json
+++ b/packages/provider-pollo/package.json
@@ -4,12 +4,19 @@
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
- "exports": { ".": "./src/index.ts" },
- "files": ["dist", "README.md"],
- "hypit": { "activation": "./src/activation.ts" },
+ "exports": {
+ ".": "./src/index.ts"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "hypit": {
+ "activation": "./src/activation.ts"
+ },
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/runtime-local": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/endpoint": "workspace:*",
@@ -22,5 +29,8 @@
"@hypit/grok-imagine": "workspace:*",
"@hypit/minimax-h3": "workspace:*",
"@hypit/nano-banana": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/provider-pollo/src/mapping.ts b/packages/provider-pollo/src/mapping.ts
index eacfdf9d..2b3e4f69 100644
--- a/packages/provider-pollo/src/mapping.ts
+++ b/packages/provider-pollo/src/mapping.ts
@@ -1,5 +1,5 @@
import type { ModuleRef } from "@hypit/hypit/protocol";
-import type { GenerationWireMapping } from "@hypit/hypit/generation";
+import type { GenerationWireMapping } from "@hypit/generation";
const MINIMAX: ModuleRef = { name: "@hypit/minimax-h3", version: "1" };
const GROK: ModuleRef = { name: "@hypit/grok-imagine", version: "1" };
diff --git a/packages/provider-pollo/src/provider.ts b/packages/provider-pollo/src/provider.ts
index b9f000f1..1727277d 100644
--- a/packages/provider-pollo/src/provider.ts
+++ b/packages/provider-pollo/src/provider.ts
@@ -1,7 +1,7 @@
import type { AsyncEndpoint, EndpointCredential, EndpointInvocationContext, EndpointOutcome } from "@hypit/hypit/endpoint";
import { EndpointServiceError, defineEndpoint, wakeAfter } from "@hypit/hypit/endpoint";
import { EndpointHttpError, EndpointResponseError, EndpointTransportError, withRequestDeadline } from "@hypit/hypit/endpoint/http";
-import type { GenerationArtifactUrlResolver } from "@hypit/hypit/generation";
+import type { GenerationArtifactUrlResolver } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CanonicalValue, CapabilityRef } from "@hypit/hypit/protocol";
import { credentialRef } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-pollo/src/routes.ts b/packages/provider-pollo/src/routes.ts
index 6905a080..53d48d77 100644
--- a/packages/provider-pollo/src/routes.ts
+++ b/packages/provider-pollo/src/routes.ts
@@ -4,8 +4,8 @@ import {
generationTypes,
sealGeneratedImageSet,
sealGeneratedVideoSet,
-} from "@hypit/hypit/generation";
-import type { GenerationArtifactUrlResolver, GenerationRequest, GenerationWireMapping } from "@hypit/hypit/generation";
+} from "@hypit/generation";
+import type { GenerationArtifactUrlResolver, GenerationRequest, GenerationWireMapping } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CapabilityRef, CanonicalValue, StoredValue, TypeRef } from "@hypit/hypit/protocol";
import type { EndpointRequest, EndpointSupport } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-tokendance/package.json b/packages/provider-tokendance/package.json
index d8aa4a6a..e9c29e2f 100644
--- a/packages/provider-tokendance/package.json
+++ b/packages/provider-tokendance/package.json
@@ -4,12 +4,19 @@
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
- "exports": { ".": "./src/index.ts" },
- "files": ["dist", "README.md"],
- "hypit": { "activation": "./src/activation.ts" },
+ "exports": {
+ ".": "./src/index.ts"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "hypit": {
+ "activation": "./src/activation.ts"
+ },
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/runtime-local": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/endpoint": "workspace:*",
@@ -21,5 +28,8 @@
"@hypit/minimax-h3": "workspace:*",
"@hypit/seedance": "workspace:*",
"@hypit/seedream": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/provider-tokendance/src/mapping.ts b/packages/provider-tokendance/src/mapping.ts
index 1eb0ce3b..e7d67f13 100644
--- a/packages/provider-tokendance/src/mapping.ts
+++ b/packages/provider-tokendance/src/mapping.ts
@@ -1,5 +1,5 @@
import type { ModuleRef } from "@hypit/hypit/protocol";
-import type { GenerationWireMapping } from "@hypit/hypit/generation";
+import type { GenerationWireMapping } from "@hypit/generation";
const SEEDANCE: ModuleRef = { name: "@hypit/seedance", version: "1" };
const SEEDREAM: ModuleRef = { name: "@hypit/seedream", version: "1" };
diff --git a/packages/provider-tokendance/src/provider.ts b/packages/provider-tokendance/src/provider.ts
index bc3d74d7..9cfdbfa1 100644
--- a/packages/provider-tokendance/src/provider.ts
+++ b/packages/provider-tokendance/src/provider.ts
@@ -1,7 +1,7 @@
import type { AsyncEndpoint, EndpointCredential, EndpointInvocationContext, EndpointOutcome, ImmediateEndpointHandler } from "@hypit/hypit/endpoint";
import { EndpointServiceError, defineEndpoint, wakeAfter } from "@hypit/hypit/endpoint";
import { EndpointHttpError, EndpointResponseError, EndpointTransportError, withRequestDeadline } from "@hypit/hypit/endpoint/http";
-import type { GenerationArtifactUrlResolver } from "@hypit/hypit/generation";
+import type { GenerationArtifactUrlResolver } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CanonicalValue, CapabilityRef } from "@hypit/hypit/protocol";
import { credentialRef } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-tokendance/src/routes.ts b/packages/provider-tokendance/src/routes.ts
index e0ac48dd..e7b0a335 100644
--- a/packages/provider-tokendance/src/routes.ts
+++ b/packages/provider-tokendance/src/routes.ts
@@ -4,8 +4,8 @@ import {
generationTypes,
sealGeneratedImageSet,
sealGeneratedVideoSet,
-} from "@hypit/hypit/generation";
-import type { GenerationArtifactUrlResolver, GenerationRequest, GenerationWireMapping } from "@hypit/hypit/generation";
+} from "@hypit/generation";
+import type { GenerationArtifactUrlResolver, GenerationRequest, GenerationWireMapping } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, CapabilityRef, CanonicalValue, StoredValue, TypeRef } from "@hypit/hypit/protocol";
import type { EndpointRequest, EndpointSupport } from "@hypit/hypit/endpoint";
diff --git a/packages/provider-whisperx-local/package.json b/packages/provider-whisperx-local/package.json
index 711e2db6..de65979e 100644
--- a/packages/provider-whisperx-local/package.json
+++ b/packages/provider-whisperx-local/package.json
@@ -1,20 +1,24 @@
{
"name": "@hypit/provider-whisperx-local",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
"exports": {
".": "./src/index.ts"
},
- "files": ["dist", "runtime", "README.md"],
+ "files": [
+ "dist",
+ "runtime",
+ "README.md"
+ ],
"hypit": {
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/runtime-local": "workspace:^",
- "@hypit/whisperx": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/runtime-local": "workspace:^0.1.1",
+ "@hypit/whisperx": "workspace:^0.2.0"
},
"devDependencies": {
"@hypit/endpoint": "workspace:*",
@@ -24,5 +28,8 @@
"@hypit/speech-evidence": "workspace:*",
"@hypit/whisperx": "workspace:*",
"@hypit/executor": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/speech-evidence": "workspace:^0.1.0"
}
}
diff --git a/packages/provider-whisperx-local/src/provider.ts b/packages/provider-whisperx-local/src/provider.ts
index 86fa0697..8d024469 100644
--- a/packages/provider-whisperx-local/src/provider.ts
+++ b/packages/provider-whisperx-local/src/provider.ts
@@ -1,8 +1,8 @@
import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
-import { sealAlignedTranscriptEvidence, speechEvidenceTypes } from "@hypit/hypit/speech-evidence";
-import type { AlignedTranscriptEvidence } from "@hypit/hypit/speech-evidence";
+import { sealAlignedTranscriptEvidence, speechEvidenceTypes } from "@hypit/speech-evidence";
+import type { AlignedTranscriptEvidence } from "@hypit/speech-evidence";
import type { EndpointInvocationContext, EndpointFulfillment } from "@hypit/hypit/endpoint";
import { canonicalize } from "@hypit/hypit/protocol";
import type { CanonicalValue } from "@hypit/hypit/protocol";
diff --git a/packages/ranking/README.md b/packages/ranking/README.md
index 2d8f6627..00b7aad0 100644
--- a/packages/ranking/README.md
+++ b/packages/ranking/README.md
@@ -59,7 +59,7 @@ installed tarball contains a second editable source tree:
A project component can use these relationships with its own behavior. External TypeScript uses
`@hypit/hypit/author`, `@hypit/hypit/producer`, `@hypit/hypit/admission`,
-`@hypit/hypit/markup`, `@hypit/hypit/temporal/markup` and the appropriate domain APIs. Copy the relevant idea into
+`@hypit/hypit/markup`, `@hypit/temporal/markup` and the appropriate domain APIs. Copy the relevant idea into
the project's own package, with its own Module identity, instead of editing the installed Ranking.
The Companion uses published values and temporal lineage, so a visible row and its reveal handle can
diff --git a/packages/ranking/package.json b/packages/ranking/package.json
index a7940387..2572d774 100644
--- a/packages/ranking/package.json
+++ b/packages/ranking/package.json
@@ -17,8 +17,8 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/kernel": "workspace:*",
@@ -33,5 +33,12 @@
"@hypit/text": "workspace:*",
"@hypit/timeline": "workspace:*",
"typescript": "5.9.3"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/packages/ranking/src/component.ts b/packages/ranking/src/component.ts
index 258920d2..44f5627f 100644
--- a/packages/ranking/src/component.ts
+++ b/packages/ranking/src/component.ts
@@ -1,11 +1,11 @@
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import type { ProducerPackage, ProducerHandlerContext } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
-import type { SynchronizedMedia } from "@hypit/hypit/media";
+import type { SynchronizedMedia } from "@hypit/media";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, StoredValue } from "@hypit/hypit/protocol";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+import type { TemporalInstant, TemporalWindow } from "@hypit/temporal";
+import type { SpatialFrame } from "@hypit/spatial";
import type { Text } from "@hypit/hypit/text";
import { rankingProducers, rankingTypes } from "./manifest.js";
diff --git a/packages/ranking/src/fragment.ts b/packages/ranking/src/fragment.ts
index 6647fb07..e4a4c615 100644
--- a/packages/ranking/src/fragment.ts
+++ b/packages/ranking/src/fragment.ts
@@ -1,12 +1,12 @@
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { timelineTypes } from "@hypit/timeline";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation, GraphFragment } from "@hypit/hypit/author";
-import { mediaTypes } from "@hypit/hypit/media";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { mediaTypes } from "@hypit/media";
+import { spatialTypes } from "@hypit/spatial";
import { textTypes } from "@hypit/hypit/text";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { temporalTypes } from "@hypit/temporal";
import { rankingProducers, rankingTypes } from "./manifest.js";
import type { RankingVariant } from "./types.js";
diff --git a/packages/ranking/src/manifest.ts b/packages/ranking/src/manifest.ts
index 7e443620..c92bc1e1 100644
--- a/packages/ranking/src/manifest.ts
+++ b/packages/ranking/src/manifest.ts
@@ -1,16 +1,16 @@
-import { timelineTypes, timelineDependency } from "@hypit/hypit/timeline";
-import { temporalContextAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { timelineTypes, timelineDependency } from "@hypit/timeline";
+import { temporalContextAttributeVocabulary } from "@hypit/temporal/markup";
import { readFile } from "node:fs/promises";
import { blobDependency } from "@hypit/hypit/blob";
-import { compositionDependency, compositionTypes } from "@hypit/hypit/composition";
-import { mediaDependency, mediaTypes } from "@hypit/hypit/media";
+import { compositionDependency, compositionTypes } from "@hypit/composition";
+import { mediaDependency, mediaTypes } from "@hypit/media";
import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
-import { spatialDependency, spatialFrameSchema, spatialTypes } from "@hypit/hypit/spatial";
+import { spatialDependency, spatialFrameSchema, spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
-import { temporalDependency, temporalInstantSchema, temporalTypes, temporalWindowSchema } from "@hypit/hypit/temporal";
-import { temporalInstantAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { temporalDependency, temporalInstantSchema, temporalTypes, temporalWindowSchema } from "@hypit/temporal";
+import { temporalInstantAttributeVocabulary } from "@hypit/temporal/markup";
import { textDependency, textTypes } from "@hypit/hypit/text";
const previewImage = (file: string, mediaType = "image/png") => ({
diff --git a/packages/ranking/src/render.ts b/packages/ranking/src/render.ts
index b0f2c62e..5a199c16 100644
--- a/packages/ranking/src/render.ts
+++ b/packages/ranking/src/render.ts
@@ -1,11 +1,11 @@
-import { assertTimelineIdentity, timelineFrameSampleBoundary, timelineSampleFrames } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+import { assertTimelineIdentity, timelineFrameSampleBoundary, timelineSampleFrames } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import {
assertAudioTrackIdentity,
assertVisualTrackIdentity,
sealAudioTrack,
sealVisualTrack,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import type {
AudioClip,
AudioTrack,
@@ -14,8 +14,8 @@ import type {
VisualPresent,
VisualStyleDeclaration,
VisualTrack,
-} from "@hypit/hypit/composition";
-import { synchronizedMediaSampleFrames, verifySynchronizedMedia } from "@hypit/hypit/media";
+} from "@hypit/composition";
+import { synchronizedMediaSampleFrames, verifySynchronizedMedia } from "@hypit/media";
import {
assertColumnProgram,
diff --git a/packages/ranking/src/schedule.ts b/packages/ranking/src/schedule.ts
index e958d98a..0e8e8479 100644
--- a/packages/ranking/src/schedule.ts
+++ b/packages/ranking/src/schedule.ts
@@ -1,21 +1,21 @@
-import { assertTimelineIdentity, timelineFrameCount } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+import { assertTimelineIdentity, timelineFrameCount } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import {
assertFontArtifactRef,
verifySynchronizedMedia,
-} from "@hypit/hypit/media";
-import type { SynchronizedMedia } from "@hypit/hypit/media";
+} from "@hypit/media";
+import type { SynchronizedMedia } from "@hypit/media";
import { canonicalize, isResourceId } from "@hypit/hypit/protocol";
import { verifyText } from "@hypit/hypit/text";
import type { Text } from "@hypit/hypit/text";
-import { assertSpatialFrame } from "@hypit/hypit/spatial";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+import { assertSpatialFrame } from "@hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
import {
assertTemporalInstantFor,
assertTemporalWindowFor,
resolveTriggeredSchedule,
-} from "@hypit/hypit/temporal";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
+} from "@hypit/temporal";
+import type { TemporalInstant, TemporalWindow } from "@hypit/temporal";
import type {
ColumnItem,
@@ -769,7 +769,7 @@ export function buildColumnProgram(header: RankingHeader, withinValue: SpatialFr
return canonicalize(result) as unknown as ColumnProgram;
}
-export function buildTopThreeProgram(header: RankingHeader, frameValue: import("@hypit/hypit/spatial").SpatialFrame, schedule: RankingSchedule, style: TopThreeStyle, set: TopThreeItemSet): TopThreeProgram {
+export function buildTopThreeProgram(header: RankingHeader, frameValue: import("@hypit/spatial").SpatialFrame, schedule: RankingSchedule, style: TopThreeStyle, set: TopThreeItemSet): TopThreeProgram {
assert(header.variant === "top-three" && schedule.variant === "top-three", "TopThree variant is inconsistent.");
assertSpatialFrame(frameValue);
assertTopThreeStyle(style);
diff --git a/packages/ranking/src/studio.ts b/packages/ranking/src/studio.ts
index ef93f13f..f0f9cff2 100644
--- a/packages/ranking/src/studio.ts
+++ b/packages/ranking/src/studio.ts
@@ -1,7 +1,7 @@
import { rankingMarkupSurfaces, rankingModuleRef, rankingTypes } from "./index.js";
import type { RankingProgram, RankingSchedule, RankingSoundEventPlan } from "./index.js";
-import { compositionTypes } from "@hypit/hypit/composition";
-import type { AudioTrack } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
+import type { AudioTrack } from "@hypit/composition";
import type { StudioTrackCompanion, StudioTrackCompanionContext, StudioItemDraft, StudioInspectorFieldDeclaration, StudioSourceBindingDeclaration } from "@hypit/studio-companion";
import { artifactPreview, authoredChildFor, previewLayer, requiredSurfaceValue, temporalLineageFor, temporalDomainSource } from "@hypit/studio-companion";
diff --git a/packages/ranking/src/style.ts b/packages/ranking/src/style.ts
index ea210342..1bc41220 100644
--- a/packages/ranking/src/style.ts
+++ b/packages/ranking/src/style.ts
@@ -1,11 +1,11 @@
import {
assertFontArtifactRef,
assertFontStackRef,
-} from "@hypit/hypit/media";
+} from "@hypit/media";
import type {
FontArtifactRef,
FontStackRef,
-} from "@hypit/hypit/media";
+} from "@hypit/media";
import { canonicalize } from "@hypit/hypit/protocol";
import type { Recipe } from "@hypit/hypit/recipe";
diff --git a/packages/ranking/src/surface.ts b/packages/ranking/src/surface.ts
index f7eb6252..fe5fca31 100644
--- a/packages/ranking/src/surface.ts
+++ b/packages/ranking/src/surface.ts
@@ -1,13 +1,13 @@
-import { resolveTemporalContext } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalContext } from "@hypit/temporal/markup";
import { assertEmptyElement as empty, assertAttributes as allowed, localName, textAttribute as text, optionalTextAttribute as optionalText, type StructuredElement, type StructuredSurfaceHandler, type SurfaceRecordDraft, type SurfaceResolvedReference, type MarkupAttributeValue } from "@hypit/hypit/markup";
import { sameType, type CanonicalValue, type TypeRef } from "@hypit/hypit/protocol";
-import { mediaTypes } from "@hypit/hypit/media";
-import type { FontArtifactRef, FontStackRef } from "@hypit/hypit/media";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { mediaTypes } from "@hypit/media";
+import type { FontArtifactRef, FontStackRef } from "@hypit/media";
+import { spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
import type { Recipe } from "@hypit/hypit/recipe";
import { textTypes } from "@hypit/hypit/text";
-import { resolveTemporalInstantReference, resolveTemporalWindowReference, temporalInstantAttributeNames } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalInstantReference, resolveTemporalWindowReference, temporalInstantAttributeNames } from "@hypit/temporal/markup";
import { createRankingFragment } from "./fragment.js";
import type { RankingFragmentItem, RankingFragmentSound } from "./fragment.js";
diff --git a/packages/ranking/src/types.ts b/packages/ranking/src/types.ts
index df98a903..33acca0e 100644
--- a/packages/ranking/src/types.ts
+++ b/packages/ranking/src/types.ts
@@ -1,11 +1,11 @@
-import type { FrameSpan } from "@hypit/hypit/composition";
+import type { FrameSpan } from "@hypit/composition";
import type {
FontArtifactRef,
SynchronizedMedia,
-} from "@hypit/hypit/media";
+} from "@hypit/media";
import type { BlobRef } from "@hypit/hypit/protocol";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
+import type { SpatialFrame } from "@hypit/spatial";
+import type { TemporalInstant, TemporalWindow } from "@hypit/temporal";
export type RankingVariant = "tier-board" | "column" | "top-three";
diff --git a/packages/ranking/test/companion.test.ts b/packages/ranking/test/companion.test.ts
index 8d31c2ed..ef9965c4 100644
--- a/packages/ranking/test/companion.test.ts
+++ b/packages/ranking/test/companion.test.ts
@@ -1,6 +1,6 @@
import assert from "node:assert/strict";
import test from "node:test";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import type { StudioTrackCompanionContext } from "@hypit/studio-companion";
import { rankingStudioTrackCompanions } from "../src/studio.js";
diff --git a/packages/region-evidence/package.json b/packages/region-evidence/package.json
index c2c2c0d7..a65f38e9 100644
--- a/packages/region-evidence/package.json
+++ b/packages/region-evidence/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/region-evidence",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -11,13 +11,23 @@
"activation": "./src/activation.ts"
},
"dependencies": {
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
+ },
+ "devDependencies": {
"@hypit/producer": "workspace:*",
"@hypit/author": "workspace:*",
"@hypit/markup": "workspace:*",
"@hypit/protocol": "workspace:*",
- "@hypit/spatial": "workspace:*",
"@hypit/recipe": "workspace:*",
- "@hypit/timeline": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/admission": "workspace:*",
+ "@hypit/hypit": "workspace:*"
}
}
diff --git a/packages/region-evidence/src/activation.ts b/packages/region-evidence/src/activation.ts
index bea66bde..4089e66e 100644
--- a/packages/region-evidence/src/activation.ts
+++ b/packages/region-evidence/src/activation.ts
@@ -1,6 +1,6 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
-import { createMarkupSurfaceFacet } from "@hypit/markup";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
+import { createMarkupSurfaceFacet } from "@hypit/hypit/markup";
import {
decodeRegionEvidenceSurface,
diff --git a/packages/region-evidence/src/component.ts b/packages/region-evidence/src/component.ts
index 9ecb7dd9..0ec32b33 100644
--- a/packages/region-evidence/src/component.ts
+++ b/packages/region-evidence/src/component.ts
@@ -1,9 +1,9 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import type { ProducerPackage } from "@hypit/producer";
-import { canonicalize } from "@hypit/protocol";
-import type { StoredValue } from "@hypit/protocol";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import type { ProducerPackage } from "@hypit/hypit/producer";
+import { canonicalize } from "@hypit/hypit/protocol";
+import type { StoredValue } from "@hypit/hypit/protocol";
import type { SpatialFrame } from "@hypit/spatial";
-import type { Recipe } from "@hypit/recipe";
+import type { Recipe } from "@hypit/hypit/recipe";
import type { Timeline } from "@hypit/timeline";
import { regionEvidenceProducers, regionEvidenceTypes } from "./manifest.js";
diff --git a/packages/region-evidence/src/evidence.ts b/packages/region-evidence/src/evidence.ts
index a93f7957..aa32ac33 100644
--- a/packages/region-evidence/src/evidence.ts
+++ b/packages/region-evidence/src/evidence.ts
@@ -1,7 +1,7 @@
-import type { CanonicalValue } from "@hypit/protocol";
+import type { CanonicalValue } from "@hypit/hypit/protocol";
import { assertSpatialFrame } from "@hypit/spatial";
import type { SpatialFrame } from "@hypit/spatial";
-import type { Recipe } from "@hypit/recipe";
+import type { Recipe } from "@hypit/hypit/recipe";
import { assertTimelineIdentity, timelineFrameCount } from "@hypit/timeline";
import type { Timeline } from "@hypit/timeline";
diff --git a/packages/region-evidence/src/fragment.ts b/packages/region-evidence/src/fragment.ts
index 249f4ef2..ea04977f 100644
--- a/packages/region-evidence/src/fragment.ts
+++ b/packages/region-evidence/src/fragment.ts
@@ -1,6 +1,6 @@
-import { sealGraphFragment } from "@hypit/author";
+import { sealGraphFragment } from "@hypit/hypit/author";
import { spatialTypes } from "@hypit/spatial";
-import { recipeType } from "@hypit/recipe";
+import { recipeType } from "@hypit/hypit/recipe";
import { timelineTypes } from "@hypit/timeline";
import { regionEvidenceProducers, regionEvidenceTypes } from "./manifest.js";
diff --git a/packages/region-evidence/src/manifest.ts b/packages/region-evidence/src/manifest.ts
index 8301795c..30827526 100644
--- a/packages/region-evidence/src/manifest.ts
+++ b/packages/region-evidence/src/manifest.ts
@@ -1,6 +1,6 @@
-import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/protocol";
+import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/hypit/protocol";
import { spatialDependency, spatialTypes } from "@hypit/spatial";
-import { recipeType } from "@hypit/recipe";
+import { recipeType } from "@hypit/hypit/recipe";
import { timelineDependency, timelineTypes } from "@hypit/timeline";
export const regionEvidenceModuleRef = { name: "@hypit/region-evidence", version: "1" } as const;
diff --git a/packages/region-evidence/src/schema.ts b/packages/region-evidence/src/schema.ts
index b825ecf2..5cc88704 100644
--- a/packages/region-evidence/src/schema.ts
+++ b/packages/region-evidence/src/schema.ts
@@ -1,4 +1,4 @@
-import type { ValueSchema } from "@hypit/protocol";
+import type { ValueSchema } from "@hypit/hypit/protocol";
import { spatialFrameSchema } from "@hypit/spatial";
const object = (fields: Readonly<Record<string, { readonly schema: ValueSchema; readonly optional?: boolean }>>): ValueSchema => ({ kind: "object", fields });
diff --git a/packages/region-evidence/src/surface.ts b/packages/region-evidence/src/surface.ts
index 371fd415..9d0a8a15 100644
--- a/packages/region-evidence/src/surface.ts
+++ b/packages/region-evidence/src/surface.ts
@@ -1,7 +1,7 @@
import { spatialTypes } from "@hypit/spatial";
-import { recipeType } from "@hypit/recipe";
+import { recipeType } from "@hypit/hypit/recipe";
import { timelineTypes } from "@hypit/timeline";
-import type { StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/markup";
+import type { StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
import { regionEvidenceFragment } from "./fragment.js";
diff --git a/packages/runtime-local/package.json b/packages/runtime-local/package.json
index 19509e40..be509af6 100644
--- a/packages/runtime-local/package.json
+++ b/packages/runtime-local/package.json
@@ -21,7 +21,7 @@
"koffi": "3.2.1"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.0"
},
"devDependencies": {
"@hypit/admission": "workspace:*",
diff --git a/packages/runtime-local/test/concurrency-process.test.ts b/packages/runtime-local/test/concurrency-process.test.ts
index 976ccfac..9b38ef36 100644
--- a/packages/runtime-local/test/concurrency-process.test.ts
+++ b/packages/runtime-local/test/concurrency-process.test.ts
@@ -1,6 +1,6 @@
import assert from "node:assert/strict";
import { createServer, type ServerResponse } from "node:http";
-import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises";
+import { mkdir, mkdtemp, rm, symlink, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { fileURLToPath } from "node:url";
@@ -62,6 +62,8 @@ for (const scenario of scenarios) {
try {
const pkg = join(root, "node_modules", "fixture-concurrency");
await mkdir(pkg, { recursive: true });
+ await mkdir(join(root, "node_modules", "@hypit"), { recursive: true });
+ await symlink(join(distribution, "packages", "runtime-local"), join(root, "node_modules", "@hypit", "runtime-local"), process.platform === "win32" ? "junction" : "dir");
await writeFile(join(pkg, "package.json"), JSON.stringify({ name: "fixture-concurrency", version: "1.0.0", type: "module", hypit: { activation: "./activation.mjs" } }));
await writeFile(join(pkg, "activation.mjs"), `
import {createRuntimeEndpointAdapterFacet} from '@hypit/runtime-local/extension';
diff --git a/packages/runtime-local/test/execution-process.test.ts b/packages/runtime-local/test/execution-process.test.ts
index 77756ea8..25856b67 100644
--- a/packages/runtime-local/test/execution-process.test.ts
+++ b/packages/runtime-local/test/execution-process.test.ts
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import { access, mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
+import { access, mkdir, mkdtemp, readFile, rm, symlink, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { fileURLToPath } from "node:url";
@@ -41,6 +41,8 @@ test("isolated Builds load fresh transitive code and Profile choices, share capa
async function packageAt(directory: string, revision: string) {
const pkg = join(directory, "node_modules", "fixture-components");
await mkdir(pkg, { recursive: true });
+ await mkdir(join(directory, "node_modules", "@hypit"), { recursive: true });
+ await symlink(join(repository, "packages", "runtime-local"), join(directory, "node_modules", "@hypit", "runtime-local"), process.platform === "win32" ? "junction" : "dir");
await writeFile(join(directory, "package.json"), JSON.stringify({ private: true, hypit: { project: true } }));
await writeFile(join(pkg, "package.json"), JSON.stringify({ name: "fixture-components", version: "1.0.0", type: "module", hypit: { activation: "./activation.ts" } }));
await writeFile(join(pkg, "revision.ts"), `export const revision: string = ${JSON.stringify(revision)};`);
diff --git a/packages/runtime-local/test/rotation-process.test.ts b/packages/runtime-local/test/rotation-process.test.ts
index 65aae522..d4ca8eb0 100644
--- a/packages/runtime-local/test/rotation-process.test.ts
+++ b/packages/runtime-local/test/rotation-process.test.ts
@@ -1,7 +1,7 @@
import assert from "node:assert/strict";
import { spawn, type ChildProcess } from "node:child_process";
import { createServer } from "node:http";
-import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises";
+import { mkdir, mkdtemp, rm, symlink, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { fileURLToPath } from "node:url";
@@ -42,6 +42,8 @@ test("a draining carrier finishes its existing Build while a new carrier shares
const endpoint=`http://127.0.0.1:${address.port}`;
try {
const pkg=join(root,'node_modules','fixture-rotation'); await mkdir(pkg,{recursive:true});
+ await mkdir(join(root, "node_modules", "@hypit"), { recursive: true });
+ await symlink(join(distribution, "packages", "runtime-local"), join(root, "node_modules", "@hypit", "runtime-local"), process.platform === "win32" ? "junction" : "dir");
await writeFile(join(root,'package.json'),'{"private":true,"hypit":{"project":true}}');
await writeFile(join(pkg,'package.json'),JSON.stringify({name:'fixture-rotation',version:'1.0.0',type:'module',hypit:{activation:'./activation.mjs'}}));
await writeFile(join(pkg,'activation.mjs'),`
diff --git a/packages/script/package.json b/packages/script/package.json
index 637cd2e8..c4bd0dbb 100644
--- a/packages/script/package.json
+++ b/packages/script/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/script",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -16,8 +16,8 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/hypit": "workspace:*",
@@ -31,5 +31,11 @@
"@hypit/narrative-temporal": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/caption": "workspace:^0.1.0",
+ "@hypit/narrative": "workspace:^0.1.0",
+ "@hypit/narrative-caption": "workspace:^0.1.0",
+ "@hypit/narrative-temporal": "workspace:^0.1.0"
}
}
diff --git a/packages/script/src/manifest.ts b/packages/script/src/manifest.ts
index 7f189374..77485db7 100644
--- a/packages/script/src/manifest.ts
+++ b/packages/script/src/manifest.ts
@@ -1,7 +1,7 @@
import type { ModuleManifest, TypeRef } from "@hypit/hypit/protocol";
-import { captionDependency, captionTypes } from "@hypit/hypit/caption";
-import { narrativeDependency, narrativeSchema, narrativeTypes } from "@hypit/hypit/narrative";
-import { narrativeCaptionDependency, narrativeCaptionTypes } from "@hypit/hypit/narrative-caption";
+import { captionDependency, captionTypes } from "@hypit/caption";
+import { narrativeDependency, narrativeSchema, narrativeTypes } from "@hypit/narrative";
+import { narrativeCaptionDependency, narrativeCaptionTypes } from "@hypit/narrative-caption";
import { textDependency, textTypes } from "@hypit/hypit/text";
export const scriptModuleRef = { name: "@hypit/script", version: "1" } as const;
diff --git a/packages/script/src/narrative.ts b/packages/script/src/narrative.ts
index c710f1d1..4a7b0269 100644
--- a/packages/script/src/narrative.ts
+++ b/packages/script/src/narrative.ts
@@ -1,7 +1,7 @@
import { canonicalize } from "@hypit/hypit/protocol";
import type { CanonicalValue } from "@hypit/hypit/protocol";
-import type { CaptionCue, CaptionDocument, CaptionDisplayWord, CaptionUnit } from "@hypit/hypit/caption";
-import type { NarrativeCaptionBinding } from "@hypit/hypit/narrative-caption";
+import type { CaptionCue, CaptionDocument, CaptionDisplayWord, CaptionUnit } from "@hypit/caption";
+import type { NarrativeCaptionBinding } from "@hypit/narrative-caption";
import { sealText } from "@hypit/hypit/text";
import type { ParsedCaptionRegion, ParsedNarrative } from "./types.js";
diff --git a/packages/script/src/studio.ts b/packages/script/src/studio.ts
index a196999e..b6f6e65a 100644
--- a/packages/script/src/studio.ts
+++ b/packages/script/src/studio.ts
@@ -1,6 +1,6 @@
-import { narrativeTypes } from "@hypit/hypit/narrative";
-import { narrativeTemporalTypes } from "@hypit/hypit/narrative-temporal";
-import type { NarrativeProjection } from "@hypit/hypit/narrative-temporal";
+import { narrativeTypes } from "@hypit/narrative";
+import { narrativeTemporalTypes } from "@hypit/narrative-temporal";
+import type { NarrativeProjection } from "@hypit/narrative-temporal";
import { sameType } from "@hypit/hypit/protocol";
import type {
Range,
@@ -13,6 +13,8 @@ import { adjustScriptMoment, adjustScriptSelection } from "./edit.js";
import { scriptModuleRef } from "./manifest.js";
import { parseScript } from "./parser.js";
+const timelineBandHeightPx = 15;
+
type NarrativeValue = {
readonly id?: string;
readonly segments?: readonly { readonly id: string; readonly startAnchorId: string; readonly endAnchorId: string }[];
@@ -96,8 +98,8 @@ export function projectScriptTemporalDomain(input: StudioTemporalDomainProjectio
anchorId: moment.anchorId, frame: at, ...(momentRanges.has(moment.id) ? { range: momentRanges.get(moment.id)! } : {}) }];
});
return { id: projection.id, timelineId: input.timeline.id,
- lanes: [{ id: "maps", label: "Map", heightPx: 26 },
- { id: "evidence", label: "Evidence", heightPx: 26 }],
+ lanes: [{ id: "maps", label: "Map", heightPx: timelineBandHeightPx },
+ { id: "evidence", label: "Evidence", heightPx: timelineBandHeightPx }],
anchors, items: [...segments, ...tokens], editItems: [...selections, ...moments] };
});
}
diff --git a/packages/script/src/types.ts b/packages/script/src/types.ts
index 26a9f264..5fec58cb 100644
--- a/packages/script/src/types.ts
+++ b/packages/script/src/types.ts
@@ -1,9 +1,9 @@
import type { CanonicalValue, SourceRange, StoredValue, TypeRef } from "@hypit/hypit/protocol";
-import type { CaptionWordAttribute } from "@hypit/hypit/caption";
-import type { Narrative, NarrativeMoment, NarrativeSegment, NarrativeSelection, NarrativeToken, NarrativeTurn } from "@hypit/hypit/narrative";
+import type { CaptionWordAttribute } from "@hypit/caption";
+import type { Narrative, NarrativeMoment, NarrativeSegment, NarrativeSelection, NarrativeToken, NarrativeTurn } from "@hypit/narrative";
-export type { CaptionWordAttribute } from "@hypit/hypit/caption";
-export type { Narrative, SemanticAnchor } from "@hypit/hypit/narrative";
+export type { CaptionWordAttribute } from "@hypit/caption";
+export type { Narrative, SemanticAnchor } from "@hypit/narrative";
export type Affinity = "left" | "right";
diff --git a/packages/script/test/studio-companion.test.ts b/packages/script/test/studio-companion.test.ts
index 1daafc91..6c12a6f7 100644
--- a/packages/script/test/studio-companion.test.ts
+++ b/packages/script/test/studio-companion.test.ts
@@ -44,11 +44,15 @@ test("Studio observes and edits the compiler's Script body without changing its
});
assert.ok(projection);
assert.deepEqual(projection.lanes.map((lane) => lane.id), ["maps", "evidence"]);
+ assert.deepEqual(projection.lanes.map((lane) => lane.heightPx), [15, 15]);
assert.equal(projection.items.some((item) => item.laneId === "intent"), false);
assert.equal(projection.editItems.some((item) => item.id === "beat"), true);
const tokens = projection.items.filter((item) => item.kind === "span" && item.appearance === "compact");
assert.deepEqual(tokens.map(token => token.label), parsed.tokens.map(token => token.text));
assert.deepEqual(tokens.map(token => token.range), observation.tokens.map(token => token.range));
+ const frames = new Map(parsed.anchors.map((anchor, index) => [anchor.id, index * 3]));
+ assert.deepEqual(tokens.map(token => token.kind === "span" ? [token.startFrame, token.endFrameExclusive] : []),
+ parsed.tokens.map(token => [frames.get(token.startAnchorId), frames.get(token.endAnchorId)]));
});
test("Studio projects every exact Narrative Projection instead of choosing one per Script and Timeline", () => {
diff --git a/packages/seedance/README.md b/packages/seedance/README.md
index 70e50800..35479cfa 100644
--- a/packages/seedance/README.md
+++ b/packages/seedance/README.md
@@ -3,7 +3,7 @@
Exact Seedance author model module. It owns the request schema and exactly three invocation Surfaces;
it does not contain service credentials, HTTP code, queues, runtime routing or usage-specific Prompt assembly.
-Its implementation imports only the public `@hypit/hypit/*` author and model APIs. The repository keeps
+Its implementation uses the public Hypit author APIs and the `@hypit/generation` model APIs. The repository keeps
TypeScript source entry points for joint development; `npm run pack:independent -- packages/seedance`
builds the owner package into a temporary release directory whose exports and activation point at compiled
JavaScript. The resulting tarball contains no private Hypit workspace dependency or second copy of the Host.
diff --git a/packages/seedance/package.json b/packages/seedance/package.json
index 3332409c..3fffc9d6 100644
--- a/packages/seedance/package.json
+++ b/packages/seedance/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/seedance",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,12 +15,15 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/hypit": "workspace:*",
"@hypit/markup": "workspace:*",
"@hypit/protocol": "workspace:*",
"typescript": "5.9.3"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/seedance/src/fragment.ts b/packages/seedance/src/fragment.ts
index a082a09a..3888a6bf 100644
--- a/packages/seedance/src/fragment.ts
+++ b/packages/seedance/src/fragment.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { generationProducers } from "@hypit/hypit/generation";
-import { createExactModelPrimaryGenerationFragment } from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/hypit/generation/model";
+import { generationProducers } from "@hypit/generation";
+import { createExactModelPrimaryGenerationFragment } from "@hypit/generation/model";
+import type { ExactModelEndpoint, ExactModelMediaInput, ExactModelTextInput } from "@hypit/generation/model";
const input = (name: string) => ({ kind: "fragment-input" as const, name });
const operation = (id: string) => ({ kind: "fragment-operation" as const, operation: id });
diff --git a/packages/seedance/src/index.ts b/packages/seedance/src/index.ts
index 9009669b..97020d10 100644
--- a/packages/seedance/src/index.ts
+++ b/packages/seedance/src/index.ts
@@ -1,13 +1,13 @@
-import { sealGenerationPortTable } from "@hypit/hypit/generation";
+import { sealGenerationPortTable } from "@hypit/generation";
import type {
GenerationPortTable,
GenerationPortValue,
GenerationRequest,
-} from "@hypit/hypit/generation";
+} from "@hypit/generation";
import { blobTypes } from "@hypit/hypit/blob";
import type { ResourceId } from "@hypit/hypit/protocol";
import type { SurfaceAttributeVocabulary, SurfacePortVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { textTypes } from "@hypit/hypit/text";
import { validateSeedanceInputs } from "./validation.js";
diff --git a/packages/seedance/src/surface.ts b/packages/seedance/src/surface.ts
index a74daa5e..19331e62 100644
--- a/packages/seedance/src/surface.ts
+++ b/packages/seedance/src/surface.ts
@@ -3,14 +3,14 @@ import {
generationPort,
sealGenerationMediaBinding,
sealGenerationRequestDraft,
-} from "@hypit/hypit/generation";
+} from "@hypit/generation";
import type {
GenerationMediaPort,
GenerationMediaRole,
GenerationPortTable,
-} from "@hypit/hypit/generation";
-import { exactModelMediaInputNames, exactModelTextInputName } from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint, ExactModelMediaInput } from "@hypit/hypit/generation/model";
+} from "@hypit/generation";
+import { exactModelMediaInputNames, exactModelTextInputName } from "@hypit/generation/model";
+import type { ExactModelEndpoint, ExactModelMediaInput } from "@hypit/generation/model";
import { textTypes, verifyText } from "@hypit/hypit/text";
import type { CanonicalValue } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
diff --git a/packages/seedance/src/validation.ts b/packages/seedance/src/validation.ts
index 0713668f..8ab33100 100644
--- a/packages/seedance/src/validation.ts
+++ b/packages/seedance/src/validation.ts
@@ -1,4 +1,4 @@
-import type { GenerationRequestDraft } from "@hypit/hypit/generation";
+import type { GenerationRequestDraft } from "@hypit/generation";
import type { BlobRef } from "@hypit/hypit/protocol";
/** Seedance's reference-audio rule, shared by known imports and request assembly. */
diff --git a/packages/seedance/test/validation.test.ts b/packages/seedance/test/validation.test.ts
index f63d3d2c..34051a56 100644
--- a/packages/seedance/test/validation.test.ts
+++ b/packages/seedance/test/validation.test.ts
@@ -1,9 +1,9 @@
import assert from "node:assert/strict";
import test from "node:test";
-import { sealGenerationRequestDraft } from "@hypit/hypit/generation";
-import type { GenerationRequest } from "@hypit/hypit/generation";
-import { plannedExactModelRequest } from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint } from "@hypit/hypit/generation/model";
+import { sealGenerationRequestDraft } from "@hypit/generation";
+import type { GenerationRequest } from "@hypit/generation";
+import { plannedExactModelRequest } from "@hypit/generation/model";
+import type { ExactModelEndpoint } from "@hypit/generation/model";
import { canonicalize } from "@hypit/protocol";
import type { BlobRef, BuildState, ProducerRef, StoredValue } from "@hypit/protocol";
import { fixtureResource } from "../../../test/fixture-resource.js";
diff --git a/packages/seedream/package.json b/packages/seedream/package.json
index b52d2c4d..dff3dae1 100644
--- a/packages/seedream/package.json
+++ b/packages/seedream/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/seedream",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -10,9 +10,12 @@
"hypit": {
"activation": "./src/activation.ts"
},
- "files": ["dist", "README.md"],
+ "files": [
+ "dist",
+ "README.md"
+ ],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -21,5 +24,8 @@
"@hypit/markup": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/seedream/src/index.ts b/packages/seedream/src/index.ts
index 0e77ba6e..5f4db3ee 100644
--- a/packages/seedream/src/index.ts
+++ b/packages/seedream/src/index.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/hypit/generation";
-import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/hypit/generation";
+import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/generation";
+import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/generation";
import type { SurfaceAttributeVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { textTypes } from "@hypit/hypit/text";
export const seedreamModuleRef = { name: "@hypit/seedream", version: "1" } as const;
diff --git a/packages/seedream/src/surface.ts b/packages/seedream/src/surface.ts
index c326fa5c..90607025 100644
--- a/packages/seedream/src/surface.ts
+++ b/packages/seedream/src/surface.ts
@@ -1,7 +1,7 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/hypit/generation";
-import type { GenerationMediaPort } from "@hypit/hypit/generation";
-import { createExactModelPrimaryGenerationFragment, exactModelMediaInputNames, exactModelTextInputName } from "@hypit/hypit/generation/model";
+import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/generation";
+import type { GenerationMediaPort } from "@hypit/generation";
+import { createExactModelPrimaryGenerationFragment, exactModelMediaInputNames, exactModelTextInputName } from "@hypit/generation/model";
import type { CanonicalValue, TypeRef } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
import { textTypes, verifyText } from "@hypit/hypit/text";
diff --git a/packages/spatial/package.json b/packages/spatial/package.json
index 0f83ca4a..9e499759 100644
--- a/packages/spatial/package.json
+++ b/packages/spatial/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/spatial",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -10,17 +10,22 @@
"hypit": {
"activation": "./src/activation.ts"
},
- "dependencies": {
+ "devDependencies": {
+ "@hypit/compiler": "workspace:*",
+ "@hypit/source": "workspace:*",
+ "@hypit/kernel": "workspace:*",
+ "@hypit/admission": "workspace:*",
"@hypit/producer": "workspace:*",
"@hypit/author": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/markup": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/hypit": "workspace:*"
},
- "devDependencies": {
- "@hypit/compiler": "workspace:*",
- "@hypit/source": "workspace:*",
- "@hypit/kernel": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
}
}
diff --git a/packages/spatial/src/activation.ts b/packages/spatial/src/activation.ts
index 5203cfd9..37b8389a 100644
--- a/packages/spatial/src/activation.ts
+++ b/packages/spatial/src/activation.ts
@@ -1,6 +1,6 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
-import { createMarkupSurfaceFacet } from "@hypit/markup";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
+import { createMarkupSurfaceFacet } from "@hypit/hypit/markup";
import {
decodeAnchoredFrameSurface,
diff --git a/packages/spatial/src/author.ts b/packages/spatial/src/author.ts
index 5766c0c1..3a94d874 100644
--- a/packages/spatial/src/author.ts
+++ b/packages/spatial/src/author.ts
@@ -1,4 +1,4 @@
-import type { CanonicalValue } from "@hypit/protocol";
+import type { CanonicalValue } from "@hypit/hypit/protocol";
import { sealContentFit } from "./geometry.js";
import type { ContentFit } from "./types.js";
diff --git a/packages/spatial/src/component.ts b/packages/spatial/src/component.ts
index 79cb6fc1..a95c07fc 100644
--- a/packages/spatial/src/component.ts
+++ b/packages/spatial/src/component.ts
@@ -1,7 +1,7 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import type { ProducerPackage } from "@hypit/producer";
-import { canonicalize } from "@hypit/protocol";
-import type { StoredValue } from "@hypit/protocol";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import type { ProducerPackage } from "@hypit/hypit/producer";
+import { canonicalize } from "@hypit/hypit/protocol";
+import type { StoredValue } from "@hypit/hypit/protocol";
import { anchoredFrame, aspectFrame, assertCanvas, assertContentFit, assertIntrinsicExtent, assertSpatialFrame, assertSpatialMap2D, assertSpatialPath, assertSpatialPoint, frameFromEdges, resolveContentFit } from "./geometry.js";
import { spatialProducers, spatialTypes } from "./manifest.js";
import type {
diff --git a/packages/spatial/src/fragment.ts b/packages/spatial/src/fragment.ts
index 128b33fb..a61319d9 100644
--- a/packages/spatial/src/fragment.ts
+++ b/packages/spatial/src/fragment.ts
@@ -1,4 +1,4 @@
-import { sealGraphFragment } from "@hypit/author";
+import { sealGraphFragment } from "@hypit/hypit/author";
import { spatialProducers, spatialTypes } from "./manifest.js";
const input = (name: string) => ({ kind: "fragment-input" as const, name });
diff --git a/packages/spatial/src/manifest.ts b/packages/spatial/src/manifest.ts
index 1711894e..91b9c290 100644
--- a/packages/spatial/src/manifest.ts
+++ b/packages/spatial/src/manifest.ts
@@ -1,4 +1,4 @@
-import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/protocol";
+import type { ModuleManifest, ProducerRef, TypeRef } from "@hypit/hypit/protocol";
import {
anchoredFrameProgramSchema,
aspectFrameProgramSchema,
diff --git a/packages/spatial/src/schema.ts b/packages/spatial/src/schema.ts
index cc5bb3d9..f6b3adb3 100644
--- a/packages/spatial/src/schema.ts
+++ b/packages/spatial/src/schema.ts
@@ -1,4 +1,4 @@
-import type { ValueSchema } from "@hypit/protocol";
+import type { ValueSchema } from "@hypit/hypit/protocol";
const number = { kind: "number" } as const;
const positiveInteger = { kind: "number", integer: true, minimum: 1 } as const;
diff --git a/packages/spatial/src/surface.ts b/packages/spatial/src/surface.ts
index e8044834..5c65f9ec 100644
--- a/packages/spatial/src/surface.ts
+++ b/packages/spatial/src/surface.ts
@@ -1,11 +1,11 @@
-import type { CanonicalValue } from "@hypit/protocol";
-import type { AuthorValueRef } from "@hypit/author";
+import type { CanonicalValue } from "@hypit/hypit/protocol";
+import type { AuthorValueRef } from "@hypit/hypit/author";
import type {
StructuredElement,
StructuredSurfaceHandler,
SurfaceResolvedReference,
MarkupAttributeValue,
-} from "@hypit/markup";
+} from "@hypit/hypit/markup";
import {
anchoredFrameFragment,
diff --git a/packages/speech-estimate/package.json b/packages/speech-estimate/package.json
index 78b82202..57d59716 100644
--- a/packages/speech-estimate/package.json
+++ b/packages/speech-estimate/package.json
@@ -12,7 +12,7 @@
"cmu-pronouncing-dictionary": "3.0.0"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.0"
},
"devDependencies": {
"@hypit/hypit": "workspace:*",
diff --git a/packages/speech-evidence/README.md b/packages/speech-evidence/README.md
index aeec3e81..bec2c788 100644
--- a/packages/speech-evidence/README.md
+++ b/packages/speech-evidence/README.md
@@ -2,7 +2,7 @@
Provider-neutral acoustic and word-alignment observations. Evidence is not the authored semantic truth.
-External package authors import these contracts from `@hypit/hypit/speech-evidence`; their logical
+External package authors import these contracts from `@hypit/speech-evidence`; their logical
Module identity remains `@hypit/speech-evidence@1`.
`SpeechEvidenceAudio` carries canonical 16 kHz mono WAV bytes, their exact sample count and the
diff --git a/packages/speech-evidence/package.json b/packages/speech-evidence/package.json
index 5fc5d2e9..edb26da0 100644
--- a/packages/speech-evidence/package.json
+++ b/packages/speech-evidence/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/speech-evidence",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -11,13 +11,21 @@
"activation": "./src/activation.ts"
},
"dependencies": {
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0"
+ },
+ "devDependencies": {
+ "@hypit/timeline": "workspace:*",
"@hypit/producer": "workspace:*",
- "@hypit/media": "workspace:*",
"@hypit/protocol": "workspace:*",
- "@hypit/temporal": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/admission": "workspace:*",
+ "@hypit/hypit": "workspace:*"
},
- "devDependencies": {
- "@hypit/timeline": "workspace:*"
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
}
}
diff --git a/packages/speech-evidence/src/activation.ts b/packages/speech-evidence/src/activation.ts
index 7ef86a95..6f560c58 100644
--- a/packages/speech-evidence/src/activation.ts
+++ b/packages/speech-evidence/src/activation.ts
@@ -1,5 +1,5 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
import { speechEvidenceComponent } from "./component.js";
import { speechEvidenceManifest } from "./index.js";
export const hypitPackage = {
diff --git a/packages/speech-evidence/src/component.ts b/packages/speech-evidence/src/component.ts
index f82844b1..f5ad1188 100644
--- a/packages/speech-evidence/src/component.ts
+++ b/packages/speech-evidence/src/component.ts
@@ -1,10 +1,10 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import { plannedNeedInputs } from "@hypit/producer";
-import type { ProducerPackage } from "@hypit/producer";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import { plannedNeedInputs } from "@hypit/hypit/producer";
+import type { ProducerPackage } from "@hypit/hypit/producer";
import { synchronizedMediaSampleFrames, verifySynchronizedMedia } from "@hypit/media";
import type { SynchronizedMedia } from "@hypit/media";
-import { canonicalize } from "@hypit/protocol";
-import type { StoredValue } from "@hypit/protocol";
+import { canonicalize } from "@hypit/hypit/protocol";
+import type { StoredValue } from "@hypit/hypit/protocol";
import { assertLocalTemporalDomain } from "@hypit/temporal";
import type { LocalTemporalDomain } from "@hypit/temporal";
diff --git a/packages/speech-evidence/src/index.ts b/packages/speech-evidence/src/index.ts
index dcc04e02..4a011efd 100644
--- a/packages/speech-evidence/src/index.ts
+++ b/packages/speech-evidence/src/index.ts
@@ -1,7 +1,7 @@
-import { isResourceId } from "@hypit/protocol";
+import { isResourceId } from "@hypit/hypit/protocol";
import { mediaDependency, mediaTypes } from "@hypit/media";
import { temporalDependency, temporalTypes } from "@hypit/temporal";
-import type { BlobRef, CapabilityRef, ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/protocol";
+import type { BlobRef, CapabilityRef, ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
export { parseTranscriptWords, phraseRanges, transcriptDocumentFromEvidence, wordsAt } from "./transcript-document.js";
export type { FrameWords, TranscriptWord } from "./transcript-document.js";
diff --git a/packages/studio-companion/README.md b/packages/studio-companion/README.md
index 1e91b178..621be106 100644
--- a/packages/studio-companion/README.md
+++ b/packages/studio-companion/README.md
@@ -16,7 +16,7 @@ accepts a literal string `label` attribute. The Companion can reuse generic term
adding package-specific presentation and one Inspector field:
```ts
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import type { StudioTrackCompanion } from "@hypit/studio-companion";
export const companions: readonly StudioTrackCompanion[] = [{
@@ -163,14 +163,19 @@ temporal-domain Companion owns source observation, requests the domain values it
one view for every exact Projection instance. Each view projects package-owned lanes, anchors and
visible point/span Items onto the absolute Timeline. Domain objects needed only to invert a Track/Item
edit belong in `editItems`; Studio does not draw them as another lane.
+Span appearance is a display choice: `block` for ordinary domain blocks and `compact` for dense
+evidence; points use `marker`. It does not change an item's time boundaries.
Script Studio uses this protocol for Narrative, but common Studio neither imports Narrative nor
reserves segment, word, Selection or Moment slots. Another package can contribute beat, shot or
motion-event domains through the same protocol.
A temporal-declaration Companion instead matches one author Surface and names only the output ports
-whose primary values are author-visible absolute Windows or Instants. It does not choose their color,
-row or editing behavior. Studio resolves those exact outputs and puts every package's declarations in
-one read-only `Windows & Instants` row. This keeps Surface port knowledge in the owning package while
+whose primary values are author-visible absolute Instants. It does not choose their color,
+row or editing behavior. These exact outputs are display requests even when no Track consumes them.
+Studio evaluates them under the existing display-execution permissions and displays resolved primary
+Instants in one read-only `Instants` row. Unresolved requests are reported without blocking Film
+preview. Windows remain author values used by Track Items and their editing
+lineage, without an additional common-row block. This keeps Surface port knowledge in the owning package while
letting common Studio understand only the shared absolute temporal types. Do not export a Timeline's
root range, automatically derived Window boundaries or internal helper values as separate declarations.
diff --git a/packages/studio-companion/package.json b/packages/studio-companion/package.json
index b82fa905..238068f2 100644
--- a/packages/studio-companion/package.json
+++ b/packages/studio-companion/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/studio-companion",
- "version": "0.1.1",
+ "version": "0.1.2",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -12,7 +12,7 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.0"
},
"devDependencies": {
"@hypit/hypit": "workspace:*"
diff --git a/packages/studio-companion/src/index.ts b/packages/studio-companion/src/index.ts
index 89baff82..5cf6bba2 100644
--- a/packages/studio-companion/src/index.ts
+++ b/packages/studio-companion/src/index.ts
@@ -727,11 +727,11 @@ export type StudioTemporalDomainCompanion = {
}) => string;
};
-/** One package-owned author declaration whose primary result is an absolute Window or Instant. */
+/** One package-owned author declaration whose primary result is an absolute Instant. */
export type StudioTemporalDeclarationDraft = {
readonly id: string;
readonly label?: string;
- /** Exact qualified output record selected by the owning Surface Companion. */
+ /** Exact qualified logical output selected by the owning Surface Companion. */
readonly output: string;
readonly range?: Range;
};
diff --git a/packages/studio/README.md b/packages/studio/README.md
index 40ed74a0..c1885ba6 100644
--- a/packages/studio/README.md
+++ b/packages/studio/README.md
@@ -152,12 +152,25 @@ Track/Item edit remain hidden rather than becoming a third semantic-content row.
no Narrative slot or Narrative-shaped fallback; a beat or shot package can contribute its own two
or more lanes without changing Studio.
-All package-declared primary Window and Instant outputs share one read-only declaration row. Their
-owning Surface Companions select the exact output ports; common Studio only resolves the absolute
-temporal values. Automatically derived Window boundaries, the Timeline's root range and internal
-helpers are not repeated as Items. The resulting time header is one ruler row, the lanes contributed
-by each exact Projection, and one common declaration row. Only the ruler is pinned while all rows
-scroll together with component Tracks.
+Package-declared primary Instant outputs share one read-only locator row. Their owning Surface
+Companions select the exact output ports; common Studio resolves the absolute time values. Windows
+remain available for authoring, Inspector references and Track/Item time editing; their consumed
+intervals are displayed by the corresponding Track Items rather than repeated in the common row.
+Automatically derived Window boundaries and internal helpers are not added as locators.
+The resulting time header is one ruler row, the lanes contributed
+by each exact Projection, and one common declaration row. They share one Hypit-logo `Timeline`
+label and stay pinned as a group while component Tracks scroll. Script's two rows and the common
+declaration row are each 15px high; with one Projection they form a compact three-row strip beneath
+the 22px ruler. Additional Projections contribute rows, not separate left-hand headers.
+
+Each declaration Companion requests its exact logical outputs for the locator row, including
+Instants that no Track consumes. After the Film display execution resolves, Studio evaluates those
+additional outputs through the same Compiler and display Executor. Already resolved logical outputs
+are reused as in-memory Run Candidates from that exact compilation; the user's Run and its targets
+are unchanged. The Runtime's existing transient-execution permissions still apply: displaying a
+locator does not submit a Build or enable generation Endpoints. Unresolved or failed locator work
+is reported in the Studio terminal without invalidating the Film preview. Only resolved Instants
+on the displayed Timeline are shown.
Domain items retain Companion projection order within each lane. Their fine borders distinguish
adjacent and overlapping intervals without inventing time gaps. Selection raises an object above
@@ -172,6 +185,18 @@ are opened at startup; restart this Studio process after changing those selectio
package code or imports that introduce new packages. Browser refresh does not reload
server-side package modules.
+Source watching uses the filesystem Workspace's absolute Source paths. Non-file identities are not
+resolved relative to Studio's working directory. Each successful Source compilation replaces the
+watched dependency set; removed imports stop triggering updates, and unused directory watchers close.
+A failed compilation retains the previous watch set so edits to its known files can still trigger a
+new compilation. Directory watching also handles editors that save by replacing the original file.
+
+If opening or maintaining a Source watcher fails, Studio reports the directory, cause and preview
+impact in the terminal. It does not poll or automatically retry the failed watcher. Restart Studio
+after correcting the underlying filesystem/resource problem; a browser refresh alone may still read
+the last compiled snapshot. Studio's own edit requests explicitly recompile and do not depend on
+filesystem notifications.
+
The Source pane can edit the selected `.svml`, `.svs` or `.svrun` file. The Inspector
shows project facts when no Item is selected and declared facts and author fields for
the selected Item. A reference can resolve to a shared Frame or Recipe, so one edit
diff --git a/packages/studio/locales/en.json b/packages/studio/locales/en.json
index 249a91e9..3f1b4c65 100644
--- a/packages/studio/locales/en.json
+++ b/packages/studio/locales/en.json
@@ -69,7 +69,7 @@
"one": "{count} item",
"other": "{count} items"
},
- "inspector.moment": "Moment",
+ "inspector.instant": "Instant",
"inspector.move-down": "Move down",
"inspector.move-up": "Move up",
"inspector.project": "Project",
diff --git a/packages/studio/locales/zh-CN.json b/packages/studio/locales/zh-CN.json
index 87f1f092..1d63b889 100644
--- a/packages/studio/locales/zh-CN.json
+++ b/packages/studio/locales/zh-CN.json
@@ -66,7 +66,7 @@
"inspector.how": "样式",
"inspector.invalid-fields": "请正确填写必填项后保存。",
"inspector.item-count": "{count} 项",
- "inspector.moment": "时刻",
+ "inspector.instant": "时刻",
"inspector.move-down": "下移",
"inspector.move-up": "上移",
"inspector.project": "项目",
diff --git a/packages/studio/package.json b/packages/studio/package.json
index f8be9a3d..c0f4c0aa 100644
--- a/packages/studio/package.json
+++ b/packages/studio/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/studio",
- "version": "0.1.1",
+ "version": "0.2.0",
"private": true,
"type": "module",
"exports": {
@@ -17,13 +17,17 @@
"LOCALIZATION.md"
],
"dependencies": {
- "@hypit/media-operations": "workspace:^",
- "@hypit/media-local": "workspace:^",
- "@hypit/studio-companion": "workspace:^",
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/html-program": "workspace:^0.1.0",
+ "@hypit/media-local": "workspace:^0.2.0",
+ "@hypit/media-operations": "workspace:^0.2.0",
+ "@hypit/studio-companion": "workspace:^0.1.1",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0",
"vite": "8.2.2"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/audio-track": "workspace:*",
diff --git a/packages/studio/src/companion-assembly.ts b/packages/studio/src/companion-assembly.ts
index 359d20ad..5d0cf4bb 100644
--- a/packages/studio/src/companion-assembly.ts
+++ b/packages/studio/src/companion-assembly.ts
@@ -4,7 +4,6 @@ import { studioContributionFromPackage } from "@hypit/studio-companion";
import { fallbackStudioTrackCompanions } from "./fallback-companions.js";
import { StudioCompanionRegistry } from "./studio-registry.js";
-import { commonTemporalStudioRelations } from "./common-temporal-relations.js";
/**
* Assemble the immutable Companion Registry for one Source closure.
@@ -30,7 +29,7 @@ export async function loadStudioCompanionRegistry(input: {
films: contributions.flatMap((item) => item.films),
temporalDomains: contributions.flatMap((item) => item.temporalDomains),
temporalDeclarations: contributions.flatMap((item) => item.temporalDeclarations),
- temporalRelations: [...commonTemporalStudioRelations, ...contributions.flatMap((item) => item.temporalRelations)],
+ temporalRelations: contributions.flatMap((item) => item.temporalRelations),
parameters: contributions.flatMap((item) => item.parameters),
},
);
diff --git a/packages/studio/src/fallback-companions.ts b/packages/studio/src/fallback-companions.ts
index 59dab2d6..7691a972 100644
--- a/packages/studio/src/fallback-companions.ts
+++ b/packages/studio/src/fallback-companions.ts
@@ -1,7 +1,7 @@
import type { StudioTrackCompanion, StudioTrackCompanionContext, StudioItemDraft } from "@hypit/studio-companion";
import { artifactPreview, previewLayer, temporalLineageFor, temporalDomainSource } from "@hypit/studio-companion";
-import { compositionTypes } from "@hypit/hypit/composition";
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { compositionTypes } from "@hypit/composition";
+import { timelineTypes } from "@hypit/timeline";
type TerminalVisualTrack = {
readonly presents?: readonly {
diff --git a/packages/studio/src/feedback-server.ts b/packages/studio/src/feedback-server.ts
index 775417e5..a542512d 100644
--- a/packages/studio/src/feedback-server.ts
+++ b/packages/studio/src/feedback-server.ts
@@ -1,4 +1,5 @@
import { watch } from "node:fs";
+import type { FSWatcher } from "node:fs";
import { relative } from "node:path";
import type { Plugin } from "vite";
import { createFeedbackStore, FeedbackConflict } from "./feedback-store.js";
@@ -16,12 +17,23 @@ export function studioFeedbackPlugin(workspaceRoot: string, runPath: string): Pl
return {
name: "hypit-studio-feedback",
configureServer(server) {
- const watcher = watch(workspaceRoot, (_event, filename) => {
- if (filename === null || filename.toString() === "FEEDBACK.json") {
- server.ws.send({ type: "custom", event: "studio:feedback-changed", data: {} });
- }
- });
- server.httpServer?.once("close", () => watcher.close());
+ let watcher: FSWatcher | undefined;
+ const watchFailed = (error: unknown): void => {
+ watcher?.close();
+ watcher = undefined;
+ server.config.logger.warn(`Studio cannot watch ${workspaceRoot}/FEEDBACK.json: ${error instanceof Error ? error.message : String(error)}. External comment edits require a browser refresh; restart Studio to restore watching.`);
+ };
+ try {
+ watcher = watch(workspaceRoot, (_event, filename) => {
+ if (filename === null || filename.toString() === "FEEDBACK.json") {
+ server.ws.send({ type: "custom", event: "studio:feedback-changed", data: {} });
+ }
+ });
+ watcher.on("error", watchFailed);
+ } catch (error) {
+ watchFailed(error);
+ }
+ server.httpServer?.once("close", () => watcher?.close());
server.middlewares.use((request, response, next) => {
if (new URL(request.url ?? "/", "http://studio.hypit.local").pathname !== "/__studio/feedback") return next();
if (request.method === "POST" && !allowsStudioMutation(request.headers)) {
diff --git a/packages/studio/src/preview/render.ts b/packages/studio/src/preview/render.ts
index 95781338..22c15224 100644
--- a/packages/studio/src/preview/render.ts
+++ b/packages/studio/src/preview/render.ts
@@ -1,8 +1,8 @@
-import type { Composition } from "@hypit/hypit/composition";
-import { compileHtmlProgram, materializeHtmlProgram } from "@hypit/hypit/html-program";
-import type { HtmlProgram } from "@hypit/hypit/html-program";
+import type { Composition } from "@hypit/composition";
+import { compileHtmlProgram, materializeHtmlProgram } from "@hypit/html-program";
+import type { HtmlProgram } from "@hypit/html-program";
import { compileAudioProgramPlan } from "@hypit/media-operations";
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import { injectRuntimeShim } from "./runtime-shim.js";
diff --git a/packages/studio/src/preview/runtime-shim.ts b/packages/studio/src/preview/runtime-shim.ts
index 3e4836bb..12107a80 100644
--- a/packages/studio/src/preview/runtime-shim.ts
+++ b/packages/studio/src/preview/runtime-shim.ts
@@ -1,4 +1,4 @@
-import { audioEnvelopeGainAt } from "@hypit/hypit/composition";
+import { audioEnvelopeGainAt } from "@hypit/composition";
/**
* Studio's frame driver for a compiled HTML renderer document.
diff --git a/packages/studio/src/projection.ts b/packages/studio/src/projection.ts
index bca5ea5c..79b69104 100644
--- a/packages/studio/src/projection.ts
+++ b/packages/studio/src/projection.ts
@@ -1,11 +1,10 @@
import type { BlobAttachment } from "@hypit/hypit/workspace";
import type { BlobRef, ResourceId, StoredValue } from "@hypit/hypit/protocol";
import { sameType } from "@hypit/hypit/protocol";
-import type { Composition } from "@hypit/hypit/composition";
-import { compositionTypes } from "@hypit/hypit/composition";
-import { timelineTypes, assertTimelineIdentity } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import type { Composition } from "@hypit/composition";
+import { compositionTypes } from "@hypit/composition";
+import { timelineTypes, assertTimelineIdentity } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import type { StudioObservedValue, StudioResolvedTrack, StudioTemporalBinding } from "@hypit/studio-companion";
import type { CliTransientExecution as RuntimeHostTransientExecution } from "@hypit/hypit/cli";
@@ -17,6 +16,7 @@ import type { StudioViewRequirement } from "./studio-preflight.js";
import { studioSurfacePreview } from "./surface-preview.js";
import { executedTemporalBindings } from "./temporal-graph.js";
import type { StudioCompanionRegistry } from "./studio-registry.js";
+import { resolveStudioDeclarations } from "./temporal-declarations.js";
function playable(type: import("@hypit/hypit/protocol").TypeRef): boolean {
return sameType(type, compositionTypes.visualTrack) || sameType(type, compositionTypes.audioTrack);
@@ -33,6 +33,7 @@ export type StudioProjection = {
readonly values: ReadonlyMap<string, unknown>;
readonly temporalDomainValues: readonly StudioObservedValue[];
readonly temporalValues: readonly StudioObservedValue[];
+ readonly declarationIssues: readonly string[];
readonly temporalBindings: ReadonlyMap<string, readonly StudioTemporalBinding[]>;
readonly composition: Composition;
readonly timingOutput?: { readonly name: string; readonly ref: string };
@@ -221,27 +222,24 @@ export async function resolveStudioProjection(input: {
const stored = selectedValue(executed.state, target.ref);
if (stored?.kind === "inline") values.set(target.ref, stored.value);
}
- // Author records from this compilation already carry exact qualified references.
- // Expose referenced inline values to Companions without guessing their owner by suffix.
- for (const record of input.source.compiled.program.records) {
- if (record.value.kind !== "inline") continue;
- if (input.projections.some((projection) => projection.trace.references
- .some((reference) => reference.ref === record.id))) {
- values.set(record.id, record.value.value);
+ // Companion traces carry exact qualified references. Resolve those references from
+ // the executed projection so deterministic upstream Producers are visible too.
+ for (const projection of input.projections) {
+ for (const reference of projection.trace.references) {
+ const stored = selectedValue(executed.state, reference.ref);
+ if (stored?.kind === "inline") values.set(reference.ref, stored.value);
}
}
const temporalValueTypes = input.registry.temporalDomainValueTypes();
const temporalDomainValues: StudioObservedValue[] = [];
- const temporalValues: StudioObservedValue[] = [];
+ const declarations = await resolveStudioDeclarations({
+ run: input.run, registry: input.registry, domain: input.domain,
+ resolved: executed.state, resources,
+ ...(input.transientExecution === undefined ? {} : { transientExecution: input.transientExecution }),
+ });
const temporalDomainValueIds = new Set<string>();
- const temporalValueIds = new Set<string>();
for (const record of [...executed.state.program.records, ...executed.state.records]) {
if (record.value.kind !== "inline") continue;
- if ((sameType(record.type, temporalTypes.instant) || sameType(record.type, temporalTypes.window))
- && !temporalValueIds.has(record.id)) {
- temporalValues.push({ id: record.id, type: record.type, value: record.value.value });
- temporalValueIds.add(record.id);
- }
if (!temporalValueTypes.some((type) => sameType(type, record.type))) continue;
values.set(record.id, record.value.value);
if (!temporalDomainValueIds.has(record.id)) {
@@ -256,7 +254,8 @@ export async function resolveStudioProjection(input: {
tracks,
values,
temporalDomainValues,
- temporalValues,
+ temporalValues: declarations.values,
+ declarationIssues: declarations.issues,
temporalBindings,
composition,
timingOutput: { name: timingOutput?.name ?? timeline.id, ref: input.timeRef },
diff --git a/packages/studio/src/server.ts b/packages/studio/src/server.ts
index c0ff6fcb..8af7fc53 100644
--- a/packages/studio/src/server.ts
+++ b/packages/studio/src/server.ts
@@ -1,8 +1,6 @@
-import { watch } from "node:fs";
-import type { FSWatcher } from "node:fs";
import { existsSync } from "node:fs";
import { readFile } from "node:fs/promises";
-import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
+import { isAbsolute, relative, resolve, sep } from "node:path";
import { Readable } from "node:stream";
import { pipeline } from "node:stream/promises";
@@ -26,6 +24,7 @@ import { findSurfacePreview } from "./surface-preview.js";
import { domainGestureSpan } from "./temporal-edit.js";
import { planTemporalInverse, temporalAuthorBindings } from "./temporal-inverse.js";
import { replaceSourceFiles } from "./source-transaction.js";
+import { createSourceWatch } from "./source-watch.js";
export type StudioPluginOptions = {
readonly source: string;
@@ -84,7 +83,7 @@ class StudioMutationRejected extends Error {}
export function studioPlugin(options: StudioPluginOptions): Plugin {
let snapshot: StudioSnapshot | undefined;
let visualHtml: string | undefined;
- let visualDocument: import("@hypit/hypit/html-program").HtmlProgram | undefined;
+ let visualDocument: import("@hypit/html-program").HtmlProgram | undefined;
let failure: StudioFailure | undefined;
let material: ReadonlyMap<string, ServedFile> = new Map();
let temporalEdit: StudioSession["temporalEdit"] | undefined;
@@ -96,8 +95,10 @@ export function studioPlugin(options: StudioPluginOptions): Plugin {
let requestedRevision = 0;
let currentSource = options.source;
let allowedSourceFiles = new Set<string>();
- const watched = new Map<string, FSWatcher>();
- const watchedFiles = new Set<string>();
+ const sourceWatch = createSourceWatch(
+ () => { if (!mutating) schedule(); },
+ message => server?.config.logger.warn(message),
+ );
const storyboards = new Map<string, Promise<StudioStoryboard>>();
const readLibrary = async (request: StudioLibraryRequest): Promise<StudioLibraryView> => {
@@ -109,27 +110,6 @@ export function studioPlugin(options: StudioPluginOptions): Plugin {
};
};
- const watchSource = (path: string): void => {
- const absolute = resolve(path);
- watchedFiles.add(absolute);
- const directory = dirname(absolute);
- if (watched.has(directory)) return;
- try {
- const watcher = watch(directory, (_event, filename) => {
- const changed = filename === null ? undefined : resolve(directory, filename.toString());
- if (!mutating && (changed === undefined || watchedFiles.has(changed))) schedule();
- });
- watcher.on("error", () => {
- watcher.close();
- if (watched.get(directory) === watcher) watched.delete(directory);
- });
- watched.set(directory, watcher);
- } catch {
- // Some Hosts may report virtual Source ids. They are still recompiled
- // whenever a real Source revision is scheduled; they simply emit no file event.
- }
- };
-
const publish = async (attempt: number, notify = true): Promise<void> => {
publishing += 1;
try {
@@ -142,9 +122,12 @@ export function studioPlugin(options: StudioPluginOptions): Plugin {
registry: options.registry,
...(options.buildLibrary === undefined ? {} : { buildLibrary: options.buildLibrary }),
});
+ if (attempt !== requestedRevision) return;
currentSource = run.authorSource;
- watchSource(options.runPath);
- for (const unit of run.source.compiled.closure.units) watchSource(unit.id);
+ sourceWatch.replace([
+ resolve(options.runPath), resolve(run.authorSource),
+ ...run.source.compiled.closure.units.map(unit => unit.id),
+ ]);
allowedSourceFiles = new Set([
options.runPath,
run.authorSource,
@@ -162,6 +145,7 @@ export function studioPlugin(options: StudioPluginOptions): Plugin {
workspaceRoot: options.workspaceRoot,
});
if (attempt !== requestedRevision) return;
+ for (const issue of result.declarationIssues) server?.config.logger.warn(issue);
revision = attempt;
snapshot = result.snapshot;
visualHtml = result.visualHtml;
@@ -474,8 +458,7 @@ export function studioPlugin(options: StudioPluginOptions): Plugin {
name: "hypit-studio",
configureServer(value) {
server = value;
- watchSource(options.runPath);
- watchSource(currentSource);
+ sourceWatch.replace([resolve(options.runPath), resolve(currentSource)]);
value.middlewares.use((request, response, next) => {
const url = new URL(request.url ?? "/", "http://studio.hypit.local");
if (request.method === "PUT" && url.pathname === "/__studio/source") {
@@ -809,8 +792,8 @@ export function studioPlugin(options: StudioPluginOptions): Plugin {
});
},
async closeBundle() {
- for (const watcher of watched.values()) watcher.close();
- watched.clear();
+ if (timer !== undefined) clearTimeout(timer);
+ sourceWatch.close();
await options.buildLibrary?.close();
},
};
diff --git a/packages/studio/src/session.ts b/packages/studio/src/session.ts
index e4172af0..f4c4dd69 100644
--- a/packages/studio/src/session.ts
+++ b/packages/studio/src/session.ts
@@ -48,8 +48,9 @@ function sourceFiles(run: RunPlan): readonly StudioSourceFile[] {
}
export type StudioSession = {
+ readonly declarationIssues: readonly string[];
readonly snapshot: StudioSnapshot;
- readonly document: import("@hypit/hypit/html-program").HtmlProgram;
+ readonly document: import("@hypit/html-program").HtmlProgram;
readonly visualHtml: string;
readonly material: ReadonlyMap<string, ServedFile>;
readonly observations: Observations;
@@ -95,6 +96,7 @@ export async function readStudioSession(input: {
const text = readFileSync(input.run.authorSource, "utf8");
const files = sourceFiles(input.run);
return {
+ declarationIssues: built.declarationIssues,
document: rendered.document,
visualHtml: rendered.html,
snapshot: snapshot(input.registry, built, {
diff --git a/packages/studio/src/snapshot-cli.ts b/packages/studio/src/snapshot-cli.ts
index b9c7dd53..219e01a1 100644
--- a/packages/studio/src/snapshot-cli.ts
+++ b/packages/studio/src/snapshot-cli.ts
@@ -8,9 +8,9 @@ import {
selectCliProvider,
} from "@hypit/hypit/cli";
import type { CliApplicationContext, CliIo } from "@hypit/hypit/cli";
-import { assertHtmlProgram, selectHtmlArtifacts } from "@hypit/hypit/html-program";
-import type { HtmlProgram } from "@hypit/hypit/html-program";
-import { htmlFrameRequest, htmlProgramCapabilities, htmlProgramTypes, verifyHtmlFrameImages } from "@hypit/hypit/html-program";
+import { assertHtmlProgram, selectHtmlArtifacts } from "@hypit/html-program";
+import type { HtmlProgram } from "@hypit/html-program";
+import { htmlFrameRequest, htmlProgramCapabilities, htmlProgramTypes, verifyHtmlFrameImages } from "@hypit/html-program";
import type { Need } from "@hypit/hypit/protocol";
import { snapshotFrameLabel, writeFrameGrid } from "@hypit/media-local";
diff --git a/packages/studio/src/snapshot.ts b/packages/studio/src/snapshot.ts
index 98803945..bb114c89 100644
--- a/packages/studio/src/snapshot.ts
+++ b/packages/studio/src/snapshot.ts
@@ -8,10 +8,10 @@ import { composeParameterDeclarations } from "./parameters.js";
import { relative } from "node:path";
import type { MarkupSurfaceRegistryLike } from "@hypit/hypit/markup";
-import { compositionTypes } from "@hypit/hypit/composition";
-import { timelineFrameCount } from "@hypit/hypit/timeline";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import type { TemporalInstant, TemporalWindow } from "@hypit/hypit/temporal";
+import { compositionTypes } from "@hypit/composition";
+import { timelineFrameCount } from "@hypit/timeline";
+import { temporalTypes } from "@hypit/temporal";
+import type { TemporalInstant } from "@hypit/temporal";
import { sameModule, sameType } from "@hypit/hypit/protocol";
import type {
@@ -40,6 +40,8 @@ type Present = {
readonly z: number;
};
+const timelineBandHeightPx = 15;
+
/** Sound is placed in samples rather than frames, in the canonical 48 kHz. */
const SAMPLE_RATE = 48_000;
@@ -117,7 +119,7 @@ function temporalDomains(
});
}
-/** All package-declared absolute author values share one read-only Timeline row. */
+/** Package-declared Instants share one read-only Timeline row. */
function temporalDeclarationDomain(
registry: StudioCompanionRegistry,
built: StudioProjection,
@@ -132,23 +134,8 @@ function temporalDeclarationDomain(
for (const { placement, draft } of declarations) {
if (seen.has(draft.output)) continue;
const found = values.get(draft.output);
- if (found === undefined) continue;
+ if (found === undefined || !sameType(found.type, temporalTypes.instant)) continue;
const range = placement.sourcePath === source.path ? draft.range : undefined;
- if (sameType(found.type, temporalTypes.window)) {
- const value = found.value as TemporalWindow;
- if (value.start.timelineId !== built.timeline.id || value.end.timelineId !== built.timeline.id) continue;
- const startAnchorId = `${draft.output}:start`;
- const endAnchorId = `${draft.output}:end`;
- anchors.push({ id: startAnchorId, kind: "window-start", frame: value.span.startFrame },
- { id: endAnchorId, kind: "window-end", frame: value.span.endFrameExclusive });
- items.push({ kind: "span", appearance: "block", id: draft.output, laneId: "declarations",
- label: draft.label ?? draft.id, startAnchorId, endAnchorId,
- startFrame: value.span.startFrame, endFrameExclusive: value.span.endFrameExclusive,
- ...(range === undefined ? {} : { range }) });
- seen.add(draft.output);
- continue;
- }
- if (!sameType(found.type, temporalTypes.instant)) continue;
const value = found.value as TemporalInstant;
if (value.timelineId !== built.timeline.id) continue;
const anchorId = `${draft.output}:point`;
@@ -170,8 +157,8 @@ function temporalDeclarationDomain(
id: "absolute-declarations",
companion: "studio#absolute-declarations",
timelineId: built.timeline.id,
- presentation: { family: "temporal", tone: "teal", label: "Windows & Instants", icon: "timeline" },
- lanes: [{ id: "declarations", label: "Windows & Instants", heightPx: 26 }],
+ presentation: { family: "temporal", tone: "teal", label: "Instants", icon: "timeline" },
+ lanes: [{ id: "declarations", label: "Instants", heightPx: timelineBandHeightPx }],
anchors,
items,
editItems: [],
diff --git a/packages/studio/src/source-watch.ts b/packages/studio/src/source-watch.ts
new file mode 100644
index 00000000..563f6dbf
--- /dev/null
+++ b/packages/studio/src/source-watch.ts
@@ -0,0 +1,53 @@
+import { watch } from "node:fs";
+import type { FSWatcher } from "node:fs";
+import { dirname, isAbsolute, resolve } from "node:path";
+
+/** Local Studio watches canonical filesystem Sources, not arbitrary Source identities. */
+export function createSourceWatch(changed: () => void, warn: (message: string) => void) {
+ let closed = false;
+ let files = new Set<string>();
+ const directories = new Map<string, { watcher?: FSWatcher }>();
+
+ return {
+ replace(sources: readonly string[]): void {
+ if (closed) return;
+ // The filesystem Workspace uses absolute paths as canonical ids. Do not turn
+ // virtual ids into cwd-relative filenames, or mistake a deleted file for a virtual id.
+ files = new Set(sources.filter(isAbsolute).map(path => resolve(path)));
+ const selected = new Set([...files].map(path => dirname(path)));
+ for (const [directory, entry] of directories) {
+ if (selected.has(directory)) continue;
+ directories.delete(directory);
+ entry.watcher?.close();
+ }
+ for (const directory of selected) {
+ if (directories.has(directory)) continue;
+ const entry: { watcher?: FSWatcher } = {};
+ directories.set(directory, entry);
+ const failed = (error: unknown): void => {
+ if (directories.get(directory) !== entry) return;
+ entry.watcher?.close();
+ delete entry.watcher;
+ warn(`Studio cannot watch Source directory ${directory}: ${error instanceof Error ? error.message : String(error)}. External Source edits in this directory may not update the preview. Browser refresh does not recompile Sources; restart Studio to restore watching.`);
+ };
+ try {
+ entry.watcher = watch(directory, (_event, filename) => {
+ if (directories.get(directory) !== entry || entry.watcher === undefined) return;
+ if (filename === null || files.has(resolve(directory, filename.toString()))) changed();
+ });
+ entry.watcher.on("error", failed);
+ } catch (error) {
+ failed(error);
+ }
+ }
+ },
+ close(): void {
+ closed = true;
+ files.clear();
+ for (const [directory, entry] of directories) {
+ directories.delete(directory);
+ entry.watcher?.close();
+ }
+ },
+ };
+}
diff --git a/packages/studio/src/studio-preflight.ts b/packages/studio/src/studio-preflight.ts
index 9b72da7a..182c75d6 100644
--- a/packages/studio/src/studio-preflight.ts
+++ b/packages/studio/src/studio-preflight.ts
@@ -1,7 +1,7 @@
import type { Candidate } from "@hypit/hypit/protocol";
import { sameType } from "@hypit/hypit/protocol";
import type { StudioFilmCompanion } from "@hypit/studio-companion";
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { timelineTypes } from "@hypit/timeline";
import type { CompiledSource } from "./compile.js";
import type { Placement } from "./observe.js";
@@ -137,7 +137,7 @@ export function inspectStudioRun(
});
const timeOutput = times[0];
if (times.length !== 1) issues.push("Film requires one traceable time source.");
- const semanticOutput = timeOutput !== undefined && sameType(timeOutput.typeRef, timelineTypes.timeline) ? timeOutput : undefined;
+ const timelineOutput = timeOutput !== undefined && sameType(timeOutput.typeRef, timelineTypes.timeline) ? timeOutput : undefined;
let companionValueRefs: readonly string[] = [];
try {
companionValueRefs = unique(filmTrackRefs.flatMap((ref) =>
@@ -149,7 +149,7 @@ export function inspectStudioRun(
const projectionRefs = unique([
...filmTrackRefs,
- ...(semanticOutput !== undefined && sameType(semanticOutput.typeRef, timelineTypes.timeline) ? [semanticOutput.ref] : []),
+ ...(timelineOutput === undefined ? [] : [timelineOutput.ref]),
...companionValueRefs,
]);
const projections: StudioViewRequirement[] = [];
diff --git a/packages/studio/src/studio-registry.ts b/packages/studio/src/studio-registry.ts
index bfa82f3d..95bb6533 100644
--- a/packages/studio/src/studio-registry.ts
+++ b/packages/studio/src/studio-registry.ts
@@ -21,7 +21,7 @@ import type {
} from "@hypit/studio-companion";
import { studioParameterControls } from "@hypit/studio-companion";
import { parameterOption } from "./parameter-values.js";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { sameModule, sameType } from "@hypit/hypit/protocol";
import type { ModuleRef, ProducerRef, TypeRef } from "@hypit/hypit/protocol";
diff --git a/packages/studio/src/style.css b/packages/studio/src/style.css
index 42767cb2..e793464e 100644
--- a/packages/studio/src/style.css
+++ b/packages/studio/src/style.css
@@ -38,12 +38,10 @@
--tone-teal: #008889;
--tone-teal-rail: #00d4d5;
/* Semantic ruler: brightness separates content from its own band; hue marks state. */
- --temporal-domain-segment: light-dark(#9cc5c1, #417370);
+ --temporal-domain-block: light-dark(#9cc5c1, #417370);
--temporal-domain-compact: light-dark(#b5d4d0, #005551);
--temporal-domain-ink: light-dark(#1d4744, #eef0f3);
/* Author intent uses a gold annotation hue; brand pink stays in the chrome. */
- --temporal-domain-intent: light-dark(#dcc570, #a28b2b);
- --temporal-domain-intent-ink: light-dark(#5a4700, #fff);
--temporal-domain-point: var(--brand-500);
/* Same perceived active level as a selected/covered temporal-domain item. */
--temporal-domain-current: #009f98;
@@ -1187,7 +1185,9 @@ button:focus-visible, textarea:focus-visible {
.tick-last { padding-right: 4px; padding-left: 0; border-right: 1px solid light-dark(#c4c0b9, #45484e); border-left: 0; transform: translateX(-100%); }
.lanes { min-height: 0; cursor: default; }
.lane { position: relative; isolation: isolate; min-height: 0; overflow: hidden; border-bottom: 1px solid light-dark(#ebe8e4, #191b1f); background: var(--lane); }
-.temporal-domain-lane { position: relative; min-height: 0; border-bottom: 1px solid var(--line); background: var(--lane); }
+.temporal-domain-group { position: sticky; top: var(--timeline-ruler-height); z-index: 8; background: var(--lane); }
+.temporal-domain-lane { position: relative; min-height: 0; border-bottom: 0; background: var(--lane); }
+.temporal-domain-lane:last-child { border-bottom: 1px solid var(--line); }
.temporal-domain-band {
position: absolute;
right: 0;
@@ -1225,22 +1225,18 @@ button:focus-visible, textarea:focus-visible {
}
.temporal-domain-cell:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px light-dark(#00000059, #ffffff60); }
.temporal-domain-block {
- --temporal-domain-cell: var(--temporal-domain-segment);
+ --temporal-domain-cell: var(--temporal-domain-block);
}
.temporal-domain-compact {
--temporal-domain-cell: var(--temporal-domain-compact);
color: light-dark(var(--temporal-domain-ink), #e7e8eb);
}
-.temporal-domain-span {
- --temporal-domain-cell: var(--temporal-domain-intent);
- color: var(--temporal-domain-intent-ink);
-}
.temporal-domain-cell.live { filter: brightness(1.12); }
.temporal-domain-cell.selected { z-index: 4; filter: brightness(1.16); box-shadow: inset 0 0 0 1px light-dark(#00000059, #ffffff60); }
.temporal-domain-point.selected { z-index: 5; filter: brightness(1.16); box-shadow: inset 0 0 0 1px light-dark(#00000059, #ffffff60); }
:root[data-theme="light"] .temporal-domain-cell.live { filter: brightness(.94); }
:root[data-theme="light"] :is(.temporal-domain-cell, .temporal-domain-point).selected { filter: brightness(.9); }
-.temporal-domain-span-label {
+.temporal-domain-block-label {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
@@ -1250,15 +1246,6 @@ button:focus-visible, textarea:focus-visible {
font-weight: 500;
white-space: nowrap;
}
-.temporal-domain-span-label {
- display: block;
- overflow: hidden;
- text-overflow: clip;
- color: var(--temporal-domain-intent-ink);
- font-size: 11px;
- font-weight: 500;
- white-space: nowrap;
-}
.temporal-domain-compact.current { background: var(--temporal-domain-current); color: #fff; }
.temporal-domain-compact-label {
display: none;
@@ -1296,7 +1283,7 @@ button:focus-visible, textarea:focus-visible {
background: var(--temporal-domain-point);
}
.temporal-domain-point:focus-visible { outline: 0; }
-.track-label-temporal-domain { position: relative; border-bottom: 1px solid var(--line); background: light-dark(#faf9f7, #111216); }
+.track-label-temporal-domain { position: sticky; top: 0; z-index: 8; border-bottom: 1px solid var(--line); background: light-dark(#faf9f7, #111216); }
.track-label-temporal-domain::before { display: none; }
.track-label-attached {
/* The branch marker occupies the same 18px prefix as a root icon;
diff --git a/packages/studio/src/temporal-declarations.ts b/packages/studio/src/temporal-declarations.ts
new file mode 100644
index 00000000..9eccbe80
--- /dev/null
+++ b/packages/studio/src/temporal-declarations.ts
@@ -0,0 +1,79 @@
+import type { ResourceStore } from "@hypit/hypit/runtime";
+import type { BuildState, Candidate } from "@hypit/hypit/protocol";
+import { sameType } from "@hypit/hypit/protocol";
+import { temporalTypes } from "@hypit/temporal";
+import type { StudioObservedValue } from "@hypit/studio-companion";
+import type { CliTransientExecution } from "@hypit/hypit/cli";
+import type { StudioDomain } from "./domain.js";
+import { executeStudioProjection } from "./execute.js";
+import type { RunPlan } from "./run.js";
+import type { StudioCompanionRegistry } from "./studio-registry.js";
+
+/** Author declarations name logical outputs, not the records selected by a Run. */
+export function observedTemporalValues(state: BuildState): readonly StudioObservedValue[] {
+ const records = new Map([...state.program.records, ...state.records].map((record) => [record.id, record]));
+ const values = new Map<string, StudioObservedValue>();
+ const observe = (id: string, record: typeof state.records[number] | undefined): void => {
+ if (record?.value.kind !== "inline"
+ || !(sameType(record.type, temporalTypes.instant) || sameType(record.type, temporalTypes.window))) return;
+ values.set(id, { id, type: record.type, value: record.value.value });
+ };
+ for (const record of records.values()) observe(record.id, record);
+ for (const binding of state.plan.outputBindings) observe(binding.output, records.get(binding.record));
+ return [...values.values()];
+}
+
+/** Read-only display requests supplement, but never become prerequisites of, the Film. */
+export async function resolveStudioDeclarations(input: {
+ readonly run: RunPlan;
+ readonly registry: StudioCompanionRegistry;
+ readonly domain: StudioDomain;
+ readonly resolved: BuildState;
+ readonly resources: ResourceStore;
+ readonly transientExecution?: CliTransientExecution;
+}): Promise<{ readonly values: readonly StudioObservedValue[]; readonly issues: readonly string[] }> {
+ const values = observedTemporalValues(input.resolved);
+ const available = new Set(values.map(value => value.id));
+ const targets = [...new Set(input.run.source.observations.placements.flatMap(placement =>
+ input.registry.projectTemporalDeclarations(placement).map(draft => draft.output)))];
+ const missing = targets.filter(output => !available.has(output));
+ if (missing.length === 0) return { values, issues: [] };
+
+ // Reuse exact logical outputs from this same compilation through ordinary Run Candidates.
+ // No cross-revision cache or inferred correspondence is involved.
+ const records = new Map(input.resolved.records.map(record => [record.id, record]));
+ const authored = new Set(input.resolved.program.records.map(record => record.id));
+ const candidates = new Map<string, Candidate>();
+ const satisfactions = new Map(input.run.run.graph.satisfactions.map(item => [item.output, item]));
+ for (const binding of input.resolved.plan.outputBindings) {
+ const record = records.get(binding.record);
+ if (record === undefined || authored.has(record.id)) continue;
+ const id = `studio:resolved:${record.id}`;
+ candidates.set(id, { id, type: record.type, root: { kind: "value", value: { id: `${id}:value`, value: record.value } } });
+ satisfactions.set(binding.output, { output: binding.output, candidate: id });
+ }
+ try {
+ const planned = input.run.plan({
+ ...input.run.run,
+ graph: {
+ ...input.run.run.graph,
+ candidates: [...input.run.run.graph.candidates, ...candidates.values()],
+ satisfactions: [...satisfactions.values()],
+ },
+ }, missing);
+ const executed = await executeStudioProjection(input.domain, planned.state, input.resources, input.transientExecution);
+ const observed = new Map(values.map(value => [value.id, value]));
+ for (const value of observedTemporalValues(executed.state)) observed.set(value.id, value);
+ const unresolved = missing.filter(output => !observed.has(output));
+ return {
+ values: [...observed.values()],
+ issues: unresolved.length === 0 ? [] : [
+ `Studio timeline locators are unresolved: ${unresolved.join(", ")}.`,
+ ...executed.errors,
+ ...executed.unserved.map(item => `Unavailable display capability: ${item.capability}.`),
+ ],
+ };
+ } catch (error) {
+ return { values, issues: [`Studio timeline locators could not be evaluated: ${error instanceof Error ? error.message : String(error)}`] };
+ }
+}
diff --git a/packages/studio/src/temporal-edit.ts b/packages/studio/src/temporal-edit.ts
index e5012815..2af129bb 100644
--- a/packages/studio/src/temporal-edit.ts
+++ b/packages/studio/src/temporal-edit.ts
@@ -137,14 +137,3 @@ export function chooseDomainGesture(input: {
}
return undefined;
}
-
-
-/** Keep the reference and write its local frame offset; a bare reference starts at zero. */
-export function formatTemporalPointEdit(
- reference: StudioTemporalInstantProjection["reference"], desired: number, base?: number,
-): string {
- if (reference === "absolute") return `${desired}f`;
- if (base === undefined) throw new Error(`The ${reference} projection base is unavailable.`);
- const offset = desired - base;
- return `${reference}${offset >= 0 ? "+" : ""}${offset}f`;
-}
diff --git a/packages/studio/src/temporal-graph.ts b/packages/studio/src/temporal-graph.ts
index 9be7b868..3acebabc 100644
--- a/packages/studio/src/temporal-graph.ts
+++ b/packages/studio/src/temporal-graph.ts
@@ -1,6 +1,6 @@
import { sameType } from "@hypit/hypit/protocol";
import type { BuildState, ProducerRef, ProducerStep, StoredValue, TypeRef, TypedRecord } from "@hypit/hypit/protocol";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { temporalTypes } from "@hypit/temporal";
import type {
StudioTemporalBinding,
StudioTemporalInstantProjection,
diff --git a/packages/studio/src/temporal-inverse.ts b/packages/studio/src/temporal-inverse.ts
index aa635e9d..027106be 100644
--- a/packages/studio/src/temporal-inverse.ts
+++ b/packages/studio/src/temporal-inverse.ts
@@ -2,7 +2,7 @@ import { isAbsolute, relative, resolve } from "node:path";
import type { BuildState, ProducerStep, StoredValue, TypedRecord } from "@hypit/hypit/protocol";
import { sameType } from "@hypit/hypit/protocol";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { temporalTypes } from "@hypit/temporal";
import type {
StudioSourceBinding,
StudioTemporalConstraint,
diff --git a/packages/studio/src/ui/main.ts b/packages/studio/src/ui/main.ts
index c5e68eac..72df6355 100644
--- a/packages/studio/src/ui/main.ts
+++ b/packages/studio/src/ui/main.ts
@@ -909,7 +909,7 @@ function renderTemporalDomainInspector(snapshot: StudioSnapshot, companion: stri
return;
}
const endpoints: readonly (readonly [Message, string])[] = item.kind === "point"
- ? [["inspector.moment", item.anchorId]]
+ ? [["inspector.instant", item.anchorId]]
: [["inspector.start", item.startAnchorId], ["inspector.end", item.endAnchorId]];
const rows = endpoints.map(([label, anchorId]) => {
const anchor = domain.anchors.find((candidate) => candidate.id === anchorId)!;
diff --git a/packages/studio/src/ui/timeline.ts b/packages/studio/src/ui/timeline.ts
index 1e6bfb24..a892c81c 100644
--- a/packages/studio/src/ui/timeline.ts
+++ b/packages/studio/src/ui/timeline.ts
@@ -28,6 +28,7 @@ const labelFont = '500 11px -apple-system, BlinkMacSystemFont, "SF Pro Text", "H
const textMeasure = document.createElement("canvas").getContext("2d");
const textWidths = new Map<string, number>();
const wordLabelPaddingPx = 5;
+const wordLabelEnterBufferPx = 1;
function measuredText(value: string, font = labelFont): number {
const key = `${font}\u0000${value}`;
@@ -168,6 +169,7 @@ export function createTimeline(store: Store): Timeline {
readonly kind: "span" | "point";
readonly appearance: "block" | "compact" | "marker";
}[] = [];
+ const readableWordLabels = new Set<string>();
const playheadFraction = (): number => {
if (state === undefined) return 0.5;
@@ -283,7 +285,7 @@ export function createTimeline(store: Store): Timeline {
};
lanes.addEventListener("pointerdown", (event) => {
pointerDownOnItem = (event.target as HTMLElement).closest(
- ".studio-item, .temporal-domain-block, .temporal-domain-compact, .temporal-domain-span, .temporal-domain-point",
+ ".studio-item, .temporal-domain-block, .temporal-domain-compact, .temporal-domain-point",
) !== null;
pointerDownX = event.clientX;
pointerArmed = true;
@@ -495,21 +497,17 @@ export function createTimeline(store: Store): Timeline {
const buildTemporalDomainLane = (
snapshot: StudioSnapshot,
domain: StudioSnapshot["temporalDomains"][number],
+ group: HTMLElement,
+ insetTop: number,
+ insetBottom: number,
): void => {
if (domain.lanes.length === 0) return;
- const laneHeight = domain.lanes.reduce((height, lane) => height + lane.heightPx, itemMetrics.insetYPx * 2);
- const label = createTrackLabel(domain.presentation.label ?? domain.id, domain.presentation.tone,
- domain.presentation.icon, "", laneHeight);
- label.title = `${domain.items.length} temporal items`;
- label.classList.add("track-label-temporal-domain");
- label.style.height = `${laneHeight}px`;
- labels.append(label);
-
+ const laneHeight = domain.lanes.reduce((height, lane) => height + lane.heightPx, insetTop + insetBottom);
const lane = document.createElement("div");
lane.className = `lane temporal-domain-lane track-tone-${domain.presentation.tone}`;
lane.style.height = `${laneHeight}px`;
const bands = new Map<string, HTMLElement>();
- let bandTop = itemMetrics.insetYPx;
+ let bandTop = insetTop;
for (const description of domain.lanes) {
const band = document.createElement("div");
band.className = "temporal-domain-band";
@@ -533,7 +531,7 @@ export function createTimeline(store: Store): Timeline {
if (node instanceof HTMLButtonElement) node.type = "button";
node.className = item.kind === "point" ? "temporal-domain-point"
: item.appearance === "compact" ? "temporal-domain-cell temporal-domain-compact"
- : "temporal-domain-cell temporal-domain-span";
+ : "temporal-domain-cell temporal-domain-block";
node.style.left = `${from * 100}%`;
if (item.kind === "span") node.style.width = `max(${item.appearance === "compact" ? 1 : 2}px, ${Math.max(0, to - from) * 100}%)`;
node.title = item.label;
@@ -542,13 +540,21 @@ export function createTimeline(store: Store): Timeline {
const content = document.createElement("span");
content.className = "temporal-domain-cell-content";
const text = document.createElement("span");
- text.className = item.appearance === "compact" ? "temporal-domain-compact-label" : "temporal-domain-span-label";
+ text.className = item.appearance === "compact" ? "temporal-domain-compact-label" : "temporal-domain-block-label";
text.textContent = item.label;
content.append(text);
node.append(content);
if (item.appearance === "compact") {
const widthPx = Math.max(1, (to - from) * lanes.clientWidth);
- node.classList.toggle("word-label-visible", widthPx - wordLabelPaddingPx * 2 >= measuredText(item.label));
+ const textWidthPx = measuredText(item.label);
+ const identity = `${domain.companion}:${domain.id}:${item.id}`;
+ const fitsCell = widthPx - wordLabelPaddingPx * 2 >= textWidthPx
+ + (readableWordLabels.has(identity) ? 0 : wordLabelEnterBufferPx);
+ if (fitsCell) readableWordLabels.add(identity);
+ else readableWordLabels.delete(identity);
+ const fitsViewport = from >= 0
+ && from * lanes.clientWidth + wordLabelPaddingPx * 2 + textWidthPx <= lanes.clientWidth;
+ node.classList.toggle("word-label-visible", fitsCell && fitsViewport);
}
}
node.addEventListener("click", (event) => {
@@ -597,7 +603,7 @@ export function createTimeline(store: Store): Timeline {
overlapMenu = menu;
menu.querySelector("button")?.focus();
});
- rows.append(lane);
+ group.append(lane);
domainNodes = [...domainNodes, ...nextNodes];
};
@@ -718,11 +724,34 @@ export function createTimeline(store: Store): Timeline {
labels.replaceChildren();
rows.replaceChildren();
domainNodes = [];
- const corner = document.createElement("div");
- corner.className = "label-corner";
- userText(corner, "");
- labels.append(corner);
- for (const domain of snapshot.temporalDomains) buildTemporalDomainLane(snapshot, domain);
+ const temporalDomains = snapshot.temporalDomains.filter((domain) => domain.lanes.length > 0);
+ if (temporalDomains.length > 0) {
+ const temporalHeight = temporalDomains.reduce((height, domain) => height
+ + domain.lanes.reduce((domainHeight, lane) => domainHeight + lane.heightPx, 0), itemMetrics.insetYPx * 2);
+ const temporalLabel = createTrackLabel("", "teal", "brand", "", temporalHeight);
+ userText(temporalLabel.querySelector("strong")!, "Timeline");
+ temporalLabel.title = `${temporalDomains.reduce((count, domain) => count + domain.items.length, 0)} temporal items`;
+ temporalLabel.classList.add("track-label-temporal-domain");
+ temporalLabel.style.height = `calc(var(--timeline-ruler-height) + ${temporalHeight}px)`;
+ labels.append(temporalLabel);
+ } else {
+ const corner = document.createElement("div");
+ corner.className = "label-corner";
+ userText(corner, "");
+ labels.append(corner);
+ }
+ if (temporalDomains.length > 0) {
+ const group = document.createElement("div");
+ group.className = "temporal-domain-group";
+ temporalDomains.forEach((domain, index) => buildTemporalDomainLane(
+ snapshot,
+ domain,
+ group,
+ index === 0 ? itemMetrics.insetYPx : 0,
+ index === temporalDomains.length - 1 ? itemMetrics.insetYPx : 0,
+ ));
+ rows.append(group);
+ }
const nextItemNodes: { node: HTMLElement; start: number; end: number; id: string; selectionGroup?: string }[] = [];
for (const track of snapshot.tracks) {
const attachedTo = track.binding.lane.attachedTo;
diff --git a/packages/studio/test/companion-assembly.test.ts b/packages/studio/test/companion-assembly.test.ts
index fc1104d7..d2e20aef 100644
--- a/packages/studio/test/companion-assembly.test.ts
+++ b/packages/studio/test/companion-assembly.test.ts
@@ -3,6 +3,8 @@ import test from "node:test";
import { compositionTypes } from "@hypit/composition";
import { createStudioTrackCompanionFacet } from "@hypit/studio-companion";
+import { loadNodePackageSelection } from "@hypit/hypit/loader/node";
+import { temporalProducers } from "@hypit/temporal";
import { loadStudioCompanionRegistry } from "../src/companion-assembly.js";
@@ -28,3 +30,12 @@ test("a Source-selected package contributes its Companion without a second Studi
"@project/cards#cards",
);
});
+
+test("Temporal supplies its inverse relations only when the Source selects the package", async () => {
+ const distributionPackageRoot = process.cwd();
+ const empty = await loadStudioCompanionRegistry({ distributionPackageRoot, sourcePackages: [] });
+ assert.equal(empty.temporalRelationFor(temporalProducers.composeWindow, "window"), undefined);
+ const sourcePackages = await loadNodePackageSelection(["@hypit/temporal"], distributionPackageRoot);
+ const registry = await loadStudioCompanionRegistry({ distributionPackageRoot, sourcePackages });
+ assert.ok(registry.temporalRelationFor(temporalProducers.composeWindow, "window"));
+});
diff --git a/packages/studio/test/mutation-origin.test.ts b/packages/studio/test/mutation-origin.test.ts
index db792b96..f2a7cdac 100644
--- a/packages/studio/test/mutation-origin.test.ts
+++ b/packages/studio/test/mutation-origin.test.ts
@@ -8,6 +8,7 @@ import { syncBuiltinESMExports } from "node:module";
import { tmpdir } from "node:os";
import { join } from "node:path";
import test from "node:test";
+import { EventEmitter } from "node:events";
import type { ViteDevServer } from "vite";
import { studioFeedbackPlugin } from "../src/feedback-server.js";
import { allowsStudioMutation } from "../src/mutation-origin.js";
@@ -25,7 +26,7 @@ test("Studio mutations reject other pages even when they use a loopback hostname
});
test("the feedback write endpoint rejects a foreign page before reading its mutation", async (t) => {
- t.mock.method(fs, "watch", () => ({ close() {} }) as FSWatcher);
+ t.mock.method(fs, "watch", () => Object.assign(new EventEmitter(), { close() {} }) as FSWatcher);
syncBuiltinESMExports();
t.after(() => { t.mock.restoreAll(); syncBuiltinESMExports(); });
const root = await mkdtemp(join(tmpdir(), "hypit-studio-origin-"));
@@ -55,3 +56,30 @@ test("the feedback write endpoint rejects a foreign page before reading its muta
await rm(root, { recursive: true, force: true });
}
});
+
+for (const failure of ["opening", "watching"] as const) {
+ test(`feedback watch failure while ${failure} warns without disabling the endpoint`, (t) => {
+ let closed = false;
+ const watcher = Object.assign(new EventEmitter(), { close() { closed = true; } });
+ const error = new Error("watch capacity exhausted");
+ t.mock.method(fs, "watch", () => {
+ if (failure === "opening") throw error;
+ return watcher as FSWatcher;
+ });
+ syncBuiltinESMExports();
+ t.after(() => { t.mock.restoreAll(); syncBuiltinESMExports(); });
+ const warnings: string[] = [];
+ let installed = false;
+ const plugin = studioFeedbackPlugin("/project", "/project/main.svrun");
+ (plugin.configureServer as (server: ViteDevServer) => void)({
+ config: { logger: { warn(message: string) { warnings.push(message); } } },
+ ws: { send() {} },
+ middlewares: { use() { installed = true; } },
+ } as unknown as ViteDevServer);
+ if (failure === "watching") watcher.emit("error", error);
+ assert.equal(installed, true);
+ assert.equal(warnings.length, 1);
+ assert.match(warnings[0]!, /watch capacity exhausted/);
+ assert.equal(closed, failure === "watching");
+ });
+}
diff --git a/packages/studio/test/semantic-gesture.test.ts b/packages/studio/test/semantic-gesture.test.ts
index b7d3166c..33f44568 100644
--- a/packages/studio/test/semantic-gesture.test.ts
+++ b/packages/studio/test/semantic-gesture.test.ts
@@ -4,7 +4,8 @@ import type { StudioEditHandle, StudioTemporalDomainAnchor, StudioTemporalInstan
import { adjustScriptSelection, parseScript } from "@hypit/script";
import { projectProgramInstant } from "@hypit/temporal";
import { parseTemporalInstant } from "@hypit/temporal/markup";
-import { chooseDomainGesture, formatTemporalPointEdit, domainGestureSpan } from "../src/temporal-edit.js";
+import { chooseDomainGesture, domainGestureSpan } from "../src/temporal-edit.js";
+import { formatTemporalPointEdit } from "@hypit/temporal/studio";
const source = '<one><HOST>@{proof} One two @{/proof} three.</one>';
const narrative = parseScript("gesture", source);
diff --git a/packages/studio/test/snapshot-range.test.ts b/packages/studio/test/snapshot-range.test.ts
index ac67d126..6f057de0 100644
--- a/packages/studio/test/snapshot-range.test.ts
+++ b/packages/studio/test/snapshot-range.test.ts
@@ -5,6 +5,7 @@ import { temporalTypes } from "@hypit/temporal";
import type { StudioPlacement, StudioTemporalDeclarationCompanion } from "@hypit/studio-companion";
import { snapshot } from "../src/snapshot.js";
import type { StudioProjection } from "../src/projection.js";
+import { observedTemporalValues } from "../src/temporal-declarations.js";
import { StudioCompanionRegistry } from "../src/studio-registry.js";
import { fallbackStudioTrackCompanions } from "../src/fallback-companions.js";
@@ -29,7 +30,7 @@ test("a pure-MG work keeps its declared extent even when a Studio Item extends b
assert.equal("timing" in result.provenance, false);
});
-test("direct and projected author time share one read-only declaration row", () => {
+test("the common declaration row displays Instants without duplicating Window intervals", () => {
const directModule = { name: "example/direct", version: "1" };
const projectedModule = { name: "example/projected", version: "1" };
const placement = (module: typeof directModule, surface: string, id: string, output: string) => ({
@@ -41,17 +42,24 @@ test("direct and projected author time share one read-only declaration row", ()
placement(projectedModule, "instant", "projected", "projected.value")];
const built = { source: { observations: { placements, temporalDomains: [] } }, tracks: [],
timeline: { id: "work", frameCount: 90, frameRate: { numerator: 30, denominator: 1 } },
- values: new Map(), temporalDomainValues: [], temporalBindings: new Map(), temporalValues: [
- { id: "direct.value", type: temporalTypes.window, value: {
- id: "direct", subjectId: "direct",
- start: { id: "direct.start", subjectId: "direct", timelineId: "work", frame: 3 },
- end: { id: "direct.end", subjectId: "direct", timelineId: "work", frame: 30 },
- span: { startFrame: 3, endFrameExclusive: 30 },
- } },
- { id: "projected.value", type: temporalTypes.instant, value: {
- id: "projected", subjectId: "projected", timelineId: "work", frame: 18,
- } },
- ],
+ values: new Map(), temporalDomainValues: [], temporalBindings: new Map(), temporalValues: observedTemporalValues({
+ program: { records: [] },
+ plan: { outputBindings: [
+ { output: "direct.value", record: "run-window" },
+ { output: "projected.value", record: "computed-instant" },
+ ] },
+ records: [
+ { id: "run-window", type: temporalTypes.window, value: { kind: "inline", value: {
+ id: "direct", subjectId: "direct",
+ start: { id: "direct.start", subjectId: "direct", timelineId: "work", frame: 3 },
+ end: { id: "direct.end", subjectId: "direct", timelineId: "work", frame: 30 },
+ span: { startFrame: 3, endFrameExclusive: 30 },
+ } } },
+ { id: "computed-instant", type: temporalTypes.instant, value: { kind: "inline", value: {
+ id: "projected", subjectId: "projected", timelineId: "work", frame: 18,
+ } } },
+ ],
+ } as unknown as Parameters<typeof observedTemporalValues>[0]),
} as unknown as StudioProjection;
const declaration = (id: string, module: typeof directModule, surface: string): StudioTemporalDeclarationCompanion => ({
id, match: { module, surface }, project: ({ placement: found }: { placement: StudioPlacement }) => found.id === undefined
@@ -67,7 +75,12 @@ test("direct and projected author time share one read-only declaration row", ()
});
assert.equal(result.temporalDomains.length, 1);
assert.deepEqual(result.temporalDomains[0]!.items.map((item) => [item.label, item.kind, item.laneId]), [
- ["direct", "span", "declarations"], ["projected", "point", "declarations"],
+ ["projected", "point", "declarations"],
]);
assert.deepEqual(result.temporalDomains[0]!.editItems, []);
+ assert.equal(result.temporalDomains[0]!.lanes[0]!.heightPx, 15);
+ assert.equal(result.temporalDomains[0]!.lanes[0]!.label, "Instants");
+ assert.equal(result.temporalDomains[0]!.items[0]!.appearance, "marker");
+ assert.deepEqual(result.temporalDomains[0]!.anchors.map(anchor => anchor.kind), ["instant"]);
+ assert.ok(built.temporalValues.some(value => value.id === "direct.value"));
});
diff --git a/packages/studio/test/source-watch.test.ts b/packages/studio/test/source-watch.test.ts
new file mode 100644
index 00000000..a3d6e3e8
--- /dev/null
+++ b/packages/studio/test/source-watch.test.ts
@@ -0,0 +1,96 @@
+import assert from "node:assert/strict";
+import { EventEmitter } from "node:events";
+import fs from "node:fs";
+import type { FSWatcher } from "node:fs";
+import { mkdtemp, rename, rm, writeFile } from "node:fs/promises";
+import { syncBuiltinESMExports } from "node:module";
+import { tmpdir } from "node:os";
+import { join, resolve } from "node:path";
+import test from "node:test";
+import { createSourceWatch } from "../src/source-watch.js";
+
+test("Source watches follow the current file closure and release unused directories", t => {
+ const opened: { directory: string; listener: (event: string, filename: string | null) => void; closed: boolean }[] = [];
+ t.mock.method(fs, "watch", (directory: string, listener: (event: string, filename: string | null) => void) => {
+ const entry = { directory, listener, closed: false };
+ opened.push(entry);
+ return Object.assign(new EventEmitter(), { close() { entry.closed = true; } }) as FSWatcher;
+ });
+ syncBuiltinESMExports();
+ t.after(() => { t.mock.restoreAll(); syncBuiltinESMExports(); });
+ const project = resolve("watch-project");
+ let changes = 0;
+ const watcher = createSourceWatch(() => changes++, message => assert.fail(message));
+ watcher.replace([join(project, "main.svml"), join(project, "old.svs"),
+ join(project, "imported", "script.svml"), "memory:script", "https://example.test/script.svml", "virtual/source"]);
+ assert.deepEqual(opened.map(entry => entry.directory), [project, join(project, "imported")]);
+ opened[0]!.listener("change", "unrelated.svml");
+ assert.equal(changes, 0);
+ opened[0]!.listener("rename", "main.svml");
+ assert.equal(changes, 1, "replacement saves trigger the same change callback");
+ watcher.replace([join(project, "main.svml"), join(project, "new.svs")]);
+ assert.equal(opened.length, 2, "a still-used directory is retained");
+ assert.equal(opened[1]!.closed, true);
+ opened[0]!.listener("change", "old.svs");
+ opened[1]!.listener("change", "script.svml");
+ assert.equal(changes, 1, "removed dependencies and queued events from released watchers are ignored");
+ opened[0]!.listener("change", "new.svs");
+ opened[0]!.listener("rename", null);
+ assert.equal(changes, 3);
+ watcher.close();
+ opened[0]!.listener("change", "main.svml");
+ watcher.replace([join(project, "late.svml")]);
+ assert.equal(changes, 3);
+ assert.equal(opened.length, 2, "an in-flight compilation cannot reopen a closed watcher");
+ assert.ok(opened.every(entry => entry.closed));
+});
+
+for (const failure of ["opening", "watching"] as const) {
+ test(`Source watch failure while ${failure} reports the directory and does not retry`, t => {
+ let opens = 0;
+ let closed = false;
+ const handle = Object.assign(new EventEmitter(), { close() { closed = true; } });
+ t.mock.method(fs, "watch", () => {
+ opens++;
+ if (failure === "opening") throw new Error("EACCES: permission denied");
+ return handle as FSWatcher;
+ });
+ syncBuiltinESMExports();
+ t.after(() => { t.mock.restoreAll(); syncBuiltinESMExports(); });
+ const warnings: string[] = [];
+ const watcher = createSourceWatch(() => assert.fail("failed watcher must not emit changes"), message => warnings.push(message));
+ const source = resolve("inaccessible-project", "main.svml");
+ watcher.replace([source]);
+ if (failure === "watching") handle.emit("error", new Error("EMFILE: too many open files"));
+ assert.equal(warnings.length, 1);
+ assert.ok(warnings[0]!.includes(resolve("inaccessible-project")));
+ assert.match(warnings[0]!, failure === "opening" ? /EACCES/ : /EMFILE/);
+ assert.match(warnings[0]!, /Browser refresh does not recompile Sources; restart Studio/);
+ watcher.replace([source]);
+ assert.equal(opens, 1);
+ assert.equal(warnings.length, 1);
+ assert.equal(closed, failure === "watching");
+ watcher.close();
+ });
+}
+
+test("a filesystem Source watcher detects an atomic replacement save", async t => {
+ const root = await mkdtemp(join(tmpdir(), "hypit-source-watch-"));
+ const source = join(root, "main.svml");
+ await writeFile(source, "before");
+ let changed!: () => void;
+ const event = new Promise<void>(resolve => { changed = resolve; });
+ const watcher = createSourceWatch(changed, message => assert.fail(message));
+ t.after(async () => { watcher.close(); await rm(root, { recursive: true, force: true }); });
+ watcher.replace([source]);
+ await writeFile(join(root, "replacement.tmp"), "after");
+ await rename(join(root, "replacement.tmp"), source);
+ let timer: ReturnType<typeof setTimeout> | undefined;
+ try {
+ await Promise.race([event, new Promise<never>((_, reject) => {
+ timer = setTimeout(() => reject(new Error("Source replacement was not observed")), 3000);
+ })]);
+ } finally {
+ clearTimeout(timer);
+ }
+});
diff --git a/packages/studio/test/temporal-graph.test.ts b/packages/studio/test/temporal-graph.test.ts
index 9f728d2e..79cd02d9 100644
--- a/packages/studio/test/temporal-graph.test.ts
+++ b/packages/studio/test/temporal-graph.test.ts
@@ -4,7 +4,7 @@ import test from "node:test";
import type { BuildState, ProducerStep, TypeRef, TypedRecord } from "@hypit/protocol";
import { executedTemporalBindings } from "../src/temporal-graph.js";
-import { commonTemporalStudioRelations } from "../src/common-temporal-relations.js";
+import { commonTemporalStudioRelations } from "@hypit/temporal/studio";
import { narrativeStudioTemporalRelations } from "../../narrative-temporal/src/studio.js";
const module = (name: string) => ({ name, version: "1" });
diff --git a/packages/studio/test/temporal-inverse.test.ts b/packages/studio/test/temporal-inverse.test.ts
index 841e1c44..a0c04686 100644
--- a/packages/studio/test/temporal-inverse.test.ts
+++ b/packages/studio/test/temporal-inverse.test.ts
@@ -5,7 +5,7 @@ import type { BuildState, ProducerStep, TypeRef, TypedRecord } from "@hypit/prot
import { planTemporalInverse, temporalAuthorBindings } from "../src/temporal-inverse.js";
import { StudioCompanionRegistry } from "../src/studio-registry.js";
-import { commonTemporalStudioRelations } from "../src/common-temporal-relations.js";
+import { commonTemporalStudioRelations } from "@hypit/temporal/studio";
import { timelineAuthorProducers } from "../../timeline-author/src/manifest.js";
import { timelineAuthorStudioTemporalRelations } from "../../timeline-author/src/studio.js";
diff --git a/packages/studio/test/unconsumed-instant.test.ts b/packages/studio/test/unconsumed-instant.test.ts
new file mode 100644
index 00000000..fdb604b7
--- /dev/null
+++ b/packages/studio/test/unconsumed-instant.test.ts
@@ -0,0 +1,119 @@
+import assert from "node:assert/strict";
+import test from "node:test";
+import type { TestContext } from "node:test";
+import { mkdtemp, writeFile, rm } from "node:fs/promises";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { createVideoDistribution } from "@hypit/video";
+import { loadStudioDomain } from "../src/domain.js";
+import { loadStudioCompanionRegistry } from "../src/companion-assembly.js";
+import { loadStudioRun } from "../src/run.js";
+import { executeStudioProjection, MemoryResourceStore } from "../src/execute.js";
+import { observedTemporalValues, resolveStudioDeclarations } from "../src/temporal-declarations.js";
+import { Executor } from "@hypit/hypit/executor";
+import { readStudioSession } from "../src/session.js";
+
+async function fixture(t: TestContext, extra = "", target = "program.timeline") {
+ const root = await mkdtemp(join(tmpdir(), "hypit-studio-unused-time-"));
+ t.after(() => rm(root, { recursive: true, force: true }));
+ await writeFile(join(root, "main.svml"), `<?svml using="@hypit/markup@1"?>
+<svml>
+ <import as="time" from="@hypit/timeline-author@1"/>
+ <import as="media" from="@hypit/media@1"/>
+ <import as="mediaop" from="@hypit/media-operations@1"/>
+ <import as="space" from="@hypit/spatial@1"/>
+ <import as="visual" from="@hypit/visual-track@1"/>
+ <import as="film" from="@hypit/film@1"/>
+ <import as="look" source="./look.svs"/>
+ <time:Clock id="clock" frame-rate="30"/>
+ <time:Timeline id="program" clock={clock} end="3s">
+ <time:Instant id="unused" at="1s"/>
+ </time:Timeline>
+ <time:Instant id="standalone" timeline={program.timeline} at="2s"/>
+ <time:Instant id="offset" timeline={program.timeline} at={standalone} offset="+5f"/>
+ ${extra}
+</svml>`);
+ await writeFile(join(root, "source.mp4"), "A probe must require the Runtime; this fixture is never decoded.");
+ await writeFile(join(root, "pixel.png"), Buffer.from("iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+j5ZkAAAAASUVORK5CYII=", "base64"));
+ await writeFile(join(root, "look.svs"), '<?svml using="@hypit/recipe@1"?><sheet version="1">film.main { background: #000000; }</sheet>');
+ const runPath = join(root, "main.svrun");
+ await writeFile(runPath, `<?svml using="@hypit/markup/run@1"?>
+<svrun version="1"><author source="./main.svml"/><target output="${target}"/></svrun>`);
+ const domain = await loadStudioDomain({ run: runPath, workspaceRoot: root,
+ packageRoot: process.cwd(), distribution: createVideoDistribution() });
+ const registry = await loadStudioCompanionRegistry({ distributionPackageRoot: process.cwd(), sourcePackages: domain.packages });
+ const run = await loadStudioRun({ run: runPath, domain, registry });
+ const unused = run.source.exports.find(output => output.name === "program.unused");
+ assert.ok(unused);
+ const resources = new MemoryResourceStore();
+ const selected = await executeStudioProjection(domain, run.plan(run.run, run.targets).state, resources);
+ assert.deepEqual(selected.errors, []);
+ assert.equal(observedTemporalValues(selected.state).some(value => value.id === unused.ref), false);
+ return { root, run, domain, registry, resources, resolved: selected.state, unused };
+}
+
+test("Companion display requests resolve unused nested and standalone Instants", async (t) => {
+ const input = await fixture(t);
+ const declarations = await resolveStudioDeclarations({ ...input, transientExecution: {
+ async evaluate(execution) {
+ const timeline = input.resolved.plan.outputBindings.find(binding =>
+ binding.output === input.run.targets[0])!;
+ const reused = execution.state.plan.outputBindings.find(binding => binding.output === timeline.output)!;
+ assert.ok(execution.state.records.some(record => record.id === reused.record),
+ "the already resolved logical Timeline output is supplied as a value Candidate");
+ return new Executor(execution).run(execution.state);
+ },
+ close() {},
+ } });
+ assert.deepEqual(declarations.issues, []);
+ for (const [name, frame] of [["program.unused", 30], ["standalone", 60], ["offset", 65]] as const) {
+ const output = input.run.source.exports.find(output => output.name === name)!;
+ assert.equal((declarations.values.find(value => value.id === output.ref)?.value as { frame: number }).frame, frame);
+ }
+ assert.equal(input.resolved.status, "complete");
+ assert.deepEqual(input.run.run.graph.satisfactions, [], "display reuse never changes the authored Run");
+});
+
+test("an unresolved locator upstream does not prevent other locators or the selected view", async (t) => {
+ const input = await fixture(t, `
+ <media:Video id="source" src="./source.mp4"/>
+ <mediaop:Normalize id="prepared" source={source} clock={clock}
+ video="primary-moving" audio="none" span-authority="video"/>
+ <time:Timeline id="other" clock={clock} end="clip.end">
+ <time:Window id="clip" from="start" for={prepared.extent}/>
+ <time:Instant id="pending" at="clip.end"/>
+ </time:Timeline>`);
+ const declarations = await resolveStudioDeclarations(input);
+ assert.ok(declarations.values.some(value => value.id === input.unused.ref));
+ assert.ok(declarations.issues.some(issue => issue.includes("Unavailable display capability:")));
+ assert.equal(input.resolved.status, "complete");
+ assert.deepEqual(input.resolved.outstanding, []);
+});
+
+test("an invalid optional locator reports its failure without invalidating the selected view", async (t) => {
+ const input = await fixture(t, '<time:Instant id="outside" timeline={program.timeline} at="10s"/>');
+ const declarations = await resolveStudioDeclarations(input);
+ assert.ok(declarations.issues.length > 0);
+ assert.equal(input.resolved.status, "complete");
+});
+
+test("the complete Studio session displays an unconsumed Instant alongside a playable Film", async (t) => {
+ const input = await fixture(t, `
+ <space:Canvas id="canvas" width="64" height="64"/>
+ <space:Extent id="extent" width="1" height="1"/>
+ <media:Image id="picture" src="./pixel.png"/>
+ <visual:Track id="track" timeline={program.timeline}>
+ <visual:Clip id="still" image={picture} extent={extent}
+ during={program.window} frame={canvas.bounds} z="0"/>
+ </visual:Track>
+ <film:Film id="film" canvas={canvas.canvas} timeline={program.timeline} appearance={look.film.main}>
+ <film:Track source={track.visual}/>
+ </film:Film>`, "film.composition");
+ const session = await readStudioSession({ ...input, revision: 1, workspaceRoot: input.root });
+ assert.deepEqual(session.declarationIssues, []);
+ const locators = session.snapshot.temporalDomains.find(domain => domain.id === "absolute-declarations")!;
+ assert.deepEqual(locators.items.map(item => item.label).sort(), ["offset", "standalone", "unused"]);
+ assert.equal(session.snapshot.timeline.frameCount, 90);
+ assert.equal(session.snapshot.tracks.length, 1);
+ assert.ok(session.visualHtml.includes("<!doctype html>"));
+});
diff --git a/packages/temporal/README.md b/packages/temporal/README.md
index 29ac37fb..212221c1 100644
--- a/packages/temporal/README.md
+++ b/packages/temporal/README.md
@@ -25,7 +25,7 @@ the pure exact-projection helper. This total one-to-one operation keeps every lo
projectable and publishes only resolved absolute values.
Author syntax does not live in the main contract entry. The same owner exposes
-`@hypit/hypit/temporal/markup`: declaration packages use its construction helpers, while component
+`@hypit/temporal/markup`: declaration packages use its construction helpers, while component
surfaces use its reference-only Instant and Window resolvers.
Domain packages such as `@hypit/narrative-temporal` project their own values into these
common types. Visual, audio, caption, typography and project components receive only the completed
@@ -33,7 +33,11 @@ Instant or Window plus the Timeline they already consume.
Temporal rejects Instants outside Timeline, Windows whose endpoint Timelines or stored span disagree,
reversed or empty Windows, non-exact local-domain projection, and incompatible frame rates. It does not
-clip, repair, infer meaning, perform rendering, or define Studio behavior.
+clip, repair, infer meaning or perform rendering.
+
+The package's separate `studio` entry and activation facet describe how its own Producers are
+traced and inverted by Studio. The domain computations do not import Studio; the adapter uses the
+Companion interface. Studio owns recursive solving and atomic writes, not the Temporal operation rules.
Author-directed editing follows the declaration that produced a value rather than asking a consumer
to invert an arbitrary projection; see [EDITING.md](EDITING.md).
diff --git a/packages/temporal/package.json b/packages/temporal/package.json
index 895684b9..2f14b79a 100644
--- a/packages/temporal/package.json
+++ b/packages/temporal/package.json
@@ -1,22 +1,34 @@
{
"name": "@hypit/temporal",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
"exports": {
".": "./src/index.ts",
- "./markup": "./src/markup/index.ts"
+ "./markup": "./src/markup/index.ts",
+ "./studio": "./src/studio.ts"
},
"hypit": {
"activation": "./src/activation.ts"
},
"dependencies": {
+ "@hypit/timeline": "workspace:^0.1.0"
+ },
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
+ },
+ "devDependencies": {
"@hypit/author": "workspace:*",
"@hypit/markup": "workspace:*",
"@hypit/producer": "workspace:*",
"@hypit/protocol": "workspace:*",
- "@hypit/timeline": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/admission": "workspace:*",
+ "@hypit/hypit": "workspace:*"
}
}
diff --git a/packages/temporal/src/activation.ts b/packages/temporal/src/activation.ts
index ad518ab9..cafce335 100644
--- a/packages/temporal/src/activation.ts
+++ b/packages/temporal/src/activation.ts
@@ -1,11 +1,16 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
import { temporalManifest } from "./index.js";
import { temporalComponent } from "./component.js";
+import { createStudioCompanionFacet } from "@hypit/studio-companion";
+import { commonTemporalStudioRelations } from "./studio.js";
export const hypitPackage = {
format: "hypit.package@1" as const,
modules: [{ manifest: temporalManifest }],
- facets: [...[temporalComponent].flatMap((component) => [createProducerPackageFacet(component), createAdmissionPackageFacet(component)])],
+ facets: [
+ ...[temporalComponent].flatMap((component) => [createProducerPackageFacet(component), createAdmissionPackageFacet(component)]),
+ createStudioCompanionFacet({ temporalRelations: commonTemporalStudioRelations }),
+ ],
};
export default hypitPackage;
diff --git a/packages/temporal/src/component.ts b/packages/temporal/src/component.ts
index 208d9eff..5a5b11fa 100644
--- a/packages/temporal/src/component.ts
+++ b/packages/temporal/src/component.ts
@@ -1,7 +1,7 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import type { ProducerPackage, ProducerHandlerContext } from "@hypit/producer";
-import { canonicalize } from "@hypit/protocol";
-import type { StoredValue } from "@hypit/protocol";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import type { ProducerPackage, ProducerHandlerContext } from "@hypit/hypit/producer";
+import { canonicalize } from "@hypit/hypit/protocol";
+import type { StoredValue } from "@hypit/hypit/protocol";
import type { Timeline } from "@hypit/timeline";
import {
diff --git a/packages/temporal/src/index.ts b/packages/temporal/src/index.ts
index d3f96d94..eedaa1d1 100644
--- a/packages/temporal/src/index.ts
+++ b/packages/temporal/src/index.ts
@@ -1,4 +1,4 @@
-import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/protocol";
+import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
import { timelineDependency, timelineTypes } from "@hypit/timeline";
const string = { kind: "string", minLength: 1 } as const;
diff --git a/packages/temporal/src/markup/context.ts b/packages/temporal/src/markup/context.ts
index 5c664bd7..5f9b144f 100644
--- a/packages/temporal/src/markup/context.ts
+++ b/packages/temporal/src/markup/context.ts
@@ -1,5 +1,5 @@
-import type { StructuredElement, SurfaceAttributeVocabulary, SurfaceResolvedReference } from "@hypit/markup";
-import { sameType } from "@hypit/protocol";
+import type { StructuredElement, SurfaceAttributeVocabulary, SurfaceResolvedReference } from "@hypit/hypit/markup";
+import { sameType } from "@hypit/hypit/protocol";
import { timelineTypes } from "@hypit/timeline";
export type TemporalContext = { readonly timeline: SurfaceResolvedReference };
diff --git a/packages/temporal/src/markup/index.ts b/packages/temporal/src/markup/index.ts
index 279ac7fa..7a03e11e 100644
--- a/packages/temporal/src/markup/index.ts
+++ b/packages/temporal/src/markup/index.ts
@@ -1,10 +1,10 @@
-import { sealGraphFragment } from "@hypit/author";
-import type { FragmentOperation, FragmentOperationRef, GraphFragment } from "@hypit/author";
+import { sealGraphFragment } from "@hypit/hypit/author";
+import type { FragmentOperation, FragmentOperationRef, GraphFragment } from "@hypit/hypit/author";
import type {
MarkupAttributeValue, StructuredElement, SurfaceAttributeVocabulary, SurfaceComponentDraft,
SurfaceRecordDraft, SurfaceResolvedReference,
-} from "@hypit/markup";
-import { sameType, type TypeRef } from "@hypit/protocol";
+} from "@hypit/hypit/markup";
+import { sameType, type TypeRef } from "@hypit/hypit/protocol";
import { temporalProducers, temporalTypes } from "@hypit/temporal";
import type { TemporalAuthorParameter, TemporalDuration, TemporalInstantExpression } from "@hypit/temporal";
import { timelineTypes } from "@hypit/timeline";
diff --git a/packages/studio/src/common-temporal-relations.ts b/packages/temporal/src/studio.ts
similarity index 94%
rename from packages/studio/src/common-temporal-relations.ts
rename to packages/temporal/src/studio.ts
index e8db312e..5e174c8b 100644
--- a/packages/studio/src/common-temporal-relations.ts
+++ b/packages/temporal/src/studio.ts
@@ -1,11 +1,17 @@
-import { temporalProducers, temporalTypes } from "@hypit/hypit/temporal";
+import { temporalProducers, temporalTypes } from "./index.js";
import type {
StudioTemporalAuthority,
StudioTemporalRelationCompanion,
StudioTemporalRelationValue,
} from "@hypit/studio-companion";
-import { formatTemporalPointEdit } from "./temporal-edit.js";
+/** Preserve the declared base while writing an exact frame offset. */
+export function formatTemporalPointEdit(reference: string, desired: number, base?: number): string {
+ if (reference === "absolute") return `${desired}f`;
+ if (base === undefined) throw new Error(`The ${reference} projection base is unavailable.`);
+ const offset = desired - base;
+ return `${reference}${offset >= 0 ? "+" : ""}${offset}f`;
+}
type Instant = { readonly id: string; readonly timelineId: string; readonly frame: number };
type Timeline = { readonly id: string; readonly frameCount: number };
diff --git a/packages/text-fine/package.json b/packages/text-fine/package.json
index fd3e5419..2b5b91da 100644
--- a/packages/text-fine/package.json
+++ b/packages/text-fine/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/text-fine",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -17,8 +17,8 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/compiler": "workspace:*",
@@ -40,5 +40,12 @@
"@hypit/admission": "workspace:*",
"@hypit/html-program": "workspace:*",
"@hypit/narrative": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/packages/text-fine/src/component.ts b/packages/text-fine/src/component.ts
index 1103a75a..39e34ea2 100644
--- a/packages/text-fine/src/component.ts
+++ b/packages/text-fine/src/component.ts
@@ -1,9 +1,9 @@
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import type { ProducerPackage } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { StoredValue } from "@hypit/hypit/protocol";
-import type { CompositableSurfaceRef } from "@hypit/hypit/media";
-import type { SpatialFrame, SpatialPath, SpatialPoint } from "@hypit/hypit/spatial";
+import type { CompositableSurfaceRef } from "@hypit/media";
+import type { SpatialFrame, SpatialPath, SpatialPoint } from "@hypit/spatial";
import type { Text } from "@hypit/hypit/text";
import { canonicalize } from "@hypit/hypit/protocol";
@@ -22,7 +22,7 @@ import type {
TextMaskSpec,
TextStyle,
} from "./types.js";
-import type { TemporalWindow } from "@hypit/hypit/temporal";
+import type { TemporalWindow } from "@hypit/temporal";
function inline<T>(value: StoredValue | undefined, subject: string): T {
if (value?.kind !== "inline") throw new Error(`${subject} must be inline.`);
diff --git a/packages/text-fine/src/manifest.ts b/packages/text-fine/src/manifest.ts
index 3fe656e5..91bab541 100644
--- a/packages/text-fine/src/manifest.ts
+++ b/packages/text-fine/src/manifest.ts
@@ -1,4 +1,4 @@
-import { timelineTypes, timelineDependency } from "@hypit/hypit/timeline";
+import { timelineTypes, timelineDependency } from "@hypit/timeline";
import { readFile } from "node:fs/promises";
import {
@@ -9,21 +9,21 @@ import {
visualTextPaintSchema,
visualTextSequenceSchema,
visualTextTypographySchema,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import {
spatialDependency,
spatialFrameSchema,
spatialPathSchema,
spatialPointSchema,
spatialTypes,
-} from "@hypit/hypit/spatial";
-import { VISUAL_STYLE_ENUM_VALUES_V1, VISUAL_STYLE_NAMES_V1 } from "@hypit/hypit/composition";
-import { mediaDependency, mediaTypes } from "@hypit/hypit/media";
+} from "@hypit/spatial";
+import { VISUAL_STYLE_ENUM_VALUES_V1, VISUAL_STYLE_NAMES_V1 } from "@hypit/composition";
+import { mediaDependency, mediaTypes } from "@hypit/media";
import { recipeType } from "@hypit/hypit/recipe";
import { textDependency, textTypes } from "@hypit/hypit/text";
import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
-import { temporalDependency, temporalTypes } from "@hypit/hypit/temporal";
-import { temporalWindowAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { temporalDependency, temporalTypes } from "@hypit/temporal";
+import { temporalWindowAttributeVocabulary } from "@hypit/temporal/markup";
const previewImage = (file: string) => ({
mediaType: "image/png",
diff --git a/packages/text-fine/src/program.ts b/packages/text-fine/src/program.ts
index 76d4e94e..be83c783 100644
--- a/packages/text-fine/src/program.ts
+++ b/packages/text-fine/src/program.ts
@@ -1,18 +1,18 @@
-import { assertTimelineIdentity, timelineFrameCount } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+import { assertTimelineIdentity, timelineFrameCount } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import {
assertSpatialFrame,
assertSpatialPath,
assertSpatialPoint,
resolveContentFit,
-} from "@hypit/hypit/spatial";
-import type { SpatialFrame, SpatialPath, SpatialPoint } from "@hypit/hypit/spatial";
-import { assertTemporalWindowFor } from "@hypit/hypit/temporal";
-import type { TemporalWindow } from "@hypit/hypit/temporal";
+} from "@hypit/spatial";
+import type { SpatialFrame, SpatialPath, SpatialPoint } from "@hypit/spatial";
+import { assertTemporalWindowFor } from "@hypit/temporal";
+import type { TemporalWindow } from "@hypit/temporal";
import {
assertVisualTrackIdentity,
sealVisualTrack,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import type {
VisualElement,
VisualPathTextElement,
@@ -20,9 +20,9 @@ import type {
VisualTextElement,
VisualTextFlowElement,
VisualTrack,
-} from "@hypit/hypit/composition";
-import { assertCompositableSurfaceRef } from "@hypit/hypit/media";
-import type { CompositableSurfaceRef } from "@hypit/hypit/media";
+} from "@hypit/composition";
+import { assertCompositableSurfaceRef } from "@hypit/media";
+import type { CompositableSurfaceRef } from "@hypit/media";
import { canonicalize } from "@hypit/hypit/protocol";
import { verifyText } from "@hypit/hypit/text";
import type { Text } from "@hypit/hypit/text";
diff --git a/packages/text-fine/src/studio.ts b/packages/text-fine/src/studio.ts
index 2eb194b6..5eb0bcf6 100644
--- a/packages/text-fine/src/studio.ts
+++ b/packages/text-fine/src/studio.ts
@@ -1,6 +1,6 @@
import { textFineMarkupSurfaces, textFineModuleRef, textFineTypes } from "./manifest.js";
import type { FineTextOccurrence, TextItem } from "./types.js";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import type { StudioTrackCompanion, StudioTrackCompanionContext, StudioItemDraft, StudioInspectorFieldDeclaration, StudioSourceBindingDeclaration } from "@hypit/studio-companion";
import { childItems, requiredSurfaceValue, temporalLineageFor, textLayer } from "@hypit/studio-companion";
diff --git a/packages/text-fine/src/surface.ts b/packages/text-fine/src/surface.ts
index f19cfc3f..aedc9720 100644
--- a/packages/text-fine/src/surface.ts
+++ b/packages/text-fine/src/surface.ts
@@ -1,7 +1,7 @@
-import { timelineTypes } from "@hypit/hypit/timeline";
-import { resolveTemporalContext } from "@hypit/hypit/temporal/markup";
+import { timelineTypes } from "@hypit/timeline";
+import { resolveTemporalContext } from "@hypit/temporal/markup";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import type {
VisualColorPaint,
VisualStyleDeclaration,
@@ -10,22 +10,22 @@ import type {
VisualTextRunStyle,
VisualTextSequenceAnimation,
VisualTextTypography,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import {
assertFontArtifactRef,
assertFontStackRef,
mediaTypes,
-} from "@hypit/hypit/media";
-import type { FontArtifactRef, FontStackRef } from "@hypit/hypit/media";
-import { spatialTypes } from "@hypit/hypit/spatial";
+} from "@hypit/media";
+import type { FontArtifactRef, FontStackRef } from "@hypit/media";
+import { spatialTypes } from "@hypit/spatial";
import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation, GraphFragment } from "@hypit/hypit/author";
import { recipeType } from "@hypit/hypit/recipe";
import type { Recipe } from "@hypit/hypit/recipe";
import { textTypes } from "@hypit/hypit/text";
import type { StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference, MarkupAttributeValue } from "@hypit/hypit/markup";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import { resolveTemporalWindowReference } from "@hypit/hypit/temporal/markup";
+import { temporalTypes } from "@hypit/temporal";
+import { resolveTemporalWindowReference } from "@hypit/temporal/markup";
import { fineTextWindowAttributeVocabulary, textFineProducers, textFineTypes } from "./manifest.js";
import {
diff --git a/packages/text-fine/src/types.ts b/packages/text-fine/src/types.ts
index 216d9756..0812de24 100644
--- a/packages/text-fine/src/types.ts
+++ b/packages/text-fine/src/types.ts
@@ -7,8 +7,8 @@ import type {
VisualTextPaintLayer,
VisualTextSequenceAnimation,
VisualTextTypography,
-} from "@hypit/hypit/composition";
-import type { SpatialFrame, SpatialPath, SpatialPoint } from "@hypit/hypit/spatial";
+} from "@hypit/composition";
+import type { SpatialFrame, SpatialPath, SpatialPoint } from "@hypit/spatial";
export type TextDocument = VisualTextDocument;
export type TextTypography = VisualTextTypography;
diff --git a/packages/timeline-author/package.json b/packages/timeline-author/package.json
index 79adf15b..b83fc116 100644
--- a/packages/timeline-author/package.json
+++ b/packages/timeline-author/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/timeline-author",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,8 +15,8 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/hypit": "workspace:*",
@@ -29,5 +29,9 @@
"@hypit/text": "workspace:*",
"@hypit/timeline": "workspace:*",
"@hypit/admission": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/packages/timeline-author/src/component.ts b/packages/timeline-author/src/component.ts
index f6697256..e60a0d83 100644
--- a/packages/timeline-author/src/component.ts
+++ b/packages/timeline-author/src/component.ts
@@ -2,8 +2,8 @@ import { canonicalize } from "@hypit/hypit/protocol";
import type { ProducerPackage } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
import type { StoredValue } from "@hypit/hypit/protocol";
-import type { LocalTemporalDomain, TemporalExtent, TemporalWindow } from "@hypit/hypit/temporal";
-import type { Clock, Timeline } from "@hypit/hypit/timeline";
+import type { LocalTemporalDomain, TemporalExtent, TemporalWindow } from "@hypit/temporal";
+import type { Clock, Timeline } from "@hypit/timeline";
import { timelineAuthorProducers } from "./manifest.js";
import {
diff --git a/packages/timeline-author/src/fragment.ts b/packages/timeline-author/src/fragment.ts
index c2310114..58ea7a58 100644
--- a/packages/timeline-author/src/fragment.ts
+++ b/packages/timeline-author/src/fragment.ts
@@ -1,9 +1,9 @@
import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation, FragmentOperationRef, GraphFragment } from "@hypit/hypit/author";
import type { TypeRef } from "@hypit/hypit/protocol";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import type { TemporalDuration } from "@hypit/hypit/temporal";
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { temporalTypes } from "@hypit/temporal";
+import type { TemporalDuration } from "@hypit/temporal";
+import { timelineTypes } from "@hypit/timeline";
import { timelineAuthorProducers, timelineAuthorTypes } from "./manifest.js";
import type { TimelineAuthorBinding, TimelineAuthorDeclaration, TimelineAuthorFragmentOptions } from "./types.js";
diff --git a/packages/timeline-author/src/manifest.ts b/packages/timeline-author/src/manifest.ts
index b2ca1cc6..bb7aee51 100644
--- a/packages/timeline-author/src/manifest.ts
+++ b/packages/timeline-author/src/manifest.ts
@@ -1,6 +1,6 @@
import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
-import { temporalDependency, temporalTypes } from "@hypit/hypit/temporal";
-import { timelineDependency, timelineTypes } from "@hypit/hypit/timeline";
+import { temporalDependency, temporalTypes } from "@hypit/temporal";
+import { timelineDependency, timelineTypes } from "@hypit/timeline";
export const timelineAuthorModuleRef = { name: "@hypit/timeline-author", version: "1" } as const;
export const timelineAuthorTypes = {
diff --git a/packages/timeline-author/src/program.ts b/packages/timeline-author/src/program.ts
index 8b06ea1a..8df93a32 100644
--- a/packages/timeline-author/src/program.ts
+++ b/packages/timeline-author/src/program.ts
@@ -4,16 +4,16 @@ import {
composeTemporalWindow,
durationInFrames,
projectProgramInstant,
-} from "@hypit/hypit/temporal";
+} from "@hypit/temporal";
import type {
LocalTemporalDomain,
TemporalExtent,
TemporalDuration,
TemporalInstant,
TemporalWindow,
-} from "@hypit/hypit/temporal";
-import { assertClockIdentity, sealTimeline } from "@hypit/hypit/timeline";
-import type { Clock, Timeline } from "@hypit/hypit/timeline";
+} from "@hypit/temporal";
+import { assertClockIdentity, sealTimeline } from "@hypit/timeline";
+import type { Clock, Timeline } from "@hypit/timeline";
import type {
ConstructionExtent,
diff --git a/packages/timeline-author/src/studio.ts b/packages/timeline-author/src/studio.ts
index 75ddf10e..467d79aa 100644
--- a/packages/timeline-author/src/studio.ts
+++ b/packages/timeline-author/src/studio.ts
@@ -35,19 +35,11 @@ export const timelineAuthorStudioTemporalDeclarations: readonly StudioTemporalDe
match: { module: timelineAuthorModuleRef, surface: "timeline" },
project({ placement }) {
return placement.children.flatMap((child) => {
- if (child.id === undefined || (localName(child.tag) !== "Window" && localName(child.tag) !== "Instant")) return [];
+ if (child.id === undefined || localName(child.tag) !== "Instant") return [];
const found = output(placement, `anchor-${child.id}`, child.id, child.range);
return found === undefined ? [] : [found];
});
},
-}, {
- id: "window-declaration",
- match: { module: timelineAuthorModuleRef, surface: "window" },
- project({ placement }) {
- if (placement.id === undefined) return [];
- const found = output(placement, "window", placement.id);
- return found === undefined ? [] : [found];
- },
}, {
id: "instant-declaration",
match: { module: timelineAuthorModuleRef, surface: "instant" },
diff --git a/packages/timeline-author/src/surface.ts b/packages/timeline-author/src/surface.ts
index d1b3544f..7399ad35 100644
--- a/packages/timeline-author/src/surface.ts
+++ b/packages/timeline-author/src/surface.ts
@@ -1,13 +1,13 @@
import { assertAttributes, assertEmptyElement, localName, textAttribute, type StructuredElement, type StructuredSurfaceHandler, type SurfaceResolvedReference } from "@hypit/hypit/markup";
import { canonicalize, sameType } from "@hypit/hypit/protocol";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { temporalTypes } from "@hypit/temporal";
import {
createTemporalInstantConstruction,
createTemporalWindowConstruction,
resolveTemporalContext,
-} from "@hypit/hypit/temporal/markup";
-import { timelineTypes } from "@hypit/hypit/timeline";
-import type { Clock } from "@hypit/hypit/timeline";
+} from "@hypit/temporal/markup";
+import { timelineTypes } from "@hypit/timeline";
+import type { Clock } from "@hypit/timeline";
import { compileTimelineAuthorFragment } from "./fragment.js";
import { timelineAuthorTypes } from "./manifest.js";
diff --git a/packages/timeline-author/src/types.ts b/packages/timeline-author/src/types.ts
index d045270f..5019dd06 100644
--- a/packages/timeline-author/src/types.ts
+++ b/packages/timeline-author/src/types.ts
@@ -1,4 +1,4 @@
-import type { TemporalDuration } from "@hypit/hypit/temporal";
+import type { TemporalDuration } from "@hypit/temporal";
export type TimelineAuthorHeader = { readonly id: string };
export type ConstructionPoint = { readonly frame: number };
diff --git a/packages/timeline-author/test/studio.test.ts b/packages/timeline-author/test/studio.test.ts
index e7e732d5..6a28ed7b 100644
--- a/packages/timeline-author/test/studio.test.ts
+++ b/packages/timeline-author/test/studio.test.ts
@@ -18,7 +18,7 @@ const placement = (surface: string, outputPorts: StudioPlacement["outputPorts"],
children, attributes: {}, attributeValueRanges: {}, referenceAttributes: {}, referenceTypes: {}, references: [],
});
-test("Timeline author companions expose only primary authored temporal declarations", () => {
+test("Timeline author companions expose primary Instants without Window boundaries", () => {
const timeline = placement("timeline", [
{ name: "timeline", ref: "program.timeline" },
{ name: "window", ref: "program.window" },
@@ -33,7 +33,7 @@ test("Timeline author companions expose only primary authored temporal declarati
{ tag: "time:Instant", sourcePath: "main.svml", id: "cue", range: { start: 31, end: 45 },
attributes: {}, attributeValueRanges: {}, references: [], referenceAttributes: {}, referenceTypes: {}, values: [] }]);
const companion = timelineAuthorStudioTemporalDeclarations.find((item) => item.match.surface === "timeline")!;
- assert.deepEqual(companion.project({ placement: timeline }), [{ id: "speech", label: "speech",
- output: "program.speech", range: { start: 10, end: 30 } }, { id: "cue", label: "cue",
+ assert.deepEqual(companion.project({ placement: timeline }), [{ id: "cue", label: "cue",
output: "program.cue", range: { start: 31, end: 45 } }]);
+ assert.equal(timelineAuthorStudioTemporalDeclarations.some(item => item.match.surface === "window"), false);
});
diff --git a/packages/timeline/package.json b/packages/timeline/package.json
index a14ad8b5..5c6638bd 100644
--- a/packages/timeline/package.json
+++ b/packages/timeline/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/timeline",
- "version": "0.0.0-dev",
+ "version": "0.1.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -10,9 +10,17 @@
"hypit": {
"activation": "./src/activation.ts"
},
- "dependencies": {
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "peerDependencies": {
+ "@hypit/hypit": "workspace:^0.3.1"
+ },
+ "devDependencies": {
"@hypit/producer": "workspace:*",
"@hypit/protocol": "workspace:*",
- "@hypit/admission": "workspace:*"
+ "@hypit/admission": "workspace:*",
+ "@hypit/hypit": "workspace:*"
}
}
diff --git a/packages/timeline/src/activation.ts b/packages/timeline/src/activation.ts
index 56bfbbfb..e5c5d571 100644
--- a/packages/timeline/src/activation.ts
+++ b/packages/timeline/src/activation.ts
@@ -1,5 +1,5 @@
-import { createAdmissionPackageFacet } from "@hypit/admission";
-import { createProducerPackageFacet } from "@hypit/producer";
+import { createAdmissionPackageFacet } from "@hypit/hypit/admission";
+import { createProducerPackageFacet } from "@hypit/hypit/producer";
import { timelineComponent, timelineManifest } from "./index.js";
export const hypitPackage = {
diff --git a/packages/timeline/src/component.ts b/packages/timeline/src/component.ts
index 945dbd50..a4b805f2 100644
--- a/packages/timeline/src/component.ts
+++ b/packages/timeline/src/component.ts
@@ -1,6 +1,6 @@
-import type { AdmissionPackage } from "@hypit/admission";
-import type { ProducerPackage } from "@hypit/producer";
-import type { StoredValue } from "@hypit/protocol";
+import type { AdmissionPackage } from "@hypit/hypit/admission";
+import type { ProducerPackage } from "@hypit/hypit/producer";
+import type { StoredValue } from "@hypit/hypit/protocol";
import { timelineTypes } from "./manifest.js";
import { assertTimelineIdentity } from "./identity.js";
import type { Timeline } from "./types.js";
diff --git a/packages/timeline/src/manifest.ts b/packages/timeline/src/manifest.ts
index 028ff1a3..6fb43823 100644
--- a/packages/timeline/src/manifest.ts
+++ b/packages/timeline/src/manifest.ts
@@ -1,4 +1,4 @@
-import type { ModuleManifest, TypeRef, ValueSchema } from "@hypit/protocol";
+import type { ModuleManifest, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
export const timelineModuleRef = { name: "@hypit/timeline", version: "1" } as const;
export const timelineTypes = {
diff --git a/packages/video/README.md b/packages/video/README.md
index 5c945378..82ac36e2 100644
--- a/packages/video/README.md
+++ b/packages/video/README.md
@@ -5,6 +5,12 @@ the filesystem Workspace, Source-package discovery and the starter Runtime Profi
`hypit vocabulary` view because that view describes the author packages selected by this video
Distribution.
+Its ordinary npm dependencies select the default author capabilities, Models, Providers and Kits.
+Each dependency owns its implementation and version; Video does not bundle or re-export their SDKs.
+The root product names Video in `hypit.packageSources` so Source and Profile selections can resolve
+these installed defaults from their owner without relying on node_modules hoisting. Project installs
+remain higher priority. The root explicitly declares the command packages it invokes.
+
It is deliberately **not** a general video utility package. Browser capture, local media inspection,
speech measurement, WhisperX transcription and Studio snapshots are owned by their respective
packages and contribute their own CLI roots:
diff --git a/packages/video/package.json b/packages/video/package.json
index 1a4a7e3e..268ffc80 100644
--- a/packages/video/package.json
+++ b/packages/video/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/video",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -13,10 +13,54 @@
"README.md"
],
"dependencies": {
- "@hypit/runtime-local": "workspace:^"
+ "@hypit/audio-track": "workspace:^0.2.0",
+ "@hypit/caption": "workspace:^0.1.0",
+ "@hypit/caption-fine": "workspace:^0.2.0",
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/credential-store-env": "workspace:^0.1.1",
+ "@hypit/credential-store-local": "workspace:^0.1.1",
+ "@hypit/elevenlabs-speech": "workspace:^0.2.0",
+ "@hypit/film": "workspace:^0.2.0",
+ "@hypit/fishaudio-speech": "workspace:^0.2.0",
+ "@hypit/fontsource": "workspace:^0.2.0",
+ "@hypit/generation": "workspace:^0.1.0",
+ "@hypit/gpt-image": "workspace:^0.2.0",
+ "@hypit/gpt-image-kits": "workspace:^0.1.1",
+ "@hypit/grok-imagine": "workspace:^0.2.0",
+ "@hypit/html-program": "workspace:^0.1.0",
+ "@hypit/html-video": "workspace:^0.2.0",
+ "@hypit/image-operations": "workspace:^0.2.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/media-operations": "workspace:^0.2.0",
+ "@hypit/mimo-speech": "workspace:^0.2.0",
+ "@hypit/minimax-h3": "workspace:^0.2.0",
+ "@hypit/nano-banana": "workspace:^0.2.0",
+ "@hypit/narrative": "workspace:^0.1.0",
+ "@hypit/narrative-caption": "workspace:^0.1.0",
+ "@hypit/narrative-temporal": "workspace:^0.1.0",
+ "@hypit/pixverse": "workspace:^0.2.0",
+ "@hypit/provider-html-local": "workspace:^0.2.0",
+ "@hypit/provider-hypihub": "workspace:^0.2.0",
+ "@hypit/provider-image-opencv-local": "workspace:^0.2.0",
+ "@hypit/provider-whisperx-local": "workspace:^0.2.0",
+ "@hypit/region-evidence": "workspace:^0.1.0",
+ "@hypit/runtime-local": "workspace:^0.1.1",
+ "@hypit/script": "workspace:^0.2.0",
+ "@hypit/seedance": "workspace:^0.2.0",
+ "@hypit/seedance-kits": "workspace:^0.1.1",
+ "@hypit/seedream": "workspace:^0.2.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/speech-evidence": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/text-fine": "workspace:^0.2.0",
+ "@hypit/timeline": "workspace:^0.1.0",
+ "@hypit/timeline-author": "workspace:^0.2.0",
+ "@hypit/visual-track": "workspace:^0.2.0",
+ "@hypit/volcengine-matting": "workspace:^0.2.0",
+ "@hypit/wan": "workspace:^0.2.0"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/cli": "workspace:*",
diff --git a/packages/video/src/vocabulary.ts b/packages/video/src/vocabulary.ts
index 9c8414cd..1681ea52 100644
--- a/packages/video/src/vocabulary.ts
+++ b/packages/video/src/vocabulary.ts
@@ -5,7 +5,7 @@ import type { CliIo } from "@hypit/hypit/cli";
import {
animatableLocalStyles,
visualCompositionVocabulary,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import { markupSurfaceFacetAbi } from "@hypit/hypit/markup";
import type {
RegisteredSurface,
@@ -13,12 +13,12 @@ import type {
SurfacePortVocabulary,
SurfaceVocabulary,
} from "@hypit/hypit/markup";
-import { exactModelFacetAbi } from "@hypit/hypit/generation/model";
-import { loadNodePackageSelection, locateNodePackage } from "@hypit/hypit/loader/node";
+import { exactModelFacetAbi } from "@hypit/generation/model";
+import { loadNodePackageSelection, locateNodePackage, distributionPackageRoots } from "@hypit/hypit/loader/node";
import type { NodePackageLoadOptions } from "@hypit/hypit/loader/node";
import type { ValueSchema } from "@hypit/hypit/protocol";
import { findProjectRoot } from "@hypit/hypit/project";
-import { VISUAL_STYLE_ENUM_VALUES_V1, VISUAL_STYLE_NAMES_V1 } from "@hypit/hypit/composition";
+import { VISUAL_STYLE_ENUM_VALUES_V1, VISUAL_STYLE_NAMES_V1 } from "@hypit/composition";
/**
* What a Source may write: the installed packages, and the Surfaces each one declares.
@@ -55,7 +55,7 @@ export async function listPackages(projectRoot: string, distributionRoot?: strin
// Discover installed scopes and unlinked packages in both the project and the Distribution.
const roots = [...new Set([
projectRoot,
- ...(distributionRoot === undefined ? [] : [distributionRoot]),
+ ...(distributionRoot === undefined ? [] : distributionPackageRoots(distributionRoot)),
])];
const candidates: { readonly name: string; readonly directory: string }[] = [];
for (const root of roots) {
diff --git a/packages/visual-track/package.json b/packages/visual-track/package.json
index 5aed404e..6270c867 100644
--- a/packages/visual-track/package.json
+++ b/packages/visual-track/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/visual-track",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -16,8 +16,8 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^",
- "@hypit/studio-companion": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1",
+ "@hypit/studio-companion": "workspace:^0.1.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -34,5 +34,12 @@
"@hypit/temporal": "workspace:*",
"@hypit/timeline": "workspace:*",
"typescript": "5.9.3"
+ },
+ "dependencies": {
+ "@hypit/composition": "workspace:^0.1.0",
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/spatial": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0",
+ "@hypit/timeline": "workspace:^0.1.0"
}
}
diff --git a/packages/visual-track/src/author.ts b/packages/visual-track/src/author.ts
index 0c4909c5..e47cd904 100644
--- a/packages/visual-track/src/author.ts
+++ b/packages/visual-track/src/author.ts
@@ -1,6 +1,6 @@
import type { Recipe } from "@hypit/hypit/recipe";
-import { decodeContentFitProperties } from "@hypit/hypit/spatial";
-import type { ContentFit } from "@hypit/hypit/spatial";
+import { decodeContentFitProperties } from "@hypit/spatial";
+import type { ContentFit } from "@hypit/spatial";
import {
sealMediaPaintLayerSpec,
diff --git a/packages/visual-track/src/component.ts b/packages/visual-track/src/component.ts
index e4183b37..6da11885 100644
--- a/packages/visual-track/src/component.ts
+++ b/packages/visual-track/src/component.ts
@@ -1,11 +1,11 @@
import type { ProducerPackage, ProducerHandlerContext } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
-import type { CompositableSurfaceRef, SynchronizedMedia } from "@hypit/hypit/media";
+import type { CompositableSurfaceRef, SynchronizedMedia } from "@hypit/media";
import { canonicalize } from "@hypit/hypit/protocol";
import type { BlobRef, StoredValue } from "@hypit/hypit/protocol";
-import type { ContentFit, IntrinsicExtent, SpatialFrame, SpatialMap2D, SpatialPath } from "@hypit/hypit/spatial";
-import type { TemporalWindow } from "@hypit/hypit/temporal";
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { ContentFit, IntrinsicExtent, SpatialFrame, SpatialMap2D, SpatialPath } from "@hypit/spatial";
+import type { TemporalWindow } from "@hypit/temporal";
+import type { Timeline } from "@hypit/timeline";
import {
appendMediaPaintLayer,
diff --git a/packages/visual-track/src/fragment.ts b/packages/visual-track/src/fragment.ts
index b96eac47..b25a6dcf 100644
--- a/packages/visual-track/src/fragment.ts
+++ b/packages/visual-track/src/fragment.ts
@@ -1,10 +1,10 @@
-import { timelineTypes } from "@hypit/hypit/timeline";
+import { timelineTypes } from "@hypit/timeline";
import { blobTypes } from "@hypit/hypit/blob";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { spatialTypes } from "@hypit/hypit/spatial";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { spatialTypes } from "@hypit/spatial";
+import { temporalTypes } from "@hypit/temporal";
import { visualTrackProducers, visualTrackTypes } from "./manifest.js";
diff --git a/packages/visual-track/src/frame-treatment.ts b/packages/visual-track/src/frame-treatment.ts
index 30b51b8d..d4538e96 100644
--- a/packages/visual-track/src/frame-treatment.ts
+++ b/packages/visual-track/src/frame-treatment.ts
@@ -1,5 +1,5 @@
-import { assertSpatialFrame, assertSpatialPath } from "@hypit/hypit/spatial";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+import { assertSpatialFrame, assertSpatialPath } from "@hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
import type { VisualFrameTreatment } from "./types.js";
diff --git a/packages/visual-track/src/layers.ts b/packages/visual-track/src/layers.ts
index 97bf36e3..32ff9f7f 100644
--- a/packages/visual-track/src/layers.ts
+++ b/packages/visual-track/src/layers.ts
@@ -1,16 +1,16 @@
import {
assertCompositableSurfaceRef,
verifySynchronizedMedia,
-} from "@hypit/hypit/media";
-import type { CompositableSurfaceRef, SynchronizedMedia } from "@hypit/hypit/media";
+} from "@hypit/media";
+import type { CompositableSurfaceRef, SynchronizedMedia } from "@hypit/media";
import { canonicalize, isResourceId } from "@hypit/hypit/protocol";
import type { BlobRef } from "@hypit/hypit/protocol";
import {
assertContentFit,
assertIntrinsicExtent,
assertSpatialMap2D,
-} from "@hypit/hypit/spatial";
-import type { ContentFit, IntrinsicExtent, SpatialMap2D } from "@hypit/hypit/spatial";
+} from "@hypit/spatial";
+import type { ContentFit, IntrinsicExtent, SpatialMap2D } from "@hypit/spatial";
import type {
MediaGradientStop,
diff --git a/packages/visual-track/src/lower.ts b/packages/visual-track/src/lower.ts
index 61698882..27887d67 100644
--- a/packages/visual-track/src/lower.ts
+++ b/packages/visual-track/src/lower.ts
@@ -1,12 +1,12 @@
-import type { Timeline } from "@hypit/hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import type {
VisualAnimation,
VisualElement,
VisualStyleDeclaration,
VisualSourceTimeMap,
-} from "@hypit/hypit/composition";
-import { mapSpatialPoint } from "@hypit/hypit/spatial";
-import type { SpatialFrame, SpatialPath } from "@hypit/hypit/spatial";
+} from "@hypit/composition";
+import { mapSpatialPoint } from "@hypit/spatial";
+import type { SpatialFrame, SpatialPath } from "@hypit/spatial";
import { poseAnimation, samplingAnimation } from "./motion.js";
import { resolveVisualSourceTime } from "./source-time.js";
diff --git a/packages/visual-track/src/manifest.ts b/packages/visual-track/src/manifest.ts
index 39e31474..9cef1856 100644
--- a/packages/visual-track/src/manifest.ts
+++ b/packages/visual-track/src/manifest.ts
@@ -1,16 +1,17 @@
-import { timelineDependency, timelineTypes } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
-import { temporalContextAttributeVocabulary } from "@hypit/hypit/temporal/markup";
-import { visualSourceTimeMapSchema } from "@hypit/hypit/composition";
+import { timelineDependency, timelineTypes } from "@hypit/timeline";
+import type { StructuredSurfaceDeclaration, SurfaceVocabulary } from "@hypit/hypit/markup";
+import type { Timeline } from "@hypit/timeline";
+import { temporalContextAttributeVocabulary } from "@hypit/temporal/markup";
+import { visualSourceTimeMapSchema } from "@hypit/composition";
import { readFile } from "node:fs/promises";
import { blobDependency, blobTypes } from "@hypit/hypit/blob";
-import { compositionDependency, compositionTypes } from "@hypit/hypit/composition";
+import { compositionDependency, compositionTypes } from "@hypit/composition";
import {
compositableSurfaceSchema,
mediaDependency,
mediaTypes,
-} from "@hypit/hypit/media";
+} from "@hypit/media";
import type { ModuleManifest, ProducerRef, TypeRef, ValueSchema } from "@hypit/hypit/protocol";
import {
@@ -20,10 +21,10 @@ import {
spatialFrameSchema,
spatialMap2DSchema,
spatialTypes,
-} from "@hypit/hypit/spatial";
+} from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
-import { temporalDependency, temporalTypes } from "@hypit/hypit/temporal";
-import { temporalWindowAttributeVocabulary } from "@hypit/hypit/temporal/markup";
+import { temporalDependency, temporalTypes } from "@hypit/temporal";
+import { temporalWindowAttributeVocabulary } from "@hypit/temporal/markup";
const previewImage = (file: string) => ({
mediaType: "image/png",
@@ -249,7 +250,7 @@ const treatmentRecipeProperties = [
summary: "Fills the whole Frame behind every layer with a color, `linear(angle;stops)` or `radial(x,y;stops)`." },
] as const;
-export const visualTrackMarkupSurfaces = [{
+export const visualTrackMarkupSurfaces: readonly (StructuredSurfaceDeclaration & { readonly vocabulary: SurfaceVocabulary })[] = [{
name: "track", tag: "Track", mode: "structured",
outputs: [spatialTypes.fit, visualTrackTypes.header, visualTrackTypes.paintLayerSpec, visualTrackTypes.sampleLayerSpec,
visualTrackTypes.layerSet, visualTrackTypes.clipSpec, visualTrackTypes.set,
diff --git a/packages/visual-track/src/motion.ts b/packages/visual-track/src/motion.ts
index a3e1b8f1..7e69338a 100644
--- a/packages/visual-track/src/motion.ts
+++ b/packages/visual-track/src/motion.ts
@@ -1,7 +1,7 @@
import type {
VisualAnimation,
VisualStyleDeclaration,
-} from "@hypit/hypit/composition";
+} from "@hypit/composition";
import { canonicalize } from "@hypit/hypit/protocol";
import type {
diff --git a/packages/visual-track/src/program.ts b/packages/visual-track/src/program.ts
index f81cb5bf..e89a996c 100644
--- a/packages/visual-track/src/program.ts
+++ b/packages/visual-track/src/program.ts
@@ -1,12 +1,12 @@
-import { assertVisualTrackIdentity, sealVisualTrack } from "@hypit/hypit/composition";
-import type { VisualTrack } from "@hypit/hypit/composition";
+import { assertVisualTrackIdentity, sealVisualTrack } from "@hypit/composition";
+import type { VisualTrack } from "@hypit/composition";
import { canonicalize } from "@hypit/hypit/protocol";
-import { assertSpatialFrame, assertSpatialPath } from "@hypit/hypit/spatial";
-import type { SpatialPath } from "@hypit/hypit/spatial";
-import { assertTemporalWindowFor } from "@hypit/hypit/temporal";
-import type { TemporalWindow } from "@hypit/hypit/temporal";
-import { assertTimelineIdentity, timelineFrameCount } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+import { assertSpatialFrame, assertSpatialPath } from "@hypit/spatial";
+import type { SpatialPath } from "@hypit/spatial";
+import { assertTemporalWindowFor } from "@hypit/temporal";
+import type { TemporalWindow } from "@hypit/temporal";
+import { assertTimelineIdentity, timelineFrameCount } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import {
assertMediaIdentity,
diff --git a/packages/visual-track/src/source-time.ts b/packages/visual-track/src/source-time.ts
index a8b663ea..fe23b377 100644
--- a/packages/visual-track/src/source-time.ts
+++ b/packages/visual-track/src/source-time.ts
@@ -2,9 +2,9 @@ import type {
VisualSourceTimeMap,
VisualSourceTimePiece,
VisualSourceTimeRational,
-} from "@hypit/hypit/composition";
-import { assertTimelineIdentity } from "@hypit/hypit/timeline";
-import type { Timeline } from "@hypit/hypit/timeline";
+} from "@hypit/composition";
+import { assertTimelineIdentity } from "@hypit/timeline";
+import type { Timeline } from "@hypit/timeline";
import type {
VisualSourceTimeBounds,
diff --git a/packages/visual-track/src/spatial.ts b/packages/visual-track/src/spatial.ts
index 78ab72b5..a067ad08 100644
--- a/packages/visual-track/src/spatial.ts
+++ b/packages/visual-track/src/spatial.ts
@@ -2,8 +2,8 @@ import {
assertSpatialFrame,
assertSpatialMap2D,
resolveContentFit,
-} from "@hypit/hypit/spatial";
-import type { SpatialFrame } from "@hypit/hypit/spatial";
+} from "@hypit/spatial";
+import type { SpatialFrame } from "@hypit/spatial";
import { assertVisualFrameTreatment, visualContentFrame } from "./frame-treatment.js";
import {
diff --git a/packages/visual-track/src/studio.ts b/packages/visual-track/src/studio.ts
index 2927ea28..1a693495 100644
--- a/packages/visual-track/src/studio.ts
+++ b/packages/visual-track/src/studio.ts
@@ -1,4 +1,4 @@
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import type {
StudioTrackCompanion,
StudioTrackCompanionContext,
diff --git a/packages/visual-track/src/surface.ts b/packages/visual-track/src/surface.ts
index 72d349c0..72b9ca5f 100644
--- a/packages/visual-track/src/surface.ts
+++ b/packages/visual-track/src/surface.ts
@@ -1,16 +1,16 @@
-import { resolveTemporalContext } from "@hypit/hypit/temporal/markup";
+import { resolveTemporalContext } from "@hypit/temporal/markup";
import { assertEmptyElement as empty, assertAttributes as allowed, textAttribute as text, optionalTextAttribute as optionalText, type StructuredElement, type StructuredSurfaceHandler, type SurfaceComponentDraft, type SurfaceRecordDraft, type SurfaceResolvedReference, type MarkupAttributeValue } from "@hypit/hypit/markup";
import { sameType, type CanonicalValue, type TypeRef } from "@hypit/hypit/protocol";
import { blobTypes } from "@hypit/hypit/blob";
-import { compositionTypes } from "@hypit/hypit/composition";
+import { compositionTypes } from "@hypit/composition";
import { sealGraphFragment } from "@hypit/hypit/author";
import type { FragmentOperation } from "@hypit/hypit/author";
-import { mediaTypes } from "@hypit/hypit/media";
-import { spatialTypes } from "@hypit/hypit/spatial";
+import { mediaTypes } from "@hypit/media";
+import { spatialTypes } from "@hypit/spatial";
import { recipeType } from "@hypit/hypit/recipe";
import type { Recipe } from "@hypit/hypit/recipe";
-import { temporalTypes } from "@hypit/hypit/temporal";
-import { resolveTemporalWindowReference, temporalWindowAttributeNames } from "@hypit/hypit/temporal/markup";
+import { temporalTypes } from "@hypit/temporal";
+import { resolveTemporalWindowReference, temporalWindowAttributeNames } from "@hypit/temporal/markup";
import {
decodeMediaFit,
diff --git a/packages/visual-track/src/types.ts b/packages/visual-track/src/types.ts
index b7737dff..b03b15ab 100644
--- a/packages/visual-track/src/types.ts
+++ b/packages/visual-track/src/types.ts
@@ -1,5 +1,5 @@
-import type { FrameSpan, VisualEasing, VisualSourceTimeMap, VisualSourceTimeRational } from "@hypit/hypit/composition";
-import type { CompositableSurfaceRef, MediaRational } from "@hypit/hypit/media";
+import type { FrameSpan, VisualEasing, VisualSourceTimeMap, VisualSourceTimeRational } from "@hypit/composition";
+import type { CompositableSurfaceRef, MediaRational } from "@hypit/media";
import type { BlobRef } from "@hypit/hypit/protocol";
import type {
ContentFit,
@@ -7,7 +7,7 @@ import type {
SpatialFrame,
SpatialMap2D,
SpatialPath,
-} from "@hypit/hypit/spatial";
+} from "@hypit/spatial";
/** Intrinsic visual truth resolved before Media authoring; never a Provider or lineage envelope. */
export type MediaVisualSource =
diff --git a/packages/volcengine-matting/package.json b/packages/volcengine-matting/package.json
index 534ff4b3..be8b1ba9 100644
--- a/packages/volcengine-matting/package.json
+++ b/packages/volcengine-matting/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/volcengine-matting",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -15,7 +15,7 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -23,5 +23,8 @@
"@hypit/hypit": "workspace:*",
"@hypit/markup": "workspace:*",
"@hypit/protocol": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/volcengine-matting/src/index.ts b/packages/volcengine-matting/src/index.ts
index 25202e5c..a99ae6ca 100644
--- a/packages/volcengine-matting/src/index.ts
+++ b/packages/volcengine-matting/src/index.ts
@@ -1,7 +1,7 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/hypit/generation";
-import type { GenerationPortValue } from "@hypit/hypit/generation";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/generation";
+import type { GenerationPortValue } from "@hypit/generation";
+import { defineExactModelModule } from "@hypit/generation/model";
export const volcengineMattingModuleRef = { name: "@hypit/volcengine-matting", version: "1" } as const;
diff --git a/packages/volcengine-matting/src/surface.ts b/packages/volcengine-matting/src/surface.ts
index b29d75ae..c0114bd4 100644
--- a/packages/volcengine-matting/src/surface.ts
+++ b/packages/volcengine-matting/src/surface.ts
@@ -1,9 +1,9 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/hypit/generation";
-import type { GenerationMediaPort } from "@hypit/hypit/generation";
+import { sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/generation";
+import type { GenerationMediaPort } from "@hypit/generation";
import { canonicalize } from "@hypit/hypit/protocol";
import type { StructuredSurfaceHandler } from "@hypit/hypit/markup";
-import { createExactModelPrimaryGenerationFragment, exactModelMediaInputNames } from "@hypit/hypit/generation/model";
+import { createExactModelPrimaryGenerationFragment, exactModelMediaInputNames } from "@hypit/generation/model";
import { portraitMattingEndpoint as endpoint } from "./index.js";
function assert(condition: unknown, message: string): asserts condition {
diff --git a/packages/wan/package.json b/packages/wan/package.json
index cbc5d5d0..d562ec09 100644
--- a/packages/wan/package.json
+++ b/packages/wan/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/wan",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -10,9 +10,12 @@
"hypit": {
"activation": "./src/activation.ts"
},
- "files": ["dist", "README.md"],
+ "files": [
+ "dist",
+ "README.md"
+ ],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"devDependencies": {
"@hypit/blob": "workspace:*",
@@ -21,5 +24,8 @@
"@hypit/markup": "workspace:*",
"@hypit/protocol": "workspace:*",
"@hypit/text": "workspace:*"
+ },
+ "dependencies": {
+ "@hypit/generation": "workspace:^0.1.0"
}
}
diff --git a/packages/wan/src/index.ts b/packages/wan/src/index.ts
index 02781fde..e44b688e 100644
--- a/packages/wan/src/index.ts
+++ b/packages/wan/src/index.ts
@@ -1,8 +1,8 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/hypit/generation";
-import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/hypit/generation";
+import { sealGenerationPortRequest, sealGenerationPortTable } from "@hypit/generation";
+import type { GenerationPortTable, GenerationPortValue, GenerationRequest } from "@hypit/generation";
import type { SurfaceAttributeVocabulary, SurfaceChildVocabulary } from "@hypit/hypit/markup";
-import { defineExactModelModule } from "@hypit/hypit/generation/model";
+import { defineExactModelModule } from "@hypit/generation/model";
import { textTypes } from "@hypit/hypit/text";
export const wanModuleRef = { name: "@hypit/wan", version: "1" } as const;
diff --git a/packages/wan/src/surface.ts b/packages/wan/src/surface.ts
index c2d0b012..9fd3ea09 100644
--- a/packages/wan/src/surface.ts
+++ b/packages/wan/src/surface.ts
@@ -1,12 +1,12 @@
import { blobTypes } from "@hypit/hypit/blob";
-import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/hypit/generation";
-import type { GenerationMediaPort, GenerationPortValue } from "@hypit/hypit/generation";
+import { generationPort, sealGenerationMediaBinding, sealGenerationRequestDraft } from "@hypit/generation";
+import type { GenerationMediaPort, GenerationPortValue } from "@hypit/generation";
import {
createExactModelPrimaryGenerationFragment,
exactModelMediaInputNames,
exactModelTextInputName,
-} from "@hypit/hypit/generation/model";
-import type { ExactModelEndpoint } from "@hypit/hypit/generation/model";
+} from "@hypit/generation/model";
+import type { ExactModelEndpoint } from "@hypit/generation/model";
import type { CanonicalValue, TypeRef } from "@hypit/hypit/protocol";
import type { MarkupAttributeValue, StructuredElement, StructuredSurfaceHandler, SurfaceResolvedReference } from "@hypit/hypit/markup";
import { textTypes, verifyText } from "@hypit/hypit/text";
diff --git a/packages/whisperx/README.md b/packages/whisperx/README.md
index eea49f00..8023819e 100644
--- a/packages/whisperx/README.md
+++ b/packages/whisperx/README.md
@@ -4,7 +4,7 @@ Explicit WhisperX model-family capability for speech alignment. Importing this p
WhisperX; Runtime registration binds the resulting evidence Need to a concrete Endpoint. The package
contains no credentials, Python environment or queue.
-The package implementation consumes only public `@hypit/hypit/*` author/domain APIs and can be
+The package implementation consumes public Hypit author APIs and the owning domain packages and can be
released independently from the Host. Providers that interpret this exact capability may declare a
normal compatible dependency or peer range on this package; npm/pnpm and the project lockfile own the
resolved physical version. The logical capability remains `@hypit/whisperx@1`.
diff --git a/packages/whisperx/package.json b/packages/whisperx/package.json
index 3b9dec36..ff988d35 100644
--- a/packages/whisperx/package.json
+++ b/packages/whisperx/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/whisperx",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -16,11 +16,16 @@
"activation": "./src/activation.ts"
},
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"dependencies": {
- "@hypit/media-local": "workspace:^",
- "@hypit/narrative-speech-alignment": "workspace:^"
+ "@hypit/media": "workspace:^0.1.0",
+ "@hypit/media-local": "workspace:^0.2.0",
+ "@hypit/narrative": "workspace:^0.1.0",
+ "@hypit/narrative-speech-alignment": "workspace:^0.2.0",
+ "@hypit/narrative-temporal": "workspace:^0.1.0",
+ "@hypit/speech-evidence": "workspace:^0.1.0",
+ "@hypit/temporal": "workspace:^0.1.0"
},
"devDependencies": {
"@hypit/hypit": "workspace:*",
diff --git a/packages/whisperx/src/cli.ts b/packages/whisperx/src/cli.ts
index e723e0ac..965bdd72 100644
--- a/packages/whisperx/src/cli.ts
+++ b/packages/whisperx/src/cli.ts
@@ -11,8 +11,8 @@ import {
import type { CliApplicationContext, CliCommandModule, CliIo, CliRuntimeHost } from "@hypit/hypit/cli";
import { speechEvidenceFile } from "@hypit/media-local";
import type { Need } from "@hypit/hypit/protocol";
-import { sealSpeechEvidenceAudio, speechEvidenceTypes, transcriptDocumentFromEvidence } from "@hypit/hypit/speech-evidence";
-import type { AlignedTranscriptEvidence } from "@hypit/hypit/speech-evidence";
+import { sealSpeechEvidenceAudio, speechEvidenceTypes, transcriptDocumentFromEvidence } from "@hypit/speech-evidence";
+import type { AlignedTranscriptEvidence } from "@hypit/speech-evidence";
import { whisperXRequestForEvidenceAudio } from "./evidence.js";
import { whisperXCapabilities } from "./manifest.js";
diff --git a/packages/whisperx/src/component.ts b/packages/whisperx/src/component.ts
index 0c335272..6fd6b1e8 100644
--- a/packages/whisperx/src/component.ts
+++ b/packages/whisperx/src/component.ts
@@ -3,7 +3,7 @@ import { plannedNeedInputs } from "@hypit/hypit/producer";
import type { CanonicalValue, StoredValue } from "@hypit/hypit/protocol";
import type { ProducerPackage } from "@hypit/hypit/producer";
import type { AdmissionPackage } from "@hypit/hypit/admission";
-import type { SpeechEvidenceAudio } from "@hypit/hypit/speech-evidence";
+import type { SpeechEvidenceAudio } from "@hypit/speech-evidence";
import { whisperXRequestForEvidenceAudio } from "./evidence.js";
import { whisperXCapabilities, whisperXProducers } from "./manifest.js";
diff --git a/packages/whisperx/src/evidence.ts b/packages/whisperx/src/evidence.ts
index b333a013..59e4096b 100644
--- a/packages/whisperx/src/evidence.ts
+++ b/packages/whisperx/src/evidence.ts
@@ -1,5 +1,5 @@
-import { assertSpeechEvidenceAudioIdentity } from "@hypit/hypit/speech-evidence";
-import type { SpeechEvidenceAudio } from "@hypit/hypit/speech-evidence";
+import { assertSpeechEvidenceAudioIdentity } from "@hypit/speech-evidence";
+import type { SpeechEvidenceAudio } from "@hypit/speech-evidence";
import type { WhisperXAlignmentRequest, WhisperXLanguage } from "./types.js";
import { parseWhisperXLanguage } from "./types.js";
diff --git a/packages/whisperx/src/fragment.ts b/packages/whisperx/src/fragment.ts
index 37a0d7af..a2a099d5 100644
--- a/packages/whisperx/src/fragment.ts
+++ b/packages/whisperx/src/fragment.ts
@@ -1,10 +1,10 @@
-import { narrativeTypes } from "@hypit/hypit/narrative";
-import { narrativeTemporalProducers, narrativeTemporalTypes } from "@hypit/hypit/narrative-temporal";
-import { mediaTypes } from "@hypit/hypit/media";
+import { narrativeTypes } from "@hypit/narrative";
+import { narrativeTemporalProducers, narrativeTemporalTypes } from "@hypit/narrative-temporal";
+import { mediaTypes } from "@hypit/media";
import { sealGraphFragment } from "@hypit/hypit/author";
-import { speechEvidenceProducers } from "@hypit/hypit/speech-evidence";
+import { speechEvidenceProducers } from "@hypit/speech-evidence";
import { speechAlignmentProducers } from "@hypit/narrative-speech-alignment";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { temporalTypes } from "@hypit/temporal";
import { whisperXProducers, whisperXTypes } from "./manifest.js";
diff --git a/packages/whisperx/src/manifest.ts b/packages/whisperx/src/manifest.ts
index 3d5a531d..29d8e890 100644
--- a/packages/whisperx/src/manifest.ts
+++ b/packages/whisperx/src/manifest.ts
@@ -1,10 +1,10 @@
-import { mediaDependency, mediaTypes } from "@hypit/hypit/media";
-import { narrativeDependency, narrativeTypes } from "@hypit/hypit/narrative";
-import { narrativeTemporalDependency, narrativeTemporalTypes } from "@hypit/hypit/narrative-temporal";
-import { speechEvidenceDependency, speechEvidenceTypes } from "@hypit/hypit/speech-evidence";
+import { mediaDependency, mediaTypes } from "@hypit/media";
+import { narrativeDependency, narrativeTypes } from "@hypit/narrative";
+import { narrativeTemporalDependency, narrativeTemporalTypes } from "@hypit/narrative-temporal";
+import { speechEvidenceDependency, speechEvidenceTypes } from "@hypit/speech-evidence";
import type { CapabilityRef, ModuleManifest, ProducerRef, TypeRef } from "@hypit/hypit/protocol";
import { speechAlignmentModuleRef } from "@hypit/narrative-speech-alignment";
-import { temporalDependency, temporalTypes } from "@hypit/hypit/temporal";
+import { temporalDependency, temporalTypes } from "@hypit/temporal";
export const whisperXModuleRef = { name: "@hypit/whisperx", version: "1" } as const;
export const whisperXTypes = {
diff --git a/packages/whisperx/src/surface.ts b/packages/whisperx/src/surface.ts
index c5a0d8ec..007c9f34 100644
--- a/packages/whisperx/src/surface.ts
+++ b/packages/whisperx/src/surface.ts
@@ -1,9 +1,9 @@
import { assertExactAttributes as exactAttributes, textAttribute as stringAttribute, type StructuredElement, type StructuredSurfaceHandler, type SurfaceResolvedReference, type SurfaceRecordDraft, type MarkupAttributeValue } from "@hypit/hypit/markup";
import { sameType } from "@hypit/hypit/protocol";
-import { narrativeTypes } from "@hypit/hypit/narrative";
-import type { NarrativeSegmentRef } from "@hypit/hypit/narrative";
-import { mediaTypes } from "@hypit/hypit/media";
-import { temporalTypes } from "@hypit/hypit/temporal";
+import { narrativeTypes } from "@hypit/narrative";
+import type { NarrativeSegmentRef } from "@hypit/narrative";
+import { mediaTypes } from "@hypit/media";
+import { temporalTypes } from "@hypit/temporal";
import { whisperXAlignmentFragment, whisperXBoundaryAlignmentFragment } from "./fragment.js";
import { whisperXTypes } from "./manifest.js";
diff --git a/packages/whisperx/src/transcript.ts b/packages/whisperx/src/transcript.ts
index 31ac35a4..73a65bb3 100644
--- a/packages/whisperx/src/transcript.ts
+++ b/packages/whisperx/src/transcript.ts
@@ -1,4 +1,4 @@
-import type { SpeechTranscriptPassage } from "@hypit/hypit/speech-evidence";
+import type { SpeechTranscriptPassage } from "@hypit/speech-evidence";
type RawWord = {
readonly text?: unknown;
diff --git a/packages/whisperx/src/types.ts b/packages/whisperx/src/types.ts
index 6a6cb4ca..f8d7c323 100644
--- a/packages/whisperx/src/types.ts
+++ b/packages/whisperx/src/types.ts
@@ -1,4 +1,4 @@
-import type { SpeechEvidenceAudio } from "@hypit/hypit/speech-evidence";
+import type { SpeechEvidenceAudio } from "@hypit/speech-evidence";
/** Explicit language code. Executable language support belongs to the selected service. */
export type WhisperXLanguage = string;
diff --git a/packages/whisperx/test/cli.test.ts b/packages/whisperx/test/cli.test.ts
index c41a1f5c..7eb6525b 100644
--- a/packages/whisperx/test/cli.test.ts
+++ b/packages/whisperx/test/cli.test.ts
@@ -6,7 +6,7 @@ import test from "node:test";
import { canonicalize } from "@hypit/hypit/protocol";
import type { Need } from "@hypit/hypit/protocol";
-import { sealAlignedTranscriptEvidence } from "@hypit/hypit/speech-evidence";
+import { sealAlignedTranscriptEvidence } from "@hypit/speech-evidence";
import { interpretWhisperXTranscript } from "@hypit/whisperx";
import type { WhisperXAlignmentRequest } from "@hypit/whisperx";
diff --git a/packages/yt-dlp/package.json b/packages/yt-dlp/package.json
index ae9dffbd..6adb70e5 100644
--- a/packages/yt-dlp/package.json
+++ b/packages/yt-dlp/package.json
@@ -1,6 +1,6 @@
{
"name": "@hypit/yt-dlp",
- "version": "0.1.1",
+ "version": "0.2.0",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"type": "module",
@@ -14,10 +14,10 @@
"README.md"
],
"peerDependencies": {
- "@hypit/hypit": "workspace:^"
+ "@hypit/hypit": "workspace:^0.3.1"
},
"dependencies": {
- "@hypit/media-local": "workspace:^"
+ "@hypit/media-local": "workspace:^0.2.0"
},
"devDependencies": {
"@hypit/hypit": "workspace:*"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 85e64339..5adc80a8 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,125 +8,29 @@ importers:
.:
dependencies:
- '@hypit/audio-track':
- specifier: workspace:^
- version: link:packages/audio-track
'@hypit/browser-capture':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:packages/browser-capture
- '@hypit/caption-fine':
- specifier: workspace:^
- version: link:packages/caption-fine
- '@hypit/credential-store-env':
- specifier: workspace:^
- version: link:packages/credential-store-env
- '@hypit/credential-store-local':
- specifier: workspace:^
- version: link:packages/credential-store-local
- '@hypit/elevenlabs-speech':
- specifier: workspace:^
- version: link:packages/elevenlabs-speech
- '@hypit/film':
- specifier: workspace:^
- version: link:packages/film
- '@hypit/fishaudio-speech':
- specifier: workspace:^
- version: link:packages/fishaudio-speech
- '@hypit/fontsource':
- specifier: workspace:^
- version: link:packages/fontsource
- '@hypit/gpt-image':
- specifier: workspace:^
- version: link:packages/gpt-image
- '@hypit/gpt-image-kits':
- specifier: workspace:^
- version: link:packages/gpt-image-kits
- '@hypit/grok-imagine':
- specifier: workspace:^
- version: link:packages/grok-imagine
- '@hypit/html-video':
- specifier: workspace:^
- version: link:packages/html-video
- '@hypit/image-operations':
- specifier: workspace:^
- version: link:packages/image-operations
'@hypit/media-local':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:packages/media-local
- '@hypit/media-operations':
- specifier: workspace:^
- version: link:packages/media-operations
- '@hypit/mimo-speech':
- specifier: workspace:^
- version: link:packages/mimo-speech
- '@hypit/minimax-h3':
- specifier: workspace:^
- version: link:packages/minimax-h3
- '@hypit/nano-banana':
- specifier: workspace:^
- version: link:packages/nano-banana
- '@hypit/pixverse':
- specifier: workspace:^
- version: link:packages/pixverse
- '@hypit/provider-html-local':
- specifier: workspace:^
- version: link:packages/provider-html-local
- '@hypit/provider-hypihub':
- specifier: workspace:^
- version: link:packages/provider-hypihub
- '@hypit/provider-image-opencv-local':
- specifier: workspace:^
- version: link:packages/provider-image-opencv-local
- '@hypit/provider-whisperx-local':
- specifier: workspace:^
- version: link:packages/provider-whisperx-local
'@hypit/runtime-local':
- specifier: workspace:^
+ specifier: workspace:^0.1.1
version: link:packages/runtime-local
- '@hypit/script':
- specifier: workspace:^
- version: link:packages/script
- '@hypit/seedance':
- specifier: workspace:^
- version: link:packages/seedance
- '@hypit/seedance-kits':
- specifier: workspace:^
- version: link:packages/seedance-kits
- '@hypit/seedream':
- specifier: workspace:^
- version: link:packages/seedream
'@hypit/speech-estimate':
- specifier: workspace:^
+ specifier: workspace:^0.1.1
version: link:packages/speech-estimate
'@hypit/studio':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:packages/studio
- '@hypit/studio-companion':
- specifier: workspace:^
- version: link:packages/studio-companion
- '@hypit/text-fine':
- specifier: workspace:^
- version: link:packages/text-fine
- '@hypit/timeline-author':
- specifier: workspace:^
- version: link:packages/timeline-author
'@hypit/video':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:packages/video
- '@hypit/visual-track':
- specifier: workspace:^
- version: link:packages/visual-track
- '@hypit/volcengine-matting':
- specifier: workspace:^
- version: link:packages/volcengine-matting
- '@hypit/wan':
- specifier: workspace:^
- version: link:packages/wan
'@hypit/whisperx':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:packages/whisperx
'@hypit/yt-dlp':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:packages/yt-dlp
'@types/node':
specifier: 24.10.1
@@ -162,6 +66,9 @@ importers:
'@hypit/admission':
specifier: workspace:*
version: link:packages/admission
+ '@hypit/audio-track':
+ specifier: workspace:*
+ version: link:packages/audio-track
'@hypit/author':
specifier: workspace:*
version: link:packages/author
@@ -171,21 +78,57 @@ importers:
'@hypit/caption':
specifier: workspace:*
version: link:packages/caption
+ '@hypit/caption-fine':
+ specifier: workspace:*
+ version: link:packages/caption-fine
'@hypit/comment-sticker':
specifier: workspace:*
version: link:packages/comment-sticker
'@hypit/composition':
specifier: workspace:*
version: link:packages/composition
+ '@hypit/credential-store-env':
+ specifier: workspace:*
+ version: link:packages/credential-store-env
+ '@hypit/credential-store-local':
+ specifier: workspace:*
+ version: link:packages/credential-store-local
'@hypit/depth-stack':
specifier: workspace:*
version: link:packages/depth-stack
+ '@hypit/elevenlabs-speech':
+ specifier: workspace:*
+ version: link:packages/elevenlabs-speech
+ '@hypit/film':
+ specifier: workspace:*
+ version: link:packages/film
+ '@hypit/fishaudio-speech':
+ specifier: workspace:*
+ version: link:packages/fishaudio-speech
+ '@hypit/fontsource':
+ specifier: workspace:*
+ version: link:packages/fontsource
'@hypit/generation':
specifier: workspace:*
version: link:packages/generation
+ '@hypit/gpt-image':
+ specifier: workspace:*
+ version: link:packages/gpt-image
+ '@hypit/gpt-image-kits':
+ specifier: workspace:*
+ version: link:packages/gpt-image-kits
+ '@hypit/grok-imagine':
+ specifier: workspace:*
+ version: link:packages/grok-imagine
'@hypit/html-program':
specifier: workspace:*
version: link:packages/html-program
+ '@hypit/html-video':
+ specifier: workspace:*
+ version: link:packages/html-video
+ '@hypit/image-operations':
+ specifier: workspace:*
+ version: link:packages/image-operations
'@hypit/interview-emoji-reveal':
specifier: workspace:*
version: link:packages/interview-emoji-reveal
@@ -195,6 +138,18 @@ importers:
'@hypit/media':
specifier: workspace:*
version: link:packages/media
+ '@hypit/media-operations':
+ specifier: workspace:*
+ version: link:packages/media-operations
+ '@hypit/mimo-speech':
+ specifier: workspace:*
+ version: link:packages/mimo-speech
+ '@hypit/minimax-h3':
+ specifier: workspace:*
+ version: link:packages/minimax-h3
+ '@hypit/nano-banana':
+ specifier: workspace:*
+ version: link:packages/nano-banana
'@hypit/narrative':
specifier: workspace:*
version: link:packages/narrative
@@ -207,6 +162,9 @@ importers:
'@hypit/narrative-temporal':
specifier: workspace:*
version: link:packages/narrative-temporal
+ '@hypit/pixverse':
+ specifier: workspace:*
+ version: link:packages/pixverse
'@hypit/producer':
specifier: workspace:*
version: link:packages/producer
@@ -222,6 +180,15 @@ importers:
'@hypit/provider-hiapi':
specifier: workspace:*
version: link:packages/provider-hiapi
+ '@hypit/provider-html-local':
+ specifier: workspace:*
+ version: link:packages/provider-html-local
+ '@hypit/provider-hypihub':
+ specifier: workspace:*
+ version: link:packages/provider-hypihub
+ '@hypit/provider-image-opencv-local':
+ specifier: workspace:*
+ version: link:packages/provider-image-opencv-local
'@hypit/provider-monid':
specifier: workspace:*
version: link:packages/provider-monid
@@ -231,6 +198,9 @@ importers:
'@hypit/provider-tokendance':
specifier: workspace:*
version: link:packages/provider-tokendance
+ '@hypit/provider-whisperx-local':
+ specifier: workspace:*
+ version: link:packages/provider-whisperx-local
'@hypit/ranking':
specifier: workspace:*
version: link:packages/ranking
@@ -246,21 +216,51 @@ importers:
'@hypit/run':
specifier: workspace:*
version: link:packages/run
+ '@hypit/script':
+ specifier: workspace:*
+ version: link:packages/script
+ '@hypit/seedance':
+ specifier: workspace:*
+ version: link:packages/seedance
+ '@hypit/seedance-kits':
+ specifier: workspace:*
+ version: link:packages/seedance-kits
+ '@hypit/seedream':
+ specifier: workspace:*
+ version: link:packages/seedream
'@hypit/spatial':
specifier: workspace:*
version: link:packages/spatial
'@hypit/speech-evidence':
specifier: workspace:*
version: link:packages/speech-evidence
+ '@hypit/studio-companion':
+ specifier: workspace:*
+ version: link:packages/studio-companion
'@hypit/temporal':
specifier: workspace:*
version: link:packages/temporal
'@hypit/text':
specifier: workspace:*
version: link:packages/text
+ '@hypit/text-fine':
+ specifier: workspace:*
+ version: link:packages/text-fine
'@hypit/timeline':
specifier: workspace:*
version: link:packages/timeline
+ '@hypit/timeline-author':
+ specifier: workspace:*
+ version: link:packages/timeline-author
+ '@hypit/visual-track':
+ specifier: workspace:*
+ version: link:packages/visual-track
+ '@hypit/volcengine-matting':
+ specifier: workspace:*
+ version: link:packages/volcengine-matting
+ '@hypit/wan':
+ specifier: workspace:*
+ version: link:packages/wan
linkedom:
specifier: 0.18.13
version: 0.18.13
@@ -276,24 +276,60 @@ importers:
examples/complex-explainer/packages/launch-scenes:
dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/composition
+ '@hypit/html-program':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/html-program
'@hypit/hypit':
specifier: workspace:*
version: link:../../../..
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/spatial
'@hypit/studio-companion':
specifier: workspace:*
version: link:../../../../packages/studio-companion
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/timeline
examples/complex-explainer/packages/opening-system:
dependencies:
'@explainer/visual-language':
specifier: file:../visual-language
version: link:../visual-language
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/composition
+ '@hypit/html-program':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/html-program
'@hypit/hypit':
specifier: workspace:*
version: link:../../../..
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/spatial
'@hypit/studio-companion':
specifier: workspace:*
version: link:../../../../packages/studio-companion
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/timeline
'@hypit/visual-track':
specifier: workspace:*
version: link:../../../../packages/visual-track
@@ -317,20 +353,67 @@ importers:
'@explainer/visual-language':
specifier: file:../visual-language
version: link:../visual-language
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/composition
+ '@hypit/html-program':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/html-program
'@hypit/hypit':
specifier: workspace:*
version: link:../../../..
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/spatial
'@hypit/studio-companion':
specifier: workspace:*
version: link:../../../../packages/studio-companion
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/timeline
examples/interview/packages/flash:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/composition
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/timeline
devDependencies:
'@hypit/hypit':
specifier: workspace:*
version: link:../../../..
examples/minimal-author-package/packages/example-component:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/composition
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/timeline
devDependencies:
'@hypit/hypit':
specifier: workspace:*
@@ -343,6 +426,10 @@ importers:
version: 5.9.3
examples/provider-package/packages/provider-images:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/generation
devDependencies:
'@hypit/executor':
specifier: workspace:*
@@ -361,6 +448,10 @@ importers:
version: 5.9.3
examples/provider-package/packages/provider-videos:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/generation
devDependencies:
'@hypit/executor':
specifier: workspace:*
@@ -379,6 +470,25 @@ importers:
version: 5.9.3
examples/semantic-composition/packages/chat-scene:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/composition
+ '@hypit/html-program':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/html-program
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/timeline
devDependencies:
'@hypit/hypit':
specifier: workspace:*
@@ -391,6 +501,25 @@ importers:
version: 5.9.3
examples/semantic-composition/packages/responsive-explainer:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/composition
+ '@hypit/html-program':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/html-program
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../../../../packages/timeline
devDependencies:
'@hypit/hypit':
specifier: workspace:*
@@ -421,6 +550,19 @@ importers:
version: 3.2.1
packages/audio-track:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
devDependencies:
'@hypit/admission':
specifier: workspace:*
@@ -434,9 +576,6 @@ importers:
'@hypit/compiler':
specifier: workspace:*
version: link:../compiler
- '@hypit/composition':
- specifier: workspace:*
- version: link:../composition
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -446,9 +585,6 @@ importers:
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
'@hypit/media-operations':
specifier: workspace:*
version: link:../media-operations
@@ -479,12 +615,6 @@ importers:
'@hypit/studio-companion':
specifier: workspace:*
version: link:../studio-companion
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
typescript:
specifier: 5.9.3
version: 5.9.3
@@ -523,7 +653,7 @@ importers:
packages/browser-capture:
dependencies:
'@hypit/media-local':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:../media-local
'@puppeteer/browsers':
specifier: 3.2.2
@@ -541,9 +671,16 @@ importers:
packages/caption:
dependencies:
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
'@hypit/markup':
specifier: workspace:*
version: link:../markup
@@ -553,37 +690,47 @@ importers:
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
packages/caption-fine:
- devDependencies:
- '@hypit/author':
- specifier: workspace:*
- version: link:../author
- '@hypit/browser-capture':
- specifier: workspace:*
- version: link:../browser-capture
+ dependencies:
'@hypit/caption':
- specifier: workspace:*
+ specifier: workspace:^0.1.0
version: link:../caption
'@hypit/composition':
- specifier: workspace:*
+ specifier: workspace:^0.1.0
version: link:../composition
'@hypit/html-program':
- specifier: workspace:*
+ specifier: workspace:^0.1.0
version: link:../html-program
- '@hypit/hypit':
- specifier: workspace:*
- version: link:../..
- '@hypit/markup':
- specifier: workspace:*
- version: link:../markup
'@hypit/media':
- specifier: workspace:*
+ specifier: workspace:^0.1.0
version: link:../media
- '@hypit/producer':
+ '@hypit/region-evidence':
+ specifier: workspace:^0.1.0
+ version: link:../region-evidence
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
+ devDependencies:
+ '@hypit/author':
+ specifier: workspace:*
+ version: link:../author
+ '@hypit/browser-capture':
+ specifier: workspace:*
+ version: link:../browser-capture
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
+ '@hypit/markup':
+ specifier: workspace:*
+ version: link:../markup
+ '@hypit/producer':
specifier: workspace:*
version: link:../producer
'@hypit/protocol':
@@ -592,24 +739,12 @@ importers:
'@hypit/recipe':
specifier: workspace:*
version: link:../recipe
- '@hypit/region-evidence':
- specifier: workspace:*
- version: link:../region-evidence
'@hypit/script':
specifier: workspace:*
version: link:../script
- '@hypit/spatial':
- specifier: workspace:*
- version: link:../spatial
'@hypit/studio-companion':
specifier: workspace:*
version: link:../studio-companion
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
sharp:
specifier: 0.35.4
version: 0.35.4(@types/[email protected])
@@ -670,6 +805,22 @@ importers:
version: link:../runtime-local
packages/comment-sticker:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
devDependencies:
'@hypit/blob':
specifier: workspace:*
@@ -683,27 +834,15 @@ importers:
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
'@hypit/recipe':
specifier: workspace:*
version: link:../recipe
- '@hypit/spatial':
- specifier: workspace:*
- version: link:../spatial
'@hypit/studio-companion':
specifier: workspace:*
version: link:../studio-companion
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
'@hypit/text':
specifier: workspace:*
version: link:../text
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
typescript:
specifier: 5.9.3
version: 5.9.3
@@ -738,31 +877,34 @@ importers:
packages/composition:
dependencies:
- '@hypit/admission':
- specifier: workspace:*
- version: link:../admission
'@hypit/media':
- specifier: workspace:*
+ specifier: workspace:^0.1.0
version: link:../media
- '@hypit/producer':
- specifier: workspace:*
- version: link:../producer
- '@hypit/protocol':
- specifier: workspace:*
- version: link:../protocol
'@hypit/timeline':
- specifier: workspace:*
+ specifier: workspace:^0.1.0
version: link:../timeline
devDependencies:
+ '@hypit/admission':
+ specifier: workspace:*
+ version: link:../admission
'@hypit/blob':
specifier: workspace:*
version: link:../blob
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
'@hypit/kernel':
specifier: workspace:*
version: link:../kernel
'@hypit/narrative':
specifier: workspace:*
version: link:../narrative
+ '@hypit/producer':
+ specifier: workspace:*
+ version: link:../producer
+ '@hypit/protocol':
+ specifier: workspace:*
+ version: link:../protocol
'@hypit/recipe':
specifier: workspace:*
version: link:../recipe
@@ -802,8 +944,23 @@ importers:
packages/depth-stack:
dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
'@hypit/visual-track':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:../visual-track
devDependencies:
'@hypit/author':
@@ -812,9 +969,6 @@ importers:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/composition':
- specifier: workspace:*
- version: link:../composition
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -824,9 +978,6 @@ importers:
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
'@hypit/media-operations':
specifier: workspace:*
version: link:../media-operations
@@ -839,33 +990,25 @@ importers:
'@hypit/recipe':
specifier: workspace:*
version: link:../recipe
- '@hypit/spatial':
- specifier: workspace:*
- version: link:../spatial
'@hypit/studio-companion':
specifier: workspace:*
version: link:../studio-companion
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
'@hypit/text':
specifier: workspace:*
version: link:../text
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
typescript:
specifier: 5.9.3
version: 5.9.3
packages/elevenlabs-speech:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -912,6 +1055,19 @@ importers:
packages/facet: {}
packages/film:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
devDependencies:
'@hypit/admission':
specifier: workspace:*
@@ -922,9 +1078,6 @@ importers:
'@hypit/compiler':
specifier: workspace:*
version: link:../compiler
- '@hypit/composition':
- specifier: workspace:*
- version: link:../composition
'@hypit/executor':
specifier: workspace:*
version: link:../executor
@@ -955,9 +1108,6 @@ importers:
'@hypit/source':
specifier: workspace:*
version: link:../source
- '@hypit/spatial':
- specifier: workspace:*
- version: link:../spatial
'@hypit/studio-companion':
specifier: workspace:*
version: link:../studio-companion
@@ -967,18 +1117,16 @@ importers:
'@hypit/text-fine':
specifier: workspace:*
version: link:../text-fine
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
packages/fishaudio-speech:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -993,16 +1141,20 @@ importers:
version: link:../text
packages/fontsource:
+ dependencies:
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
devDependencies:
'@hypit/hypit':
- specifier: workspace:^
+ specifier: workspace:*
version: link:../..
'@hypit/studio-companion':
specifier: workspace:*
version: link:../studio-companion
packages/generation:
- dependencies:
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
@@ -1012,9 +1164,15 @@ importers:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
+ '@hypit/executor':
+ specifier: workspace:*
+ version: link:../executor
'@hypit/facet':
specifier: workspace:*
version: link:../facet
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
'@hypit/producer':
specifier: workspace:*
version: link:../producer
@@ -1024,15 +1182,14 @@ importers:
'@hypit/text':
specifier: workspace:*
version: link:../text
- devDependencies:
- '@hypit/executor':
- specifier: workspace:*
- version: link:../executor
packages/gpt-image:
dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
'@hypit/image-operations':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:../image-operations
devDependencies:
'@hypit/author':
@@ -1041,9 +1198,6 @@ importers:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -1094,13 +1248,14 @@ importers:
version: link:../text
packages/grok-imagine:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -1116,28 +1271,22 @@ importers:
packages/html-program:
dependencies:
- '@hypit/admission':
- specifier: workspace:*
- version: link:../admission
- '@hypit/author':
- specifier: workspace:*
- version: link:../author
'@hypit/composition':
- specifier: workspace:*
+ specifier: workspace:^0.1.0
version: link:../composition
'@hypit/media':
- specifier: workspace:*
+ specifier: workspace:^0.1.0
version: link:../media
- '@hypit/producer':
- specifier: workspace:*
- version: link:../producer
- '@hypit/protocol':
- specifier: workspace:*
- version: link:../protocol
'@hypit/timeline':
- specifier: workspace:*
+ specifier: workspace:^0.1.0
version: link:../timeline
devDependencies:
+ '@hypit/admission':
+ specifier: workspace:*
+ version: link:../admission
+ '@hypit/author':
+ specifier: workspace:*
+ version: link:../author
'@hypit/caption':
specifier: workspace:*
version: link:../caption
@@ -1147,6 +1296,15 @@ importers:
'@hypit/fontsource':
specifier: workspace:*
version: link:../fontsource
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
+ '@hypit/producer':
+ specifier: workspace:*
+ version: link:../producer
+ '@hypit/protocol':
+ specifier: workspace:*
+ version: link:../protocol
'@hypit/ranking':
specifier: workspace:*
version: link:../ranking
@@ -1171,9 +1329,24 @@ importers:
packages/html-video:
dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/html-program':
+ specifier: workspace:^0.1.0
+ version: link:../html-program
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
'@hypit/media-operations':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:../media-operations
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
devDependencies:
'@hypit/admission':
specifier: workspace:*
@@ -1187,15 +1360,9 @@ importers:
'@hypit/compiler':
specifier: workspace:*
version: link:../compiler
- '@hypit/composition':
- specifier: workspace:*
- version: link:../composition
'@hypit/executor':
specifier: workspace:*
version: link:../executor
- '@hypit/html-program':
- specifier: workspace:*
- version: link:../html-program
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -1205,9 +1372,6 @@ importers:
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
'@hypit/producer':
specifier: workspace:*
version: link:../producer
@@ -1220,14 +1384,12 @@ importers:
'@hypit/source':
specifier: workspace:*
version: link:../source
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
packages/image-operations:
+ dependencies:
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
devDependencies:
'@hypit/author':
specifier: workspace:*
@@ -1247,11 +1409,21 @@ importers:
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
- '@hypit/spatial':
- specifier: workspace:*
- version: link:../spatial
packages/interview-emoji-reveal:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
devDependencies:
'@hypit/hypit':
specifier: workspace:*
@@ -1305,12 +1477,19 @@ importers:
packages/media:
dependencies:
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
'@hypit/blob':
specifier: workspace:*
version: link:../blob
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
'@hypit/markup':
specifier: workspace:*
version: link:../markup
@@ -1320,15 +1499,21 @@ importers:
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
packages/media-local:
dependencies:
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
'@hypit/media-operations':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:../media-operations
+ '@hypit/speech-evidence':
+ specifier: workspace:^0.1.0
+ version: link:../speech-evidence
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
sharp:
specifier: 0.35.4
version: 0.35.4(@types/[email protected])
@@ -1345,9 +1530,6 @@ importers:
'@hypit/hypit':
specifier: workspace:*
version: link:../..
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
@@ -1357,30 +1539,34 @@ importers:
'@hypit/runtime-local':
specifier: workspace:*
version: link:../runtime-local
- '@hypit/speech-evidence':
- specifier: workspace:*
- version: link:../speech-evidence
packages/media-operations:
- devDependencies:
- '@hypit/author':
- specifier: workspace:*
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
+ devDependencies:
+ '@hypit/author':
+ specifier: workspace:*
version: link:../author
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/composition':
- specifier: workspace:*
- version: link:../composition
'@hypit/hypit':
specifier: workspace:*
version: link:../..
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
'@hypit/producer':
specifier: workspace:*
version: link:../producer
@@ -1393,21 +1579,16 @@ importers:
'@hypit/run':
specifier: workspace:*
version: link:../run
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
packages/mimo-speech:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -1422,13 +1603,14 @@ importers:
version: link:../text
packages/minimax-h3:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -1443,13 +1625,14 @@ importers:
version: link:../text
packages/nano-banana:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -1464,10 +1647,13 @@ importers:
version: link:../text
packages/narrative:
- dependencies:
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
'@hypit/producer':
specifier: workspace:*
version: link:../producer
@@ -1477,24 +1663,28 @@ importers:
packages/narrative-caption:
dependencies:
+ '@hypit/caption':
+ specifier: workspace:^0.1.0
+ version: link:../caption
+ '@hypit/narrative':
+ specifier: workspace:^0.1.0
+ version: link:../narrative
+ '@hypit/narrative-temporal':
+ specifier: workspace:^0.1.0
+ version: link:../narrative-temporal
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
'@hypit/author':
specifier: workspace:*
version: link:../author
- '@hypit/caption':
+ '@hypit/hypit':
specifier: workspace:*
- version: link:../caption
+ version: link:../..
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/narrative':
- specifier: workspace:*
- version: link:../narrative
- '@hypit/narrative-temporal':
- specifier: workspace:*
- version: link:../narrative-temporal
'@hypit/producer':
specifier: workspace:*
version: link:../producer
@@ -1503,58 +1693,70 @@ importers:
version: link:../protocol
packages/narrative-speech-alignment:
+ dependencies:
+ '@hypit/narrative':
+ specifier: workspace:^0.1.0
+ version: link:../narrative
+ '@hypit/narrative-temporal':
+ specifier: workspace:^0.1.0
+ version: link:../narrative-temporal
+ '@hypit/speech-evidence':
+ specifier: workspace:^0.1.0
+ version: link:../speech-evidence
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
devDependencies:
'@hypit/hypit':
specifier: workspace:*
version: link:../..
- '@hypit/narrative':
- specifier: workspace:*
- version: link:../narrative
'@hypit/script':
specifier: workspace:*
version: link:../script
- '@hypit/speech-evidence':
- specifier: workspace:*
- version: link:../speech-evidence
packages/narrative-temporal:
dependencies:
+ '@hypit/narrative':
+ specifier: workspace:^0.1.0
+ version: link:../narrative
+ '@hypit/studio-companion':
+ specifier: workspace:^0.1.1
+ version: link:../studio-companion
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
'@hypit/author':
specifier: workspace:*
version: link:../author
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/narrative':
- specifier: workspace:*
- version: link:../narrative
'@hypit/producer':
specifier: workspace:*
version: link:../producer
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
- '@hypit/studio-companion':
- specifier: workspace:*
- version: link:../studio-companion
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
packages/pixverse:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -1582,13 +1784,14 @@ importers:
packages/protocol: {}
packages/provider-beatapi:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/endpoint':
specifier: workspace:*
version: link:../endpoint
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/gpt-image':
specifier: workspace:*
version: link:../gpt-image
@@ -1618,13 +1821,14 @@ importers:
version: link:../seedance
packages/provider-hiapi:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/endpoint':
specifier: workspace:*
version: link:../endpoint
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/gpt-image':
specifier: workspace:*
version: link:../gpt-image
@@ -1658,6 +1862,12 @@ importers:
packages/provider-html-local:
dependencies:
+ '@hypit/html-program':
+ specifier: workspace:^0.1.0
+ version: link:../html-program
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
'@puppeteer/browsers':
specifier: 3.2.2
version: 3.2.2
@@ -1683,15 +1893,9 @@ importers:
'@hypit/executor':
specifier: workspace:*
version: link:../executor
- '@hypit/html-program':
- specifier: workspace:*
- version: link:../html-program
'@hypit/hypit':
specifier: workspace:*
version: link:../..
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
@@ -1715,6 +1919,13 @@ importers:
version: 0.35.4(@types/[email protected])
packages/provider-hypihub:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
+ '@hypit/speech-evidence':
+ specifier: workspace:^0.1.0
+ version: link:../speech-evidence
devDependencies:
'@hypit/elevenlabs-speech':
specifier: workspace:*
@@ -1728,9 +1939,6 @@ importers:
'@hypit/fishaudio-speech':
specifier: workspace:*
version: link:../fishaudio-speech
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/gpt-image':
specifier: workspace:*
version: link:../gpt-image
@@ -1752,9 +1960,6 @@ importers:
'@hypit/seedance':
specifier: workspace:*
version: link:../seedance
- '@hypit/speech-evidence':
- specifier: workspace:*
- version: link:../speech-evidence
'@hypit/text':
specifier: workspace:*
version: link:../text
@@ -1790,13 +1995,14 @@ importers:
version: link:../runtime-local
packages/provider-monid:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/endpoint':
specifier: workspace:*
version: link:../endpoint
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -1820,13 +2026,14 @@ importers:
version: link:../wan
packages/provider-pollo:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/endpoint':
specifier: workspace:*
version: link:../endpoint
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/gpt-image':
specifier: workspace:*
version: link:../gpt-image
@@ -1853,13 +2060,14 @@ importers:
version: link:../runtime-local
packages/provider-tokendance:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/endpoint':
specifier: workspace:*
version: link:../endpoint
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -1883,6 +2091,10 @@ importers:
version: link:../seedream
packages/provider-whisperx-local:
+ dependencies:
+ '@hypit/speech-evidence':
+ specifier: workspace:^0.1.0
+ version: link:../speech-evidence
devDependencies:
'@hypit/endpoint':
specifier: workspace:*
@@ -1899,14 +2111,27 @@ importers:
'@hypit/runtime-local':
specifier: workspace:*
version: link:../runtime-local
- '@hypit/speech-evidence':
- specifier: workspace:*
- version: link:../speech-evidence
'@hypit/whisperx':
specifier: workspace:*
version: link:../whisperx
packages/ranking:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
devDependencies:
'@hypit/hypit':
specifier: workspace:*
@@ -1917,30 +2142,18 @@ importers:
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
'@hypit/narrative':
specifier: workspace:*
version: link:../narrative
'@hypit/recipe':
specifier: workspace:*
version: link:../recipe
- '@hypit/spatial':
- specifier: workspace:*
- version: link:../spatial
'@hypit/studio-companion':
specifier: workspace:*
version: link:../studio-companion
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
'@hypit/text':
specifier: workspace:*
version: link:../text
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
typescript:
specifier: 5.9.3
version: 5.9.3
@@ -1969,12 +2182,22 @@ importers:
packages/region-evidence:
dependencies:
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
'@hypit/author':
specifier: workspace:*
version: link:../author
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
'@hypit/markup':
specifier: workspace:*
version: link:../markup
@@ -1987,12 +2210,6 @@ importers:
'@hypit/recipe':
specifier: workspace:*
version: link:../recipe
- '@hypit/spatial':
- specifier: workspace:*
- version: link:../spatial
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
packages/result:
dependencies:
@@ -2074,10 +2291,20 @@ importers:
version: link:../workspace
packages/script:
- devDependencies:
+ dependencies:
'@hypit/caption':
- specifier: workspace:*
+ specifier: workspace:^0.1.0
version: link:../caption
+ '@hypit/narrative':
+ specifier: workspace:^0.1.0
+ version: link:../narrative
+ '@hypit/narrative-caption':
+ specifier: workspace:^0.1.0
+ version: link:../narrative-caption
+ '@hypit/narrative-temporal':
+ specifier: workspace:^0.1.0
+ version: link:../narrative-temporal
+ devDependencies:
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -2087,15 +2314,6 @@ importers:
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/narrative':
- specifier: workspace:*
- version: link:../narrative
- '@hypit/narrative-caption':
- specifier: workspace:*
- version: link:../narrative-caption
- '@hypit/narrative-temporal':
- specifier: workspace:*
- version: link:../narrative-temporal
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
@@ -2110,6 +2328,10 @@ importers:
version: link:../text
packages/seedance:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/hypit':
specifier: workspace:*
@@ -2134,13 +2356,14 @@ importers:
version: link:../text
packages/seedream:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -2161,13 +2384,22 @@ importers:
version: link:../protocol
packages/spatial:
- dependencies:
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
'@hypit/author':
specifier: workspace:*
version: link:../author
+ '@hypit/compiler':
+ specifier: workspace:*
+ version: link:../compiler
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
+ '@hypit/kernel':
+ specifier: workspace:*
+ version: link:../kernel
'@hypit/markup':
specifier: workspace:*
version: link:../markup
@@ -2177,13 +2409,6 @@ importers:
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
- devDependencies:
- '@hypit/compiler':
- specifier: workspace:*
- version: link:../compiler
- '@hypit/kernel':
- specifier: workspace:*
- version: link:../kernel
'@hypit/source':
specifier: workspace:*
version: link:../source
@@ -2206,37 +2431,52 @@ importers:
packages/speech-evidence:
dependencies:
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
- '@hypit/media':
+ '@hypit/hypit':
specifier: workspace:*
- version: link:../media
+ version: link:../..
'@hypit/producer':
specifier: workspace:*
version: link:../producer
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
- devDependencies:
'@hypit/timeline':
specifier: workspace:*
version: link:../timeline
packages/studio:
dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/html-program':
+ specifier: workspace:^0.1.0
+ version: link:../html-program
'@hypit/media-local':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:../media-local
'@hypit/media-operations':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:../media-operations
'@hypit/studio-companion':
- specifier: workspace:^
+ specifier: workspace:^0.1.1
version: link:../studio-companion
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
vite:
specifier: 8.2.2
@@ -2253,12 +2493,6 @@ importers:
'@hypit/compiler':
specifier: workspace:*
version: link:../compiler
- '@hypit/composition':
- specifier: workspace:*
- version: link:../composition
- '@hypit/html-program':
- specifier: workspace:*
- version: link:../html-program
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -2274,12 +2508,6 @@ importers:
'@hypit/script':
specifier: workspace:*
version: link:../script
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
'@hypit/video':
specifier: workspace:*
version: link:../video
@@ -2298,12 +2526,22 @@ importers:
packages/temporal:
dependencies:
+ '@hypit/studio-companion':
+ specifier: workspace:^0.1.1
+ version: link:../studio-companion
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
'@hypit/author':
specifier: workspace:*
version: link:../author
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
'@hypit/markup':
specifier: workspace:*
version: link:../markup
@@ -2313,9 +2551,6 @@ importers:
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
packages/text:
dependencies:
@@ -2345,6 +2580,22 @@ importers:
version: link:../source
packages/text-fine:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
devDependencies:
'@hypit/admission':
specifier: workspace:*
@@ -2355,9 +2606,6 @@ importers:
'@hypit/compiler':
specifier: workspace:*
version: link:../compiler
- '@hypit/composition':
- specifier: workspace:*
- version: link:../composition
'@hypit/html-program':
specifier: workspace:*
version: link:../html-program
@@ -2370,9 +2618,6 @@ importers:
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
'@hypit/narrative':
specifier: workspace:*
version: link:../narrative
@@ -2388,27 +2633,21 @@ importers:
'@hypit/source':
specifier: workspace:*
version: link:../source
- '@hypit/spatial':
- specifier: workspace:*
- version: link:../spatial
'@hypit/studio-companion':
specifier: workspace:*
version: link:../studio-companion
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
'@hypit/text':
specifier: workspace:*
version: link:../text
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
packages/timeline:
- dependencies:
+ devDependencies:
'@hypit/admission':
specifier: workspace:*
version: link:../admission
+ '@hypit/hypit':
+ specifier: workspace:*
+ version: link:../..
'@hypit/producer':
specifier: workspace:*
version: link:../producer
@@ -2417,6 +2656,13 @@ importers:
version: link:../protocol
packages/timeline-author:
+ dependencies:
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
devDependencies:
'@hypit/admission':
specifier: workspace:*
@@ -2439,21 +2685,147 @@ importers:
'@hypit/studio-companion':
specifier: workspace:*
version: link:../studio-companion
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
'@hypit/text':
specifier: workspace:*
version: link:../text
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
packages/video:
dependencies:
+ '@hypit/audio-track':
+ specifier: workspace:^0.2.0
+ version: link:../audio-track
+ '@hypit/caption':
+ specifier: workspace:^0.1.0
+ version: link:../caption
+ '@hypit/caption-fine':
+ specifier: workspace:^0.2.0
+ version: link:../caption-fine
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/credential-store-env':
+ specifier: workspace:^0.1.1
+ version: link:../credential-store-env
+ '@hypit/credential-store-local':
+ specifier: workspace:^0.1.1
+ version: link:../credential-store-local
+ '@hypit/elevenlabs-speech':
+ specifier: workspace:^0.2.0
+ version: link:../elevenlabs-speech
+ '@hypit/film':
+ specifier: workspace:^0.2.0
+ version: link:../film
+ '@hypit/fishaudio-speech':
+ specifier: workspace:^0.2.0
+ version: link:../fishaudio-speech
+ '@hypit/fontsource':
+ specifier: workspace:^0.2.0
+ version: link:../fontsource
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
+ '@hypit/gpt-image':
+ specifier: workspace:^0.2.0
+ version: link:../gpt-image
+ '@hypit/gpt-image-kits':
+ specifier: workspace:^0.1.1
+ version: link:../gpt-image-kits
+ '@hypit/grok-imagine':
+ specifier: workspace:^0.2.0
+ version: link:../grok-imagine
+ '@hypit/html-program':
+ specifier: workspace:^0.1.0
+ version: link:../html-program
+ '@hypit/html-video':
+ specifier: workspace:^0.2.0
+ version: link:../html-video
+ '@hypit/image-operations':
+ specifier: workspace:^0.2.0
+ version: link:../image-operations
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
+ '@hypit/media-operations':
+ specifier: workspace:^0.2.0
+ version: link:../media-operations
+ '@hypit/mimo-speech':
+ specifier: workspace:^0.2.0
+ version: link:../mimo-speech
+ '@hypit/minimax-h3':
+ specifier: workspace:^0.2.0
+ version: link:../minimax-h3
+ '@hypit/nano-banana':
+ specifier: workspace:^0.2.0
+ version: link:../nano-banana
+ '@hypit/narrative':
+ specifier: workspace:^0.1.0
+ version: link:../narrative
+ '@hypit/narrative-caption':
+ specifier: workspace:^0.1.0
+ version: link:../narrative-caption
+ '@hypit/narrative-temporal':
+ specifier: workspace:^0.1.0
+ version: link:../narrative-temporal
+ '@hypit/pixverse':
+ specifier: workspace:^0.2.0
+ version: link:../pixverse
+ '@hypit/provider-html-local':
+ specifier: workspace:^0.2.0
+ version: link:../provider-html-local
+ '@hypit/provider-hypihub':
+ specifier: workspace:^0.2.0
+ version: link:../provider-hypihub
+ '@hypit/provider-image-opencv-local':
+ specifier: workspace:^0.2.0
+ version: link:../provider-image-opencv-local
+ '@hypit/provider-whisperx-local':
+ specifier: workspace:^0.2.0
+ version: link:../provider-whisperx-local
+ '@hypit/region-evidence':
+ specifier: workspace:^0.1.0
+ version: link:../region-evidence
'@hypit/runtime-local':
- specifier: workspace:^
+ specifier: workspace:^0.1.1
version: link:../runtime-local
+ '@hypit/script':
+ specifier: workspace:^0.2.0
+ version: link:../script
+ '@hypit/seedance':
+ specifier: workspace:^0.2.0
+ version: link:../seedance
+ '@hypit/seedance-kits':
+ specifier: workspace:^0.1.1
+ version: link:../seedance-kits
+ '@hypit/seedream':
+ specifier: workspace:^0.2.0
+ version: link:../seedream
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
+ '@hypit/speech-evidence':
+ specifier: workspace:^0.1.0
+ version: link:../speech-evidence
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/text-fine':
+ specifier: workspace:^0.2.0
+ version: link:../text-fine
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
+ '@hypit/timeline-author':
+ specifier: workspace:^0.2.0
+ version: link:../timeline-author
+ '@hypit/visual-track':
+ specifier: workspace:^0.2.0
+ version: link:../visual-track
+ '@hypit/volcengine-matting':
+ specifier: workspace:^0.2.0
+ version: link:../volcengine-matting
+ '@hypit/wan':
+ specifier: workspace:^0.2.0
+ version: link:../wan
devDependencies:
'@hypit/cli':
specifier: workspace:*
@@ -2469,13 +2841,26 @@ importers:
version: link:../markup
packages/visual-track:
+ dependencies:
+ '@hypit/composition':
+ specifier: workspace:^0.1.0
+ version: link:../composition
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
+ '@hypit/spatial':
+ specifier: workspace:^0.1.0
+ version: link:../spatial
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
+ '@hypit/timeline':
+ specifier: workspace:^0.1.0
+ version: link:../timeline
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/composition':
- specifier: workspace:*
- version: link:../composition
'@hypit/html-program':
specifier: workspace:*
version: link:../html-program
@@ -2485,9 +2870,6 @@ importers:
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
'@hypit/narrative':
specifier: workspace:*
version: link:../narrative
@@ -2497,30 +2879,22 @@ importers:
'@hypit/recipe':
specifier: workspace:*
version: link:../recipe
- '@hypit/spatial':
- specifier: workspace:*
- version: link:../spatial
'@hypit/studio-companion':
specifier: workspace:*
version: link:../studio-companion
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
- '@hypit/timeline':
- specifier: workspace:*
- version: link:../timeline
typescript:
specifier: 5.9.3
version: 5.9.3
packages/volcengine-matting:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -2532,13 +2906,14 @@ importers:
version: link:../protocol
packages/wan:
+ dependencies:
+ '@hypit/generation':
+ specifier: workspace:^0.1.0
+ version: link:../generation
devDependencies:
'@hypit/blob':
specifier: workspace:*
version: link:../blob
- '@hypit/generation':
- specifier: workspace:*
- version: link:../generation
'@hypit/hypit':
specifier: workspace:*
version: link:../..
@@ -2554,12 +2929,27 @@ importers:
packages/whisperx:
dependencies:
+ '@hypit/media':
+ specifier: workspace:^0.1.0
+ version: link:../media
'@hypit/media-local':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:../media-local
+ '@hypit/narrative':
+ specifier: workspace:^0.1.0
+ version: link:../narrative
'@hypit/narrative-speech-alignment':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:../narrative-speech-alignment
+ '@hypit/narrative-temporal':
+ specifier: workspace:^0.1.0
+ version: link:../narrative-temporal
+ '@hypit/speech-evidence':
+ specifier: workspace:^0.1.0
+ version: link:../speech-evidence
+ '@hypit/temporal':
+ specifier: workspace:^0.1.0
+ version: link:../temporal
devDependencies:
'@hypit/author':
specifier: workspace:*
@@ -2570,27 +2960,12 @@ importers:
'@hypit/markup':
specifier: workspace:*
version: link:../markup
- '@hypit/media':
- specifier: workspace:*
- version: link:../media
- '@hypit/narrative':
- specifier: workspace:*
- version: link:../narrative
- '@hypit/narrative-temporal':
- specifier: workspace:*
- version: link:../narrative-temporal
'@hypit/producer':
specifier: workspace:*
version: link:../producer
'@hypit/protocol':
specifier: workspace:*
version: link:../protocol
- '@hypit/speech-evidence':
- specifier: workspace:*
- version: link:../speech-evidence
- '@hypit/temporal':
- specifier: workspace:*
- version: link:../temporal
'@hypit/timeline':
specifier: workspace:*
version: link:../timeline
@@ -2610,7 +2985,7 @@ importers:
packages/yt-dlp:
dependencies:
'@hypit/media-local':
- specifier: workspace:^
+ specifier: workspace:^0.2.0
version: link:../media-local
devDependencies:
'@hypit/hypit':
diff --git a/scripts/check-distribution.mjs b/scripts/check-distribution.mjs
index b250e406..fca3858e 100644
--- a/scripts/check-distribution.mjs
+++ b/scripts/check-distribution.mjs
@@ -93,7 +93,13 @@ try {
await cp(join(example, "packages", "chat-scene"), component, { recursive: true });
const installed = installedDistribution;
const componentPackage = JSON.parse(await readFile(join(component, "package.json"), "utf8"));
- componentPackage.devDependencies["@hypit/hypit"] = installed.version;
+ for (const field of ["dependencies", "peerDependencies", "devDependencies"]) {
+ for (const [name, range] of Object.entries(componentPackage[field] ?? {})) {
+ if (!range.startsWith("workspace:")) continue;
+ const selected = JSON.parse(await readFile(join(project, "node_modules", ...name.split("/"), "package.json"), "utf8"));
+ componentPackage[field][name] = selected.version;
+ }
+ }
await writeFile(join(component, "package.json"), JSON.stringify(componentPackage, null, 2));
const projectPackage = JSON.parse(await readFile(join(project, "package.json"), "utf8"));
projectPackage.workspaces = ["packages/chat-scene"];
diff --git a/scripts/check-independent-audio-track.mjs b/scripts/check-independent-audio-track.mjs
index 5367a190..f15fb76c 100644
--- a/scripts/check-independent-audio-track.mjs
+++ b/scripts/check-independent-audio-track.mjs
@@ -14,6 +14,8 @@ import { admissionPackagesFromFacets } from "../packages/admission/src/index.ts"
import { producerPackagesFromFacets } from "../packages/producer/src/index.ts";
import { studioContributionFromPackage } from "../packages/studio-companion/src/index.ts";
+import { packConsumerDependencies, consumerHostManifest, defaultPackageNames } from "./independent-consumer.mjs";
+
import { packIndependentPackage, releasedPackageDependencyMap } from "./pack-independent-package.mjs";
import { distributionEmbeddedPackageDirectories } from "./distribution-ownership.mjs";
@@ -30,6 +32,7 @@ const distribution = join(root, "distribution");
let passed = false;
try {
const tarball = await packIndependentPackage("packages/audio-track", output);
+ const dependencies = await packConsumerDependencies(["audio-track"], output);
await mkdir(consumer);
await writeFile(join(consumer, "package.json"), `${JSON.stringify({
name: "audio-track-independent-consumer",
@@ -43,6 +46,7 @@ try {
"--no-audit",
"--no-fund",
"--legacy-peer-deps",
+ ...dependencies,
tarball,
], {
cwd: consumer,
@@ -66,9 +70,9 @@ try {
await assert.rejects(access(join(installedRoot, "src", "activation.ts")));
await mkdir(join(distribution, "packages"), { recursive: true });
- const rootManifest = JSON.parse(await readFile(join(repositoryRoot, "package.json"), "utf8"));
+ const rootManifest = await consumerHostManifest();
assert.equal(rootManifest.exports["./audio-track"], undefined);
- assert.equal(rootManifest.dependencies["@hypit/audio-track"], "workspace:^");
+ assert.ok((await defaultPackageNames()).has("@hypit/audio-track"));
assert.equal((await distributionEmbeddedPackageDirectories(repositoryRoot)).has("audio-track"), false);
await writeFile(join(distribution, "package.json"), `${JSON.stringify(rootManifest, null, 2)}\n`);
for (const entry of await readdir(join(repositoryRoot, "packages"), { withFileTypes: true })) {
diff --git a/scripts/check-independent-author-packages.mjs b/scripts/check-independent-author-packages.mjs
index c6dbaee1..5709ec03 100644
--- a/scripts/check-independent-author-packages.mjs
+++ b/scripts/check-independent-author-packages.mjs
@@ -13,6 +13,8 @@ import { admissionPackagesFromFacets } from "../packages/admission/src/index.ts"
import { producerPackagesFromFacets } from "../packages/producer/src/index.ts";
import { studioContributionFromPackage } from "../packages/studio-companion/src/index.ts";
+import { packConsumerDependencies, consumerHostManifest, defaultPackageNames } from "./independent-consumer.mjs";
+
import { packIndependentPackage, releasedPackageDependencyMap } from "./pack-independent-package.mjs";
import { distributionEmbeddedPackageDirectories } from "./distribution-ownership.mjs";
@@ -33,6 +35,7 @@ try {
for (const [index, name] of names.entries()) {
tarballs.push(await packIndependentPackage(`packages/${name}`, output, { buildPublicTypes: index === 0 }));
}
+ const dependencies = await packConsumerDependencies(names, output);
await mkdir(consumer);
await writeFile(join(consumer, "package.json"), `${JSON.stringify({
name: "author-packages-independent-consumer",
@@ -46,6 +49,7 @@ try {
"--no-audit",
"--no-fund",
"--legacy-peer-deps",
+ ...dependencies,
...tarballs,
], {
cwd: consumer,
@@ -75,11 +79,11 @@ try {
}
await mkdir(join(distribution, "packages"), { recursive: true });
- const rootManifest = JSON.parse(await readFile(join(repositoryRoot, "package.json"), "utf8"));
+ const rootManifest = await consumerHostManifest();
const embedded = await distributionEmbeddedPackageDirectories(repositoryRoot);
for (const name of names) {
assert.equal(rootManifest.exports[`./${name}`], undefined);
- assert.equal(rootManifest.dependencies[`@hypit/${name}`], "workspace:^");
+ assert.ok((await defaultPackageNames()).has(`@hypit/${name}`));
assert.equal(embedded.has(name), false);
}
await writeFile(join(distribution, "package.json"), `${JSON.stringify(rootManifest, null, 2)}\n`);
diff --git a/scripts/check-independent-components.mjs b/scripts/check-independent-components.mjs
index 0e55281d..3726b5aa 100644
--- a/scripts/check-independent-components.mjs
+++ b/scripts/check-independent-components.mjs
@@ -12,6 +12,8 @@ import {
import { compositionTypes } from "../packages/composition/src/index.ts";
import { studioContributionFromPackage } from "../packages/studio-companion/src/index.ts";
+import { packConsumerDependencies, consumerHostManifest } from "./independent-consumer.mjs";
+
import { packIndependentPackage, releasedPackageDependencyMap } from "./pack-independent-package.mjs";
const repositoryRoot = resolve(fileURLToPath(new URL("..", import.meta.url)));
@@ -30,6 +32,7 @@ try {
const visualTrack = await packIndependentPackage("packages/visual-track", output, { buildPublicTypes: false });
const depth = await packIndependentPackage("packages/depth-stack", output, { buildPublicTypes: false });
const emoji = await packIndependentPackage("packages/interview-emoji-reveal", output, { buildPublicTypes: false });
+ const dependencies = await packConsumerDependencies(["comment-sticker", "visual-track", "depth-stack", "interview-emoji-reveal"], output);
await mkdir(consumer);
await writeFile(join(consumer, "package.json"), `${JSON.stringify({
name: "independent-component-consumer",
@@ -43,6 +46,7 @@ try {
"--no-audit",
"--no-fund",
"--legacy-peer-deps",
+ ...dependencies,
comment,
visualTrack,
depth,
@@ -98,7 +102,7 @@ try {
await assert.rejects(access(join(installedEmoji.root, "src", "activation.ts")));
await mkdir(join(distribution, "packages"), { recursive: true });
- await writeFile(join(distribution, "package.json"), await readFile(join(repositoryRoot, "package.json"), "utf8"));
+ await writeFile(join(distribution, "package.json"), JSON.stringify(await consumerHostManifest()));
const excluded = new Set(["comment-sticker", "comment-sticker-studio", "depth-stack", "interview-emoji-reveal", "visual-track"]);
for (const entry of await readdir(join(repositoryRoot, "packages"), { withFileTypes: true })) {
if (!entry.isDirectory() || excluded.has(entry.name)) continue;
diff --git a/scripts/check-independent-fine-packages.mjs b/scripts/check-independent-fine-packages.mjs
index 2a352560..e00b4ec6 100644
--- a/scripts/check-independent-fine-packages.mjs
+++ b/scripts/check-independent-fine-packages.mjs
@@ -14,6 +14,8 @@ import { admissionPackagesFromFacets } from "../packages/admission/src/index.ts"
import { producerPackagesFromFacets } from "../packages/producer/src/index.ts";
import { studioContributionFromPackage } from "../packages/studio-companion/src/index.ts";
+import { packConsumerDependencies, consumerHostManifest, defaultPackageNames } from "./independent-consumer.mjs";
+
import { packIndependentPackage, releasedPackageDependencyMap } from "./pack-independent-package.mjs";
import { distributionEmbeddedPackageDirectories } from "./distribution-ownership.mjs";
@@ -31,6 +33,7 @@ let passed = false;
try {
const caption = await packIndependentPackage("packages/caption-fine", output);
const text = await packIndependentPackage("packages/text-fine", output, { buildPublicTypes: false });
+ const dependencies = await packConsumerDependencies(["caption-fine", "text-fine"], output);
await mkdir(consumer);
await writeFile(join(consumer, "package.json"), `${JSON.stringify({
name: "fine-independent-consumer",
@@ -44,6 +47,7 @@ try {
"--no-audit",
"--no-fund",
"--legacy-peer-deps",
+ ...dependencies,
caption,
text,
], {
@@ -81,11 +85,11 @@ try {
await access(join(installedText.root, "preview", "Mask.png"));
await mkdir(join(distribution, "packages"), { recursive: true });
- const rootManifest = JSON.parse(await readFile(join(repositoryRoot, "package.json"), "utf8"));
+ const rootManifest = await consumerHostManifest();
const embedded = await distributionEmbeddedPackageDirectories(repositoryRoot);
for (const name of ["caption-fine", "text-fine"]) {
assert.equal(rootManifest.exports[`./${name}`], undefined);
- assert.equal(rootManifest.dependencies[`@hypit/${name}`], "workspace:^");
+ assert.ok((await defaultPackageNames()).has(`@hypit/${name}`));
assert.equal(embedded.has(name), false);
}
await writeFile(join(distribution, "package.json"), `${JSON.stringify(rootManifest, null, 2)}\n`);
diff --git a/scripts/check-independent-hypihub.mjs b/scripts/check-independent-hypihub.mjs
index 10e3531d..6bb4f50a 100644
--- a/scripts/check-independent-hypihub.mjs
+++ b/scripts/check-independent-hypihub.mjs
@@ -10,6 +10,8 @@ import {
loadNodePackageSelection,
} from "../packages/loader/src/node/index.ts";
+import { packConsumerDependencies, consumerHostManifest } from "./independent-consumer.mjs";
+
import { packIndependentPackage, releasedPackageDependencyMap } from "./pack-independent-package.mjs";
const repositoryRoot = resolve(fileURLToPath(new URL("..", import.meta.url)));
@@ -31,6 +33,7 @@ try {
);
const whisperx = await packIndependentPackage("packages/whisperx", output, { buildPublicTypes: false });
const provider = await packIndependentPackage("packages/provider-hypihub", output, { buildPublicTypes: false });
+ const dependencies = await packConsumerDependencies(["media-operations", "media-local", "narrative-speech-alignment", "whisperx", "provider-hypihub"], output);
await mkdir(consumer);
await writeFile(join(consumer, "package.json"), `${JSON.stringify({
name: "hypihub-independent-consumer",
@@ -44,6 +47,7 @@ try {
"--no-audit",
"--no-fund",
"--legacy-peer-deps",
+ ...dependencies,
mediaOperations,
mediaLocal,
narrativeSpeechAlignment,
@@ -83,7 +87,7 @@ try {
await access(join(whisperXRoot, "dist", "activation.js"));
await mkdir(join(distribution, "packages"), { recursive: true });
- await writeFile(join(distribution, "package.json"), await readFile(join(repositoryRoot, "package.json"), "utf8"));
+ await writeFile(join(distribution, "package.json"), JSON.stringify(await consumerHostManifest()));
for (const entry of await readdir(join(repositoryRoot, "packages"), { withFileTypes: true })) {
if (!entry.isDirectory() || [
"media-local",
diff --git a/scripts/check-independent-ranking.mjs b/scripts/check-independent-ranking.mjs
index b36a509c..2fd13944 100644
--- a/scripts/check-independent-ranking.mjs
+++ b/scripts/check-independent-ranking.mjs
@@ -12,6 +12,8 @@ import {
import { compositionTypes } from "../packages/composition/src/index.ts";
import { studioContributionFromPackage } from "../packages/studio-companion/src/index.ts";
+import { packConsumerDependencies, consumerHostManifest } from "./independent-consumer.mjs";
+
import { packIndependentPackage, releasedPackageDependencyMap } from "./pack-independent-package.mjs";
const repositoryRoot = resolve(fileURLToPath(new URL("..", import.meta.url)));
@@ -27,6 +29,7 @@ const distribution = join(root, "distribution");
let passed = false;
try {
const ranking = await packIndependentPackage("packages/ranking", output);
+ const dependencies = await packConsumerDependencies(["ranking"], output);
await mkdir(consumer);
await writeFile(join(consumer, "package.json"), `${JSON.stringify({
name: "ranking-independent-consumer",
@@ -40,6 +43,7 @@ try {
"--no-audit",
"--no-fund",
"--legacy-peer-deps",
+ ...dependencies,
ranking,
], {
cwd: consumer,
@@ -64,9 +68,7 @@ try {
await assert.rejects(access(join(installedRoot, "src", "activation.ts")));
await mkdir(join(distribution, "packages"), { recursive: true });
- await writeFile(join(distribution, "package.json"), await readFile(
- join(repositoryRoot, "package.json"), "utf8",
- ));
+ await writeFile(join(distribution, "package.json"), JSON.stringify(await consumerHostManifest()));
for (const entry of await readdir(join(repositoryRoot, "packages"), { withFileTypes: true })) {
if (!entry.isDirectory() || entry.name === "ranking" || entry.name === "ranking-studio") continue;
await symlink(join(repositoryRoot, "packages", entry.name), join(distribution, "packages", entry.name),
diff --git a/scripts/check-independent-runtime-packages.mjs b/scripts/check-independent-runtime-packages.mjs
index fc5f1e86..f6f5d3c3 100644
--- a/scripts/check-independent-runtime-packages.mjs
+++ b/scripts/check-independent-runtime-packages.mjs
@@ -10,6 +10,8 @@ import {
loadNodePackageSelection,
} from "../packages/loader/src/node/index.ts";
+import { packConsumerDependencies, consumerHostManifest, defaultPackageNames } from "./independent-consumer.mjs";
+
import { packIndependentPackage, releasedPackageDependencyMap } from "./pack-independent-package.mjs";
const repositoryRoot = resolve(fileURLToPath(new URL("..", import.meta.url)));
@@ -52,12 +54,12 @@ const consumer = join(root, "consumer");
const distribution = join(root, "distribution");
let passed = false;
try {
- const distributionManifest = JSON.parse(await readFile(join(repositoryRoot, "package.json"), "utf8"));
+ const distributionManifest = await consumerHostManifest();
for (const name of defaultPackages) {
- assert.equal(distributionManifest.dependencies[name], "workspace:^", `${name} must be a default dependency`);
+ assert.equal((await defaultPackageNames()).has(name), true, `${name} must be a default dependency`);
}
for (const name of optionalPackages) {
- assert.equal(distributionManifest.dependencies[name], undefined, `${name} must remain an optional install`);
+ assert.equal((await defaultPackageNames()).has(name), false, `${name} must remain an optional install`);
}
const tarballs = [];
@@ -79,6 +81,7 @@ try {
}
tarballs.push(await packIndependentPackage("packages/whisperx", output, { buildPublicTypes: false }));
+ const dependencies = await packConsumerDependencies([...packageDirectories, "image-operations", "media-operations", "narrative-speech-alignment", "whisperx"], output);
await mkdir(consumer);
await writeFile(join(consumer, "package.json"), `${JSON.stringify({
name: "hypit-runtime-package-consumer",
@@ -92,6 +95,7 @@ try {
"--no-audit",
"--no-fund",
"--legacy-peer-deps",
+ ...dependencies,
imageOperationsTarball,
mediaOperationsTarball,
narrativeSpeechAlignmentTarball,
diff --git a/scripts/check-independent-seedance.mjs b/scripts/check-independent-seedance.mjs
index 82ca7962..1e5ef792 100644
--- a/scripts/check-independent-seedance.mjs
+++ b/scripts/check-independent-seedance.mjs
@@ -11,6 +11,8 @@ import {
resolveNodePackageSource,
} from "../packages/loader/src/node/index.ts";
+import { packConsumerDependencies, consumerHostManifest } from "./independent-consumer.mjs";
+
import { packIndependentPackage, releasedPackageDependencyMap } from "./pack-independent-package.mjs";
const repositoryRoot = resolve(fileURLToPath(new URL("..", import.meta.url)));
@@ -27,6 +29,7 @@ let passed = false;
try {
const seedance = await packIndependentPackage("packages/seedance", output);
const kits = await packIndependentPackage("packages/seedance-kits", output, { buildPublicTypes: false });
+ const dependencies = await packConsumerDependencies(["seedance", "seedance-kits"], output);
await mkdir(consumer);
await writeFile(join(consumer, "package.json"), `${JSON.stringify({
name: "seedance-independent-consumer",
@@ -40,6 +43,7 @@ try {
"--no-audit",
"--no-fund",
"--legacy-peer-deps",
+ ...dependencies,
seedance,
kits,
], {
@@ -72,9 +76,7 @@ try {
await access(join(installedKitsRoot, "LICENSE"));
await mkdir(join(distribution, "packages"), { recursive: true });
- await writeFile(join(distribution, "package.json"), await readFile(
- join(repositoryRoot, "package.json"), "utf8",
- ));
+ await writeFile(join(distribution, "package.json"), JSON.stringify(await consumerHostManifest()));
for (const entry of await readdir(join(repositoryRoot, "packages"), { withFileTypes: true })) {
if (!entry.isDirectory() || entry.name === "seedance" || entry.name === "seedance-kits") continue;
await symlink(join(repositoryRoot, "packages", entry.name), join(distribution, "packages", entry.name),
diff --git a/scripts/check-independent-visual-track.mjs b/scripts/check-independent-visual-track.mjs
index 8fe9f5c7..456448f0 100644
--- a/scripts/check-independent-visual-track.mjs
+++ b/scripts/check-independent-visual-track.mjs
@@ -14,6 +14,8 @@ import { admissionPackagesFromFacets } from "../packages/admission/src/index.ts"
import { producerPackagesFromFacets } from "../packages/producer/src/index.ts";
import { studioContributionFromPackage } from "../packages/studio-companion/src/index.ts";
+import { packConsumerDependencies, consumerHostManifest, defaultPackageNames } from "./independent-consumer.mjs";
+
import { packIndependentPackage, releasedPackageDependencyMap } from "./pack-independent-package.mjs";
import { distributionEmbeddedPackageDirectories } from "./distribution-ownership.mjs";
@@ -30,6 +32,7 @@ const distribution = join(root, "distribution");
let passed = false;
try {
const tarball = await packIndependentPackage("packages/visual-track", output);
+ const dependencies = await packConsumerDependencies(["visual-track"], output);
await mkdir(consumer);
await writeFile(join(consumer, "package.json"), `${JSON.stringify({
name: "visual-track-independent-consumer",
@@ -43,6 +46,7 @@ try {
"--no-audit",
"--no-fund",
"--legacy-peer-deps",
+ ...dependencies,
tarball,
], {
cwd: consumer,
@@ -66,9 +70,9 @@ try {
await assert.rejects(access(join(installedRoot, "src", "activation.ts")));
await mkdir(join(distribution, "packages"), { recursive: true });
- const rootManifest = JSON.parse(await readFile(join(repositoryRoot, "package.json"), "utf8"));
+ const rootManifest = await consumerHostManifest();
assert.equal(rootManifest.exports["./visual-track"], undefined);
- assert.equal(rootManifest.dependencies["@hypit/visual-track"], "workspace:^");
+ assert.ok((await defaultPackageNames()).has("@hypit/visual-track"));
assert.equal((await distributionEmbeddedPackageDirectories(repositoryRoot)).has("visual-track"), false);
await writeFile(join(distribution, "package.json"), `${JSON.stringify(rootManifest, null, 2)}\n`);
for (const entry of await readdir(join(repositoryRoot, "packages"), { withFileTypes: true })) {
diff --git a/scripts/distribution-ownership.mjs b/scripts/distribution-ownership.mjs
index e021c5ae..f36bd769 100644
--- a/scripts/distribution-ownership.mjs
+++ b/scripts/distribution-ownership.mjs
@@ -7,11 +7,6 @@ const productRoots = [
"@hypit/markup",
];
-// These packages remain physically available while their independent ownership and installation
-// path are migrated. Keeping this list here makes that debt explicit; merely adding a workspace no
-// longer adds it to the Distribution. Remove an entry when its ordinary package becomes installable.
-const migrationRoots = [];
-
async function manifest(root, path) {
return JSON.parse(await readFile(resolve(root, path), "utf8"));
}
@@ -47,9 +42,17 @@ export async function distributionEmbeddedPackageDirectories(repositoryRoot) {
manifest: await manifest(repositoryRoot, path),
})));
const byName = new Map(packages.map((item) => [item.manifest.name, item]));
- const independentNames = new Set(workspaceDependencies(rootManifest));
+ const independentNames = new Set();
+ const independent = (name) => {
+ if (name === rootManifest.name || independentNames.has(name)) return;
+ const item = byName.get(name);
+ if (item === undefined) throw new Error(`Unknown independent workspace package ${name}`);
+ independentNames.add(name);
+ for (const dependency of workspaceDependencies(item.manifest)) independent(dependency);
+ };
+ for (const name of workspaceDependencies(rootManifest)) independent(name);
- const roots = new Set([...productRoots, ...migrationRoots]);
+ const roots = new Set(productRoots);
for (const use of rootManifest.hypit?.cli?.use ?? []) {
const name = packageName(use);
if (name !== undefined) roots.add(name);
diff --git a/scripts/independent-consumer.mjs b/scripts/independent-consumer.mjs
new file mode 100644
index 00000000..ffff2716
--- /dev/null
+++ b/scripts/independent-consumer.mjs
@@ -0,0 +1,45 @@
+import { globSync } from "node:fs";
+import { readFile } from "node:fs/promises";
+import { dirname, resolve } from "node:path";
+import { fileURLToPath } from "node:url";
+import { packIndependentPackage } from "./pack-independent-package.mjs";
+import { releaseCandidatePackages } from "./release-candidate.mjs";
+
+const repository = resolve(dirname(fileURLToPath(import.meta.url)), "..");
+
+/** Install the package's real npm closure alongside the packages under test. */
+export async function packConsumerDependencies(directories, output) {
+ const entries = await Promise.all(globSync("packages/*/package.json", { cwd: repository }).map(async path => ({
+ directory: dirname(path),
+ manifest: JSON.parse(await readFile(resolve(repository, path), "utf8")),
+ })));
+ const byName = new Map(entries.map(entry => [entry.manifest.name, entry]));
+ const supplied = new Set(directories.map(directory => `packages/${directory}`));
+ const visited = new Set();
+ const tarballs = [];
+ async function visit(entry) {
+ if (visited.has(entry.manifest.name)) return;
+ visited.add(entry.manifest.name);
+ for (const [name, range] of Object.entries({ ...entry.manifest.dependencies, ...entry.manifest.peerDependencies })) {
+ if (name === "@hypit/hypit" || !range.startsWith("workspace:")) continue;
+ const dependency = byName.get(name);
+ if (dependency === undefined) throw new Error(`Unknown workspace dependency ${name}`);
+ await visit(dependency);
+ }
+ if (!supplied.has(entry.directory)) {
+ tarballs.push(await packIndependentPackage(entry.directory, output, { buildPublicTypes: false }));
+ }
+ }
+ for (const entry of entries) if (supplied.has(entry.directory)) await visit(entry);
+ return tarballs;
+}
+
+/** This fixture supplies only the generic host; the consumer installs domain dependencies. */
+export async function consumerHostManifest() {
+ const manifest = JSON.parse(await readFile(resolve(repository, "package.json"), "utf8"));
+ return { ...manifest, hypit: { ...manifest.hypit, packageSources: [] } };
+}
+
+export async function defaultPackageNames() {
+ return new Set((await releaseCandidatePackages()).independent.map(item => item.name));
+}
diff --git a/scripts/pack-distribution.mjs b/scripts/pack-distribution.mjs
index 32410cff..f1668e5d 100644
--- a/scripts/pack-distribution.mjs
+++ b/scripts/pack-distribution.mjs
@@ -5,6 +5,7 @@ import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { distributionEmbeddedPackageDirectories } from "./distribution-ownership.mjs";
+import { releaseDependencyVersion } from "./release-dependencies.mjs";
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const output = resolve(root, "dist/release");
@@ -26,18 +27,6 @@ function npm(args, cwd, capture = false) {
});
}
-async function releaseDependencyVersion(owner, name, declared) {
- if (!declared.startsWith("workspace:")) return declared;
- if (declared !== "workspace:^") {
- throw new Error(`${owner} cannot publish dependency ${name}@${declared}`);
- }
- const dependency = JSON.parse(await readFile(resolve(root, "packages", name.split("/")[1], "package.json"), "utf8"));
- if (dependency.name !== name || typeof dependency.version !== "string" || dependency.version.length === 0) {
- throw new Error(`${owner} dependency ${name} has no release version`);
- }
- return dependency.version.includes("-") ? dependency.version : `^${dependency.version}`;
-}
-
npm(["run", "build:public-types"], root);
const [inventory] = JSON.parse(npm(["pack", "--dry-run", "--ignore-scripts", "--json"], root, true));
const embeddedPackageDirectories = await distributionEmbeddedPackageDirectories(root);
diff --git a/scripts/pack-independent-package.mjs b/scripts/pack-independent-package.mjs
index 2aaa59fa..f2d2028c 100644
--- a/scripts/pack-independent-package.mjs
+++ b/scripts/pack-independent-package.mjs
@@ -5,6 +5,7 @@ import { createRequire } from "node:module";
import { tmpdir } from "node:os";
import { basename, dirname, isAbsolute, relative, resolve, sep } from "node:path";
import { fileURLToPath, pathToFileURL } from "node:url";
+import { releaseDependencyVersion } from "./release-dependencies.mjs";
const repositoryRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const require = createRequire(import.meta.url);
@@ -172,33 +173,10 @@ async function rewritePublishedDeclarationSpecifiers(stage) {
}
}
-async function releasedDependencyVersion(owner, name, declared) {
- if (!declared.startsWith("workspace:")) return declared;
- if (declared !== "workspace:^") {
- throw new Error(`${owner} still has private workspace dependency ${name}@${declared}`);
- }
- const manifests = [
- "package.json",
- ...globSync("packages/*/package.json", { cwd: repositoryRoot }),
- ...globSync("services/*/package.json", { cwd: repositoryRoot }),
- ];
- for (const candidate of manifests) {
- const dependency = JSON.parse(await readFile(resolve(repositoryRoot, candidate), "utf8"));
- if (dependency.name !== name) continue;
- if (typeof dependency.version !== "string" || dependency.version.length === 0) {
- throw new Error(`${name} has no release version`);
- }
- // Development prereleases are local tarball evidence, not a Registry compatibility promise.
- // A real published version keeps the workspace:^ declaration as an ordinary caret range.
- return dependency.version.includes("-") ? dependency.version : `^${dependency.version}`;
- }
- throw new Error(`${owner} release dependency ${name} is not a workspace package`);
-}
-
async function releasedDependencyMap(manifest, values) {
return Object.fromEntries(await Promise.all(Object.entries(values ?? {}).map(async ([name, version]) => {
if (typeof version !== "string") throw new Error(`${manifest.name} dependency ${name} has no version`);
- return [name, await releasedDependencyVersion(manifest.name, name, version)];
+ return [name, releaseDependencyVersion(manifest.name, name, version)];
})));
}
diff --git a/scripts/publish-release-candidate.mjs b/scripts/publish-release-candidate.mjs
index 5d8514b5..ad2778e6 100644
--- a/scripts/publish-release-candidate.mjs
+++ b/scripts/publish-release-candidate.mjs
@@ -2,13 +2,15 @@ import { execFileSync } from "node:child_process";
import { createHash } from "node:crypto";
import { readFile } from "node:fs/promises";
import { basename, dirname, resolve, sep } from "node:path";
+import { selectReleasePackages } from "./release-candidate.mjs";
const arguments_ = process.argv.slice(2);
const knownOptions = new Set(["--preflight-only", "--independent-only"]);
-const unknownOption = arguments_.find((value) => value.startsWith("--") && !knownOptions.has(value));
+const unknownOption = arguments_.find((value) => value.startsWith("--") && !knownOptions.has(value) && !value.startsWith("--package="));
if (unknownOption !== undefined) throw new Error(`Unknown option: ${unknownOption}`);
const preflightOnly = arguments_.includes("--preflight-only");
const independentOnly = arguments_.includes("--independent-only");
+const packageNames = arguments_.filter((value) => value.startsWith("--package=")).map((value) => value.slice("--package=".length));
const planPath = resolve(arguments_.find((value) => !value.startsWith("--")) ?? "dist/release/release-plan.json");
const releaseDirectory = dirname(planPath);
const plan = JSON.parse(await readFile(planPath, "utf8"));
@@ -70,7 +72,7 @@ async function inspect(item) {
return { item, path, exists: false };
}
-const ordered = independentOnly ? [...plan.independent] : [...plan.independent, plan.distribution];
+const ordered = selectReleasePackages(plan, packageNames, independentOnly);
const identities = new Set();
for (const item of ordered) {
const identity = `${item.name}@${item.version}`;
@@ -78,7 +80,7 @@ for (const item of ordered) {
identities.add(identity);
}
-// Inspect the complete immutable candidate before the first external write. A conflict or registry
+// Inspect every selected immutable package before the first external write. A conflict or registry
// outage late in the dependency order must not leave an avoidable partial publication behind.
const inspected = [];
for (const item of ordered) inspected.push(await inspect(item));
diff --git a/scripts/release-candidate.mjs b/scripts/release-candidate.mjs
index b7ff0231..dbd1e726 100644
--- a/scripts/release-candidate.mjs
+++ b/scripts/release-candidate.mjs
@@ -87,6 +87,17 @@ export function npmTarballFilename(name, version) {
return `${name.replace(/^@/u, "").replaceAll("/", "-")}-${version}.tgz`;
}
+/** Publishing is an explicit subset of the verified installation candidate. */
+export function selectReleasePackages(plan, names = [], independentOnly = false) {
+ const available = independentOnly ? [...plan.independent] : [...plan.independent, plan.distribution];
+ if (names.length === 0) return available;
+ const requested = new Set(names);
+ for (const name of requested) {
+ if (!available.some((item) => item.name === name)) throw new Error(`Release candidate does not contain ${name}`);
+ }
+ return available.filter((item) => requested.has(item.name));
+}
+
export async function releaseCandidateTarballs(outputDirectory = "dist/release") {
const plan = await releaseCandidatePackages();
const output = resolve(repositoryRoot, outputDirectory);
diff --git a/scripts/release-dependencies.mjs b/scripts/release-dependencies.mjs
new file mode 100644
index 00000000..40a20bb5
--- /dev/null
+++ b/scripts/release-dependencies.mjs
@@ -0,0 +1,10 @@
+/** Preserve an authored npm compatibility range when removing the workspace transport prefix. */
+export function releaseDependencyVersion(owner, name, declared) {
+ if (typeof declared !== "string") throw new Error(`${owner} dependency ${name} has no range`);
+ if (!declared.startsWith("workspace:")) return declared;
+ const range = declared.slice("workspace:".length);
+ if (["", "*", "^", "~"].includes(range)) {
+ throw new Error(`${owner} must declare an explicit compatibility range for ${name}, not ${declared}`);
+ }
+ return range;
+}
diff --git a/scripts/test/release-dependencies.test.mjs b/scripts/test/release-dependencies.test.mjs
new file mode 100644
index 00000000..923eec91
--- /dev/null
+++ b/scripts/test/release-dependencies.test.mjs
@@ -0,0 +1,32 @@
+import assert from "node:assert/strict";
+import test from "node:test";
+import { releaseDependencyVersion } from "../release-dependencies.mjs";
+import { selectReleasePackages, releaseCandidatePackages } from "../release-candidate.mjs";
+import { distributionEmbeddedPackageDirectories } from "../distribution-ownership.mjs";
+import { fileURLToPath } from "node:url";
+
+test("release ranges preserve the author's compatibility minimum", () => {
+ assert.equal(releaseDependencyVersion("script", "hypit", "workspace:^0.3.0"), "^0.3.0");
+ assert.equal(releaseDependencyVersion("script", "caption", "workspace:0.0.0-dev"), "0.0.0-dev");
+ assert.throws(() => releaseDependencyVersion("script", "hypit", "workspace:^"), /explicit compatibility/);
+});
+
+test("publication selection does not force a root or sibling release", () => {
+ const plan = { independent: [{ name: "protocol" }, { name: "studio" }], distribution: { name: "root" } };
+ assert.deepEqual(selectReleasePackages(plan, ["studio"]), [{ name: "studio" }]);
+ assert.deepEqual(selectReleasePackages(plan, ["studio", "protocol"]), plan.independent);
+ assert.throws(() => selectReleasePackages(plan, ["missing"]), /does not contain/);
+});
+
+test("default domain dependencies remain independent through the Video product", async () => {
+ const root = fileURLToPath(new URL("../../", import.meta.url));
+ const embedded = await distributionEmbeddedPackageDirectories(root);
+ assert.equal(embedded.has("temporal"), false);
+ assert.equal(embedded.has("narrative-temporal"), false);
+ assert.equal(embedded.has("compiler"), true);
+ const plan = await releaseCandidatePackages();
+ const index = name => plan.independent.findIndex(item => item.name === `@hypit/${name}`);
+ assert.ok(index("timeline") >= 0);
+ assert.ok(index("timeline") < index("temporal"));
+ assert.ok(index("temporal") < index("video"));
+});
diff --git a/test/run.mjs b/test/run.mjs
index dc42d713..88c9b5bf 100644
--- a/test/run.mjs
+++ b/test/run.mjs
@@ -4,6 +4,7 @@ import { globSync } from "node:fs";
import { join } from "node:path";
const patterns = [
+ "scripts/test/*.test.mjs",
"packages/*/test/**/*.test.ts",
"services/*/test/**/*.test.ts",
"test/**/*.test.ts",