@xrkseek/harness-cli 0.0.7 → 0.0.9
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/node_modules/@xrkseek/core-agent/dist/index.d.ts +6 -1
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.js +3 -0
- package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +11 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js +14 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/registry.d.ts +5 -0
- package/node_modules/@xrkseek/exec-pty/dist/registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/registry.js +17 -1
- package/node_modules/@xrkseek/exec-pty/dist/registry.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/render.d.ts +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/render.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/render.js +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/render.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/tools.js +13 -4
- package/node_modules/@xrkseek/exec-pty/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +3 -2
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +12 -7
- package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/preset.d.ts +3 -2
- package/node_modules/@xrkseek/preset-minimal/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js +12 -7
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.js +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.js +50 -0
- package/node_modules/@xrkseek/protocol/dist/json-schema.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts +56 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.js +9 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.js +129 -0
- package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js +5 -2
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.js +5 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +12 -2
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/skill-list.js.map +1 -1
- package/node_modules/@xrkseek/session-projection/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/README.md +3 -23
- package/node_modules/@xrkseek/workspace/dist/durable-inject.d.ts +62 -0
- package/node_modules/@xrkseek/workspace/dist/durable-inject.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/durable-inject.js +146 -0
- package/node_modules/@xrkseek/workspace/dist/durable-inject.js.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +25 -13
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +79 -17
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-tools.js +6 -0
- package/node_modules/@xrkseek/workspace/dist/skill-tools.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skills.d.ts +12 -1
- package/node_modules/@xrkseek/workspace/dist/skills.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skills.js +42 -4
- package/node_modules/@xrkseek/workspace/dist/skills.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/slash.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/slash.js +2 -0
- package/node_modules/@xrkseek/workspace/dist/slash.js.map +1 -1
- package/node_modules/@xrkseek/workspace/package.json +2 -1
- package/package.json +1 -1
- package/product-web/assets/index-CcF0Sxxg.js +297 -0
- package/product-web/assets/index-CcF0Sxxg.js.map +1 -0
- package/product-web/assets/langs/{php-9bx0az3O.js → php-DY2VakOf.js} +2 -2
- package/product-web/assets/langs/{php-9bx0az3O.js.map → php-DY2VakOf.js.map} +1 -1
- package/product-web/assets/langs/{ruby-HDLHRjSL.js → ruby-hwtoiFmS.js} +2 -2
- package/product-web/assets/langs/{ruby-HDLHRjSL.js.map → ruby-hwtoiFmS.js.map} +1 -1
- package/product-web/assets/{vendor-CeMKrCZm.js → vendor-CldRVjca.js} +35 -36
- package/product-web/assets/vendor-CldRVjca.js.map +1 -0
- package/product-web/boot.json +1 -1
- package/product-web/index.html +2 -2
- package/product-web/plugins/@xrkseek/client-locale/client.js +2 -2
- package/product-web/plugins/@xrkseek/client-runtime/client.js +37 -1
- package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +34 -34
- package/product-web/plugins/@xrkseek/client-ui-commands/client.js +7 -7
- package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +161 -161
- package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +5 -5
- package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +26 -26
- package/product-web/plugins/@xrkseek/client-ui-goal/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +2 -2
- package/product-web/plugins/@xrkseek/client-ui-jobs/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-layout/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +19 -19
- package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-plan/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +14 -14
- package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +51 -51
- package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +12 -12
- package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +42 -42
- package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +13 -13
- package/product-web/plugins/@xrkseek/client-ui-skill/client.js +13 -13
- package/product-web/plugins/@xrkseek/client-ui-subagent/client.js +17 -17
- package/product-web/plugins/@xrkseek/client-ui-theme/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-tool/client.js +39 -39
- package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +171 -150
- package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +27 -27
- package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +15 -15
- package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +53 -53
- package/node_modules/@xrkseek/server-face/dist/dsh-schema.d.ts +0 -35
- package/node_modules/@xrkseek/server-face/dist/dsh-schema.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/dsh-schema.js +0 -116
- package/node_modules/@xrkseek/server-face/dist/dsh-schema.js.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/envelope.d.ts +0 -23
- package/node_modules/@xrkseek/server-face/dist/envelope.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/envelope.js +0 -51
- package/node_modules/@xrkseek/server-face/dist/envelope.js.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/rpc-error.d.ts +0 -15
- package/node_modules/@xrkseek/server-face/dist/rpc-error.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/rpc-error.js +0 -247
- package/node_modules/@xrkseek/server-face/dist/rpc-error.js.map +0 -1
- package/product-web/assets/index-BwSJq-Ch.js +0 -112
- package/product-web/assets/index-BwSJq-Ch.js.map +0 -1
- package/product-web/assets/vendor-CeMKrCZm.js.map +0 -1
|
@@ -19,28 +19,28 @@ window.__ModuleLoader__.load({
|
|
|
19
19
|
document.head.appendChild(tag);
|
|
20
20
|
}
|
|
21
21
|
var WorkflowRunPanel_module_css_default = {
|
|
22
|
+
"runHeader": "SiHEYG_runHeader",
|
|
23
|
+
"phaseLeading": "SiHEYG_phaseLeading",
|
|
24
|
+
"separator": "SiHEYG_separator",
|
|
25
|
+
"memberLabel": "SiHEYG_memberLabel",
|
|
26
|
+
"memberLabelWrap": "SiHEYG_memberLabelWrap",
|
|
27
|
+
"phaseTitle": "SiHEYG_phaseTitle",
|
|
22
28
|
"phaseCount": "SiHEYG_phaseCount",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
29
|
+
"dotSlot": "SiHEYG_dotSlot",
|
|
30
|
+
"runSummary": "SiHEYG_runSummary",
|
|
31
|
+
"phaseHeader": "SiHEYG_phaseHeader",
|
|
25
32
|
"runTitle": "SiHEYG_runTitle",
|
|
26
|
-
"memberLabel": "SiHEYG_memberLabel",
|
|
27
33
|
"members": "SiHEYG_members",
|
|
28
|
-
"empty": "SiHEYG_empty",
|
|
29
|
-
"runHeader": "SiHEYG_runHeader",
|
|
30
34
|
"runLeading": "SiHEYG_runLeading",
|
|
31
|
-
"
|
|
35
|
+
"root": "SiHEYG_root",
|
|
32
36
|
"statusTail": "SiHEYG_statusTail",
|
|
33
|
-
"phaseTitle": "SiHEYG_phaseTitle",
|
|
34
|
-
"separator": "SiHEYG_separator",
|
|
35
|
-
"phaseLeading": "SiHEYG_phaseLeading",
|
|
36
37
|
"memberRow": "SiHEYG_memberRow",
|
|
37
|
-
"memberLabelWrap": "SiHEYG_memberLabelWrap",
|
|
38
|
-
"phase": "SiHEYG_phase",
|
|
39
|
-
"dotSlot": "SiHEYG_dotSlot",
|
|
40
|
-
"phaseHeader": "SiHEYG_phaseHeader",
|
|
41
38
|
"memberButton": "SiHEYG_memberButton",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
39
|
+
"memberStatus": "SiHEYG_memberStatus",
|
|
40
|
+
"phase": "SiHEYG_phase",
|
|
41
|
+
"phaseStatus": "SiHEYG_phaseStatus",
|
|
42
|
+
"empty": "SiHEYG_empty",
|
|
43
|
+
"phaseList": "SiHEYG_phaseList"
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/client/WorkflowRunPanel.tsx
|
|
@@ -341,40 +341,40 @@ window.__ModuleLoader__.load({
|
|
|
341
341
|
document.head.appendChild(tag);
|
|
342
342
|
}
|
|
343
343
|
var Rows_module_css_default = {
|
|
344
|
-
"
|
|
345
|
-
"
|
|
344
|
+
"searchResultSnippet": "X-VPTa_searchResultSnippet",
|
|
345
|
+
"searchResultRow": "X-VPTa_searchResultRow",
|
|
346
|
+
"projectRow": "X-VPTa_projectRow",
|
|
346
347
|
"menuOpen": "X-VPTa_menuOpen",
|
|
347
|
-
"
|
|
348
|
+
"arrowOpen": "X-VPTa_arrowOpen",
|
|
349
|
+
"dot": "X-VPTa_dot",
|
|
350
|
+
"searchResultHeading": "X-VPTa_searchResultHeading",
|
|
348
351
|
"hoverStatus": "X-VPTa_hoverStatus",
|
|
349
|
-
"
|
|
350
|
-
"
|
|
351
|
-
"folder": "X-VPTa_folder",
|
|
352
|
+
"hoverPath": "X-VPTa_hoverPath",
|
|
353
|
+
"searchResultWorkspace": "X-VPTa_searchResultWorkspace",
|
|
352
354
|
"selected": "X-VPTa_selected",
|
|
353
|
-
"
|
|
354
|
-
"
|
|
355
|
-
"projectText": "X-VPTa_projectText",
|
|
356
|
-
"flatSessionRowWithoutStatus": "X-VPTa_flatSessionRowWithoutStatus",
|
|
355
|
+
"visuallyHidden": "X-VPTa_visuallyHidden",
|
|
356
|
+
"dropAfter": "X-VPTa_dropAfter",
|
|
357
357
|
"title": "X-VPTa_title",
|
|
358
|
-
"
|
|
358
|
+
"projectText": "X-VPTa_projectText",
|
|
359
|
+
"searchResultMeta": "X-VPTa_searchResultMeta",
|
|
360
|
+
"meta": "X-VPTa_meta",
|
|
359
361
|
"sessionRow": "X-VPTa_sessionRow",
|
|
360
|
-
"
|
|
361
|
-
"
|
|
362
|
-
"
|
|
363
|
-
"rowActions": "X-VPTa_rowActions",
|
|
364
|
-
"visuallyHidden": "X-VPTa_visuallyHidden",
|
|
365
|
-
"dot": "X-VPTa_dot",
|
|
366
|
-
"searchResultSnippet": "X-VPTa_searchResultSnippet",
|
|
362
|
+
"slot": "X-VPTa_slot",
|
|
363
|
+
"folder": "X-VPTa_folder",
|
|
364
|
+
"renameInput": "X-VPTa_renameInput",
|
|
367
365
|
"chevron": "X-VPTa_chevron",
|
|
368
|
-
"hoverContent": "X-VPTa_hoverContent",
|
|
369
366
|
"searchResultTitle": "X-VPTa_searchResultTitle",
|
|
367
|
+
"iconButton": "X-VPTa_iconButton",
|
|
368
|
+
"dropBefore": "X-VPTa_dropBefore",
|
|
369
|
+
"hoverContent": "X-VPTa_hoverContent",
|
|
370
|
+
"hoverTime": "X-VPTa_hoverTime",
|
|
370
371
|
"arrow": "X-VPTa_arrow",
|
|
371
|
-
"
|
|
372
|
-
"slot": "X-VPTa_slot",
|
|
373
|
-
"searchResultHeading": "X-VPTa_searchResultHeading",
|
|
372
|
+
"folderActive": "X-VPTa_folderActive",
|
|
374
373
|
"time": "X-VPTa_time",
|
|
375
|
-
"
|
|
376
|
-
"
|
|
377
|
-
"
|
|
374
|
+
"rowActions": "X-VPTa_rowActions",
|
|
375
|
+
"hoverTitle": "X-VPTa_hoverTitle",
|
|
376
|
+
"row-in": "X-VPTa_row-in",
|
|
377
|
+
"flatSessionRowWithoutStatus": "X-VPTa_flatSessionRowWithoutStatus"
|
|
378
378
|
};
|
|
379
379
|
//#endregion
|
|
380
380
|
//#region src/client/rows/Rows.tsx
|
|
@@ -806,8 +806,8 @@ window.__ModuleLoader__.load({
|
|
|
806
806
|
document.head.appendChild(tag);
|
|
807
807
|
}
|
|
808
808
|
var WorkspacePicker_module_css_default = {
|
|
809
|
-
"menuStatus": "koU6Pa_menuStatus",
|
|
810
809
|
"modalAction": "koU6Pa_modalAction",
|
|
810
|
+
"menuStatus": "koU6Pa_menuStatus",
|
|
811
811
|
"modalError": "koU6Pa_modalError"
|
|
812
812
|
};
|
|
813
813
|
//#endregion
|
|
@@ -976,42 +976,42 @@ window.__ModuleLoader__.load({
|
|
|
976
976
|
document.head.appendChild(tag);
|
|
977
977
|
}
|
|
978
978
|
var WorkspaceBrowser_module_css_default = {
|
|
979
|
-
"iconButton": "HlYf2W_iconButton",
|
|
980
|
-
"sessionOverflowButton": "HlYf2W_sessionOverflowButton",
|
|
981
|
-
"searchSlotExpanded": "HlYf2W_searchSlotExpanded",
|
|
982
979
|
"searchStatus": "HlYf2W_searchStatus",
|
|
983
|
-
"
|
|
984
|
-
"
|
|
985
|
-
"wide-in": "HlYf2W_wide-in",
|
|
986
|
-
"search": "HlYf2W_search",
|
|
987
|
-
"listTopDropActive": "HlYf2W_listTopDropActive",
|
|
988
|
-
"sectionLabelHidden": "HlYf2W_sectionLabelHidden",
|
|
989
|
-
"searchWarning": "HlYf2W_searchWarning",
|
|
990
|
-
"fade": "HlYf2W_fade",
|
|
991
|
-
"searchInput": "HlYf2W_searchInput",
|
|
980
|
+
"deleteAction": "HlYf2W_deleteAction",
|
|
981
|
+
"workspaceDropBefore": "HlYf2W_workspaceDropBefore",
|
|
992
982
|
"listTopDropIndicator": "HlYf2W_listTopDropIndicator",
|
|
993
|
-
"
|
|
983
|
+
"sectionHeader": "HlYf2W_sectionHeader",
|
|
984
|
+
"search": "HlYf2W_search",
|
|
985
|
+
"searchSlotExpanded": "HlYf2W_searchSlotExpanded",
|
|
994
986
|
"searchSlot": "HlYf2W_searchSlot",
|
|
987
|
+
"searchButton": "HlYf2W_searchButton",
|
|
988
|
+
"groupSection": "HlYf2W_groupSection",
|
|
995
989
|
"headerActions": "HlYf2W_headerActions",
|
|
996
|
-
"
|
|
997
|
-
"
|
|
998
|
-
"searchTree": "HlYf2W_searchTree",
|
|
999
|
-
"workspaceDropBefore": "HlYf2W_workspaceDropBefore",
|
|
990
|
+
"sectionLabelHidden": "HlYf2W_sectionLabelHidden",
|
|
991
|
+
"root": "HlYf2W_root",
|
|
1000
992
|
"empty": "HlYf2W_empty",
|
|
993
|
+
"iconButton": "HlYf2W_iconButton",
|
|
994
|
+
"searchWarning": "HlYf2W_searchWarning",
|
|
995
|
+
"renameInput": "HlYf2W_renameInput",
|
|
996
|
+
"clearButton": "HlYf2W_clearButton",
|
|
997
|
+
"fade": "HlYf2W_fade",
|
|
1001
998
|
"searchExpanded": "HlYf2W_searchExpanded",
|
|
1002
|
-
"root": "HlYf2W_root",
|
|
1003
|
-
"listArea": "HlYf2W_listArea",
|
|
1004
|
-
"wide": "HlYf2W_wide",
|
|
1005
|
-
"deleteAction": "HlYf2W_deleteAction",
|
|
1006
999
|
"rail": "HlYf2W_rail",
|
|
1007
|
-
"
|
|
1000
|
+
"sectionLabel": "HlYf2W_sectionLabel",
|
|
1001
|
+
"sessionOverflowButton": "HlYf2W_sessionOverflowButton",
|
|
1002
|
+
"list": "HlYf2W_list",
|
|
1003
|
+
"wide": "HlYf2W_wide",
|
|
1004
|
+
"renameError": "HlYf2W_renameError",
|
|
1008
1005
|
"workspaceDropAfter": "HlYf2W_workspaceDropAfter",
|
|
1009
|
-
"
|
|
1006
|
+
"listArea": "HlYf2W_listArea",
|
|
1007
|
+
"wide-in": "HlYf2W_wide-in",
|
|
1008
|
+
"searchTree": "HlYf2W_searchTree",
|
|
1009
|
+
"searchInput": "HlYf2W_searchInput",
|
|
1010
|
+
"listTopDropActive": "HlYf2W_listTopDropActive",
|
|
1011
|
+
"treeBody": "HlYf2W_treeBody",
|
|
1012
|
+
"flatList": "HlYf2W_flatList",
|
|
1010
1013
|
"deleteStatus": "HlYf2W_deleteStatus",
|
|
1011
|
-
"headerActionsHidden": "HlYf2W_headerActionsHidden"
|
|
1012
|
-
"clearButton": "HlYf2W_clearButton",
|
|
1013
|
-
"sectionHeader": "HlYf2W_sectionHeader",
|
|
1014
|
-
"flatList": "HlYf2W_flatList"
|
|
1014
|
+
"headerActionsHidden": "HlYf2W_headerActionsHidden"
|
|
1015
1015
|
};
|
|
1016
1016
|
//#endregion
|
|
1017
1017
|
//#region src/client/WorkspaceBrowser.tsx
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compact schemastery envelopes (`schema.toJSON()`) for Face `settings.describe`.
|
|
3
|
-
* The captured DSH Web rehydrates these; JSON Schema will not parse.
|
|
4
|
-
*/
|
|
5
|
-
export interface DshSchemaNode {
|
|
6
|
-
readonly type: string;
|
|
7
|
-
readonly value?: unknown;
|
|
8
|
-
readonly list?: readonly number[];
|
|
9
|
-
readonly dict?: Readonly<Record<string, number>>;
|
|
10
|
-
readonly inner?: number;
|
|
11
|
-
readonly meta?: {
|
|
12
|
-
readonly description?: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface DshSchemaEnvelope {
|
|
16
|
-
readonly uid: number;
|
|
17
|
-
readonly refs: Readonly<Record<number, DshSchemaNode>>;
|
|
18
|
-
}
|
|
19
|
-
export declare const DSH_EMPTY_OBJECT_SCHEMA: DshSchemaEnvelope;
|
|
20
|
-
export declare const DSH_ONBOARDING_SCHEMA: DshSchemaEnvelope;
|
|
21
|
-
export declare const DSH_LOCALE_SCHEMA: DshSchemaEnvelope;
|
|
22
|
-
export declare const DSH_THEME_SCHEMA: DshSchemaEnvelope;
|
|
23
|
-
/** Same preset ids as DSH permission-presets (settings row enum). */
|
|
24
|
-
export declare const FACE_PERMISSION_PRESETS: readonly ["read-only", "workspace-write", "danger-full-access"];
|
|
25
|
-
export type FacePermissionPreset = (typeof FACE_PERMISSION_PRESETS)[number];
|
|
26
|
-
export declare const DSH_PERMISSION_SCHEMA: DshSchemaEnvelope;
|
|
27
|
-
/**
|
|
28
|
-
* Face MCP desired servers. `connected` is overlay from live plugins.
|
|
29
|
-
* Applies on next Host spawn (not a live supervisor).
|
|
30
|
-
*/
|
|
31
|
-
export declare const DSH_MCP_SCHEMA: DshSchemaEnvelope;
|
|
32
|
-
/** `providers` is a dict so models page can probe `providers/<route>/api`. */
|
|
33
|
-
export declare const DSH_LLM_SCHEMA: DshSchemaEnvelope;
|
|
34
|
-
export declare function isFacePermissionPreset(value: unknown): value is FacePermissionPreset;
|
|
35
|
-
//# sourceMappingURL=dsh-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dsh-schema.d.ts","sourceRoot":"","sources":["../src/dsh-schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;CACxD;AAED,eAAO,MAAM,uBAAuB,EAAE,iBAGrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,iBAMnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,iBAQ/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,iBAS9B,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,iEAI1B,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,eAAO,MAAM,qBAAqB,EAAE,iBAqBnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,iBA4B5B,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,cAAc,EAAE,iBAc5B,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,oBAAoB,CAK/B"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compact schemastery envelopes (`schema.toJSON()`) for Face `settings.describe`.
|
|
3
|
-
* The captured DSH Web rehydrates these; JSON Schema will not parse.
|
|
4
|
-
*/
|
|
5
|
-
export const DSH_EMPTY_OBJECT_SCHEMA = {
|
|
6
|
-
uid: 1,
|
|
7
|
-
refs: { 1: { type: "object" } },
|
|
8
|
-
};
|
|
9
|
-
export const DSH_ONBOARDING_SCHEMA = {
|
|
10
|
-
uid: 2,
|
|
11
|
-
refs: {
|
|
12
|
-
1: { type: "string" },
|
|
13
|
-
2: { type: "object", dict: { welcomeNoticeVersion: 1 } },
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
export const DSH_LOCALE_SCHEMA = {
|
|
17
|
-
uid: 4,
|
|
18
|
-
refs: {
|
|
19
|
-
1: { type: "const", value: "zh" },
|
|
20
|
-
2: { type: "const", value: "en" },
|
|
21
|
-
3: { type: "union", list: [1, 2] },
|
|
22
|
-
4: { type: "object", dict: { preference: 3 } },
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
export const DSH_THEME_SCHEMA = {
|
|
26
|
-
uid: 5,
|
|
27
|
-
refs: {
|
|
28
|
-
1: { type: "const", value: "system" },
|
|
29
|
-
2: { type: "const", value: "light" },
|
|
30
|
-
3: { type: "const", value: "dark" },
|
|
31
|
-
4: { type: "union", list: [1, 2, 3] },
|
|
32
|
-
5: { type: "object", dict: { preference: 4 } },
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
/** Same preset ids as DSH permission-presets (settings row enum). */
|
|
36
|
-
export const FACE_PERMISSION_PRESETS = [
|
|
37
|
-
"read-only",
|
|
38
|
-
"workspace-write",
|
|
39
|
-
"danger-full-access",
|
|
40
|
-
];
|
|
41
|
-
export const DSH_PERMISSION_SCHEMA = {
|
|
42
|
-
uid: 5,
|
|
43
|
-
refs: {
|
|
44
|
-
1: {
|
|
45
|
-
type: "const",
|
|
46
|
-
meta: { description: "Read only" },
|
|
47
|
-
value: "read-only",
|
|
48
|
-
},
|
|
49
|
-
2: {
|
|
50
|
-
type: "const",
|
|
51
|
-
meta: { description: "Workspace write" },
|
|
52
|
-
value: "workspace-write",
|
|
53
|
-
},
|
|
54
|
-
3: {
|
|
55
|
-
type: "const",
|
|
56
|
-
meta: { description: "Full access" },
|
|
57
|
-
value: "danger-full-access",
|
|
58
|
-
},
|
|
59
|
-
4: { type: "union", list: [1, 2, 3] },
|
|
60
|
-
5: { type: "object", dict: { defaultPreset: 4 } },
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Face MCP desired servers. `connected` is overlay from live plugins.
|
|
65
|
-
* Applies on next Host spawn (not a live supervisor).
|
|
66
|
-
*/
|
|
67
|
-
export const DSH_MCP_SCHEMA = {
|
|
68
|
-
uid: 9,
|
|
69
|
-
refs: {
|
|
70
|
-
1: { type: "string" },
|
|
71
|
-
2: { type: "array", inner: 1 },
|
|
72
|
-
3: {
|
|
73
|
-
type: "object",
|
|
74
|
-
dict: {
|
|
75
|
-
serverName: 1,
|
|
76
|
-
command: 1,
|
|
77
|
-
url: 1,
|
|
78
|
-
args: 2,
|
|
79
|
-
cwd: 1,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
4: { type: "array", inner: 3 },
|
|
83
|
-
5: { type: "string" },
|
|
84
|
-
6: {
|
|
85
|
-
type: "object",
|
|
86
|
-
dict: { id: 1, serverName: 1, kind: 1, toolCount: 5 },
|
|
87
|
-
},
|
|
88
|
-
7: { type: "array", inner: 6 },
|
|
89
|
-
8: { type: "string" },
|
|
90
|
-
9: {
|
|
91
|
-
type: "object",
|
|
92
|
-
dict: { servers: 4, connected: 7, note: 8 },
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
};
|
|
96
|
-
/** `providers` is a dict so models page can probe `providers/<route>/api`. */
|
|
97
|
-
export const DSH_LLM_SCHEMA = {
|
|
98
|
-
uid: 8,
|
|
99
|
-
refs: {
|
|
100
|
-
1: { type: "const", value: "openai-chat" },
|
|
101
|
-
2: { type: "union", list: [1] },
|
|
102
|
-
3: { type: "string" },
|
|
103
|
-
4: { type: "string" },
|
|
104
|
-
5: {
|
|
105
|
-
type: "object",
|
|
106
|
-
dict: { api: 2, apiKeyEnv: 3, baseURL: 4 },
|
|
107
|
-
},
|
|
108
|
-
6: { type: "dict", inner: 5 },
|
|
109
|
-
8: { type: "object", dict: { providers: 6 } },
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
export function isFacePermissionPreset(value) {
|
|
113
|
-
return (typeof value === "string" &&
|
|
114
|
-
FACE_PERMISSION_PRESETS.includes(value));
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=dsh-schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dsh-schema.js","sourceRoot":"","sources":["../src/dsh-schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { FaceRpcRequest, FaceRpcResponse, RpcId } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Parse Face unary body. Accepts DeepSeek wire (`type: client-request`) and
|
|
4
|
-
* the thinner XRK shape (`rpcId` + `payload` only).
|
|
5
|
-
*/
|
|
6
|
-
export declare function parseFaceRpcRequest(body: unknown): FaceRpcRequest;
|
|
7
|
-
/** DeepSeek-compatible unary success envelope. */
|
|
8
|
-
export declare function okResponse<T>(rpcId: RpcId, value: T): FaceRpcResponse<T>;
|
|
9
|
-
/**
|
|
10
|
-
* DeepSeek-compatible unary error envelope.
|
|
11
|
-
* Always includes `details` (DSH client Zod requires it).
|
|
12
|
-
*/
|
|
13
|
-
export declare function errResponse(rpcId: RpcId, code: string, message: string, details?: unknown): FaceRpcResponse<never>;
|
|
14
|
-
/** DeepSeek WS downlink frame (`server-request` + method = payload.type). */
|
|
15
|
-
export declare function serverRequestFrame(rpcId: RpcId, payload: {
|
|
16
|
-
readonly type: string;
|
|
17
|
-
} & Record<string, unknown>): {
|
|
18
|
-
readonly type: "server-request";
|
|
19
|
-
readonly rpcId: RpcId;
|
|
20
|
-
readonly method: string;
|
|
21
|
-
readonly payload: typeof payload;
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=envelope.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../src/envelope.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEzE;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,CAejE;AAED,kDAAkD;AAClD,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAMxE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,eAAe,CAAC,KAAK,CAAC,CAOxB;AAED,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3D;IACD,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,OAAO,CAAC;CAClC,CAOA"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { mapFaceRpcError } from "./rpc-error.js";
|
|
2
|
-
/**
|
|
3
|
-
* Parse Face unary body. Accepts DeepSeek wire (`type: client-request`) and
|
|
4
|
-
* the thinner XRK shape (`rpcId` + `payload` only).
|
|
5
|
-
*/
|
|
6
|
-
export function parseFaceRpcRequest(body) {
|
|
7
|
-
if (!body || typeof body !== "object") {
|
|
8
|
-
throw new Error("face: request body must be an object");
|
|
9
|
-
}
|
|
10
|
-
const o = body;
|
|
11
|
-
if (typeof o.rpcId !== "string" || !o.rpcId.trim()) {
|
|
12
|
-
throw new Error("face: rpcId required");
|
|
13
|
-
}
|
|
14
|
-
if (o.type !== undefined && o.type !== "client-request") {
|
|
15
|
-
throw new Error("face: expected type client-request");
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
rpcId: o.rpcId,
|
|
19
|
-
payload: "payload" in o ? o.payload : {},
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/** DeepSeek-compatible unary success envelope. */
|
|
23
|
-
export function okResponse(rpcId, value) {
|
|
24
|
-
return {
|
|
25
|
-
type: "server-response",
|
|
26
|
-
rpcId,
|
|
27
|
-
result: { ok: true, value },
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* DeepSeek-compatible unary error envelope.
|
|
32
|
-
* Always includes `details` (DSH client Zod requires it).
|
|
33
|
-
*/
|
|
34
|
-
export function errResponse(rpcId, code, message, details) {
|
|
35
|
-
const error = mapFaceRpcError(code, message, details);
|
|
36
|
-
return {
|
|
37
|
-
type: "server-response",
|
|
38
|
-
rpcId,
|
|
39
|
-
result: { ok: false, error },
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
/** DeepSeek WS downlink frame (`server-request` + method = payload.type). */
|
|
43
|
-
export function serverRequestFrame(rpcId, payload) {
|
|
44
|
-
return {
|
|
45
|
-
type: "server-request",
|
|
46
|
-
rpcId,
|
|
47
|
-
method: payload.type,
|
|
48
|
-
payload,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=envelope.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.js","sourceRoot":"","sources":["../src/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAa;IAC/C,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IACD,MAAM,CAAC,GAAG,IAA+B,CAAC;IAC1C,IAAI,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1C,CAAC;IACD,IAAI,CAAC,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,CAAC,IAAI,KAAK,gBAAgB,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IACD,OAAO;QACL,KAAK,EAAE,CAAC,CAAC,KAAK;QACd,OAAO,EAAE,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;KACzC,CAAC;AACJ,CAAC;AAED,kDAAkD;AAClD,MAAM,UAAU,UAAU,CAAI,KAAY,EAAE,KAAQ;IAClD,OAAO;QACL,IAAI,EAAE,iBAAiB;QACvB,KAAK;QACL,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;KAC5B,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,KAAY,EACZ,IAAY,EACZ,OAAe,EACf,OAAiB;IAEjB,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACtD,OAAO;QACL,IAAI,EAAE,iBAAiB;QACvB,KAAK;QACL,MAAM,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;KAC7B,CAAC;AACJ,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,kBAAkB,CAChC,KAAY,EACZ,OAA4D;IAO5D,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,KAAK;QACL,MAAM,EAAE,OAAO,CAAC,IAAI;QACpB,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Map XRK Face error codes onto DeepSeek Web's closed RpcError set.
|
|
3
|
-
* Client Zod requires `details` on every error branch.
|
|
4
|
-
*/
|
|
5
|
-
export type FaceRpcError = {
|
|
6
|
-
readonly code: string;
|
|
7
|
-
readonly message: string;
|
|
8
|
-
readonly details: Record<string, unknown>;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Normalize any Face handler error into a DSH-parseable RpcError.
|
|
12
|
-
* Unknown / XRK-only codes fold to `internal` or the closest DSH code.
|
|
13
|
-
*/
|
|
14
|
-
export declare function mapFaceRpcError(code: string, message: string, details?: unknown): FaceRpcError;
|
|
15
|
-
//# sourceMappingURL=rpc-error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-error.d.ts","sourceRoot":"","sources":["../src/rpc-error.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3C,CAAC;AAoDF;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,YAAY,CA2Nd"}
|