@vite-plugin-opencode-assistant/components 1.0.8 → 1.0.10
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/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/open-code-widget/composables/use-session.js +1 -0
- package/es/open-code-widget/src/types.d.ts +1 -0
- package/lib/@vite-plugin-opencode-assistant/components.cjs.js +2 -1
- package/lib/@vite-plugin-opencode-assistant/components.es.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/open-code-widget/composables/use-session.js +1 -0
- package/lib/open-code-widget/src/types.d.ts +1 -0
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import OpenCodeWidget from './open-code-widget';
|
|
2
2
|
import type { App } from 'vue';
|
|
3
|
-
declare const version = "1.0.
|
|
3
|
+
declare const version = "1.0.10";
|
|
4
4
|
declare function install(app: App<any>, options?: any): void;
|
|
5
5
|
export { install, version, OpenCodeWidget };
|
|
6
6
|
export default install;
|
package/es/index.js
CHANGED
|
@@ -36,6 +36,7 @@ function useSession(options) {
|
|
|
36
36
|
const sessionItems = computed(
|
|
37
37
|
() => (options.sessions.value || []).map((session) => ({
|
|
38
38
|
key: session.id,
|
|
39
|
+
id: session.id,
|
|
39
40
|
title: session.title || "\u65B0\u4F1A\u8BDD",
|
|
40
41
|
meta: formatSessionMeta(session),
|
|
41
42
|
active: session.id === options.currentSessionId.value,
|
|
@@ -628,6 +628,7 @@ function formatSessionMeta(session) {
|
|
|
628
628
|
function useSession(options) {
|
|
629
629
|
const sessionItems = (0, vue.computed)(() => (options.sessions.value || []).map((session) => ({
|
|
630
630
|
key: session.id,
|
|
631
|
+
id: session.id,
|
|
631
632
|
title: session.title || "新会话",
|
|
632
633
|
meta: formatSessionMeta(session),
|
|
633
634
|
active: session.id === options.currentSessionId.value,
|
|
@@ -1314,7 +1315,7 @@ __vue_sfc__.render = __vue_render__;
|
|
|
1314
1315
|
var open_code_widget_default = __vue_sfc__;
|
|
1315
1316
|
//#endregion
|
|
1316
1317
|
//#region es/index.js
|
|
1317
|
-
var version = "1.0.
|
|
1318
|
+
var version = "1.0.10";
|
|
1318
1319
|
function install(app, options) {
|
|
1319
1320
|
[open_code_widget_default].forEach((item) => {
|
|
1320
1321
|
if (item.install) app.use(item, options);
|
|
@@ -624,6 +624,7 @@ function formatSessionMeta(session) {
|
|
|
624
624
|
function useSession(options) {
|
|
625
625
|
const sessionItems = computed(() => (options.sessions.value || []).map((session) => ({
|
|
626
626
|
key: session.id,
|
|
627
|
+
id: session.id,
|
|
627
628
|
title: session.title || "新会话",
|
|
628
629
|
meta: formatSessionMeta(session),
|
|
629
630
|
active: session.id === options.currentSessionId.value,
|
|
@@ -1310,7 +1311,7 @@ __vue_sfc__.render = __vue_render__;
|
|
|
1310
1311
|
var open_code_widget_default = __vue_sfc__;
|
|
1311
1312
|
//#endregion
|
|
1312
1313
|
//#region es/index.js
|
|
1313
|
-
var version = "1.0.
|
|
1314
|
+
var version = "1.0.10";
|
|
1314
1315
|
function install(app, options) {
|
|
1315
1316
|
[open_code_widget_default].forEach((item) => {
|
|
1316
1317
|
if (item.install) app.use(item, options);
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import OpenCodeWidget from './open-code-widget';
|
|
2
2
|
import type { App } from 'vue';
|
|
3
|
-
declare const version = "1.0.
|
|
3
|
+
declare const version = "1.0.10";
|
|
4
4
|
declare function install(app: App<any>, options?: any): void;
|
|
5
5
|
export { install, version, OpenCodeWidget };
|
|
6
6
|
export default install;
|
package/lib/index.js
CHANGED
|
@@ -34,7 +34,7 @@ __export(lib_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(lib_exports);
|
|
36
36
|
var import_open_code_widget = __toESM(require("./open-code-widget"));
|
|
37
|
-
const version = "1.0.
|
|
37
|
+
const version = "1.0.10";
|
|
38
38
|
function install(app, options) {
|
|
39
39
|
const components = [
|
|
40
40
|
import_open_code_widget.default
|
|
@@ -58,6 +58,7 @@ function useSession(options) {
|
|
|
58
58
|
const sessionItems = (0, import_vue.computed)(
|
|
59
59
|
() => (options.sessions.value || []).map((session) => ({
|
|
60
60
|
key: session.id,
|
|
61
|
+
id: session.id,
|
|
61
62
|
title: session.title || "\u65B0\u4F1A\u8BDD",
|
|
62
63
|
meta: formatSessionMeta(session),
|
|
63
64
|
active: session.id === options.currentSessionId.value,
|
package/lib/web-types.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json","framework":"vue","name":"@vite-plugin-opencode-assistant/components","version":"1.0.
|
|
1
|
+
{"$schema":"https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json","framework":"vue","name":"@vite-plugin-opencode-assistant/components","version":"1.0.10","contributions":{"html":{"tags":[{"name":"open-code","attributes":[{"name":"","default":"`'bottom-right'`","description":"挂件显示的位置","value":{"type":"`'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'`","kind":"expression"}},{"name":"","default":"`false`","description":"挂件是否打开","value":{"type":"`boolean`","kind":"expression"}},{"name":"","default":"`'light'`","description":"主题模式","value":{"type":"`'light' | 'dark' | 'auto'`","kind":"expression"}},{"name":"","default":"`'AI 助手'`","description":"助手头部显示的标题","value":{"type":"`string`","kind":"expression"}},{"name":"","default":"`''`","description":"Web UI 的 URL 来源","value":{"type":"`string`","kind":"expression"}},{"name":"","default":"`false`","description":"是否进入选择页面元素模式","value":{"type":"`boolean`","kind":"expression"}},{"name":"","default":"`false`","description":"是否显示加载状态","value":{"type":"`boolean`","kind":"expression"}},{"name":"","default":"`[]`","description":"会话列表数据","value":{"type":"`OpenCodeWidgetSessionItem[]`","kind":"expression"}},{"name":"","default":"`null`","description":"当前选中的会话 ID","value":{"type":"`string | null`","kind":"expression"}},{"name":"","default":"`[]`","description":"已选中的元素列表","value":{"type":"`OpenCodeSelectedElement[]`","kind":"expression"}}],"events":[{"name":"`update:open`","description":"当挂件打开或关闭时触发","arguments":[{"name":"open","type":"en"},{"name":"boolean"}]},{"name":"","description":"点击触发挂件开关","arguments":[{"name":"open","type":"en"},{"name":"boolean"}]},{"name":"","description":"点击关闭按钮时触发","arguments":[]},{"name":"`toggle-select-mode`","description":"点击选择模式切换按钮时触发","arguments":[{"name":"mode","type":"de"},{"name":"boolean"}]},{"name":"`click-selected-node`","description":"点击已选中的气泡或节点卡片时触发","arguments":[{"name":"element","type":"nt"},{"name":"OpenCodeSelectedElement"}]},{"name":"`remove-selected-node`","description":"删除已选中的元素时触发","arguments":[{"name":"payload","type":"ad"},{"name":"OpenCodeRemoveSelectedPayload"}]},{"name":"`clear-selected-nodes`","description":"清空所有选中元素时触发","arguments":[]},{"name":"`create-session`","description":"点击创建新会话时触发","arguments":[]},{"name":"`select-session`","description":"选中某个历史会话时触发","arguments":[{"name":"session","type":"on"},{"name":"OpenCodeWidgetSessionItem"}]},{"name":"`delete-session`","description":"删除某个历史会话时触发","arguments":[{"name":"session","type":"on"},{"name":"OpenCodeWidgetSessionItem"}]}]}],"attributes":[]}},"js-types-syntax":"typescript"}
|