@gaodefa/daocore 2026.5.47 → 2026.5.50
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/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/cli/run-main.js +4 -4
- package/dist/cli-startup-metadata.json +8 -8
- package/dist/{command-registry-CJFqLR4i.js → command-registry-BTdu515H.js} +2 -2
- package/dist/{command-registry-C9LSzHyt.js → command-registry-MW7FkJ_Y.js} +2 -2
- package/dist/{command-registry-core-BTqH57KU.js → command-registry-core-COtKps6g.js} +1 -1
- package/dist/{completion-cli-Bczi7d54.js → completion-cli-dN803PIC.js} +2 -2
- package/dist/control-ui/apple-touch-icon.png +0 -0
- package/dist/control-ui/assets/{agents-Cua6Q-kl.js → agents-BdvJfq80.js} +2 -2
- package/dist/control-ui/assets/{channel-config-extras-B2iTgWTT.js → channel-config-extras-Ceaj0SW_.js} +2 -2
- package/dist/control-ui/assets/{channels-Cstl7X5R.js → channels-CdXoXJoZ.js} +2 -2
- package/dist/control-ui/assets/{cron-Bq5xdbSR.js → cron-8oEfCQUI.js} +2 -2
- package/dist/control-ui/assets/{debug-DoGwTmxM.js → debug-Br-EwLEu.js} +2 -2
- package/dist/control-ui/assets/{index-Dtlincx8.js → index-B_b8hb35.js} +713 -702
- package/dist/control-ui/assets/{instances-B7B2hfFh.js → instances-7yY0VA1d.js} +2 -2
- package/dist/control-ui/assets/{logs-YdxTtYeE.js → logs-DcKMzQjP.js} +2 -2
- package/dist/control-ui/assets/{nodes-C9AD_941.js → nodes-BXjhsRXJ.js} +2 -2
- package/dist/control-ui/assets/{sessions-mm6-elLD.js → sessions-Civ0cHoq.js} +2 -2
- package/dist/control-ui/assets/{skills-0quXZWks.js → skills-BkRG__0I.js} +2 -2
- package/dist/control-ui/assets/{skills-shared-Csh9MzUJ.js → skills-shared-CTIiKUNP.js} +2 -2
- package/dist/control-ui/favicon-32.png +0 -0
- package/dist/control-ui/favicon-512.png +0 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/control-ui/manifest.webmanifest +19 -6
- package/dist/control-ui/sw.js +1 -1
- package/dist/{gateway-cli-DWRVjbXP.js → gateway-cli-BIl9ooav.js} +1 -1
- package/dist/{health-state-CezR49ue.js → health-state-CETJtly-.js} +1 -1
- package/dist/{message-handler-D9N728sI.js → message-handler-DsiaQGjj.js} +1 -1
- package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
- package/dist/{program-CL8SBI9n.js → program-BBwmibpa.js} +1 -1
- package/dist/{register.subclis-ztDu7S8A.js → register.subclis-BR2kCzHF.js} +2 -2
- package/dist/register.subclis-Wd-wKmYg.js +3 -0
- package/dist/{register.subclis-core-A8MSZKJL.js → register.subclis-core-DS7RVqtY.js} +2 -2
- package/dist/{run-BXUc5asm.js → run-DYwW1kIR.js} +1 -1
- package/dist/run-command-CbUIDjYf.js +2 -0
- package/dist/{run-command-H3leo7Ul.js → run-command-DHOIYQm_.js} +1 -1
- package/dist/{server-CWyamRzG.js → server-DSUxFJfU.js} +1 -1
- package/dist/{server-maintenance-3YL-Mnlf.js → server-maintenance-Y0NvZrH-.js} +1 -1
- package/dist/{server-startup-early-CBLWy5tx.js → server-startup-early-5UM54scV.js} +1 -1
- package/dist/{server-startup-post-attach-B0mT_nn5.js → server-startup-post-attach-Ja8NHfJQ.js} +1 -1
- package/dist/{server-ws-runtime-C44eYlMr.js → server-ws-runtime-DNH4m_Ix.js} +2 -2
- package/dist/{server.impl-DYaRV9TO.js → server.impl-BXCtVnO2.js} +4 -4
- package/dist/{update-startup-Dkb9Jnu5.js → update-startup-D26cmPn-.js} +1 -1
- package/dist/{update-startup-D4GQNzkb.js → update-startup-XLbXHCT1.js} +2 -10
- package/package.json +1 -1
- package/dist/register.subclis-HkASa1pK.js +0 -3
- package/dist/run-command-sgqlTsF-.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,it as t,o as n,rt as r,tt as i}from"./index-
|
|
1
|
+
import{_ as e,it as t,o as n,rt as r,tt as i}from"./index-B_b8hb35.js";var a=!1;function o(n){let o=!a;return t`
|
|
2
2
|
<section class="card">
|
|
3
3
|
<div class="row" style="justify-content: space-between;">
|
|
4
4
|
<div>
|
|
@@ -54,4 +54,4 @@ import{_ as e,it as t,o as n,rt as r,tt as i}from"./index-Dtlincx8.js";var a=!1;
|
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
`}export{o as renderInstances};
|
|
57
|
-
//# sourceMappingURL=instances-
|
|
57
|
+
//# sourceMappingURL=instances-7yY0VA1d.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,it as t,rt as n,tt as r}from"./index-
|
|
1
|
+
import{$ as e,it as t,rt as n,tt as r}from"./index-B_b8hb35.js";var i=[`trace`,`debug`,`info`,`warn`,`error`,`fatal`];function a(e){if(!e)return``;let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString()}function o(t,n){return n?e([t.message,t.subsystem,t.raw].filter(Boolean).join(` `)).includes(n):!0}function s(s){let c=e(s.filterText),l=i.some(e=>!s.levelFilters[e]),u=s.entries.filter(e=>e.level&&!s.levelFilters[e.level]?!1:o(e,c)),d=c||l?`filtered`:`visible`;return t`
|
|
2
2
|
<section class="card">
|
|
3
3
|
<div class="row" style="justify-content: space-between;">
|
|
4
4
|
<div>
|
|
@@ -71,4 +71,4 @@ import{$ as e,it as t,rt as n,tt as r}from"./index-Dtlincx8.js";var i=[`trace`,`
|
|
|
71
71
|
</div>
|
|
72
72
|
</section>
|
|
73
73
|
`}export{s as renderLogs};
|
|
74
|
-
//# sourceMappingURL=logs-
|
|
74
|
+
//# sourceMappingURL=logs-DcKMzQjP.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{E as e,Q as t,T as n,et as r,it as i,k as a,rt as o,tt as s}from"./index-
|
|
1
|
+
import{E as e,Q as t,T as n,et as r,it as i,k as a,rt as o,tt as s}from"./index-B_b8hb35.js";function c(...e){let t=new Set;for(let n of e){if(!n)continue;if(Array.isArray(n)){for(let e of n){let n=e.trim();n&&t.add(n)}continue}let e=n.trim();e&&t.add(e)}return[...t].toSorted()}function l(e,t){let n=new Set(e);return t.every(e=>n.has(e))}function u(e){return{roles:c(e.roles,e.role),scopes:t(e.scopes)}}function d(e){let n=c(e.roles,e.role),r=Array.isArray(e.tokens)?e.tokens:e.tokens?Object.values(e.tokens):void 0;return{roles:r===void 0?n:c(r.filter(e=>!e.revokedAtMs).flatMap(e=>e.role??[])).filter(e=>n.includes(e)),scopes:t(e.scopes)}}function f(e,t){let n=u(e),r=t?d(t):null;return r?l(r.roles,n.roles)?l(r.scopes,n.scopes)?{kind:`re-approval`,requested:n,approved:r}:{kind:`scope-upgrade`,requested:n,approved:r}:{kind:`role-upgrade`,requested:n,approved:r}:{kind:`new-pairing`,requested:n,approved:null}}function p(e){let t=e?.agents??{},n=Array.isArray(t.list)?t.list:[],i=[];return n.forEach((e,t)=>{if(!e||typeof e!=`object`)return;let n=e,a=r(n.id)??``;if(!a)return;let o=r(n.name),s=n.default===!0;i.push({id:a,name:o,isDefault:s,index:t,record:n})}),i}function m(e,t){let n=new Set(t),i=[];for(let t of e){if(!(Array.isArray(t.commands)?t.commands:[]).some(e=>n.has(String(e))))continue;let e=r(t.nodeId)??``;if(!e)continue;let a=r(t.displayName)??e;i.push({id:e,label:a===e?e:`${a} · ${e}`})}return i.sort((e,t)=>e.label.localeCompare(t.label)),i}var h=`__defaults__`,g=[{value:`deny`,label:`Deny`},{value:`allowlist`,label:`Allowlist`},{value:`full`,label:`Full`}],_=[{value:`off`,label:`Off`},{value:`on-miss`,label:`On miss`},{value:`always`,label:`Always`}];function v(e){return e===`allowlist`||e===`full`||e===`deny`?e:`deny`}function y(e){return e===`always`||e===`off`||e===`on-miss`?e:`on-miss`}function b(e){let t=e?.defaults??{};return{security:v(t.security),ask:y(t.ask),askFallback:v(t.askFallback??`deny`),autoAllowSkills:t.autoAllowSkills??!1}}function x(e){return p(e).map(e=>({id:e.id,name:e.name,isDefault:e.isDefault}))}function S(e,t){let n=x(e),r=Object.keys(t?.agents??{}),i=new Map;n.forEach(e=>i.set(e.id,e)),r.forEach(e=>{i.has(e)||i.set(e,{id:e})});let a=Array.from(i.values());return a.length===0&&a.push({id:`main`,isDefault:!0}),a.sort((e,t)=>{if(e.isDefault&&!t.isDefault)return-1;if(!e.isDefault&&t.isDefault)return 1;let n=e.name?.trim()?e.name:e.id,r=t.name?.trim()?t.name:t.id;return n.localeCompare(r)}),a}function C(e,t){return e===h?h:e&&t.some(t=>t.id===e)?e:h}function w(e){let t=e.execApprovalsForm??e.execApprovalsSnapshot?.file??null,n=!!t,r=b(t),i=S(e.configForm,t),a=j(e.nodes),o=e.execApprovalsTarget,s=o===`node`&&e.execApprovalsTargetNodeId?e.execApprovalsTargetNodeId:null;o===`node`&&s&&!a.some(e=>e.id===s)&&(s=null);let c=C(e.execApprovalsSelectedAgent,i),l=c===h?null:(t?.agents??{})[c]??null,u=Array.isArray(l?.allowlist)?l.allowlist??[]:[];return{ready:n,disabled:e.execApprovalsSaving||e.execApprovalsLoading,dirty:e.execApprovalsDirty,loading:e.execApprovalsLoading,saving:e.execApprovalsSaving,form:t,defaults:r,selectedScope:c,selectedAgent:l,agents:i,allowlist:u,target:o,targetNodeId:s,targetNodes:a,onSelectScope:e.onExecApprovalsSelectAgent,onSelectTarget:e.onExecApprovalsTargetChange,onPatch:e.onExecApprovalsPatch,onRemove:e.onExecApprovalsRemove,onLoad:e.onLoadExecApprovals,onSave:e.onSaveExecApprovals}}function T(e){let t=e.ready,n=e.target!==`node`||!!e.targetNodeId;return i`
|
|
2
2
|
<section class="card">
|
|
3
3
|
<div class="row" style="justify-content: space-between; align-items: center;">
|
|
4
4
|
<div>
|
|
@@ -433,4 +433,4 @@ import{E as e,Q as t,T as n,et as r,it as i,k as a,rt as o,tt as s}from"./index-
|
|
|
433
433
|
</div>
|
|
434
434
|
</div>
|
|
435
435
|
`}export{M as renderNodes};
|
|
436
|
-
//# sourceMappingURL=nodes-
|
|
436
|
+
//# sourceMappingURL=nodes-BXjhsRXJ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,O as t,V as n,Y as r,_ as i,d as a,et as o,f as s,it as c,k as l,rt as u,s as d,tt as f,u as p,w as m}from"./index-
|
|
1
|
+
import{$ as e,O as t,V as n,Y as r,_ as i,d as a,et as o,f as s,it as c,k as l,rt as u,s as d,tt as f,u as p,w as m}from"./index-B_b8hb35.js";var h=[`off`,`minimal`,`low`,`medium`,`high`],g=[``,`off`,`on`,`full`],_=[``,`on`,`off`],v=[``,`off`,`on`,`stream`],y=[10,25,50,100];function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]??null:null}function x(e,t){return(!e.modelProvider||e.modelProvider===t?.modelProvider)&&(!e.model||e.model===t?.model)}function S(e,t){let n=x(e,t),r=p(e.thinkingDefault??(n?t?.thinkingDefault:void 0)),i=e.thinkingLevels?.length?e.thinkingLevels:n&&t?.thinkingLevels?.length?t.thinkingLevels:(e.thinkingOptions?.length?e.thinkingOptions:n&&t?.thinkingOptions?.length?t.thinkingOptions:h).map(e=>({id:s(e),label:e}));return[{value:``,label:r},...i.map(e=>({value:s(e.id),label:a(e.id,e.label)}))]}function C(e,t){return!t||e.includes(t)?[...e]:[...e,t]}function w(e,t){return!t||e.some(e=>e.value===t)?[...e]:[...e,{value:t,label:a(t)}]}function T(){return g.map(e=>({value:e,label:f(e===``?`sessionsView.inherit`:e===`off`?`sessionsView.offExplicit`:`sessionsView.${e}`)}))}function ee(){return _.map(e=>({value:e,label:f(e===``?`sessionsView.inherit`:`sessionsView.${e}`)}))}function E(e){switch(e){case`running`:return f(`sessionsView.statusRunning`);case`done`:return f(`sessionsView.statusDone`);case`failed`:return f(`sessionsView.statusFailed`);case`killed`:return f(`sessionsView.statusKilled`);case`timeout`:return f(`sessionsView.statusTimeout`);default:return f(`sessionsView.statusUnknown`)}}function D(e){if(m(e))return{label:f(`sessionsView.statusLive`),tone:`live`};if(e.status){let t=e.status===`done`?`done`:`failed`;return{label:E(e.status),tone:t}}return e.hasActiveRun===!1?{label:f(`sessionsView.statusIdle`),tone:`idle`}:{label:f(`sessionsView.statusUnknown`),tone:`muted`}}function O(e){let t=D(e),n=`${f(`sessionsView.status`)}: ${t.label}`;return c`
|
|
2
2
|
<span
|
|
3
3
|
class="session-status-badge session-status-badge--${t.tone}"
|
|
4
4
|
title=${n}
|
|
@@ -396,4 +396,4 @@ import{$ as e,O as t,V as n,Y as r,_ as i,d as a,et as o,f as s,it as c,k as l,r
|
|
|
396
396
|
</div>
|
|
397
397
|
</td>
|
|
398
398
|
</tr>`]:[]]}export{B as renderSessions};
|
|
399
|
-
//# sourceMappingURL=sessions-
|
|
399
|
+
//# sourceMappingURL=sessions-Civ0cHoq.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,T as t,it as n,p as r,rt as i,tt as a,v as o}from"./index-
|
|
1
|
+
import{$ as e,T as t,it as n,p as r,rt as i,tt as a,v as o}from"./index-B_b8hb35.js";import{i as s,n as c,r as l,t as u}from"./skills-shared-CTIiKUNP.js";function d(e){return e?r(e,window.location.href):null}function f(e){!(e instanceof HTMLDialogElement)||e.open||(e.isConnected?e.showModal():queueMicrotask(()=>{e.isConnected&&!e.open&&e.showModal()}))}var p=[{id:`all`,label:`All`},{id:`ready`,label:`Ready`},{id:`needs-setup`,label:`Needs Setup`},{id:`disabled`,label:`Disabled`}];function m(e,t){switch(t){case`all`:return!0;case`ready`:return!e.disabled&&e.eligible;case`needs-setup`:return!e.disabled&&!e.eligible;case`disabled`:return e.disabled}throw Error(`Unsupported skills status filter`)}function h(e){return e.disabled?`muted`:e.eligible?`ok`:`warn`}function g(t){let r=t.report?.skills??[],o={all:r.length,ready:0,"needs-setup":0,disabled:0};for(let e of r)e.disabled?o.disabled++:e.eligible?o.ready++:o[`needs-setup`]++;let c=t.statusFilter===`all`?r:r.filter(e=>m(e,t.statusFilter)),l=e(t.filter),u=l?c.filter(t=>e([t.name,t.description,t.source].join(` `)).includes(l)):c,d=s(u),f=t.detailKey?r.find(e=>e.skillKey===t.detailKey)??null:null;return n`
|
|
2
2
|
<section class="card">
|
|
3
3
|
<div class="row" style="justify-content: space-between;">
|
|
4
4
|
<div>
|
|
@@ -311,4 +311,4 @@ import{$ as e,T as t,it as n,p as r,rt as i,tt as a,v as o}from"./index-Dtlincx8
|
|
|
311
311
|
</div>
|
|
312
312
|
</dialog>
|
|
313
313
|
`}export{g as renderSkills};
|
|
314
|
-
//# sourceMappingURL=skills-
|
|
314
|
+
//# sourceMappingURL=skills-BkRG__0I.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{it as e,rt as t}from"./index-
|
|
1
|
+
import{it as e,rt as t}from"./index-B_b8hb35.js";var n=[{id:`workspace`,label:`Workspace Skills`,sources:[`daocore-workspace`]},{id:`built-in`,label:`Built-in Skills`,sources:[`daocore-bundled`]},{id:`installed`,label:`Installed Skills`,sources:[`daocore-managed`]},{id:`extra`,label:`Extra Skills`,sources:[`daocore-extra`]}];function r(e){let t=new Map;for(let e of n)t.set(e.id,{id:e.id,label:e.label,skills:[]});let r=n.find(e=>e.id===`built-in`),i={id:`other`,label:`Other Skills`,skills:[]};for(let a of e){let e=a.bundled?r:n.find(e=>e.sources.includes(a.source));e?t.get(e.id)?.skills.push(a):i.skills.push(a)}let a=n.map(e=>t.get(e.id)).filter(e=>!!(e&&e.skills.length>0));return i.skills.length>0&&a.push(i),a}function i(e){return[...e.missing.bins.map(e=>`bin:${e}`),...e.missing.env.map(e=>`env:${e}`),...e.missing.config.map(e=>`config:${e}`),...e.missing.os.map(e=>`os:${e}`)]}function a(e){let t=[];return e.disabled&&t.push(`disabled`),e.blockedByAllowlist&&t.push(`blocked by allowlist`),t}function o(n){let r=n.skill,i=!!n.showBundledBadge;return e`
|
|
2
2
|
<div class="chip-row" style="margin-top: 6px;">
|
|
3
3
|
<span class="chip">${r.source}</span>
|
|
4
4
|
${i?e` <span class="chip">bundled</span> `:t}
|
|
@@ -8,4 +8,4 @@ import{it as e,rt as t}from"./index-Dtlincx8.js";var n=[{id:`workspace`,label:`W
|
|
|
8
8
|
${r.disabled?e` <span class="chip chip-warn">disabled</span> `:t}
|
|
9
9
|
</div>
|
|
10
10
|
`}export{r as i,a as n,o as r,i as t};
|
|
11
|
-
//# sourceMappingURL=skills-shared-
|
|
11
|
+
//# sourceMappingURL=skills-shared-CTIiKUNP.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
color: #0369a1;
|
|
196
196
|
}
|
|
197
197
|
</style>
|
|
198
|
-
<script type="module" crossorigin src="./assets/index-
|
|
198
|
+
<script type="module" crossorigin src="./assets/index-B_b8hb35.js"></script>
|
|
199
199
|
<link rel="stylesheet" crossorigin href="./assets/index-Crl1466m.css">
|
|
200
200
|
</head>
|
|
201
201
|
<body>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
3
|
-
"short_name": "
|
|
4
|
-
"description": "
|
|
2
|
+
"name": "DaoCore Control",
|
|
3
|
+
"short_name": "DaoCore",
|
|
4
|
+
"description": "DaoCore AI 网关控制面板",
|
|
5
5
|
"start_url": "./",
|
|
6
6
|
"display": "standalone",
|
|
7
|
-
"theme_color": "#
|
|
8
|
-
"background_color": "#
|
|
7
|
+
"theme_color": "#050810",
|
|
8
|
+
"background_color": "#050810",
|
|
9
9
|
"icons": [
|
|
10
10
|
{
|
|
11
11
|
"src": "./favicon.svg",
|
|
@@ -23,5 +23,18 @@
|
|
|
23
23
|
"sizes": "180x180",
|
|
24
24
|
"type": "image/png"
|
|
25
25
|
}
|
|
26
|
+
],
|
|
27
|
+
"related_applications": [
|
|
28
|
+
{
|
|
29
|
+
"platform": "macos",
|
|
30
|
+
"url": "daocore://",
|
|
31
|
+
"id": "ai.daocore.mac"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"protocol_handlers": [
|
|
35
|
+
{
|
|
36
|
+
"protocol": "web+daocore",
|
|
37
|
+
"url": "./?deeplink=%s"
|
|
38
|
+
}
|
|
26
39
|
]
|
|
27
|
-
}
|
|
40
|
+
}
|
package/dist/control-ui/sw.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Handles offline caching and push notifications.
|
|
3
3
|
|
|
4
4
|
const CACHE_PREFIX = "daocore-control-";
|
|
5
|
-
const EMBEDDED_CACHE_VERSION = "2026.5.
|
|
5
|
+
const EMBEDDED_CACHE_VERSION = "2026.5.50-524c25e524a4";
|
|
6
6
|
const URL_CACHE_VERSION = new URL(self.location.href).searchParams
|
|
7
7
|
.get("v")
|
|
8
8
|
?.replace(/[^a-zA-Z0-9._-]/g, "-");
|
|
@@ -5,7 +5,7 @@ import { n as inheritOptionFromParent } from "./command-options-Dhjl7AMa.js";
|
|
|
5
5
|
import { t as addGatewayServiceCommands } from "./register-service-commands-DxATe7_2.js";
|
|
6
6
|
import { n as defaultRuntime } from "./runtime-E_A14BX_.js";
|
|
7
7
|
import { t as formatHelpExamples } from "./help-format-DXVAk021.js";
|
|
8
|
-
import { t as addGatewayRunCommand } from "./run-command-
|
|
8
|
+
import { t as addGatewayRunCommand } from "./run-command-DHOIYQm_.js";
|
|
9
9
|
//#region src/cli/gateway-cli/register.ts
|
|
10
10
|
const configModuleLoader = createLazyImportLoader(() => import("./read-best-effort-config.runtime.js"));
|
|
11
11
|
const gatewayStatusModuleLoader = createLazyImportLoader(() => import("./gateway-status-Baa5algc.js"));
|
|
@@ -9,7 +9,7 @@ import { i as resolveMainSessionKey } from "./main-session-D3q_5w0B.js";
|
|
|
9
9
|
import "./sessions-4ZNlAnYc.js";
|
|
10
10
|
import { t as getHealthSnapshot } from "./health-BFHVjxFk.js";
|
|
11
11
|
import { t as listSystemPresence } from "./system-presence-ClNSY4UX.js";
|
|
12
|
-
import { t as getUpdateAvailable } from "./update-startup-
|
|
12
|
+
import { t as getUpdateAvailable } from "./update-startup-XLbXHCT1.js";
|
|
13
13
|
//#region src/gateway/server/health-state.ts
|
|
14
14
|
let presenceVersion = 1;
|
|
15
15
|
let healthVersion = 1;
|
|
@@ -30,7 +30,7 @@ import { a as redeemDeviceBootstrapTokenProfile, d as PAIRING_SETUP_BOOTSTRAP_PR
|
|
|
30
30
|
import { _ as updatePairedDeviceMetadata, a as getPairedDevice, c as listApprovedPairedDeviceRoles, l as listDevicePairing, n as approveDevicePairing, p as requestDevicePairing, r as ensureDeviceToken, s as hasEffectivePairedDeviceRole, t as approveBootstrapDevicePairing, u as listEffectivePairedDeviceRoles, v as verifyDeviceToken } from "./device-pairing-Bw7rq1YT.js";
|
|
31
31
|
import { r as loadVoiceWakeConfig, t as formatError } from "./server-utils-Dzo1sugg.js";
|
|
32
32
|
import { r as upsertPresence } from "./system-presence-ClNSY4UX.js";
|
|
33
|
-
import { a as incrementPresenceVersion, n as getHealthCache, r as getHealthVersion, t as buildGatewaySnapshot } from "./health-state-
|
|
33
|
+
import { a as incrementPresenceVersion, n as getHealthCache, r as getHealthVersion, t as buildGatewaySnapshot } from "./health-state-CETJtly-.js";
|
|
34
34
|
import { c as roleCanSkipDeviceIdentity, s as parseGatewayRole, t as loadVoiceWakeRoutingConfig } from "./voicewake-routing-DZDAf5fD.js";
|
|
35
35
|
import { t as resolveSharedGatewaySessionGeneration } from "./ws-shared-generation-Bp5l7wzu.js";
|
|
36
36
|
import { t as truncateCloseReason } from "./close-reason-f7R6T5LC.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-05-
|
|
1
|
+
2026-05-25T11:34:42.491Z
|
|
@@ -12,7 +12,7 @@ import { n as setProgramContext } from "./program-context-qqDjqw9S.js";
|
|
|
12
12
|
import { t as isCommandJsonOutputMode } from "./json-mode-bUK0Pr8D.js";
|
|
13
13
|
import { n as resolvePluginInstallPreactionRequest, t as resolvePluginInstallInvalidConfigPolicy } from "./plugin-install-config-policy-B1LovVfG.js";
|
|
14
14
|
import { t as forceFreePort } from "./ports-Ct-1tfSj.js";
|
|
15
|
-
import { t as registerProgramCommands } from "./command-registry-
|
|
15
|
+
import { t as registerProgramCommands } from "./command-registry-MW7FkJ_Y.js";
|
|
16
16
|
import { t as configureProgramHelp } from "./help-CYtOCMY_.js";
|
|
17
17
|
import { n as ensureCliExecutionBootstrap, r as resolveCliExecutionStartupContext, t as applyCliExecutionStartupPresentation } from "./command-execution-startup-vZsHD9m1.js";
|
|
18
18
|
import process$1 from "node:process";
|
|
@@ -2,11 +2,11 @@ import { h as getSubCliEntries } from "./argv-BEXMl80F.js";
|
|
|
2
2
|
import { t as resolveCliArgvInvocation } from "./argv-invocation-BVIVPYjV.js";
|
|
3
3
|
import { i as shouldRegisterPrimarySubcommandOnly, n as shouldEagerRegisterSubcommands } from "./command-registration-policy-DNB5-kPy.js";
|
|
4
4
|
import { i as registerCommandGroups, r as registerCommandGroupByName } from "./register-command-groups-BJJkSUKS.js";
|
|
5
|
-
import { i as buildCommandGroupEntries, n as registerSubCliByName$1, o as defineImportedProgramCommandGroupSpecs, r as registerSubCliCommands$1 } from "./register.subclis-core-
|
|
5
|
+
import { i as buildCommandGroupEntries, n as registerSubCliByName$1, o as defineImportedProgramCommandGroupSpecs, r as registerSubCliCommands$1 } from "./register.subclis-core-DS7RVqtY.js";
|
|
6
6
|
//#region src/cli/program/register.subclis.ts
|
|
7
7
|
const entrySpecs = [...defineImportedProgramCommandGroupSpecs([{
|
|
8
8
|
commandNames: ["completion"],
|
|
9
|
-
loadModule: () => import("./completion-cli-
|
|
9
|
+
loadModule: () => import("./completion-cli-dN803PIC.js"),
|
|
10
10
|
exportName: "registerCompletionCli"
|
|
11
11
|
}])];
|
|
12
12
|
function resolveSubCliCommandGroups(argv, context = {}) {
|
|
@@ -52,7 +52,7 @@ function shouldRegisterGatewayRunOnly(name, argv) {
|
|
|
52
52
|
return invocation.commandPath.length === 1 || invocation.commandPath[1] === "run";
|
|
53
53
|
}
|
|
54
54
|
async function registerGatewayRunOnly(program) {
|
|
55
|
-
const { addGatewayRunCommand } = await import("./run-command-
|
|
55
|
+
const { addGatewayRunCommand } = await import("./run-command-CbUIDjYf.js");
|
|
56
56
|
removeCommandByName(program, "gateway");
|
|
57
57
|
addGatewayRunCommand(addGatewayRunCommand(program.command("gateway").description("Run, inspect, and query the WebSocket Gateway")).command("run").description("Run the WebSocket Gateway (foreground)"));
|
|
58
58
|
}
|
|
@@ -78,7 +78,7 @@ const entrySpecs = [
|
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
commandNames: ["gateway"],
|
|
81
|
-
loadModule: () => import("./gateway-cli-
|
|
81
|
+
loadModule: () => import("./gateway-cli-BIl9ooav.js"),
|
|
82
82
|
exportName: "registerGatewayCli"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
@@ -928,7 +928,7 @@ async function runGatewayCommand(opts) {
|
|
|
928
928
|
const { startGatewayServer } = await startupTrace.measure("cli.server-import", () => withProgress({
|
|
929
929
|
label: "Loading gateway modules…",
|
|
930
930
|
indeterminate: true
|
|
931
|
-
}, async () => import("./server-
|
|
931
|
+
}, async () => import("./server-DSUxFJfU.js")));
|
|
932
932
|
setConsoleTimestampPrefix(true);
|
|
933
933
|
if (devMode) {
|
|
934
934
|
const { ensureDevGatewayConfig } = await import("./dev-C6vBQ7Cj.js");
|
|
@@ -15,7 +15,7 @@ function formatModeChoices(modes) {
|
|
|
15
15
|
}
|
|
16
16
|
function addGatewayRunCommand(cmd) {
|
|
17
17
|
return cmd.option("--port <port>", "Port for the gateway WebSocket").option("--bind <mode>", "Bind mode (\"loopback\"|\"lan\"|\"tailnet\"|\"auto\"|\"custom\"). Defaults to config gateway.bind (or loopback).").option("--token <token>", "Shared token required in connect.params.auth.token (default: DAOCORE_GATEWAY_TOKEN env if set)").option("--auth <mode>", `Gateway auth mode (${formatModeChoices(GATEWAY_AUTH_MODES)})`).option("--password <password>", "Password for auth mode=password").option("--password-file <path>", "Read gateway password from file").option("--tailscale <mode>", `Tailscale exposure mode (${formatModeChoices(GATEWAY_TAILSCALE_MODES)})`).option("--tailscale-reset-on-exit", "Reset Tailscale serve/funnel configuration on shutdown", false).option("--allow-unconfigured", "Allow gateway start without enforcing gateway.mode=local in config (does not repair config)", false).option("--dev", "Create a dev config + workspace if missing (no BOOTSTRAP.md)", false).option("--reset", "Reset dev config + credentials + sessions + workspace (requires --dev)", false).option("--force", "Kill any existing listener on the target port before starting", false).option("--verbose", "Verbose logging to stdout/stderr", false).option("--cli-backend-logs", "Only show CLI backend logs in the console (includes stdout/stderr)", false).option("--claude-cli-logs", "Deprecated alias for --cli-backend-logs", false).option("--ws-log <style>", "WebSocket log style (\"auto\"|\"full\"|\"compact\")", "auto").option("--compact", "Alias for \"--ws-log compact\"", false).option("--raw-stream", "Log raw model stream events to jsonl", false).option("--raw-stream-path <path>", "Raw stream jsonl path").action(async (opts, command) => {
|
|
18
|
-
const { resolveGatewayRunOptions, runGatewayCommand } = await import("./run-
|
|
18
|
+
const { resolveGatewayRunOptions, runGatewayCommand } = await import("./run-DYwW1kIR.js");
|
|
19
19
|
await runGatewayCommand(resolveGatewayRunOptions(opts, command));
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -8,7 +8,7 @@ async function loadServerImpl() {
|
|
|
8
8
|
const startupStartedAt = performance.now();
|
|
9
9
|
const before = performance.now();
|
|
10
10
|
try {
|
|
11
|
-
return await import("./server.impl-
|
|
11
|
+
return await import("./server.impl-BXCtVnO2.js");
|
|
12
12
|
} finally {
|
|
13
13
|
const now = performance.now();
|
|
14
14
|
emitStartupTrace("gateway.server-impl-import", now - before, now - startupStartedAt);
|
|
@@ -4,7 +4,7 @@ import { t as abortChatRunById } from "./chat-abort-QQsgcDHe.js";
|
|
|
4
4
|
import { r as HEALTH_REFRESH_INTERVAL_MS, s as TICK_INTERVAL_MS, t as DEDUPE_MAX } from "./server-constants-BGwLM6XN.js";
|
|
5
5
|
import { n as pruneStaleControlPlaneBuckets } from "./control-plane-rate-limit-AYt-ugaJ.js";
|
|
6
6
|
import { t as formatError } from "./server-utils-Dzo1sugg.js";
|
|
7
|
-
import { s as setBroadcastHealthUpdate } from "./health-state-
|
|
7
|
+
import { s as setBroadcastHealthUpdate } from "./health-state-CETJtly-.js";
|
|
8
8
|
//#region src/gateway/server-maintenance.ts
|
|
9
9
|
function startGatewayMaintenanceTimers(params) {
|
|
10
10
|
setBroadcastHealthUpdate((snap) => {
|
|
@@ -55,7 +55,7 @@ async function startGatewayEarlyRuntime(params) {
|
|
|
55
55
|
const startMaintenance = async () => {
|
|
56
56
|
if (params.minimalTestGateway) return null;
|
|
57
57
|
return await measureStartup(params.startupTrace, "post-ready.maintenance", async () => {
|
|
58
|
-
const { startGatewayMaintenanceTimers } = await import("./server-maintenance-
|
|
58
|
+
const { startGatewayMaintenanceTimers } = await import("./server-maintenance-Y0NvZrH-.js");
|
|
59
59
|
return startGatewayMaintenanceTimers({
|
|
60
60
|
broadcast: params.broadcast,
|
|
61
61
|
nodeSendToAllSubscribed: params.nodeSendToAllSubscribed,
|
package/dist/{server-startup-post-attach-B0mT_nn5.js → server-startup-post-attach-Ja8NHfJQ.js}
RENAMED
|
@@ -518,7 +518,7 @@ const defaultGatewayPostAttachRuntimeDeps = {
|
|
|
518
518
|
getGlobalHookRunner: async () => (await import("./plugins/hook-runner-global.js")).getGlobalHookRunner(),
|
|
519
519
|
logGatewayStartup: async (params) => (await import("./server-startup-log-oFoDieof.js")).logGatewayStartup(params),
|
|
520
520
|
refreshLatestUpdateRestartSentinel: refreshLatestUpdateRestartSentinelIfPresent,
|
|
521
|
-
scheduleGatewayUpdateCheck: async (...args) => (await import("./update-startup-
|
|
521
|
+
scheduleGatewayUpdateCheck: async (...args) => (await import("./update-startup-D26cmPn-.js")).scheduleGatewayUpdateCheck(...args),
|
|
522
522
|
startGatewaySidecars,
|
|
523
523
|
startGatewayTailscaleExposure: async (...args) => (await import("./server-tailscale-B7xppCEl.js")).startGatewayTailscaleExposure(...args)
|
|
524
524
|
};
|
|
@@ -12,7 +12,7 @@ import { n as logWs } from "./ws-log-CHuv7KC7.js";
|
|
|
12
12
|
import { s as removeRemoteNodeInfo } from "./skills-remote-vuEE6sLa.js";
|
|
13
13
|
import { t as formatError } from "./server-utils-Dzo1sugg.js";
|
|
14
14
|
import { r as upsertPresence } from "./system-presence-ClNSY4UX.js";
|
|
15
|
-
import { a as incrementPresenceVersion, r as getHealthVersion } from "./health-state-
|
|
15
|
+
import { a as incrementPresenceVersion, r as getHealthVersion } from "./health-state-CETJtly-.js";
|
|
16
16
|
import { i as clearNodeWakeState, t as broadcastPresenceSnapshot } from "./presence-events-CgGl_cCU.js";
|
|
17
17
|
import { t as resolveSharedGatewaySessionGeneration } from "./ws-shared-generation-Bp5l7wzu.js";
|
|
18
18
|
import { randomUUID } from "node:crypto";
|
|
@@ -77,7 +77,7 @@ function attachGatewayWsMessageHandlerOnDemand(params) {
|
|
|
77
77
|
queued.push(data);
|
|
78
78
|
};
|
|
79
79
|
params.socket.on("message", queueMessage);
|
|
80
|
-
import("./message-handler-
|
|
80
|
+
import("./message-handler-DsiaQGjj.js").then(({ attachGatewayWsMessageHandler }) => {
|
|
81
81
|
params.socket.off("message", queueMessage);
|
|
82
82
|
if (params.isClosed()) return;
|
|
83
83
|
attachGatewayWsMessageHandler(params);
|
|
@@ -50,7 +50,7 @@ import { n as ensureControlUiAllowedOriginsForNonLoopbackBind } from "./gateway-
|
|
|
50
50
|
import { n as resolveAssistantIdentity } from "./assistant-identity-B3FaMqHl.js";
|
|
51
51
|
import { i as getRequiredSharedGatewaySessionGeneration, r as enforceSharedGatewaySessionGenerationForConfigWrite } from "./server-shared-auth-generation-Csm1h6QK.js";
|
|
52
52
|
import { a as createToolEventRecipientRegistry, n as createChatRunState } from "./server-chat-state-5p6_r5uT.js";
|
|
53
|
-
import { a as incrementPresenceVersion, i as getPresenceVersion, n as getHealthCache, o as refreshGatewayHealthSnapshot, r as getHealthVersion } from "./health-state-
|
|
53
|
+
import { a as incrementPresenceVersion, i as getPresenceVersion, n as getHealthCache, o as refreshGatewayHealthSnapshot, r as getHealthVersion } from "./health-state-CETJtly-.js";
|
|
54
54
|
import { n as applyGatewayLaneConcurrency, t as resolveHookClientIpConfig } from "./hook-client-ip-config-DGMUK7zA.js";
|
|
55
55
|
import { t as GATEWAY_EVENTS } from "./server-methods-list-CU1TXyOY.js";
|
|
56
56
|
import { t as resolveSharedGatewaySessionGeneration } from "./ws-shared-generation-Bp5l7wzu.js";
|
|
@@ -1457,11 +1457,11 @@ const POST_READY_MAINTENANCE_DELAY_MS = 250;
|
|
|
1457
1457
|
let gatewayStartupEarlyModulePromise = null;
|
|
1458
1458
|
let gatewayStartupPostAttachModulePromise = null;
|
|
1459
1459
|
function loadGatewayStartupEarlyModule() {
|
|
1460
|
-
gatewayStartupEarlyModulePromise ??= import("./server-startup-early-
|
|
1460
|
+
gatewayStartupEarlyModulePromise ??= import("./server-startup-early-5UM54scV.js");
|
|
1461
1461
|
return gatewayStartupEarlyModulePromise;
|
|
1462
1462
|
}
|
|
1463
1463
|
function loadGatewayStartupPostAttachModule() {
|
|
1464
|
-
gatewayStartupPostAttachModulePromise ??= import("./server-startup-post-attach-
|
|
1464
|
+
gatewayStartupPostAttachModulePromise ??= import("./server-startup-post-attach-Ja8NHfJQ.js");
|
|
1465
1465
|
return gatewayStartupPostAttachModulePromise;
|
|
1466
1466
|
}
|
|
1467
1467
|
function listGatewayStartupChannelPlugins() {
|
|
@@ -2345,7 +2345,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
2345
2345
|
await refreshAttachedGatewayDiscovery(loaded.pluginRegistry);
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
|
-
const { attachGatewayWsHandlers } = await import("./server-ws-runtime-
|
|
2348
|
+
const { attachGatewayWsHandlers } = await import("./server-ws-runtime-DNH4m_Ix.js");
|
|
2349
2349
|
const { listPluginNodeCapabilities } = await import("./route-capability-CgIms8P7.js");
|
|
2350
2350
|
const pluginSurfaceScheme = gatewayTls.enabled ? "https" : "http";
|
|
2351
2351
|
attachGatewayWsHandlers({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as scheduleGatewayUpdateCheck } from "./update-startup-
|
|
1
|
+
import { r as scheduleGatewayUpdateCheck } from "./update-startup-XLbXHCT1.js";
|
|
2
2
|
export { scheduleGatewayUpdateCheck };
|
|
@@ -194,7 +194,7 @@ async function runGatewayUpdateCheck(params) {
|
|
|
194
194
|
const status = await checkUpdateStatus({
|
|
195
195
|
root,
|
|
196
196
|
timeoutMs: 5e3,
|
|
197
|
-
fetchGit:
|
|
197
|
+
fetchGit: false,
|
|
198
198
|
includeRegistry: false
|
|
199
199
|
});
|
|
200
200
|
const nextState = {
|
|
@@ -205,15 +205,7 @@ async function runGatewayUpdateCheck(params) {
|
|
|
205
205
|
delete nextState.lastAvailableVersion;
|
|
206
206
|
delete nextState.lastAvailableTag;
|
|
207
207
|
clearAutoState(nextState);
|
|
208
|
-
|
|
209
|
-
next: {
|
|
210
|
-
currentVersion: VERSION,
|
|
211
|
-
latestVersion: `${status.git.behind} commits behind origin/${status.git.branch ?? "main"}`,
|
|
212
|
-
channel: status.git.branch ?? "main"
|
|
213
|
-
},
|
|
214
|
-
onUpdateAvailableChange: params.onUpdateAvailableChange
|
|
215
|
-
});
|
|
216
|
-
else setUpdateAvailableCache({
|
|
208
|
+
setUpdateAvailableCache({
|
|
217
209
|
next: null,
|
|
218
210
|
onUpdateAvailableChange: params.onUpdateAvailableChange
|
|
219
211
|
});
|
package/package.json
CHANGED