@sjawhar/opencode-legion-envoy 1.5.0 → 1.6.1
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/src/server.js +20 -4
- package/package.json +1 -1
- package/skills/dispatch/SKILL.md +2 -0
package/dist/src/server.js
CHANGED
|
@@ -13566,6 +13566,7 @@ var DispatchEventSchema = object({
|
|
|
13566
13566
|
var IssueEventPayloadSchema = object({
|
|
13567
13567
|
title: string2().optional(),
|
|
13568
13568
|
status: string2().optional(),
|
|
13569
|
+
rank: string2().optional(),
|
|
13569
13570
|
route: string2().nullish()
|
|
13570
13571
|
});
|
|
13571
13572
|
var ArtifactCreatedEventPayloadSchema = object({
|
|
@@ -14422,10 +14423,25 @@ function resolveDispatchConfig(env, options = {}) {
|
|
|
14422
14423
|
return { enabled: false, url: null, token: null, error: file.reason };
|
|
14423
14424
|
}
|
|
14424
14425
|
}
|
|
14425
|
-
const
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14426
|
+
const userSettings = userFile.kind === "valid" ? userFile.settings : null;
|
|
14427
|
+
const repoSettings = repoFile.kind === "valid" ? repoFile.settings : null;
|
|
14428
|
+
const merged = { ...userSettings, ...repoSettings };
|
|
14429
|
+
const repoURL = repoSettings?.serverUrl;
|
|
14430
|
+
if (explicitUrl === undefined && merged.enabled === true && repoURL !== undefined) {
|
|
14431
|
+
const token = repoSettings?.token ?? null;
|
|
14432
|
+
if (!token) {
|
|
14433
|
+
return {
|
|
14434
|
+
enabled: false,
|
|
14435
|
+
url: null,
|
|
14436
|
+
token: null,
|
|
14437
|
+
error: "repository dispatch.serverUrl requires dispatch.token from the same .opencode/envoy.json or DISPATCH_URL with DISPATCH_TOKEN"
|
|
14438
|
+
};
|
|
14439
|
+
}
|
|
14440
|
+
const url2 = parsedDispatchUrl(repoURL, "repository dispatch.serverUrl");
|
|
14441
|
+
if (url2.error !== null)
|
|
14442
|
+
return { enabled: false, url: null, token: null, error: url2.error };
|
|
14443
|
+
return { enabled: true, url: url2.url, token, error: null };
|
|
14444
|
+
}
|
|
14429
14445
|
const rawUrl = explicitUrl !== undefined ? { value: explicitUrl, source: "DISPATCH_URL" } : merged.enabled === true ? { value: merged.serverUrl ?? DEFAULT_SERVER_URL, source: "dispatch.serverUrl" } : null;
|
|
14430
14446
|
const url2 = rawUrl ? parsedDispatchUrl(rawUrl.value, rawUrl.source) : { url: null, error: null };
|
|
14431
14447
|
let token;
|
package/package.json
CHANGED
package/skills/dispatch/SKILL.md
CHANGED
|
@@ -72,6 +72,8 @@ exactly one owner to every owner-scoped tool: `issue` for an issue, or `project`
|
|
|
72
72
|
[References](#references) for the resulting ref shape). On first use, an external issue reference creates its native issue in the
|
|
73
73
|
project configured for that repository in Dispatch Settings, then falls back to `DISPATCH_DEFAULT_PROJECT`.
|
|
74
74
|
|
|
75
|
+
Issue reads include `rank`, the server-owned ordering key used by project boards; reorder through `PATCH /api/v1/issues/{key}` with neighboring issue keys rather than writing a priority value.
|
|
76
|
+
|
|
75
77
|
Architects create newly tracked child work with:
|
|
76
78
|
```ts
|
|
77
79
|
dispatch_issue({ project, title, parent?, external?, spec?, force? })
|