@joplo-app/server 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { type Project } from '@joplo-app/core';
2
2
  import type { BuildOptions, BuildResult } from './contract.js';
3
3
  import type { DistWeb } from './web-assets.js';
4
- /** 发布站只需要的 IR:去掉创作侧字段(publish 模式下它们本来就为空)。层级、镜头与 featureIds 顺序属于演示,保留(D43 / D61)。 */
4
+ /** 发布站只需要的 IR:去掉创作侧字段(publish 模式下它们本来就为空)。层级、镜头、角色(说话人、过渡卡、层级的 role)与 featureIds 顺序属于演示,保留(D43 / D56 / D61)。 */
5
5
  export declare function publishPayload(project: Project, home: string | null): {
6
6
  project: Record<string, unknown>;
7
7
  home: string | null;
package/dist/build.js CHANGED
@@ -23,10 +23,10 @@ import { JoploError, orderedFeatures } from '@joplo-app/core';
23
23
  import { compileProject } from "./project.js";
24
24
  import { joploProjectPlugin, kitAliases, locateWebAssets, realProjectDir } from "./vite-shared.js";
25
25
  import { subsetSiteFonts } from "./site-fonts.js";
26
- /** 发布站只需要的 IR:去掉创作侧字段(publish 模式下它们本来就为空)。层级、镜头与 featureIds 顺序属于演示,保留(D43 / D61)。 */
26
+ /** 发布站只需要的 IR:去掉创作侧字段(publish 模式下它们本来就为空)。层级、镜头、角色(说话人、过渡卡、层级的 role)与 featureIds 顺序属于演示,保留(D43 / D56 / D61)。 */
27
27
  export function publishPayload(project, home) {
28
28
  const { rules: _r, cases: _c, issues: _i, ...rest } = project;
29
- const features = Object.fromEntries(orderedFeatures(project).map(f => [f.id, { id: f.id, name: f.name, goal: f.goal, optionIds: f.optionIds, pick: f.pick }]));
29
+ const features = Object.fromEntries(orderedFeatures(project).map(f => [f.id, { id: f.id, name: f.name, goal: f.goal, roles: f.roles, optionIds: f.optionIds, pick: f.pick }]));
30
30
  const options = Object.fromEntries(Object.entries(project.options).map(([id, o]) => [id, { id: o.id, featureId: o.featureId, key: o.key, name: o.name, idea: o.idea, routes: o.routes, coverage: {}, layers: o.layers ?? {} }]));
31
31
  const scenarios = Object.fromEntries(Object.entries(project.scenarios).map(([id, s]) => {
32
32
  const { caseIds: _ci, ...sr } = s;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joplo-app/server",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Joplo 本地服务:dev 看板、build 发布站、render 截图",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -15,9 +15,9 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "@joplo-app/core": "0.2.5",
19
- "@joplo-app/kit": "0.2.5",
20
- "@joplo-app/web": "0.2.5",
18
+ "@joplo-app/core": "0.2.6",
19
+ "@joplo-app/kit": "0.2.6",
20
+ "@joplo-app/web": "0.2.6",
21
21
  "@tailwindcss/vite": "4.3.4",
22
22
  "tailwindcss": "4.3.4",
23
23
  "vite": "8.3.5",