@cheemsup/dsh-plugin-console 0.0.0-stage → 0.2.0
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/LICENSE +23 -0
- package/README.md +95 -3
- package/cordis.patch.yml +5 -0
- package/icon.svg +203 -0
- package/lib/client.activity.js +222 -0
- package/lib/client.apply.js +171 -0
- package/lib/client.changes.js +206 -0
- package/lib/client.cleanup.js +270 -0
- package/lib/client.control.js +247 -0
- package/lib/client.dialog.js +77 -0
- package/lib/client.disable-preview.js +904 -0
- package/lib/client.draft.js +280 -0
- package/lib/client.editor-messages.js +421 -0
- package/lib/client.editor-store.js +266 -0
- package/lib/client.editor.js +433 -0
- package/lib/client.effects.js +115 -0
- package/lib/client.impact-tree.js +487 -0
- package/lib/client.influence.js +361 -0
- package/lib/client.js +246 -0
- package/lib/client.page.js +646 -0
- package/lib/client.plugin-filters.js +62 -0
- package/lib/client.plugins.js +506 -0
- package/lib/client.preview-messages.js +506 -0
- package/lib/client.preview-raw.js +132 -0
- package/lib/client.preview-store.js +128 -0
- package/lib/client.preview-tools.js +194 -0
- package/lib/client.preview.js +448 -0
- package/lib/client.relation-graph.js +364 -0
- package/lib/client.schema.js +327 -0
- package/lib/client.search.js +409 -0
- package/lib/client.session-detail.js +503 -0
- package/lib/client.sessions.js +495 -0
- package/lib/client.shared.js +562 -0
- package/lib/client.store.js +452 -0
- package/lib/client.styles.js +589 -0
- package/lib/client.template-card.js +240 -0
- package/lib/client.tools.js +366 -0
- package/lib/client.workspace-picker.js +204 -0
- package/lib/host/activity.js +252 -0
- package/lib/host/assembly-preview.js +244 -0
- package/lib/host/attribution.js +341 -0
- package/lib/host/catalog.js +133 -0
- package/lib/host/categorize.js +40 -0
- package/lib/host/config-layers.js +589 -0
- package/lib/host/constants.js +69 -0
- package/lib/host/control.js +159 -0
- package/lib/host/disable-preview.js +651 -0
- package/lib/host/entries.js +289 -0
- package/lib/host/fiber.js +86 -0
- package/lib/host/fs.js +99 -0
- package/lib/host/health.js +178 -0
- package/lib/host/http.js +65 -0
- package/lib/host/impact.js +138 -0
- package/lib/host/injection-owners.js +60 -0
- package/lib/host/layers.js +132 -0
- package/lib/host/masks.js +145 -0
- package/lib/host/modes.js +96 -0
- package/lib/host/names.js +44 -0
- package/lib/host/patch-config.js +554 -0
- package/lib/host/patch-scan.js +103 -0
- package/lib/host/preview-conditions.js +281 -0
- package/lib/host/preview-contexts.js +174 -0
- package/lib/host/preview-envelope.js +31 -0
- package/lib/host/preview-instructions.js +450 -0
- package/lib/host/preview-messages.js +284 -0
- package/lib/host/preview-modules.js +233 -0
- package/lib/host/preview-skills.js +200 -0
- package/lib/host/prompt.js +213 -0
- package/lib/host/recipe-overlay.js +209 -0
- package/lib/host/request-preview.js +114 -0
- package/lib/host/routes/activation.js +96 -0
- package/lib/host/routes/activity.js +22 -0
- package/lib/host/routes/apply.js +93 -0
- package/lib/host/routes/cleanup.js +62 -0
- package/lib/host/routes/control.js +22 -0
- package/lib/host/routes/disable-preview.js +19 -0
- package/lib/host/routes/impact.js +19 -0
- package/lib/host/routes/operations.js +22 -0
- package/lib/host/routes/preview.js +58 -0
- package/lib/host/routes/session-influence.js +23 -0
- package/lib/host/routes/snapshot.js +21 -0
- package/lib/host/routes/template.js +54 -0
- package/lib/host/routes/templates.js +28 -0
- package/lib/host/scope-impact.js +125 -0
- package/lib/host/session-events.js +39 -0
- package/lib/host/session-influence.js +467 -0
- package/lib/host/sessions.js +293 -0
- package/lib/host/snapshot.js +218 -0
- package/lib/host/source-scan.js +225 -0
- package/lib/host/templates/cleanup.js +219 -0
- package/lib/host/templates/inheritance.js +144 -0
- package/lib/host/templates/materialize.js +317 -0
- package/lib/host/templates/message-overlay.js +184 -0
- package/lib/host/templates/repository.js +323 -0
- package/lib/host/templates/store.js +131 -0
- package/lib/host/tool-set.js +150 -0
- package/lib/host/tools.js +129 -0
- package/lib/index.js +106 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +124 -6
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 工具注册表的读取:可见集与完整 schema。
|
|
3
|
+
*
|
|
4
|
+
* `tools.view(scope)` 已经把「全局层 → 祖先 scope → 本 scope」的遮蔽算完,
|
|
5
|
+
* 因此这里拿到的是真正能调用的工具名,而不是某一次注册的内容。
|
|
6
|
+
* @module dsh-plugin-console/host/tools
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { scopeKeyOf } from './fiber.js'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 把一个注册表视图的键集合读成字符串数组。
|
|
13
|
+
*
|
|
14
|
+
* `visible` 是 Map、`knownNames` 是 Set;测试里也可能给普通数组。
|
|
15
|
+
* 三种都接受,避免调用方为形状差异写分支。
|
|
16
|
+
* @param {Map<string, unknown> | Set<string> | Array<string> | undefined} table - 名字集合。
|
|
17
|
+
* @returns {string[]} 名字(保持注册顺序)。
|
|
18
|
+
*/
|
|
19
|
+
function namesOf(table) {
|
|
20
|
+
if (table === undefined || table === null) return []
|
|
21
|
+
if (Array.isArray(table)) return table.filter((name) => typeof name === 'string')
|
|
22
|
+
if (typeof table.keys === 'function') return [...table.keys()].filter((name) => typeof name === 'string')
|
|
23
|
+
return []
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 读取一个 scope 的完整工具视图:restrict 之后的可见集,以及 restrict 之前的已知集。
|
|
28
|
+
*
|
|
29
|
+
* 两者之差才是「被 restrict 过滤」;不能用「全局可见 − 会话可见」代替——
|
|
30
|
+
* 同名替换不会让名字消失,那样算出来的差额会把它误报成遮蔽。
|
|
31
|
+
* @param {object} ctx - host 插件上下文。
|
|
32
|
+
* @param {symbol | string | undefined} scopeKey - `tools.view` 接受的 scope 标识。
|
|
33
|
+
* @returns {{visible: string[], knownNames?: string[]} | undefined} 视图;工具服务缺席时 undefined。
|
|
34
|
+
*/
|
|
35
|
+
export function readToolView(ctx, scopeKey) {
|
|
36
|
+
const tools = ctx.get('tools')
|
|
37
|
+
if (tools === undefined || typeof tools.view !== 'function') return undefined
|
|
38
|
+
try {
|
|
39
|
+
const view = tools.view(scopeKey)
|
|
40
|
+
if (view === undefined || view === null) return undefined
|
|
41
|
+
return {
|
|
42
|
+
visible: namesOf(view.visible),
|
|
43
|
+
// 老版本宿主可能没有 knownNames;保留 undefined 让调用方退回旧口径,
|
|
44
|
+
// 而不是把「读不到」当成「一个名字都没有」。
|
|
45
|
+
knownNames: view.knownNames === undefined ? undefined : namesOf(view.knownNames),
|
|
46
|
+
}
|
|
47
|
+
} catch {
|
|
48
|
+
return undefined
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 读取一个 scope 此刻可见的工具集合。
|
|
54
|
+
* @param {object} ctx - host 插件上下文。
|
|
55
|
+
* @param {object | undefined} scope - Agent 的 ctx;省略表示全局视图。
|
|
56
|
+
* @returns {string[] | undefined} 可见工具名(按注册顺序),工具服务缺席时返回 undefined。
|
|
57
|
+
*/
|
|
58
|
+
export function readVisibleTools(ctx, scope) {
|
|
59
|
+
// tools.view(scope) 的 scope 参数是 `createScope` 写下的那个 symbol,
|
|
60
|
+
// 不是 ctx 本身。传 ctx 进去只会拿到全局层(peek 落到 undefined)。
|
|
61
|
+
// dsh-scope 没有把符号名注册到 Symbol.for,只能按描述找。
|
|
62
|
+
return readToolView(ctx, scopeKeyOf(scope))?.visible
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* 读取一个 scope 的 `visible` 与 `knownNames`(Agent ctx 版本)。
|
|
67
|
+
* @param {object} ctx - host 插件上下文。
|
|
68
|
+
* @param {object | undefined} scope - Agent 的 ctx;省略表示全局视图。
|
|
69
|
+
* @returns {{visible: string[], knownNames?: string[]} | undefined} 视图。
|
|
70
|
+
*/
|
|
71
|
+
export function readScopeTools(ctx, scope) {
|
|
72
|
+
return readToolView(ctx, scopeKeyOf(scope))
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* 读取某个 scope 的全部工具 schema;省略 scopeKey 表示全局层。
|
|
77
|
+
*
|
|
78
|
+
* `tools.schemas()` 是模型声明用的投影(去掉 execute / render 等回调,只留
|
|
79
|
+
* name / description / parameters)。预演要把「全局定义」与「preset scope 定义」
|
|
80
|
+
* 分开比对,所以把 scope 做成参数;`readScopedSchemas` 只是它的 agent ctx 版本。
|
|
81
|
+
* @param {object} ctx - host 插件上下文。
|
|
82
|
+
* @param {symbol | string | undefined} [scopeKey] - scope 标识;省略表示全局。
|
|
83
|
+
* @returns {Array<object>} 工具 schema 列表;服务缺席或读取失败时为空数组。
|
|
84
|
+
*/
|
|
85
|
+
export function readToolSchemas(ctx, scopeKey) {
|
|
86
|
+
const tools = ctx.get('tools')
|
|
87
|
+
if (tools === undefined || typeof tools.schemas !== 'function') return []
|
|
88
|
+
try {
|
|
89
|
+
const rows = scopeKey === undefined ? tools.schemas() : tools.schemas(scopeKey)
|
|
90
|
+
return (rows ?? []).filter((schema) => typeof schema?.name === 'string')
|
|
91
|
+
} catch {
|
|
92
|
+
return []
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 读取某个 agent scope 下所有工具的完整 schema。
|
|
98
|
+
*
|
|
99
|
+
* `systemPrompt.assemble()` 不带 scope,因此只覆盖全局工具;模式在 agent scope
|
|
100
|
+
* 里注册的那些(read / grep / schedule_create …)不在其中,需要单独从这里取。
|
|
101
|
+
* @param {object} ctx - host 插件上下文。
|
|
102
|
+
* @param {object} agentCtx - Agent 的上下文。
|
|
103
|
+
* @returns {Array<object>} 工具 schema 列表;不可用时为空数组。
|
|
104
|
+
*/
|
|
105
|
+
export function readScopedSchemas(ctx, agentCtx) {
|
|
106
|
+
const scopeKey = scopeKeyOf(agentCtx)
|
|
107
|
+
if (scopeKey === undefined) return []
|
|
108
|
+
return readToolSchemas(ctx, scopeKey)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* 读出某个 scope 下「可以被 restrict 提交」的工具名。
|
|
113
|
+
*
|
|
114
|
+
* `restrict({deny})` 对「当前 scope 不知道的全局工具名」直接抛错,一个不认识
|
|
115
|
+
* 就整批失效;所以提交前先取这份名单做过滤。
|
|
116
|
+
* @param {object} agentCtx - 带 scope 的上下文。
|
|
117
|
+
* @returns {Set<string> | undefined} 可禁用的名字;读不到时 undefined。
|
|
118
|
+
*/
|
|
119
|
+
export function readRestrictableNames(agentCtx) {
|
|
120
|
+
const tools = agentCtx?.get?.('tools')
|
|
121
|
+
const scope = scopeKeyOf(agentCtx)
|
|
122
|
+
if (scope === undefined || tools === undefined || typeof tools.view !== 'function') return undefined
|
|
123
|
+
try {
|
|
124
|
+
const known = tools.view(scope)?.restrictableNames
|
|
125
|
+
return known instanceof Set ? known : undefined
|
|
126
|
+
} catch {
|
|
127
|
+
return undefined
|
|
128
|
+
}
|
|
129
|
+
}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 插件控制台 host 半:投影当前 profile 组合出的 Cordis 插件树,并提供模板的读写与应用。
|
|
3
|
+
*
|
|
4
|
+
* 数据来源全部是宿主已有的只读事实:
|
|
5
|
+
* - `ctx.loader.entries()`:Loader 条目、fiber 阶段、服务需求与提供;
|
|
6
|
+
* - `pluginManager.listBundles()`:每个组合包插入了哪些行、覆盖了哪些行;
|
|
7
|
+
* - profile / home 的 `cordis.patch.yml`:用户自己插入或覆盖的行;
|
|
8
|
+
* - `pluginPackages`:包身份、版本、`dsh.client` 声明、本地化标题。
|
|
9
|
+
*
|
|
10
|
+
* 唯一的对外出口是一组鉴权 Fetch 路由(`/api/plugin-console/snapshot` 等),
|
|
11
|
+
* 与 plugin-manager、session-log-export 使用的注册方式一致。
|
|
12
|
+
*
|
|
13
|
+
* 两处「写」的边界说明:
|
|
14
|
+
* - **不启用/停用任何插件**,也不改 profile 的 yml——那是 plugin-manager 的事;
|
|
15
|
+
* - 模板及其每会话开关写在自己的 storage domain(`plugin_console_templates`),
|
|
16
|
+
* 由 storageDomain 落到 `$DSH_HOME/storages`,不碰 session log,也不写 sidecar 文件。
|
|
17
|
+
*
|
|
18
|
+
* 实现分层见 README.md 的「代码结构」:本文件只做「等待 connection → 挂全部路由 → 收尾」。
|
|
19
|
+
* @module dsh-plugin-console
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import {
|
|
23
|
+
ACTIVATION_PATH,
|
|
24
|
+
ACTIVITY_PATH,
|
|
25
|
+
APPLY_PATH,
|
|
26
|
+
CLEANUP_PATH,
|
|
27
|
+
CONTROL_PATH,
|
|
28
|
+
DISABLE_PREVIEW_PATH,
|
|
29
|
+
IMPACT_PATH,
|
|
30
|
+
OPERATIONS_PATH,
|
|
31
|
+
PREVIEW_PATH,
|
|
32
|
+
SESSION_INFLUENCE_PATH,
|
|
33
|
+
SNAPSHOT_PATH,
|
|
34
|
+
TEMPLATE_PATH,
|
|
35
|
+
TEMPLATES_PATH,
|
|
36
|
+
} from './host/constants.js'
|
|
37
|
+
import { jsonRoute } from './host/http.js'
|
|
38
|
+
import { createActivationRoute } from './host/routes/activation.js'
|
|
39
|
+
import { createActivityRoute } from './host/routes/activity.js'
|
|
40
|
+
import { createApplyRoute } from './host/routes/apply.js'
|
|
41
|
+
import { createCleanupRoute } from './host/routes/cleanup.js'
|
|
42
|
+
import { createControlRoute } from './host/routes/control.js'
|
|
43
|
+
import { createDisablePreviewRoute } from './host/routes/disable-preview.js'
|
|
44
|
+
import { createImpactRoute } from './host/routes/impact.js'
|
|
45
|
+
import { createOperationsRoute } from './host/routes/operations.js'
|
|
46
|
+
import { createPreviewRoute } from './host/routes/preview.js'
|
|
47
|
+
import { createSessionInfluenceRoute } from './host/routes/session-influence.js'
|
|
48
|
+
import { createSnapshotRoute } from './host/routes/snapshot.js'
|
|
49
|
+
import { createTemplateRoute } from './host/routes/template.js'
|
|
50
|
+
import { createTemplatesRoute } from './host/routes/templates.js'
|
|
51
|
+
import { installMaskInheritance } from './host/masks.js'
|
|
52
|
+
import { installTemplateInheritance } from './host/templates/inheritance.js'
|
|
53
|
+
import { closeTemplateStore, createTemplateState } from './host/templates/store.js'
|
|
54
|
+
|
|
55
|
+
/** 本插件只依赖 Loader;其余服务按需 `ctx.get()`,缺失即降级。 */
|
|
56
|
+
export const inject = ['loader']
|
|
57
|
+
|
|
58
|
+
/** 快照与模板数据的对外入口;复用快照逻辑给别的插件时从这里取。 */
|
|
59
|
+
export { readSnapshot } from './host/snapshot.js'
|
|
60
|
+
export { previewAssembly } from './host/assembly-preview.js'
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 注册全部路由。
|
|
64
|
+
*
|
|
65
|
+
* Connection 可能晚于本行就绪,因此用 `ctx.inject` 等待它,而不是在 apply 时直接取。
|
|
66
|
+
* 路由随 scope 释放而撤销。
|
|
67
|
+
* @param {object} ctx - host 插件上下文。
|
|
68
|
+
*/
|
|
69
|
+
export function apply(ctx) {
|
|
70
|
+
const templateState = createTemplateState()
|
|
71
|
+
|
|
72
|
+
ctx.effect(() => () => closeTemplateStore(templateState), 'plugin-console: template storage')
|
|
73
|
+
|
|
74
|
+
// 子 Agent 的模板继承不依赖 connection:它监听 agent 注册表,必须在
|
|
75
|
+
// 任何会话启动之前挂上,否则第一批 resume / subagent 会漏掉。
|
|
76
|
+
installTemplateInheritance(ctx, templateState)
|
|
77
|
+
// 掩码监听必须排在模板之后:模板先物化 base,掩码再把 base + mask 合成一份 plan。
|
|
78
|
+
installMaskInheritance(ctx, templateState)
|
|
79
|
+
|
|
80
|
+
ctx.inject(['connection'], (scope) => {
|
|
81
|
+
/** 一条路由的通用挂载:路径、方法、请求体形态、处理函数、effect label。 */
|
|
82
|
+
const mount = (path, methods, requestBody, handler, label) => {
|
|
83
|
+
scope.effect(() => scope.connection.fetch.register({
|
|
84
|
+
path,
|
|
85
|
+
methods,
|
|
86
|
+
requestBody,
|
|
87
|
+
fetch: jsonRoute(handler),
|
|
88
|
+
}), label)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// 预测装配用 POST:这是一次「按选择求值」的计算,不是资源读取。
|
|
92
|
+
mount(PREVIEW_PATH, ['POST'], 'json', createPreviewRoute(ctx), 'plugin-console: preview route')
|
|
93
|
+
mount(SNAPSHOT_PATH, ['GET'], 'buffered', createSnapshotRoute(ctx, templateState), 'plugin-console: snapshot route')
|
|
94
|
+
mount(TEMPLATES_PATH, ['GET', 'POST'], 'buffered', createTemplatesRoute(ctx, templateState), 'plugin-console: templates route')
|
|
95
|
+
mount(TEMPLATE_PATH, ['GET', 'POST', 'DELETE'], 'buffered', createTemplateRoute(ctx, templateState), 'plugin-console: template route')
|
|
96
|
+
mount(APPLY_PATH, ['POST'], 'buffered', createApplyRoute(ctx, templateState), 'plugin-console: apply route')
|
|
97
|
+
mount(ACTIVATION_PATH, ['GET', 'POST'], 'buffered', createActivationRoute(ctx, templateState), 'plugin-console: activation route')
|
|
98
|
+
mount(CLEANUP_PATH, ['POST'], 'buffered', createCleanupRoute(ctx, templateState), 'plugin-console: cleanup route')
|
|
99
|
+
mount(SESSION_INFLUENCE_PATH, ['GET'], 'buffered', createSessionInfluenceRoute(ctx), 'plugin-console: session influence route')
|
|
100
|
+
mount(ACTIVITY_PATH, ['GET'], 'buffered', createActivityRoute(ctx), 'plugin-console: activity route')
|
|
101
|
+
mount(IMPACT_PATH, ['GET'], 'buffered', createImpactRoute(ctx), 'plugin-console: impact route')
|
|
102
|
+
mount(DISABLE_PREVIEW_PATH, ['GET'], 'buffered', createDisablePreviewRoute(ctx), 'plugin-console: disable preview route')
|
|
103
|
+
mount(CONTROL_PATH, ['POST'], 'buffered', createControlRoute(ctx, templateState), 'plugin-console: control route')
|
|
104
|
+
mount(OPERATIONS_PATH, ['GET'], 'buffered', createOperationsRoute(ctx, templateState), 'plugin-console: operations route')
|
|
105
|
+
})
|
|
106
|
+
}
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,124 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cheemsup/dsh-plugin-console",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@cheemsup/dsh-plugin-console",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "插件运行控制台:观测当前 profile 的插件组合、会话来源、工具归属与首请求,并支持会话级提示词/工具定制",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"icon": "icon.svg",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"default": "./lib/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./client": {
|
|
13
|
+
"default": "./lib/client.js"
|
|
14
|
+
},
|
|
15
|
+
"./locale/*.json": "./locale/*.json",
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"lib/index.js",
|
|
20
|
+
"lib/client.js",
|
|
21
|
+
"lib/client.styles.js",
|
|
22
|
+
"lib/client.shared.js",
|
|
23
|
+
"lib/client.workspace-picker.js",
|
|
24
|
+
"lib/client.search.js",
|
|
25
|
+
"lib/client.plugins.js",
|
|
26
|
+
"lib/client.plugin-filters.js",
|
|
27
|
+
"lib/client.activity.js",
|
|
28
|
+
"lib/client.changes.js",
|
|
29
|
+
"lib/client.control.js",
|
|
30
|
+
"lib/client.sessions.js",
|
|
31
|
+
"lib/client.tools.js",
|
|
32
|
+
"lib/client.preview.js",
|
|
33
|
+
"lib/client.preview-raw.js",
|
|
34
|
+
"lib/client.preview-store.js",
|
|
35
|
+
"lib/client.preview-messages.js",
|
|
36
|
+
"lib/client.preview-tools.js",
|
|
37
|
+
"lib/client.effects.js",
|
|
38
|
+
"lib/client.editor.js",
|
|
39
|
+
"lib/client.draft.js",
|
|
40
|
+
"lib/client.dialog.js",
|
|
41
|
+
"lib/client.template-card.js",
|
|
42
|
+
"lib/client.cleanup.js",
|
|
43
|
+
"lib/client.influence.js",
|
|
44
|
+
"lib/client.schema.js",
|
|
45
|
+
"lib/client.apply.js",
|
|
46
|
+
"lib/client.store.js",
|
|
47
|
+
"lib/client.editor-store.js",
|
|
48
|
+
"lib/client.editor-messages.js",
|
|
49
|
+
"lib/client.page.js",
|
|
50
|
+
"lib/client.session-detail.js",
|
|
51
|
+
"lib/client.impact-tree.js",
|
|
52
|
+
"lib/client.relation-graph.js",
|
|
53
|
+
"lib/client.disable-preview.js",
|
|
54
|
+
"lib/host/**/*.js",
|
|
55
|
+
"cordis.patch.yml",
|
|
56
|
+
"locale/*.json",
|
|
57
|
+
"icon.svg",
|
|
58
|
+
"README.md"
|
|
59
|
+
],
|
|
60
|
+
"scripts": {
|
|
61
|
+
"verify:host": "node --input-type=module -e \"import('./lib/index.js').then(() => console.log('host entry ok'))\"",
|
|
62
|
+
"verify:health": "node scripts/verify-health.mjs",
|
|
63
|
+
"verify:activity": "node scripts/verify-activity.mjs",
|
|
64
|
+
"verify:changes": "node scripts/verify-changes.mjs",
|
|
65
|
+
"verify:impact": "node scripts/verify-impact.mjs",
|
|
66
|
+
"verify:patch-config": "node scripts/verify-patch-config.mjs",
|
|
67
|
+
"verify:disable-preview": "node scripts/verify-disable-preview.mjs",
|
|
68
|
+
"verify:session-plan": "node scripts/verify-session-plan.mjs",
|
|
69
|
+
"verify:control": "node scripts/verify-control.mjs",
|
|
70
|
+
"verify:snapshot": "node scripts/verify-host-snapshot.mjs",
|
|
71
|
+
"verify:templates": "node scripts/verify-templates.mjs",
|
|
72
|
+
"verify:materialize": "node scripts/verify-materialize.mjs",
|
|
73
|
+
"verify:cleanup": "node scripts/verify-cleanup.mjs",
|
|
74
|
+
"verify:session-influence": "node scripts/verify-session-influence.mjs",
|
|
75
|
+
"verify:request-preview": "node scripts/verify-request-preview.mjs",
|
|
76
|
+
"verify:source-scan": "node scripts/verify-source-scan.mjs",
|
|
77
|
+
"verify:imports": "node scripts/verify-imports.mjs",
|
|
78
|
+
"verify:theme": "node scripts/verify-theme.mjs",
|
|
79
|
+
"verify:chunks": "node scripts/verify-chunks.mjs",
|
|
80
|
+
"verify:bundle": "node scripts/verify-bundle.mjs",
|
|
81
|
+
"verify:icon": "node scripts/verify-icon.mjs",
|
|
82
|
+
"verify:views": "node scripts/verify-views.mjs",
|
|
83
|
+
"verify:destructuring": "node scripts/verify-destructuring.mjs",
|
|
84
|
+
"verify:structure": "node scripts/verify-structure.mjs",
|
|
85
|
+
"verify": "npm run verify:host && npm run verify:health && npm run verify:activity && npm run verify:changes && npm run verify:impact && npm run verify:patch-config && npm run verify:disable-preview && npm run verify:session-plan && npm run verify:control && npm run verify:snapshot && npm run verify:templates && npm run verify:materialize && npm run verify:cleanup && npm run verify:session-influence && npm run verify:request-preview && npm run verify:source-scan && npm run verify:imports && npm run verify:theme && npm run verify:chunks && npm run verify:bundle && npm run verify:icon && npm run verify:views && npm run verify:destructuring && npm run verify:structure"
|
|
86
|
+
},
|
|
87
|
+
"license": "MIT",
|
|
88
|
+
"publishConfig": {
|
|
89
|
+
"access": "public",
|
|
90
|
+
"registry": "https://registry.npmjs.org/"
|
|
91
|
+
},
|
|
92
|
+
"author": "Cheemsup",
|
|
93
|
+
"repository": {
|
|
94
|
+
"type": "git",
|
|
95
|
+
"url": "git+https://github.com/Cheemsup/dsh-plugin-console.git"
|
|
96
|
+
},
|
|
97
|
+
"homepage": "https://github.com/Cheemsup/dsh-plugin-console",
|
|
98
|
+
"bugs": {
|
|
99
|
+
"url": "https://github.com/Cheemsup/dsh-plugin-console/issues"
|
|
100
|
+
},
|
|
101
|
+
"keywords": [
|
|
102
|
+
"deepseek-harness",
|
|
103
|
+
"dsh",
|
|
104
|
+
"dsh-plugin",
|
|
105
|
+
"cordis",
|
|
106
|
+
"plugin-console",
|
|
107
|
+
"inspector",
|
|
108
|
+
"prompt-preview"
|
|
109
|
+
],
|
|
110
|
+
"engines": {
|
|
111
|
+
"dsh": ">=0.2.2-rc.1 <0.3.0"
|
|
112
|
+
},
|
|
113
|
+
"dsh": {
|
|
114
|
+
"bundle": {
|
|
115
|
+
"patch": "./cordis.patch.yml"
|
|
116
|
+
},
|
|
117
|
+
"client": {
|
|
118
|
+
"platform": "web"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"peerDependencies": {
|
|
122
|
+
"@deepseek-ai/cordis": "~4.1.0"
|
|
123
|
+
}
|
|
124
|
+
}
|