@tanzerfe/page-use 0.0.10 → 0.0.11
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/README.md +3 -0
- package/dist/flow.d.mts +556 -0
- package/dist/flow.mjs +11 -0
- package/dist/{index-DAwlbs2a.d.mts → index-CbMIEplo.d.mts} +34 -336
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +3 -2
- package/dist/options-BdQiIL9a.d.mts +1206 -0
- package/dist/{src-nVu9CCnz.mjs → src-DWoN4zgw.mjs} +1181 -2625
- package/dist/tool-CcgpA1W5.mjs +8327 -0
- package/dist/vue.d.mts +3 -2
- package/dist/vue.mjs +3 -2
- package/package.json +6 -1
package/dist/vue.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as FlowClient, $t as FlowStep, At as FlowPresenter, Bt as FlowRepositorySnapshot, C as runPageUseFlowTool, Ct as FlowManager, Dt as FlowParameter, E as mountPageUseManager, Et as FlowOutputReference, F as parseFlowScene, Ft as FlowRegionFailure, G as FlowApiRequest, Gt as FlowScene, H as FLOW_SCHEMA_VERSION, Ht as FlowRunOptions, I as parseFlowSceneDraft, It as FlowRegionHost, J as FlowBindings, Jt as FlowSegment, K as FlowApiResponse, Kt as FlowSceneRecord, L as sceneKey, Lt as FlowRegionPage, Mt as FlowRegionAnchor, N as parseFlowKnowledge, Nt as FlowRegionCandidate, Ot as FlowParameterDefinition, Pt as FlowRegionContext, Q as FlowCheckBinding, Qt as FlowStatus, Rt as FlowRegionSelector, S as getPageUseFlowCatalog, St as FlowKnowledgeRecord, T as definePageUseManagerElement, Tt as FlowMode, U as FlowAction, Ut as FlowRunResult, V as FLOW_BUNDLE_VERSION, Vt as FlowResolvedTarget, W as FlowActionBinding, Wt as FlowRunner, X as FlowBundle, Xt as FlowSessionContext, Y as FlowBoundCheck, Yt as FlowSegmentLog, Z as FlowCheck, Zt as FlowSnapshot, _ as DEFAULT_TOUR_STYLES, _t as FlowIdentity, a as DEFAULT_TOUR_MAX_TAB_SWITCHES, an as PageUseErrorCode, at as FlowCompletionDecision, b as TOUR_STYLE_USER, bt as FlowInputDefinition, c as PageUseLLMOptions, cn as PageUseProgressEvent, ct as FlowContext, d as PageUseTourOptions, dn as PageUseStepLog, dt as FlowError, en as FlowTombstone, et as FlowCloudAdapter, f as normalizeOptions, fn as PageUseTaskResult, ft as FlowErrorCode, g as PageUseTtsVoice, gt as FlowGenerator, h as PageUseTtsSpeakOptions, ht as FlowExportOptions, i as DEFAULT_STORAGE_KEY_PREFIX, in as PageUseFlowOptions, it as FlowCloudState, j as newRevision, jt as FlowRegion, kt as FlowPermissions, l as PageUseOptions, ln as PageUseRunOptions, lt as FlowContextBinding, m as PageUseTtsEngine, mn as PageUseTaskStatus, mt as FlowExecutionPorts, n as DEFAULT_MODEL, nn as JsonValue, nt as FlowCloudController, on as PageUseMenuNode, ot as FlowCompletionEvaluator, p as readLauncherSwitch, pn as PageUseTaskSource, pt as FlowEvent, q as FlowApiSyncOptions, qt as FlowScope, r as DEFAULT_SESSION_HEADER, rn as PageUseFlowHandle, rt as FlowCloudRelease, s as NormalizedPageUseOptions, sn as PageUsePreset, st as FlowConfigResponse, t as DEFAULT_MAX_STEPS, tn as JsonObject, tt as FlowCloudCache, u as PageUseRouterMode, un as PageUseSnapshot, ut as FlowDescriptionCheck, v as PageUseTourStyle, vt as FlowImportPreview, w as MountPageUseManagerOptions, wt as FlowManagerState, x as PAGE_USE_FLOW_TOOL, xt as FlowKnowledge, y as TOUR_STYLE_TRAINER, yt as FlowImportStrategy, zt as FlowRepository } from "./options-BdQiIL9a.mjs";
|
|
2
|
+
import { A as PageUseGlobal, B as MountPageUseUIOptions, C as getElapsedSeconds, D as pageUseStore, E as isRunning, F as PAGE_USE_TOOL_NAME, G as PageUseLauncherElement, H as mountPageUseUI, I as PageUseCommand, J as createPageUse, K as PageUseLauncherLayout, L as formatPageUseResultForModel, M as showPageUseLauncher, N as PAGE_USE_COMMAND_TYPE, O as ReadonlyStore, P as PAGE_USE_TOOL, R as isPageUseCommand, S as clearPageUseLog, T as isPageUseConfigured, U as PAGE_USE_LAUNCHER_TAG, V as definePageUseElements, W as PageUseLauncherConfig, X as PageUseCapability, Y as getPageUseFlow, Z as pageUseCapability, _ as pageUseSettings, a as PAGE_USE_ROBOT_ICON_SVG, b as PageUseQuestion, c as PageUseCustomPreset, d as pageUsePresets, f as PageUseHistoryEntry, g as PageUseSettings, h as PageUsePoint, i as PageUseGlowElement, j as hidePageUseLauncher, k as PAGE_USE_GLOBAL_KEY, l as PageUsePresetSaveResult, m as DEFAULT_PAGE_USE_SETTINGS, n as SIMULATOR_MASK_ID, o as PAGE_USE_STATIC_PRESETS, p as pageUseHistory, q as PageUseHandle, r as PAGE_USE_GLOW_TAG, s as buildMenuPresets, t as PAGE_USE_MASK_COLORS, u as PageUsePresetState, v as BROWSER_ENGINE_ID, w as getPageUseConfig, x as PageUseState, y as browserTtsEngine, z as runPageUseTool } from "./index-CbMIEplo.mjs";
|
|
2
3
|
import { PropType, ShallowRef } from "vue";
|
|
3
4
|
import { Router } from "vue-router";
|
|
4
5
|
//#region src/vue.d.ts
|
|
@@ -50,4 +51,4 @@ export declare function usePageUseState(): Readonly<ShallowRef<PageUseState>>;
|
|
|
50
51
|
/** 本地设置的 Vue 响应式引用;修改请调用 pageUseSettings.update */
|
|
51
52
|
export declare function usePageUseSettings(): Readonly<ShallowRef<PageUseSettings>>;
|
|
52
53
|
//#endregion
|
|
53
|
-
export { BROWSER_ENGINE_ID, DEFAULT_MAX_STEPS, DEFAULT_MODEL, DEFAULT_PAGE_USE_SETTINGS, DEFAULT_SESSION_HEADER, DEFAULT_STORAGE_KEY_PREFIX, DEFAULT_TOUR_MAX_TAB_SWITCHES, DEFAULT_TOUR_STYLES, type MountPageUseUIOptions, type NormalizedPageUseOptions, PAGE_USE_COMMAND_TYPE, PAGE_USE_GLOBAL_KEY, PAGE_USE_GLOW_TAG, PAGE_USE_LAUNCHER_TAG, PAGE_USE_MASK_COLORS, PAGE_USE_ROBOT_ICON_SVG, PAGE_USE_STATIC_PRESETS, PAGE_USE_TOOL, PAGE_USE_TOOL_NAME, type PageUseCapability, type PageUseCommand, type PageUseCustomPreset, type PageUseErrorCode, type PageUseGlobal, PageUseGlowElement, type PageUseHandle, type PageUseHistoryEntry, type PageUseLLMOptions, type PageUseLauncherConfig, PageUseLauncherElement, type PageUseLauncherLayout, type PageUseMenuNode, type PageUseOptions, type PageUsePoint, type PageUsePreset, type PageUsePresetSaveResult, type PageUsePresetState, type PageUseProgressEvent, type PageUseQuestion, type PageUseRouterMode, type PageUseRunOptions, type PageUseSettings, type PageUseSnapshot, type PageUseState, type PageUseStepLog, type PageUseTaskResult, type PageUseTaskSource, type PageUseTaskStatus, type PageUseTourOptions, type PageUseTourStyle, type PageUseTtsEngine, type PageUseTtsSpeakOptions, type PageUseTtsVoice, type ReadonlyStore, SIMULATOR_MASK_ID, TOUR_STYLE_TRAINER, TOUR_STYLE_USER, browserTtsEngine, buildMenuPresets, clearPageUseLog, createPageUse, definePageUseElements, formatPageUseResultForModel, getElapsedSeconds, getPageUseConfig, hidePageUseLauncher, isPageUseCommand, isPageUseConfigured, isRunning, mountPageUseUI, normalizeOptions, pageUseCapability, pageUseHistory, pageUsePresets, pageUseSettings, pageUseStore, readLauncherSwitch, runPageUseTool, showPageUseLauncher };
|
|
54
|
+
export { BROWSER_ENGINE_ID, DEFAULT_MAX_STEPS, DEFAULT_MODEL, DEFAULT_PAGE_USE_SETTINGS, DEFAULT_SESSION_HEADER, DEFAULT_STORAGE_KEY_PREFIX, DEFAULT_TOUR_MAX_TAB_SWITCHES, DEFAULT_TOUR_STYLES, FLOW_BUNDLE_VERSION, FLOW_SCHEMA_VERSION, FlowAction, FlowActionBinding, FlowApiRequest, FlowApiResponse, FlowApiSyncOptions, FlowBindings, FlowBoundCheck, FlowBundle, FlowCheck, FlowCheckBinding, FlowClient, FlowCloudAdapter, FlowCloudCache, FlowCloudController, FlowCloudRelease, FlowCloudState, FlowCompletionDecision, FlowCompletionEvaluator, FlowConfigResponse, FlowContext, FlowContextBinding, FlowDescriptionCheck, FlowError, FlowErrorCode, FlowEvent, FlowExecutionPorts, FlowExportOptions, FlowGenerator, FlowIdentity, FlowImportPreview, FlowImportStrategy, FlowInputDefinition, FlowKnowledge, FlowKnowledgeRecord, FlowManager, FlowManagerState, FlowMode, FlowOutputReference, FlowParameter, FlowParameterDefinition, FlowPermissions, FlowPresenter, FlowRegion, FlowRegionAnchor, FlowRegionCandidate, FlowRegionContext, FlowRegionFailure, FlowRegionHost, FlowRegionPage, FlowRegionSelector, FlowRepository, FlowRepositorySnapshot, FlowResolvedTarget, FlowRunOptions, FlowRunResult, FlowRunner, FlowScene, FlowSceneRecord, FlowScope, FlowSegment, FlowSegmentLog, FlowSessionContext, FlowSnapshot, FlowStatus, FlowStep, FlowTombstone, JsonObject, JsonValue, type MountPageUseManagerOptions, type MountPageUseUIOptions, type NormalizedPageUseOptions, PAGE_USE_COMMAND_TYPE, PAGE_USE_FLOW_TOOL, PAGE_USE_GLOBAL_KEY, PAGE_USE_GLOW_TAG, PAGE_USE_LAUNCHER_TAG, PAGE_USE_MASK_COLORS, PAGE_USE_ROBOT_ICON_SVG, PAGE_USE_STATIC_PRESETS, PAGE_USE_TOOL, PAGE_USE_TOOL_NAME, type PageUseCapability, type PageUseCommand, type PageUseCustomPreset, type PageUseErrorCode, PageUseFlowHandle, PageUseFlowOptions, type PageUseGlobal, PageUseGlowElement, type PageUseHandle, type PageUseHistoryEntry, type PageUseLLMOptions, type PageUseLauncherConfig, PageUseLauncherElement, type PageUseLauncherLayout, type PageUseMenuNode, type PageUseOptions, type PageUsePoint, type PageUsePreset, type PageUsePresetSaveResult, type PageUsePresetState, type PageUseProgressEvent, type PageUseQuestion, type PageUseRouterMode, type PageUseRunOptions, type PageUseSettings, type PageUseSnapshot, type PageUseState, type PageUseStepLog, type PageUseTaskResult, type PageUseTaskSource, type PageUseTaskStatus, type PageUseTourOptions, type PageUseTourStyle, type PageUseTtsEngine, type PageUseTtsSpeakOptions, type PageUseTtsVoice, type ReadonlyStore, SIMULATOR_MASK_ID, TOUR_STYLE_TRAINER, TOUR_STYLE_USER, browserTtsEngine, buildMenuPresets, clearPageUseLog, createPageUse, definePageUseElements, definePageUseManagerElement, formatPageUseResultForModel, getElapsedSeconds, getPageUseConfig, getPageUseFlow, getPageUseFlowCatalog, hidePageUseLauncher, isPageUseCommand, isPageUseConfigured, isRunning, mountPageUseManager, mountPageUseUI, newRevision, normalizeOptions, pageUseCapability, pageUseHistory, pageUsePresets, pageUseSettings, pageUseStore, parseFlowKnowledge, parseFlowScene, parseFlowSceneDraft, readLauncherSwitch, runPageUseFlowTool, runPageUseTool, sceneKey, showPageUseLauncher };
|
package/dist/vue.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as browserTtsEngine, Dt as PAGE_USE_MASK_COLORS, F as sceneKey, J as isRunning, Lt as FLOW_BUNDLE_VERSION, Mt as DEFAULT_TOUR_STYLES, N as parseFlowScene, Nt as TOUR_STYLE_TRAINER, Ot as SIMULATOR_MASK_ID, P as parseFlowSceneDraft, Pt as TOUR_STYLE_USER, Rt as FLOW_SCHEMA_VERSION, St as normalizeOptions, U as getElapsedSeconds, V as clearPageUseLog, W as getPageUseConfig, Y as pageUseStore, _t as DEFAULT_MAX_STEPS, a as mountPageUseManager, at as pageUseHistory, bt as DEFAULT_STORAGE_KEY_PREFIX, ht as pageUseSettings, i as definePageUseManagerElement, it as pageUsePresets, j as parseFlowKnowledge, k as newRevision, kt as BROWSER_ENGINE_ID, mt as DEFAULT_PAGE_USE_SETTINGS, n as getPageUseFlowCatalog, q as isPageUseConfigured, r as runPageUseFlowTool, t as PAGE_USE_FLOW_TOOL, vt as DEFAULT_MODEL, wt as readLauncherSwitch, xt as DEFAULT_TOUR_MAX_TAB_SWITCHES, yt as DEFAULT_SESSION_HEADER, zt as FlowError } from "./tool-CcgpA1W5.mjs";
|
|
2
|
+
import { _ as isPageUseCommand, a as PAGE_USE_STATIC_PRESETS, b as showPageUseLauncher, c as PAGE_USE_GLOW_TAG, d as getPageUseFlow, f as PAGE_USE_GLOBAL_KEY, g as formatPageUseResultForModel, h as PAGE_USE_TOOL_NAME, i as PageUseLauncherElement, l as PageUseGlowElement, m as PAGE_USE_TOOL, n as mountPageUseUI, o as buildMenuPresets, p as PAGE_USE_COMMAND_TYPE, r as PAGE_USE_LAUNCHER_TAG, s as PAGE_USE_ROBOT_ICON_SVG, t as definePageUseElements, u as createPageUse, v as runPageUseTool, x as pageUseCapability, y as hidePageUseLauncher } from "./src-DWoN4zgw.mjs";
|
|
2
3
|
import { defineComponent, inject, onBeforeUnmount, onScopeDispose, shallowRef } from "vue";
|
|
3
4
|
import { routerKey } from "vue-router";
|
|
4
5
|
|
|
@@ -83,4 +84,4 @@ function usePageUseSettings() {
|
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
//#endregion
|
|
86
|
-
export { BROWSER_ENGINE_ID, DEFAULT_MAX_STEPS, DEFAULT_MODEL, DEFAULT_PAGE_USE_SETTINGS, DEFAULT_SESSION_HEADER, DEFAULT_STORAGE_KEY_PREFIX, DEFAULT_TOUR_MAX_TAB_SWITCHES, DEFAULT_TOUR_STYLES, PAGE_USE_COMMAND_TYPE, PAGE_USE_GLOBAL_KEY, PAGE_USE_GLOW_TAG, PAGE_USE_LAUNCHER_TAG, PAGE_USE_MASK_COLORS, PAGE_USE_ROBOT_ICON_SVG, PAGE_USE_STATIC_PRESETS, PAGE_USE_TOOL, PAGE_USE_TOOL_NAME, PageUseGlowElement, PageUseHost, PageUseLauncherElement, SIMULATOR_MASK_ID, TOUR_STYLE_TRAINER, TOUR_STYLE_USER, browserTtsEngine, buildMenuPresets, clearPageUseLog, createPageUse, definePageUseElements, formatPageUseResultForModel, getElapsedSeconds, getPageUseConfig, hidePageUseLauncher, isPageUseCommand, isPageUseConfigured, isRunning, mountPageUseUI, normalizeOptions, pageUseCapability, pageUseHistory, pageUsePresets, pageUseSettings, pageUseStore, readLauncherSwitch, runPageUseTool, showPageUseLauncher, usePageUseSettings, usePageUseState, withVueRouter };
|
|
87
|
+
export { BROWSER_ENGINE_ID, DEFAULT_MAX_STEPS, DEFAULT_MODEL, DEFAULT_PAGE_USE_SETTINGS, DEFAULT_SESSION_HEADER, DEFAULT_STORAGE_KEY_PREFIX, DEFAULT_TOUR_MAX_TAB_SWITCHES, DEFAULT_TOUR_STYLES, FLOW_BUNDLE_VERSION, FLOW_SCHEMA_VERSION, FlowError, PAGE_USE_COMMAND_TYPE, PAGE_USE_FLOW_TOOL, PAGE_USE_GLOBAL_KEY, PAGE_USE_GLOW_TAG, PAGE_USE_LAUNCHER_TAG, PAGE_USE_MASK_COLORS, PAGE_USE_ROBOT_ICON_SVG, PAGE_USE_STATIC_PRESETS, PAGE_USE_TOOL, PAGE_USE_TOOL_NAME, PageUseGlowElement, PageUseHost, PageUseLauncherElement, SIMULATOR_MASK_ID, TOUR_STYLE_TRAINER, TOUR_STYLE_USER, browserTtsEngine, buildMenuPresets, clearPageUseLog, createPageUse, definePageUseElements, definePageUseManagerElement, formatPageUseResultForModel, getElapsedSeconds, getPageUseConfig, getPageUseFlow, getPageUseFlowCatalog, hidePageUseLauncher, isPageUseCommand, isPageUseConfigured, isRunning, mountPageUseManager, mountPageUseUI, newRevision, normalizeOptions, pageUseCapability, pageUseHistory, pageUsePresets, pageUseSettings, pageUseStore, parseFlowKnowledge, parseFlowScene, parseFlowSceneDraft, readLauncherSwitch, runPageUseFlowTool, runPageUseTool, sceneKey, showPageUseLauncher, usePageUseSettings, usePageUseState, withVueRouter };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanzerfe/page-use",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.11",
|
|
5
5
|
"description": "基于 page-agent 的页面操作智能体:自然语言指令驱动页面点击与输入,框架无关,附 Web Component 调试面板与 Vue 适配层",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.mjs",
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
"types": "./dist/index.d.mts",
|
|
13
13
|
"import": "./dist/index.mjs"
|
|
14
14
|
},
|
|
15
|
+
"./flow": {
|
|
16
|
+
"types": "./dist/flow.d.mts",
|
|
17
|
+
"import": "./dist/flow.mjs"
|
|
18
|
+
},
|
|
15
19
|
"./vue": {
|
|
16
20
|
"types": "./dist/vue.d.mts",
|
|
17
21
|
"import": "./dist/vue.mjs"
|
|
@@ -55,6 +59,7 @@
|
|
|
55
59
|
"page-agent": "1.12.4"
|
|
56
60
|
},
|
|
57
61
|
"devDependencies": {
|
|
62
|
+
"fake-indexeddb": "^6.2.4",
|
|
58
63
|
"jsdom": "^30.1.1",
|
|
59
64
|
"tsdown": "^0.23.0",
|
|
60
65
|
"typescript": "^5.9.3",
|