agent-relay-server 0.27.0 → 0.27.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/package.json +1 -1
- package/public/index.html +70 -109
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -11066,6 +11066,12 @@ var PAIR_STATUS_COLORS = {
|
|
|
11066
11066
|
};
|
|
11067
11067
|
//#endregion
|
|
11068
11068
|
//#region ../sdk/src/types.ts
|
|
11069
|
+
/** Terminal workspace statuses shared across server + dashboard filters. */
|
|
11070
|
+
var TERMINAL_WORKSPACE_STATUS_VALUES = [
|
|
11071
|
+
"cleaned",
|
|
11072
|
+
"merged",
|
|
11073
|
+
"abandoned"
|
|
11074
|
+
];
|
|
11069
11075
|
/** True for a non-null, non-array object. The canonical type guard for the whole repo. */
|
|
11070
11076
|
function isRecord(value) {
|
|
11071
11077
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -11806,36 +11812,36 @@ function downloadText(filename, text, type) {
|
|
|
11806
11812
|
}
|
|
11807
11813
|
//#endregion
|
|
11808
11814
|
//#region ../sdk/src/provider-catalog.ts
|
|
11809
|
-
var CLAUDE_LOW_TO_MAX
|
|
11815
|
+
var CLAUDE_LOW_TO_MAX = [
|
|
11810
11816
|
"low",
|
|
11811
11817
|
"medium",
|
|
11812
11818
|
"high",
|
|
11813
11819
|
"max"
|
|
11814
11820
|
];
|
|
11815
|
-
var CLAUDE_LOW_TO_XHIGH_MAX
|
|
11821
|
+
var CLAUDE_LOW_TO_XHIGH_MAX = [
|
|
11816
11822
|
"low",
|
|
11817
11823
|
"medium",
|
|
11818
11824
|
"high",
|
|
11819
11825
|
"xhigh",
|
|
11820
11826
|
"max"
|
|
11821
11827
|
];
|
|
11822
|
-
var CODEX_REASONING
|
|
11828
|
+
var CODEX_REASONING = [
|
|
11823
11829
|
"low",
|
|
11824
11830
|
"medium",
|
|
11825
11831
|
"high",
|
|
11826
11832
|
"xhigh"
|
|
11827
11833
|
];
|
|
11828
|
-
var CONTEXT_200K
|
|
11834
|
+
var CONTEXT_200K = {
|
|
11829
11835
|
value: 2e5,
|
|
11830
11836
|
source: "catalog",
|
|
11831
11837
|
confidence: "declared"
|
|
11832
11838
|
};
|
|
11833
|
-
var CONTEXT_1M
|
|
11839
|
+
var CONTEXT_1M = {
|
|
11834
11840
|
value: 1e6,
|
|
11835
11841
|
source: "catalog",
|
|
11836
11842
|
confidence: "declared"
|
|
11837
11843
|
};
|
|
11838
|
-
var CODE_MODEL_CAPABILITIES
|
|
11844
|
+
var CODE_MODEL_CAPABILITIES = {
|
|
11839
11845
|
modalities: {
|
|
11840
11846
|
input: {
|
|
11841
11847
|
text: true,
|
|
@@ -11852,13 +11858,13 @@ var CODE_MODEL_CAPABILITIES$1 = {
|
|
|
11852
11858
|
source: "catalog",
|
|
11853
11859
|
confidence: "declared"
|
|
11854
11860
|
};
|
|
11855
|
-
function codeModel
|
|
11861
|
+
function codeModel(limits) {
|
|
11856
11862
|
return {
|
|
11857
11863
|
...limits ? { limits } : {},
|
|
11858
|
-
capabilities: CODE_MODEL_CAPABILITIES
|
|
11864
|
+
capabilities: CODE_MODEL_CAPABILITIES
|
|
11859
11865
|
};
|
|
11860
11866
|
}
|
|
11861
|
-
var PROVIDER_CATALOG
|
|
11867
|
+
var PROVIDER_CATALOG = {
|
|
11862
11868
|
claude: {
|
|
11863
11869
|
provider: "claude",
|
|
11864
11870
|
label: "Claude Code",
|
|
@@ -11868,80 +11874,80 @@ var PROVIDER_CATALOG$1 = {
|
|
|
11868
11874
|
alias: "fable-5",
|
|
11869
11875
|
label: "Fable 5",
|
|
11870
11876
|
providerModel: "claude-fable-5",
|
|
11871
|
-
efforts: CLAUDE_LOW_TO_XHIGH_MAX
|
|
11877
|
+
efforts: CLAUDE_LOW_TO_XHIGH_MAX,
|
|
11872
11878
|
defaultEffort: "medium",
|
|
11873
|
-
...codeModel
|
|
11879
|
+
...codeModel({ contextWindowTokens: CONTEXT_1M })
|
|
11874
11880
|
},
|
|
11875
11881
|
{
|
|
11876
11882
|
alias: "opus-4.8",
|
|
11877
11883
|
label: "Opus 4.8",
|
|
11878
11884
|
providerModel: "claude-opus-4-8",
|
|
11879
|
-
efforts: CLAUDE_LOW_TO_XHIGH_MAX
|
|
11885
|
+
efforts: CLAUDE_LOW_TO_XHIGH_MAX,
|
|
11880
11886
|
defaultEffort: "medium",
|
|
11881
|
-
...codeModel
|
|
11887
|
+
...codeModel({ contextWindowTokens: CONTEXT_200K })
|
|
11882
11888
|
},
|
|
11883
11889
|
{
|
|
11884
11890
|
alias: "opus-4.8[1m]",
|
|
11885
11891
|
label: "Opus 4.8 1M",
|
|
11886
11892
|
providerModel: "claude-opus-4-8[1m]",
|
|
11887
|
-
efforts: CLAUDE_LOW_TO_XHIGH_MAX
|
|
11893
|
+
efforts: CLAUDE_LOW_TO_XHIGH_MAX,
|
|
11888
11894
|
defaultEffort: "medium",
|
|
11889
|
-
...codeModel
|
|
11895
|
+
...codeModel({ contextWindowTokens: CONTEXT_1M })
|
|
11890
11896
|
},
|
|
11891
11897
|
{
|
|
11892
11898
|
alias: "opus-4.7",
|
|
11893
11899
|
label: "Opus 4.7",
|
|
11894
11900
|
providerModel: "claude-opus-4-7",
|
|
11895
|
-
efforts: CLAUDE_LOW_TO_XHIGH_MAX
|
|
11901
|
+
efforts: CLAUDE_LOW_TO_XHIGH_MAX,
|
|
11896
11902
|
defaultEffort: "medium",
|
|
11897
|
-
...codeModel
|
|
11903
|
+
...codeModel({ contextWindowTokens: CONTEXT_200K })
|
|
11898
11904
|
},
|
|
11899
11905
|
{
|
|
11900
11906
|
alias: "opus-4.7[1m]",
|
|
11901
11907
|
label: "Opus 4.7 1M",
|
|
11902
11908
|
providerModel: "claude-opus-4-7[1m]",
|
|
11903
|
-
efforts: CLAUDE_LOW_TO_XHIGH_MAX
|
|
11909
|
+
efforts: CLAUDE_LOW_TO_XHIGH_MAX,
|
|
11904
11910
|
defaultEffort: "medium",
|
|
11905
|
-
...codeModel
|
|
11911
|
+
...codeModel({ contextWindowTokens: CONTEXT_1M })
|
|
11906
11912
|
},
|
|
11907
11913
|
{
|
|
11908
11914
|
alias: "opus-4.6",
|
|
11909
11915
|
label: "Opus 4.6",
|
|
11910
11916
|
providerModel: "claude-opus-4-6",
|
|
11911
|
-
efforts: CLAUDE_LOW_TO_MAX
|
|
11917
|
+
efforts: CLAUDE_LOW_TO_MAX,
|
|
11912
11918
|
defaultEffort: "medium",
|
|
11913
|
-
...codeModel
|
|
11919
|
+
...codeModel({ contextWindowTokens: CONTEXT_200K })
|
|
11914
11920
|
},
|
|
11915
11921
|
{
|
|
11916
11922
|
alias: "opus-4.6[1m]",
|
|
11917
11923
|
label: "Opus 4.6 1M",
|
|
11918
11924
|
providerModel: "claude-opus-4-6[1m]",
|
|
11919
|
-
efforts: CLAUDE_LOW_TO_MAX
|
|
11925
|
+
efforts: CLAUDE_LOW_TO_MAX,
|
|
11920
11926
|
defaultEffort: "medium",
|
|
11921
|
-
...codeModel
|
|
11927
|
+
...codeModel({ contextWindowTokens: CONTEXT_1M })
|
|
11922
11928
|
},
|
|
11923
11929
|
{
|
|
11924
11930
|
alias: "sonnet-4.6",
|
|
11925
11931
|
label: "Sonnet 4.6",
|
|
11926
11932
|
providerModel: "claude-sonnet-4-6",
|
|
11927
|
-
efforts: CLAUDE_LOW_TO_MAX
|
|
11933
|
+
efforts: CLAUDE_LOW_TO_MAX,
|
|
11928
11934
|
defaultEffort: "medium",
|
|
11929
|
-
...codeModel
|
|
11935
|
+
...codeModel({ contextWindowTokens: CONTEXT_200K })
|
|
11930
11936
|
},
|
|
11931
11937
|
{
|
|
11932
11938
|
alias: "sonnet-4.6[1m]",
|
|
11933
11939
|
label: "Sonnet 4.6 1M",
|
|
11934
11940
|
providerModel: "claude-sonnet-4-6[1m]",
|
|
11935
|
-
efforts: CLAUDE_LOW_TO_MAX
|
|
11941
|
+
efforts: CLAUDE_LOW_TO_MAX,
|
|
11936
11942
|
defaultEffort: "medium",
|
|
11937
|
-
...codeModel
|
|
11943
|
+
...codeModel({ contextWindowTokens: CONTEXT_1M })
|
|
11938
11944
|
},
|
|
11939
11945
|
{
|
|
11940
11946
|
alias: "haiku",
|
|
11941
11947
|
label: "Haiku",
|
|
11942
11948
|
providerModel: "haiku",
|
|
11943
11949
|
efforts: [],
|
|
11944
|
-
...codeModel
|
|
11950
|
+
...codeModel()
|
|
11945
11951
|
}
|
|
11946
11952
|
]
|
|
11947
11953
|
},
|
|
@@ -11954,49 +11960,49 @@ var PROVIDER_CATALOG$1 = {
|
|
|
11954
11960
|
alias: "gpt-5.5",
|
|
11955
11961
|
label: "GPT-5.5",
|
|
11956
11962
|
providerModel: "gpt-5.5",
|
|
11957
|
-
efforts: CODEX_REASONING
|
|
11963
|
+
efforts: CODEX_REASONING,
|
|
11958
11964
|
defaultEffort: "medium",
|
|
11959
|
-
...codeModel
|
|
11965
|
+
...codeModel({ contextWindowTokens: CONTEXT_200K })
|
|
11960
11966
|
},
|
|
11961
11967
|
{
|
|
11962
11968
|
alias: "gpt-5.4",
|
|
11963
11969
|
label: "GPT-5.4",
|
|
11964
11970
|
providerModel: "gpt-5.4",
|
|
11965
|
-
efforts: CODEX_REASONING
|
|
11971
|
+
efforts: CODEX_REASONING,
|
|
11966
11972
|
defaultEffort: "medium",
|
|
11967
|
-
...codeModel
|
|
11973
|
+
...codeModel({ contextWindowTokens: CONTEXT_200K })
|
|
11968
11974
|
},
|
|
11969
11975
|
{
|
|
11970
11976
|
alias: "gpt-5.4-mini",
|
|
11971
11977
|
label: "GPT-5.4 Mini",
|
|
11972
11978
|
providerModel: "gpt-5.4-mini",
|
|
11973
|
-
efforts: CODEX_REASONING
|
|
11979
|
+
efforts: CODEX_REASONING,
|
|
11974
11980
|
defaultEffort: "medium",
|
|
11975
|
-
...codeModel
|
|
11981
|
+
...codeModel({ contextWindowTokens: CONTEXT_200K })
|
|
11976
11982
|
},
|
|
11977
11983
|
{
|
|
11978
11984
|
alias: "gpt-5.3-codex",
|
|
11979
11985
|
label: "GPT-5.3 Codex",
|
|
11980
11986
|
providerModel: "gpt-5.3-codex",
|
|
11981
|
-
efforts: CODEX_REASONING
|
|
11987
|
+
efforts: CODEX_REASONING,
|
|
11982
11988
|
defaultEffort: "medium",
|
|
11983
|
-
...codeModel
|
|
11989
|
+
...codeModel({ contextWindowTokens: CONTEXT_200K })
|
|
11984
11990
|
},
|
|
11985
11991
|
{
|
|
11986
11992
|
alias: "gpt-5.3-codex-spark",
|
|
11987
11993
|
label: "GPT-5.3 Codex Spark",
|
|
11988
11994
|
providerModel: "gpt-5.3-codex-spark",
|
|
11989
|
-
efforts: CODEX_REASONING
|
|
11995
|
+
efforts: CODEX_REASONING,
|
|
11990
11996
|
defaultEffort: "high",
|
|
11991
|
-
...codeModel
|
|
11997
|
+
...codeModel({ contextWindowTokens: CONTEXT_200K })
|
|
11992
11998
|
},
|
|
11993
11999
|
{
|
|
11994
12000
|
alias: "gpt-5.2",
|
|
11995
12001
|
label: "GPT-5.2",
|
|
11996
12002
|
providerModel: "gpt-5.2",
|
|
11997
|
-
efforts: CODEX_REASONING
|
|
12003
|
+
efforts: CODEX_REASONING,
|
|
11998
12004
|
defaultEffort: "medium",
|
|
11999
|
-
...codeModel
|
|
12005
|
+
...codeModel({ contextWindowTokens: CONTEXT_200K })
|
|
12000
12006
|
}
|
|
12001
12007
|
]
|
|
12002
12008
|
}
|
|
@@ -12007,7 +12013,7 @@ function firstAvailableProvider(orchestrator) {
|
|
|
12007
12013
|
return orchestrator?.providers[0] ?? "claude";
|
|
12008
12014
|
}
|
|
12009
12015
|
function defaultModelFor(provider) {
|
|
12010
|
-
return PROVIDER_CATALOG
|
|
12016
|
+
return PROVIDER_CATALOG[provider]?.defaultModel ?? "";
|
|
12011
12017
|
}
|
|
12012
12018
|
function pathWithinBase(path, baseDir) {
|
|
12013
12019
|
const value = path.trim().replace(/\\/g, "/").replace(/\/+$/, "");
|
|
@@ -13884,7 +13890,7 @@ var useRelayStore = create$1()(persist((set, get) => ({
|
|
|
13884
13890
|
const provCaps = agent.providerCapabilities;
|
|
13885
13891
|
const provider = provCaps?.model?.provider || (typeof agent.meta?.provider === "string" ? agent.meta.provider : "");
|
|
13886
13892
|
const reportedModel = provCaps?.model?.alias || provCaps?.model?.id || "";
|
|
13887
|
-
const model = ((provider ? PROVIDER_CATALOG
|
|
13893
|
+
const model = ((provider ? PROVIDER_CATALOG[provider] : void 0)?.models.find((m) => m.alias === reportedModel || m.providerModel === reportedModel))?.alias || "";
|
|
13888
13894
|
const effort = provCaps?.model?.effort || "";
|
|
13889
13895
|
const cwd = typeof agent.meta?.cwd === "string" ? agent.meta.cwd : "";
|
|
13890
13896
|
const approval = provCaps?.session?.approvalMode || (typeof agent.meta?.approvalMode === "string" ? agent.meta.approvalMode : "guarded");
|
|
@@ -91956,10 +91962,10 @@ function wrap(middleware, callback) {
|
|
|
91956
91962
|
//#endregion
|
|
91957
91963
|
//#region node_modules/vfile/lib/minpath.browser.js
|
|
91958
91964
|
var minpath = {
|
|
91959
|
-
basename: basename$
|
|
91960
|
-
dirname
|
|
91965
|
+
basename: basename$2,
|
|
91966
|
+
dirname,
|
|
91961
91967
|
extname,
|
|
91962
|
-
join
|
|
91968
|
+
join,
|
|
91963
91969
|
sep: "/"
|
|
91964
91970
|
};
|
|
91965
91971
|
/**
|
|
@@ -91972,7 +91978,7 @@ var minpath = {
|
|
|
91972
91978
|
* @returns {string}
|
|
91973
91979
|
* Stem or basename.
|
|
91974
91980
|
*/
|
|
91975
|
-
function basename$
|
|
91981
|
+
function basename$2(path, extname) {
|
|
91976
91982
|
if (extname !== void 0 && typeof extname !== "string") throw new TypeError("\"ext\" argument must be a string");
|
|
91977
91983
|
assertPath$1(path);
|
|
91978
91984
|
let start = 0;
|
|
@@ -92024,7 +92030,7 @@ function basename$3(path, extname) {
|
|
|
92024
92030
|
* @returns {string}
|
|
92025
92031
|
* File path.
|
|
92026
92032
|
*/
|
|
92027
|
-
function dirname
|
|
92033
|
+
function dirname(path) {
|
|
92028
92034
|
assertPath$1(path);
|
|
92029
92035
|
if (path.length === 0) return ".";
|
|
92030
92036
|
let end = -1;
|
|
@@ -92085,7 +92091,7 @@ function extname(path) {
|
|
|
92085
92091
|
* @returns {string}
|
|
92086
92092
|
* File path.
|
|
92087
92093
|
*/
|
|
92088
|
-
function join
|
|
92094
|
+
function join(...segments) {
|
|
92089
92095
|
let index = -1;
|
|
92090
92096
|
/** @type {string | undefined} */
|
|
92091
92097
|
let joined;
|
|
@@ -101378,10 +101384,10 @@ function mergeObjects(target, ...sources) {
|
|
|
101378
101384
|
});
|
|
101379
101385
|
return target;
|
|
101380
101386
|
}
|
|
101381
|
-
function basename$
|
|
101387
|
+
function basename$1(path) {
|
|
101382
101388
|
const idx = ~path.lastIndexOf("/") || ~path.lastIndexOf("\\");
|
|
101383
101389
|
if (idx === 0) return path;
|
|
101384
|
-
else if (~idx === path.length - 1) return basename$
|
|
101390
|
+
else if (~idx === path.length - 1) return basename$1(path.substring(0, path.length - 1));
|
|
101385
101391
|
else return path.substr(~idx + 1);
|
|
101386
101392
|
}
|
|
101387
101393
|
function strcmp(a, b) {
|
|
@@ -102434,7 +102440,7 @@ var init_dist$2 = __esmMin((() => {
|
|
|
102434
102440
|
this._contentNameIsCapturing = RegexSource.hasCaptures(this._contentName);
|
|
102435
102441
|
}
|
|
102436
102442
|
get debugName() {
|
|
102437
|
-
const location = this.$location ? `${basename$
|
|
102443
|
+
const location = this.$location ? `${basename$1(this.$location.filename)}:${this.$location.line}` : "unknown";
|
|
102438
102444
|
return `${this.constructor.name}#${this.id} @ ${location}`;
|
|
102439
102445
|
}
|
|
102440
102446
|
getName(lineText, captureIndices) {
|
|
@@ -108598,7 +108604,7 @@ function getShiki() {
|
|
|
108598
108604
|
function byteLength(value) {
|
|
108599
108605
|
return new TextEncoder().encode(value).length;
|
|
108600
108606
|
}
|
|
108601
|
-
function basename
|
|
108607
|
+
function basename(path) {
|
|
108602
108608
|
return path.split("/").filter(Boolean).pop() || path;
|
|
108603
108609
|
}
|
|
108604
108610
|
function detectShebangLanguage(content) {
|
|
@@ -108617,7 +108623,7 @@ function detectShebangLanguage(content) {
|
|
|
108617
108623
|
}
|
|
108618
108624
|
function detectCodeLanguage(path, mediaType, languageHint, content) {
|
|
108619
108625
|
if (languageHint) return languageHint;
|
|
108620
|
-
const name = basename
|
|
108626
|
+
const name = basename(path).toLowerCase();
|
|
108621
108627
|
if (BASENAME_LANGUAGES[name]) return BASENAME_LANGUAGES[name];
|
|
108622
108628
|
if (name.endsWith(".d.ts")) return "typescript";
|
|
108623
108629
|
const shebangLanguage = detectShebangLanguage(content);
|
|
@@ -129426,51 +129432,6 @@ function OrchestratorsView() {
|
|
|
129426
129432
|
});
|
|
129427
129433
|
}
|
|
129428
129434
|
//#endregion
|
|
129429
|
-
//#region ../sdk/dist/types.js
|
|
129430
|
-
/** Terminal workspace statuses shared across server + dashboard filters. */
|
|
129431
|
-
var TERMINAL_WORKSPACE_STATUS_VALUES = [
|
|
129432
|
-
"cleaned",
|
|
129433
|
-
"merged",
|
|
129434
|
-
"abandoned"
|
|
129435
|
-
];
|
|
129436
|
-
var CONTEXT_200K = {
|
|
129437
|
-
value: 2e5,
|
|
129438
|
-
source: "catalog",
|
|
129439
|
-
confidence: "declared"
|
|
129440
|
-
};
|
|
129441
|
-
var CONTEXT_1M = {
|
|
129442
|
-
value: 1e6,
|
|
129443
|
-
source: "catalog",
|
|
129444
|
-
confidence: "declared"
|
|
129445
|
-
};
|
|
129446
|
-
var CODE_MODEL_CAPABILITIES = {
|
|
129447
|
-
modalities: {
|
|
129448
|
-
input: {
|
|
129449
|
-
text: true,
|
|
129450
|
-
image: true
|
|
129451
|
-
},
|
|
129452
|
-
output: { text: true }
|
|
129453
|
-
},
|
|
129454
|
-
tools: {
|
|
129455
|
-
code: true,
|
|
129456
|
-
review: true,
|
|
129457
|
-
debug: true,
|
|
129458
|
-
refactor: true
|
|
129459
|
-
},
|
|
129460
|
-
source: "catalog",
|
|
129461
|
-
confidence: "declared"
|
|
129462
|
-
};
|
|
129463
|
-
function codeModel(limits) {
|
|
129464
|
-
return {
|
|
129465
|
-
...limits ? { limits } : {},
|
|
129466
|
-
capabilities: CODE_MODEL_CAPABILITIES
|
|
129467
|
-
};
|
|
129468
|
-
}
|
|
129469
|
-
({ ...codeModel({ contextWindowTokens: CONTEXT_1M }) }), { ...codeModel({ contextWindowTokens: CONTEXT_200K }) }, { ...codeModel({ contextWindowTokens: CONTEXT_1M }) }, { ...codeModel({ contextWindowTokens: CONTEXT_200K }) }, { ...codeModel({ contextWindowTokens: CONTEXT_1M }) }, { ...codeModel({ contextWindowTokens: CONTEXT_200K }) }, { ...codeModel({ contextWindowTokens: CONTEXT_1M }) }, { ...codeModel({ contextWindowTokens: CONTEXT_200K }) }, { ...codeModel({ contextWindowTokens: CONTEXT_1M }) }, { ...codeModel() }, { ...codeModel({ contextWindowTokens: CONTEXT_200K }) }, { ...codeModel({ contextWindowTokens: CONTEXT_200K }) }, { ...codeModel({ contextWindowTokens: CONTEXT_200K }) }, { ...codeModel({ contextWindowTokens: CONTEXT_200K }) }, { ...codeModel({ contextWindowTokens: CONTEXT_200K }) }, { ...codeModel({ contextWindowTokens: CONTEXT_200K }) };
|
|
129470
|
-
(0, (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
129471
|
-
module.exports = {};
|
|
129472
|
-
})))().tmpdir)();
|
|
129473
|
-
//#endregion
|
|
129474
129435
|
//#region src/components/views/workspaces.tsx
|
|
129475
129436
|
var LIVE_STATUSES = new Set([
|
|
129476
129437
|
"active",
|
|
@@ -133197,7 +133158,7 @@ function blankForm(orchestratorId = "") {
|
|
|
133197
133158
|
orchestratorId,
|
|
133198
133159
|
targetMode: "existing_agent",
|
|
133199
133160
|
provider: "codex",
|
|
133200
|
-
model: PROVIDER_CATALOG
|
|
133161
|
+
model: PROVIDER_CATALOG.codex.defaultModel || "",
|
|
133201
133162
|
effort: "",
|
|
133202
133163
|
profile: "default-relay",
|
|
133203
133164
|
label: "",
|
|
@@ -133236,7 +133197,7 @@ function automationToForm(automation) {
|
|
|
133236
133197
|
orchestratorId: automation.orchestratorId,
|
|
133237
133198
|
targetMode: policy.mode,
|
|
133238
133199
|
provider: policy.mode === "on_demand_agent" ? policy.provider : policy.selector.provider || "codex",
|
|
133239
|
-
model: policy.mode === "on_demand_agent" ? policy.model || PROVIDER_CATALOG
|
|
133200
|
+
model: policy.mode === "on_demand_agent" ? policy.model || PROVIDER_CATALOG[policy.provider].defaultModel || "" : "",
|
|
133240
133201
|
effort: policy.mode === "on_demand_agent" ? policy.effort || "" : "",
|
|
133241
133202
|
profile: policy.mode === "on_demand_agent" ? policy.profile || "default-relay" : "default-relay",
|
|
133242
133203
|
label: policy.mode === "existing_agent" ? policy.selector.label || "" : "",
|
|
@@ -133646,21 +133607,21 @@ function AutomationCard({ automation, runs, now, selected, onEdit, onRun, onTogg
|
|
|
133646
133607
|
}
|
|
133647
133608
|
function AutomationEditor({ form, selected, saving, orchestrators, agentProfiles, onChange, onSave }) {
|
|
133648
133609
|
const providers = orchestrators.find((orch) => orch.id === form.orchestratorId)?.providers || [];
|
|
133649
|
-
const models = PROVIDER_CATALOG
|
|
133610
|
+
const models = PROVIDER_CATALOG[form.provider]?.models || [];
|
|
133650
133611
|
const efforts = models.find((model) => model.alias === form.model)?.efforts || [];
|
|
133651
133612
|
function selectOrchestrator(orchestratorId) {
|
|
133652
133613
|
const provider = orchestrators.find((orch) => orch.id === orchestratorId)?.providers[0] || form.provider;
|
|
133653
133614
|
onChange({
|
|
133654
133615
|
orchestratorId,
|
|
133655
133616
|
provider,
|
|
133656
|
-
model: PROVIDER_CATALOG
|
|
133617
|
+
model: PROVIDER_CATALOG[provider]?.defaultModel || "",
|
|
133657
133618
|
effort: ""
|
|
133658
133619
|
});
|
|
133659
133620
|
}
|
|
133660
133621
|
function selectProvider(provider) {
|
|
133661
133622
|
onChange({
|
|
133662
133623
|
provider,
|
|
133663
|
-
model: PROVIDER_CATALOG
|
|
133624
|
+
model: PROVIDER_CATALOG[provider]?.defaultModel || "",
|
|
133664
133625
|
effort: ""
|
|
133665
133626
|
});
|
|
133666
133627
|
}
|
|
@@ -157416,7 +157377,7 @@ function OrchestratorSpawnModal() {
|
|
|
157416
157377
|
const agentProfiles = useRelayStore((s) => s.agentProfiles);
|
|
157417
157378
|
const orch = orchestrators.find((o) => o.id === orchId);
|
|
157418
157379
|
const providers = orch?.providers || [];
|
|
157419
|
-
const models = PROVIDER_CATALOG
|
|
157380
|
+
const models = PROVIDER_CATALOG[provider]?.models || [];
|
|
157420
157381
|
const selectedModel = models.find((m) => m.alias === model);
|
|
157421
157382
|
const efforts = selectedModel?.efforts || [];
|
|
157422
157383
|
const canSpawn = Boolean(orch && providers.length > 0 && cwd.trim());
|
|
@@ -157426,7 +157387,7 @@ function OrchestratorSpawnModal() {
|
|
|
157426
157387
|
set({
|
|
157427
157388
|
spawnOrchId: nextId,
|
|
157428
157389
|
spawnProvider: nextProvider,
|
|
157429
|
-
spawnModel: nextProvider ? PROVIDER_CATALOG
|
|
157390
|
+
spawnModel: nextProvider ? PROVIDER_CATALOG[nextProvider]?.defaultModel || "" : "",
|
|
157430
157391
|
spawnEffort: "",
|
|
157431
157392
|
spawnCwd: nextOrch?.baseDir || ""
|
|
157432
157393
|
});
|
|
@@ -157434,7 +157395,7 @@ function OrchestratorSpawnModal() {
|
|
|
157434
157395
|
function selectProvider(nextProvider) {
|
|
157435
157396
|
set({
|
|
157436
157397
|
spawnProvider: nextProvider,
|
|
157437
|
-
spawnModel: PROVIDER_CATALOG
|
|
157398
|
+
spawnModel: PROVIDER_CATALOG[nextProvider]?.defaultModel || "",
|
|
157438
157399
|
spawnEffort: ""
|
|
157439
157400
|
});
|
|
157440
157401
|
}
|
|
@@ -157763,7 +157724,7 @@ function ManagedPolicyModal() {
|
|
|
157763
157724
|
const submitPolicy = useRelayStore((s) => s.submitPolicy);
|
|
157764
157725
|
const orch = orchestrators.find((o) => o.id === m.orchestratorId);
|
|
157765
157726
|
const providers = orch?.providers || [];
|
|
157766
|
-
const models = PROVIDER_CATALOG
|
|
157727
|
+
const models = PROVIDER_CATALOG[m.provider]?.models || [];
|
|
157767
157728
|
const selectedModel = models.find((model) => model.alias === m.model);
|
|
157768
157729
|
const efforts = selectedModel?.efforts || [];
|
|
157769
157730
|
const isEditing = Boolean(m.editing);
|
|
@@ -157779,7 +157740,7 @@ function ManagedPolicyModal() {
|
|
|
157779
157740
|
update({
|
|
157780
157741
|
orchestratorId,
|
|
157781
157742
|
provider,
|
|
157782
|
-
model: PROVIDER_CATALOG
|
|
157743
|
+
model: PROVIDER_CATALOG[provider]?.defaultModel || "",
|
|
157783
157744
|
effort: ""
|
|
157784
157745
|
});
|
|
157785
157746
|
}
|
|
@@ -157787,7 +157748,7 @@ function ManagedPolicyModal() {
|
|
|
157787
157748
|
update({
|
|
157788
157749
|
provider,
|
|
157789
157750
|
rig: "",
|
|
157790
|
-
model: PROVIDER_CATALOG
|
|
157751
|
+
model: PROVIDER_CATALOG[provider]?.defaultModel || "",
|
|
157791
157752
|
effort: ""
|
|
157792
157753
|
});
|
|
157793
157754
|
}
|