@canhta/dsh-autopilot 0.1.0-alpha.2 → 0.1.0-alpha.3
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/lib/client.js +54 -54
- package/package.json +13 -15
package/lib/client.js
CHANGED
|
@@ -6003,9 +6003,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6003
6003
|
configureHint: "请先在此设置页面选择已安装的提供方,再启用调度器。"
|
|
6004
6004
|
};
|
|
6005
6005
|
//#endregion
|
|
6006
|
-
//#region \0dsh-autopilot-css
|
|
6007
|
-
const css$1 = ".
|
|
6008
|
-
const tagId$1 = "@canhta/dsh-autopilot/
|
|
6006
|
+
//#region \0dsh-autopilot-css:/home/runner/work/dsh-autopilot/dsh-autopilot/src/client/operations.module.css.mjs
|
|
6007
|
+
const css$1 = ".Fc_jqa_page{box-sizing:border-box;min-width:0;height:100%;color:var(--dsw-alias-label-primary,#202124);background:var(--dsw-alias-bg-layer-1,#fff);padding:20px 24px;font-size:14px;overflow:auto}.Fc_jqa_header,.Fc_jqa_headerActions,.Fc_jqa_toolbar,.Fc_jqa_detailHeader,.Fc_jqa_detailActions{align-items:center;gap:8px;display:flex}.Fc_jqa_header{justify-content:space-between;gap:24px;margin-bottom:14px}.Fc_jqa_header h1{margin:0;font-size:20px;line-height:1.3}.Fc_jqa_header p,.Fc_jqa_summary>p{color:var(--dsw-alias-label-secondary,#5f6368);margin:4px 0 0}.Fc_jqa_headerActions{flex-wrap:wrap;justify-content:flex-end}.Fc_jqa_connectionNotice,.Fc_jqa_attention,.Fc_jqa_command,.Fc_jqa_notice,.Fc_jqa_blocker{border:1px solid var(--dsw-alias-border-l3,#d9dce1);border-radius:8px;margin:8px 0;padding:10px 12px}.Fc_jqa_attention,.Fc_jqa_blocker{border-color:var(--dsw-alias-state-warn-primary,#a15c00);color:var(--dsw-alias-state-warn-label,#713f00)}.Fc_jqa_connectionNotice,.Fc_jqa_command,.Fc_jqa_notice{background:var(--dsw-alias-bg-layer-2,#f7f8fa)}.Fc_jqa_tabs{border-bottom:1px solid var(--dsw-alias-border-l3,#d9dce1);gap:4px;margin-top:16px;display:flex;overflow-x:auto}.Fc_jqa_tabs button{appearance:none;color:var(--dsw-alias-label-secondary,#5f6368);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:10px 12px}.Fc_jqa_tabs button:hover{background:var(--dsw-alias-interactive-bg-hover,#f1f3f4)}.Fc_jqa_tabs button:focus-visible,.Fc_jqa_runLink:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#315efb);outline-offset:2px}.Fc_jqa_tabs .Fc_jqa_activeTab{border-bottom-color:var(--dsw-alias-brand-primary,#315efb);color:var(--dsw-alias-label-primary,#202124)}.Fc_jqa_content{min-width:0;padding-top:16px}.Fc_jqa_runsOnly,.Fc_jqa_split{min-width:0}.Fc_jqa_split{grid-template-columns:minmax(480px,1fr) minmax(380px,460px);gap:16px;display:grid}.Fc_jqa_listRegion{min-width:0}.Fc_jqa_toolbar{flex-wrap:wrap;margin-bottom:12px}.Fc_jqa_toolbar select{border:1px solid var(--dsw-alias-border-l4,#c7cbd1);min-height:34px;color:inherit;background:var(--dsw-alias-bg-layer-1,#fff);border-radius:8px;padding:0 10px}.Fc_jqa_checkbox{align-items:center;gap:6px;display:inline-flex}.Fc_jqa_resultCount{color:var(--dsw-alias-label-tertiary,#767b83);font-variant-numeric:tabular-nums;margin-left:auto}.Fc_jqa_tableScroll{max-width:100%;overflow-x:auto}.Fc_jqa_table{border-collapse:collapse;table-layout:fixed;width:100%}.Fc_jqa_table th{color:var(--dsw-alias-label-tertiary,#767b83);text-align:left;padding:8px 10px;font-size:12px;font-weight:600}.Fc_jqa_table th:first-child{width:30%}.Fc_jqa_table th:nth-child(2){width:25%}.Fc_jqa_table td{border-top:1px solid var(--dsw-alias-border-l3,#e2e4e8);vertical-align:middle;height:48px;padding:8px 10px}.Fc_jqa_table tr[data-selected=true]{background:var(--dsw-alias-interactive-bg-active,#edf2ff)}.Fc_jqa_runLink{width:100%;min-width:0;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;display:grid}.Fc_jqa_runLink span,.Fc_jqa_stateLabel>span,.Fc_jqa_worktreeList code{color:var(--dsw-alias-label-secondary,#5f6368);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.Fc_jqa_stateLabel{justify-items:start;gap:3px;display:grid}.Fc_jqa_numeric{text-align:right;font-variant-numeric:tabular-nums}.Fc_jqa_detail{border-left:1px solid var(--dsw-alias-border-l3,#d9dce1);min-width:0;padding-left:16px}.Fc_jqa_detailHeader{justify-content:space-between;align-items:flex-start;margin-top:12px}.Fc_jqa_detailHeader h2,.Fc_jqa_summary h2,.Fc_jqa_empty h2{margin:0;font-size:17px}.Fc_jqa_detailHeader p,.Fc_jqa_reason{margin:4px 0 10px}.Fc_jqa_detail details{border-top:1px solid var(--dsw-alias-border-l3,#d9dce1);padding:12px 0}.Fc_jqa_detail summary{cursor:pointer;font-weight:600}.Fc_jqa_longText{white-space:pre-wrap;overflow-wrap:anywhere}.Fc_jqa_timeline{gap:10px;padding-left:20px;display:grid}.Fc_jqa_timeline li{gap:2px;display:grid}.Fc_jqa_timeline time,.Fc_jqa_timeline span{color:var(--dsw-alias-label-tertiary,#767b83);font-size:12px}.Fc_jqa_resource{grid-template-columns:100px minmax(0,1fr);gap:8px;margin-top:8px;display:grid}.Fc_jqa_resource code,.Fc_jqa_resource span{overflow-wrap:anywhere}.Fc_jqa_summary,.Fc_jqa_empty{max-width:820px;padding:16px 0}.Fc_jqa_summary dl{gap:0;margin:16px 0;display:grid}.Fc_jqa_summary dl>div{border-top:1px solid var(--dsw-alias-border-l3,#d9dce1);grid-template-columns:minmax(160px,1fr) minmax(180px,2fr);gap:12px;padding:10px 0;display:grid}.Fc_jqa_summary dt{color:var(--dsw-alias-label-secondary,#5f6368)}.Fc_jqa_summary dd{margin:0}.Fc_jqa_empty{text-align:center;color:var(--dsw-alias-label-secondary,#5f6368)}.Fc_jqa_worktreeList{gap:0;padding:0;list-style:none;display:grid}.Fc_jqa_worktreeList li{border-top:1px solid var(--dsw-alias-border-l3,#d9dce1);justify-content:space-between;gap:16px;padding:12px 0;display:flex}.Fc_jqa_worktreeList li>div{min-width:0;display:grid}.Fc_jqa_success{color:var(--dsw-alias-state-success-primary,#0a7a45)}.Fc_jqa_error{color:var(--dsw-alias-state-error-primary,#c62828)}@media (width<=1000px){.Fc_jqa_split{grid-template-columns:1fr}.Fc_jqa_detail{border-top:1px solid var(--dsw-alias-border-l3,#d9dce1);border-left:0;padding-top:16px;padding-left:0}}@media (width<=640px){.Fc_jqa_page{padding:16px 12px}.Fc_jqa_header{flex-direction:column;align-items:flex-start}.Fc_jqa_headerActions{justify-content:flex-start}.Fc_jqa_table th:nth-child(n+3),.Fc_jqa_table td:nth-child(n+3){display:none}.Fc_jqa_table th:first-child{width:52%}.Fc_jqa_table th:nth-child(2){width:48%}.Fc_jqa_toolbar>span:first-child{width:100%}.Fc_jqa_resultCount{margin-left:0}}@media (prefers-reduced-motion:reduce){.Fc_jqa_page *{scroll-behavior:auto;transition:none}}";
|
|
6008
|
+
const tagId$1 = "@canhta/dsh-autopilot/operations.module.css";
|
|
6009
6009
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
6010
6010
|
const element = document.createElement("style");
|
|
6011
6011
|
element.dataset.plugin = "@canhta/dsh-autopilot";
|
|
@@ -6014,40 +6014,40 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6014
6014
|
document.head.appendChild(element);
|
|
6015
6015
|
}
|
|
6016
6016
|
var operations_module_css_default = {
|
|
6017
|
-
"
|
|
6018
|
-
"
|
|
6019
|
-
"
|
|
6020
|
-
"
|
|
6021
|
-
"
|
|
6022
|
-
"
|
|
6023
|
-
"
|
|
6024
|
-
"
|
|
6025
|
-
"
|
|
6026
|
-
"
|
|
6027
|
-
"
|
|
6028
|
-
"
|
|
6029
|
-
"
|
|
6030
|
-
"
|
|
6031
|
-
"
|
|
6032
|
-
"
|
|
6033
|
-
"
|
|
6034
|
-
"
|
|
6035
|
-
"
|
|
6036
|
-
"
|
|
6037
|
-
"
|
|
6038
|
-
"
|
|
6039
|
-
"
|
|
6040
|
-
"page": "
|
|
6041
|
-
"
|
|
6042
|
-
"
|
|
6043
|
-
"
|
|
6044
|
-
"
|
|
6045
|
-
"
|
|
6046
|
-
"
|
|
6047
|
-
"
|
|
6048
|
-
"
|
|
6049
|
-
"
|
|
6050
|
-
"
|
|
6017
|
+
"checkbox": "Fc_jqa_checkbox",
|
|
6018
|
+
"worktreeList": "Fc_jqa_worktreeList",
|
|
6019
|
+
"header": "Fc_jqa_header",
|
|
6020
|
+
"toolbar": "Fc_jqa_toolbar",
|
|
6021
|
+
"listRegion": "Fc_jqa_listRegion",
|
|
6022
|
+
"table": "Fc_jqa_table",
|
|
6023
|
+
"resultCount": "Fc_jqa_resultCount",
|
|
6024
|
+
"empty": "Fc_jqa_empty",
|
|
6025
|
+
"resource": "Fc_jqa_resource",
|
|
6026
|
+
"split": "Fc_jqa_split",
|
|
6027
|
+
"runLink": "Fc_jqa_runLink",
|
|
6028
|
+
"summary": "Fc_jqa_summary",
|
|
6029
|
+
"content": "Fc_jqa_content",
|
|
6030
|
+
"error": "Fc_jqa_error",
|
|
6031
|
+
"attention": "Fc_jqa_attention",
|
|
6032
|
+
"reason": "Fc_jqa_reason",
|
|
6033
|
+
"command": "Fc_jqa_command",
|
|
6034
|
+
"stateLabel": "Fc_jqa_stateLabel",
|
|
6035
|
+
"headerActions": "Fc_jqa_headerActions",
|
|
6036
|
+
"detail": "Fc_jqa_detail",
|
|
6037
|
+
"runsOnly": "Fc_jqa_runsOnly",
|
|
6038
|
+
"detailHeader": "Fc_jqa_detailHeader",
|
|
6039
|
+
"tableScroll": "Fc_jqa_tableScroll",
|
|
6040
|
+
"page": "Fc_jqa_page",
|
|
6041
|
+
"activeTab": "Fc_jqa_activeTab",
|
|
6042
|
+
"numeric": "Fc_jqa_numeric",
|
|
6043
|
+
"timeline": "Fc_jqa_timeline",
|
|
6044
|
+
"blocker": "Fc_jqa_blocker",
|
|
6045
|
+
"tabs": "Fc_jqa_tabs",
|
|
6046
|
+
"longText": "Fc_jqa_longText",
|
|
6047
|
+
"success": "Fc_jqa_success",
|
|
6048
|
+
"notice": "Fc_jqa_notice",
|
|
6049
|
+
"connectionNotice": "Fc_jqa_connectionNotice",
|
|
6050
|
+
"detailActions": "Fc_jqa_detailActions"
|
|
6051
6051
|
};
|
|
6052
6052
|
//#endregion
|
|
6053
6053
|
//#region src/client/OperationsAtoms.tsx
|
|
@@ -6752,9 +6752,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6752
6752
|
return state.command?.status === "pending" || state.command?.status === "accepted" || state.command?.status === "in-progress";
|
|
6753
6753
|
}
|
|
6754
6754
|
//#endregion
|
|
6755
|
-
//#region \0dsh-autopilot-css
|
|
6756
|
-
const css = ".
|
|
6757
|
-
const tagId = "@canhta/dsh-autopilot/
|
|
6755
|
+
//#region \0dsh-autopilot-css:/home/runner/work/dsh-autopilot/dsh-autopilot/src/client/settings.module.css.mjs
|
|
6756
|
+
const css = ".Rycwsq_settings{max-width:920px;color:var(--dsw-alias-label-primary,#202124);padding:0 8px 24px;font-size:14px}.Rycwsq_settings h2{margin:0;font-size:20px;line-height:1.3}.Rycwsq_settings>p,.Rycwsq_providerCard p,.Rycwsq_gap{color:var(--dsw-alias-label-secondary,#5f6368)}.Rycwsq_settings fieldset{border:1px solid var(--dsw-alias-border-l3,#d9dce1);border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0;padding:16px;display:grid}.Rycwsq_settings legend{padding:0 6px;font-weight:600}.Rycwsq_settings label{gap:6px;display:grid}.Rycwsq_settings select{border:1px solid var(--dsw-alias-border-l4,#c7cbd1);color:inherit;background:var(--dsw-alias-bg-layer-1,#fff);border-radius:8px;padding:0 10px}.Rycwsq_settings label>select,.Rycwsq_settings input{width:100%;min-height:34px}.Rycwsq_notice,.Rycwsq_fullWidth{grid-column:1/-1}.Rycwsq_notice,.Rycwsq_gap{border:1px solid var(--dsw-alias-border-l3,#d9dce1);background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;margin:8px 0;padding:10px 12px}.Rycwsq_gap{border-color:var(--dsw-alias-state-warn-primary,#a15c00)}.Rycwsq_providerCard{border:1px solid var(--dsw-alias-border-l3,#d9dce1);background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;padding:12px}.Rycwsq_providerCard>div:first-child,.Rycwsq_settingsFooter,.Rycwsq_credentialActions{align-items:center;gap:8px;display:flex}.Rycwsq_providerCard h3{margin:0 auto 0 0;font-size:15px}.Rycwsq_providerCard dl{gap:3px;margin:12px 0;display:grid}.Rycwsq_providerCard dt{color:var(--dsw-alias-label-secondary,#5f6368)}.Rycwsq_providerCard dd{overflow-wrap:anywhere;margin:0 0 6px}.Rycwsq_credential{border-top:1px solid var(--dsw-alias-border-l3,#d9dce1);gap:8px;padding-top:12px;display:grid}.Rycwsq_settings .Rycwsq_checkboxLabel{flex-direction:row;align-items:center;gap:8px;display:flex}.Rycwsq_checkboxLabel input[type=checkbox]{width:auto;min-height:auto;margin:0}.Rycwsq_notificationList{gap:12px;display:grid}.Rycwsq_notificationRow{border:1px solid var(--dsw-alias-border-l3,#d9dce1);background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;display:grid}.Rycwsq_settings .Rycwsq_eventChoices{border:0;flex-wrap:wrap;grid-column:1/-1;gap:8px 16px;margin:0;padding:0;display:flex}.Rycwsq_eventChoices legend{width:100%;padding:0;font-weight:400}.Rycwsq_settingsFooter{flex-wrap:wrap}.Rycwsq_success{color:var(--dsw-alias-state-success-primary,#0a7a45)}.Rycwsq_error{color:var(--dsw-alias-state-error-primary,#c62828)}@media (width<=640px){.Rycwsq_settings fieldset{grid-template-columns:1fr}.Rycwsq_notice,.Rycwsq_fullWidth{grid-column:auto}.Rycwsq_notificationRow{grid-template-columns:1fr}.Rycwsq_eventChoices{grid-column:auto}}@media (prefers-reduced-motion:reduce){.Rycwsq_settings *{scroll-behavior:auto;transition:none}}";
|
|
6757
|
+
const tagId = "@canhta/dsh-autopilot/settings.module.css";
|
|
6758
6758
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
6759
6759
|
const element = document.createElement("style");
|
|
6760
6760
|
element.dataset.plugin = "@canhta/dsh-autopilot";
|
|
@@ -6763,20 +6763,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6763
6763
|
document.head.appendChild(element);
|
|
6764
6764
|
}
|
|
6765
6765
|
var settings_module_css_default = {
|
|
6766
|
-
"
|
|
6767
|
-
"
|
|
6768
|
-
"
|
|
6769
|
-
"checkboxLabel": "
|
|
6770
|
-
"
|
|
6771
|
-
"
|
|
6772
|
-
"
|
|
6773
|
-
"
|
|
6774
|
-
"
|
|
6775
|
-
"
|
|
6776
|
-
"error": "
|
|
6777
|
-
"
|
|
6778
|
-
"
|
|
6779
|
-
"
|
|
6766
|
+
"fullWidth": "Rycwsq_fullWidth",
|
|
6767
|
+
"notificationList": "Rycwsq_notificationList",
|
|
6768
|
+
"notice": "Rycwsq_notice",
|
|
6769
|
+
"checkboxLabel": "Rycwsq_checkboxLabel",
|
|
6770
|
+
"eventChoices": "Rycwsq_eventChoices",
|
|
6771
|
+
"success": "Rycwsq_success",
|
|
6772
|
+
"providerCard": "Rycwsq_providerCard",
|
|
6773
|
+
"settingsFooter": "Rycwsq_settingsFooter",
|
|
6774
|
+
"gap": "Rycwsq_gap",
|
|
6775
|
+
"credential": "Rycwsq_credential",
|
|
6776
|
+
"error": "Rycwsq_error",
|
|
6777
|
+
"credentialActions": "Rycwsq_credentialActions",
|
|
6778
|
+
"notificationRow": "Rycwsq_notificationRow",
|
|
6779
|
+
"settings": "Rycwsq_settings"
|
|
6780
6780
|
};
|
|
6781
6781
|
//#endregion
|
|
6782
6782
|
//#region src/client/SettingsCapabilitySections.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canhta/dsh-autopilot",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.3",
|
|
4
4
|
"description": "Turn approved tracker tickets into review-ready pull requests with DeepSeek Harness.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -109,19 +109,6 @@
|
|
|
109
109
|
"README.md",
|
|
110
110
|
"LICENSE"
|
|
111
111
|
],
|
|
112
|
-
"scripts": {
|
|
113
|
-
"clean": "node --eval \"require('node:fs').rmSync('lib', { recursive: true, force: true })\"",
|
|
114
|
-
"build": "pnpm run clean && tsc -p tsconfig.build.json && tsc -p tsconfig.client.json && tsdown",
|
|
115
|
-
"format": "biome check --write .",
|
|
116
|
-
"lint": "biome ci .",
|
|
117
|
-
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit",
|
|
118
|
-
"test": "vitest run",
|
|
119
|
-
"check": "pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build",
|
|
120
|
-
"hooks:install": "lefthook install",
|
|
121
|
-
"verify:package": "node scripts/verify-package.mjs",
|
|
122
|
-
"prepare": "pnpm run build",
|
|
123
|
-
"prepack": "pnpm run lint && pnpm run typecheck && pnpm run test"
|
|
124
|
-
},
|
|
125
112
|
"engines": {
|
|
126
113
|
"node": ">=24.0.0"
|
|
127
114
|
},
|
|
@@ -274,5 +261,16 @@
|
|
|
274
261
|
"vitest": "latest",
|
|
275
262
|
"zod": "^4.6.1",
|
|
276
263
|
"zustand": "~4.4.7"
|
|
264
|
+
},
|
|
265
|
+
"scripts": {
|
|
266
|
+
"clean": "node --eval \"require('node:fs').rmSync('lib', { recursive: true, force: true })\"",
|
|
267
|
+
"build": "pnpm run clean && tsc -p tsconfig.build.json && tsc -p tsconfig.client.json && tsdown",
|
|
268
|
+
"format": "biome check --write .",
|
|
269
|
+
"lint": "biome ci .",
|
|
270
|
+
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit",
|
|
271
|
+
"test": "vitest run",
|
|
272
|
+
"check": "pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build",
|
|
273
|
+
"hooks:install": "lefthook install",
|
|
274
|
+
"verify:package": "node scripts/verify-package.mjs"
|
|
277
275
|
}
|
|
278
|
-
}
|
|
276
|
+
}
|