agentworkshop 0.17.3 → 0.17.4
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{Bi7O7Fgd.js → BIyCQj6O.js} +10 -10
- package/.output/public/_nuxt/BM-sWDDD.js +1 -0
- package/.output/public/_nuxt/Cu6Hle_d.js +2 -0
- package/.output/public/_nuxt/{B_6jgkkO.js → D4fDMDMY.js} +4 -4
- package/.output/public/_nuxt/{TownView.CASu6sUI.css → TownView.CngAEG0H.css} +1 -1
- package/.output/public/_nuxt/{_wsId_.1Ai43iyE.css → _wsId_.CzdXTLVh.css} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/2547f38c-dfaf-48fa-9b29-334889a73f2c.json +1 -0
- package/.output/public/_nuxt/{entry.CxkSJUk3.css → entry.D9gnKVzx.css} +1 -1
- package/.output/public/_nuxt/town.D-vq2IRd.css +1 -0
- package/.output/server/chunks/_/nitro.mjs +1116 -1116
- package/.output/server/chunks/build/{TownView-BF_qaNTQ.mjs → TownView-BdwjWlnU.mjs} +61 -9
- package/.output/server/chunks/build/TownView-BdwjWlnU.mjs.map +1 -0
- package/.output/server/chunks/build/{_wsId_-DGynuNjs.mjs → _wsId_-CLBiQH5c.mjs} +10 -8
- package/.output/server/chunks/build/{_wsId_-DGynuNjs.mjs.map → _wsId_-CLBiQH5c.mjs.map} +1 -1
- package/.output/server/chunks/build/{town-Cx6Vny3m.mjs → town-Djy_zAJV.mjs} +10 -7
- package/.output/server/chunks/build/{town-Cx6Vny3m.mjs.map → town-Djy_zAJV.mjs.map} +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/chunks/virtual/entry.mjs +6 -2
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +13 -6
- package/README.md +13 -6
- package/app/components/AppBackToMain.vue +86 -0
- package/app/components/workshop/console/Topbar.vue +2 -0
- package/app/components/workshop/town/components/TownTopNav.vue +2 -0
- package/app/pages/town.vue +15 -0
- package/config.yml +1 -1
- package/docs/cli.en.md +1 -1
- package/docs/cli.md +1 -1
- package/docs/desktop.md +1 -1
- package/docs/plugins.en.md +1 -1
- package/docs/plugins.md +1 -1
- package/docs/sdk.en.md +1 -1
- package/docs/sdk.md +1 -1
- package/i18n/locales/en.ts +2 -0
- package/i18n/locales/zh-CN.ts +2 -0
- package/package.json +1 -1
- package/.output/public/_nuxt/CkTQQ28a.js +0 -1
- package/.output/public/_nuxt/DhFEApxl.js +0 -2
- package/.output/public/_nuxt/builds/meta/e534f0d1-3bc5-444b-a033-3e437b713fc0.json +0 -1
- package/.output/public/_nuxt/town.BZPLR4A_.css +0 -1
- package/.output/server/chunks/build/TownView-BF_qaNTQ.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aq as _plugin_vue_export_helper_default, a as useI18n, e as useHttp, d as useUserStore, r as readAuthToken } from '../virtual/entry.mjs';
|
|
1
|
+
import { aq as _plugin_vue_export_helper_default, aJ as NuxtLink, a as useI18n, e as useHttp, d as useUserStore, r as readAuthToken } from '../virtual/entry.mjs';
|
|
2
2
|
import { u as useResponsive } from './useResponsive-BKDMGTHs.mjs';
|
|
3
3
|
import { a as apiErrorMessage } from './api-error-D65iCxaz.mjs';
|
|
4
4
|
import { u as useDcwStream } from './useDcwStream-BPn12Vca.mjs';
|
|
@@ -12,8 +12,8 @@ import { u as useDeviceTwins } from './useDeviceTwins-fksN53oE.mjs';
|
|
|
12
12
|
import { c as catalogTplName, t as townModelHint, a as townModelName } from './builtin-catalog-edpDcgfL.mjs';
|
|
13
13
|
import { d as dcwDriverBadgeKey } from './dcw-driver-badge-Df5wL_ZA.mjs';
|
|
14
14
|
import { u as useStorage } from './core-CgTOPS4t.mjs';
|
|
15
|
-
import { defineComponent, ref, shallowRef, watch, computed,
|
|
16
|
-
import {
|
|
15
|
+
import { defineComponent, mergeProps, withCtx, createVNode, toDisplayString, ref, shallowRef, watch, computed, unref, isRef, reactive, nextTick, useModel, mergeModels, provide, inject, useSSRContext } from 'vue';
|
|
16
|
+
import { ssrRenderComponent, ssrInterpolate, ssrRenderAttrs, ssrRenderAttr, ssrRenderClass, ssrIncludeBooleanAttr, ssrRenderList, ssrRenderStyle, ssrLooseContain, ssrLooseEqual } from 'vue/server-renderer';
|
|
17
17
|
import { dh as DAQ_TEMPLATES } from '../_/nitro.mjs';
|
|
18
18
|
import * as THREE from 'three';
|
|
19
19
|
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
@@ -100,6 +100,55 @@ function mapEnvelopeToIntent(e) {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
//#region app/components/AppBackToMain.vue?vue&type=script&setup=true&lang.ts
|
|
104
|
+
var AppBackToMain_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
105
|
+
__name: "AppBackToMain",
|
|
106
|
+
__ssrInlineRender: true,
|
|
107
|
+
props: { compact: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: false
|
|
110
|
+
} },
|
|
111
|
+
setup(__props) {
|
|
112
|
+
/**
|
|
113
|
+
* 独立全屏页面(数字孪生 / 裸控制台)的返回入口。
|
|
114
|
+
*
|
|
115
|
+
* 这些页面不渲染 default 布局,没有侧栏/顶栏导航;没有这个入口时用户会被困在
|
|
116
|
+
* 全屏场景里(桌面端尤其明显:窗口没有浏览器地址栏)。目标固定为主界面 `/`
|
|
117
|
+
* (仪表盘,带完整侧栏导航)。
|
|
118
|
+
*
|
|
119
|
+
* 颜色使用 currentColor 派生,不依赖具体布局的 CSS 变量:town 是深色 HUD,
|
|
120
|
+
* console 跟随聊天区亮/暗主题,两者都能直接复用。
|
|
121
|
+
*/
|
|
122
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
123
|
+
_push(ssrRenderComponent(NuxtLink, mergeProps({
|
|
124
|
+
class: ["app-back-to-main", { compact: __props.compact }],
|
|
125
|
+
to: "/",
|
|
126
|
+
"data-testid": "back-to-main",
|
|
127
|
+
"aria-label": _ctx.$t("common.backToMain"),
|
|
128
|
+
title: _ctx.$t("common.backToMainTip")
|
|
129
|
+
}, _attrs), {
|
|
130
|
+
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
131
|
+
if (_push) _push(`<span class="i-tabler-arrow-left back-ico" aria-hidden="true" data-v-8b474a6b${_scopeId}></span><span class="back-label" data-v-8b474a6b${_scopeId}>${ssrInterpolate(_ctx.$t("common.backToMain"))}</span>`);
|
|
132
|
+
else return [createVNode("span", {
|
|
133
|
+
class: "i-tabler-arrow-left back-ico",
|
|
134
|
+
"aria-hidden": "true"
|
|
135
|
+
}), createVNode("span", { class: "back-label" }, toDisplayString(_ctx.$t("common.backToMain")), 1)];
|
|
136
|
+
}),
|
|
137
|
+
_: 1
|
|
138
|
+
}, _parent));
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region app/components/AppBackToMain.vue
|
|
144
|
+
var _sfc_setup$34 = AppBackToMain_vue_vue_type_script_setup_true_lang_default.setup;
|
|
145
|
+
AppBackToMain_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
|
|
146
|
+
const ssrContext = useSSRContext();
|
|
147
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/AppBackToMain.vue");
|
|
148
|
+
return _sfc_setup$34 ? _sfc_setup$34(props, ctx) : void 0;
|
|
149
|
+
};
|
|
150
|
+
var AppBackToMain_default = /*#__PURE__*/ Object.assign(_plugin_vue_export_helper_default(AppBackToMain_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8b474a6b"]]), { __name: "AppBackToMain" });
|
|
151
|
+
//#endregion
|
|
103
152
|
//#region app/composables/workshop/useCharacterAssets.ts
|
|
104
153
|
/**
|
|
105
154
|
* useCharacterAssets —— 角色模型库(前端注册表 + REST 拉取/上传/绑定)。
|
|
@@ -3275,10 +3324,13 @@ var TownTopNav_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
3275
3324
|
],
|
|
3276
3325
|
setup(__props, { emit: __emit }) {
|
|
3277
3326
|
return (_ctx, _push, _parent, _attrs) => {
|
|
3278
|
-
|
|
3279
|
-
|
|
3327
|
+
const _component_AppBackToMain = AppBackToMain_default;
|
|
3328
|
+
_push(`<header${ssrRenderAttrs(mergeProps({ class: ["topnav", { "sheet-on": __props.sheetOpen }] }, _attrs))} data-v-f03e2796>`);
|
|
3329
|
+
_push(ssrRenderComponent(_component_AppBackToMain, null, null, _parent));
|
|
3330
|
+
_push(`<div class="brand" data-v-f03e2796><svg class="brand-glyph" viewBox="0 0 32 32" fill="none" aria-hidden="true" data-v-f03e2796><path d="M16 2.5 27.5 9v14L16 29.5 4.5 23V9L16 2.5Z" stroke="#35e0a0" stroke-width="1.6" data-v-f03e2796></path><path d="M16 8.2 22.5 12v8L16 23.8 9.5 20v-8L16 8.2Z" stroke="#41c8f4" stroke-width="1.3" opacity=".85" data-v-f03e2796></path><circle cx="16" cy="16" r="2.4" fill="#35e0a0" data-v-f03e2796></circle><circle cx="25.5" cy="7.5" r="1.6" fill="#41c8f4" data-v-f03e2796></circle></svg><div data-v-f03e2796><div class="brand-name" data-v-f03e2796> DIGITAL <em data-v-f03e2796>TWIN</em></div><div class="brand-sub" data-v-f03e2796> AGENTWORKSHOP · ${ssrInterpolate(_ctx.$t("townView.klyi8yg127"))}</div></div></div><nav class="nav-tabs"${ssrRenderAttr("aria-label", _ctx.$t("townView.k1c9jyta001"))} data-v-f03e2796><div class="seg" data-v-f03e2796><button class="${ssrRenderClass({ on: __props.mode === "browse" })}" data-v-f03e2796>${ssrInterpolate(_ctx.$t("townView.k48dwh027"))}</button><button class="${ssrRenderClass({ on: __props.mode === "edit" })}" data-v-f03e2796>${ssrInterpolate(_ctx.$t("townView.k45eb0028"))}</button></div><button class="nav-action"${ssrIncludeBooleanAttr(__props.mode !== "edit") ? " disabled" : ""}${ssrRenderAttr("title", __props.mode === "edit" ? _ctx.$t("townView.saveLayoutTip") : _ctx.$t("townView.readonlyTip"))} data-v-f03e2796>${ssrInterpolate(_ctx.$t("townView.k1b3bk8t029"))}</button>`);
|
|
3331
|
+
if (__props.saveState && __props.saveState.state !== "idle") _push(`<span class="${ssrRenderClass([`s-${__props.saveState.state}`, "save-chip"])}" data-v-f03e2796>${ssrInterpolate(__props.saveStateLabel)}</span>`);
|
|
3280
3332
|
else _push(`<!---->`);
|
|
3281
|
-
_push(`</nav><div class="nav-right" data-v-
|
|
3333
|
+
_push(`</nav><div class="nav-right" data-v-f03e2796><span class="${ssrRenderClass([{ "nav-bell-warn": __props.activeAlarmCount > 0 }, "nav-chip mono"])}"${ssrRenderAttr("title", _ctx.$t("townView.k1fsi3ir002"))} data-v-f03e2796>◉ ${ssrInterpolate(__props.activeAlarmCount)}</span><span class="nav-chip mono nav-fps" data-v-f03e2796>${ssrInterpolate(__props.fps)} FPS</span><div class="avatar-chip nav-user"${ssrRenderAttr("title", _ctx.$t("townView.k1demf38003"))} data-v-f03e2796><div class="avatar-fallback" data-v-f03e2796>${ssrInterpolate(__props.userName.slice(0, 2).toUpperCase())}</div><span data-v-f03e2796>${ssrInterpolate(__props.userName || _ctx.$t("townView.k1pub99m139"))}</span></div><button type="button" class="${ssrRenderClass([{ on: __props.sheetOpen === "left" }, "sheet-btn"])}" aria-controls="town-rail-left"${ssrRenderAttr("aria-expanded", __props.sheetOpen === "left" ? "true" : "false")}${ssrRenderAttr("title", _ctx.$t("townView.k1k75lzy030"))} data-v-f03e2796><svg class="sheet-ico" viewBox="0 0 24 24" aria-hidden="true" data-v-f03e2796><path d="M4 6h16M4 12h11M4 18h16" data-v-f03e2796></path></svg><span class="sheet-btn-t" data-v-f03e2796>${ssrInterpolate(_ctx.$t("townView.k1k75lzy030"))}</span></button><button type="button" class="${ssrRenderClass([{ on: __props.sheetOpen === "right" }, "sheet-btn"])}" aria-controls="town-rail-right"${ssrRenderAttr("aria-expanded", __props.sheetOpen === "right" ? "true" : "false")}${ssrRenderAttr("title", _ctx.$t("townView.k17dkhgd112"))} data-v-f03e2796><svg class="sheet-ico" viewBox="0 0 24 24" aria-hidden="true" data-v-f03e2796><path d="M20 6H4M20 12H9M20 18H4" data-v-f03e2796></path></svg><span class="sheet-btn-t" data-v-f03e2796>${ssrInterpolate(_ctx.$t("townView.k17dkhgd112"))}</span></button></div></header>`);
|
|
3282
3334
|
};
|
|
3283
3335
|
}
|
|
3284
3336
|
});
|
|
@@ -3290,7 +3342,7 @@ TownTopNav_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
|
|
|
3290
3342
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/workshop/town/components/TownTopNav.vue");
|
|
3291
3343
|
return _sfc_setup$33 ? _sfc_setup$33(props, ctx) : void 0;
|
|
3292
3344
|
};
|
|
3293
|
-
var TownTopNav_default = /*#__PURE__*/ Object.assign(_plugin_vue_export_helper_default(TownTopNav_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
3345
|
+
var TownTopNav_default = /*#__PURE__*/ Object.assign(_plugin_vue_export_helper_default(TownTopNav_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f03e2796"]]), { __name: "WorkshopTownComponentsTownTopNav" });
|
|
3294
3346
|
//#endregion
|
|
3295
3347
|
//#region app/components/workshop/DaqTemplateIcon.vue?vue&type=script&setup=true&lang.ts
|
|
3296
3348
|
var DaqTemplateIcon_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -6517,5 +6569,5 @@ TownView_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
|
|
|
6517
6569
|
};
|
|
6518
6570
|
var TownView_default = /*#__PURE__*/ Object.assign(_plugin_vue_export_helper_default(TownView_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-ac72cde0"]]), { __name: "WorkshopTownView" });
|
|
6519
6571
|
|
|
6520
|
-
export { TownView_default as T };
|
|
6521
|
-
//# sourceMappingURL=TownView-
|
|
6572
|
+
export { AppBackToMain_default as A, TownView_default as T };
|
|
6573
|
+
//# sourceMappingURL=TownView-BdwjWlnU.mjs.map
|