zam-core 0.11.0 → 0.12.0
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/cli/app.js +80 -1
- package/dist/cli/app.js.map +1 -1
- package/dist/cli/commands/mcp.js +1169 -468
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/copilot-extension/host.bundle.js +1 -1
- package/dist/copilot-extension/manifest.json +1 -1
- package/dist/copilot-extension/mcp-client.bundle.mjs +1 -1
- package/dist/index.d.ts +22 -2
- package/dist/index.js +79 -0
- package/dist/index.js.map +1 -1
- package/dist/ui/graph-panel.html +1 -1
- package/dist/ui/recall-panel.html +1 -1
- package/dist/ui/settings-panel.html +1 -1
- package/dist/ui/studio-panel.html +2 -2
- package/dist/vscode-extension/ZAM_Companion_0.12.0.vsix +0 -0
- package/dist/vscode-extension/extension.cjs +34 -34
- package/dist/vscode-extension/manifest.json +2 -2
- package/package.json +1 -1
- package/dist/vscode-extension/ZAM_Companion_0.11.0.vsix +0 -0
package/dist/cli/app.js
CHANGED
|
@@ -6178,9 +6178,18 @@ function getMachineCompanionConfig(path = defaultConfigPath()) {
|
|
|
6178
6178
|
if (typeof raw.selectedEvaluatorId === "string") {
|
|
6179
6179
|
result.selectedEvaluatorId = raw.selectedEvaluatorId;
|
|
6180
6180
|
}
|
|
6181
|
+
if (typeof raw.selectedVscodeEvaluatorId === "string") {
|
|
6182
|
+
result.selectedVscodeEvaluatorId = raw.selectedVscodeEvaluatorId;
|
|
6183
|
+
}
|
|
6184
|
+
if (typeof raw.selectedAntigravityEvaluatorId === "string") {
|
|
6185
|
+
result.selectedAntigravityEvaluatorId = raw.selectedAntigravityEvaluatorId;
|
|
6186
|
+
}
|
|
6181
6187
|
if (typeof raw.selectedVscodeModelId === "string") {
|
|
6182
6188
|
result.selectedVscodeModelId = raw.selectedVscodeModelId;
|
|
6183
6189
|
}
|
|
6190
|
+
if (typeof raw.selectedAntigravityModelId === "string") {
|
|
6191
|
+
result.selectedAntigravityModelId = raw.selectedAntigravityModelId;
|
|
6192
|
+
}
|
|
6184
6193
|
if (raw.collapsed && typeof raw.collapsed === "object" && !Array.isArray(raw.collapsed)) {
|
|
6185
6194
|
const collapsed = {};
|
|
6186
6195
|
for (const [surface, value] of Object.entries(raw.collapsed)) {
|
|
@@ -6211,6 +6220,34 @@ function updateMachineCompanionConfig(update, path = defaultConfigPath()) {
|
|
|
6211
6220
|
delete companion.selectedEvaluatorId;
|
|
6212
6221
|
}
|
|
6213
6222
|
}
|
|
6223
|
+
if ("selectedVscodeEvaluatorId" in update) {
|
|
6224
|
+
if (update.selectedVscodeEvaluatorId) {
|
|
6225
|
+
companion.selectedVscodeEvaluatorId = update.selectedVscodeEvaluatorId;
|
|
6226
|
+
} else {
|
|
6227
|
+
delete companion.selectedVscodeEvaluatorId;
|
|
6228
|
+
}
|
|
6229
|
+
}
|
|
6230
|
+
if ("selectedAntigravityEvaluatorId" in update) {
|
|
6231
|
+
if (update.selectedAntigravityEvaluatorId) {
|
|
6232
|
+
companion.selectedAntigravityEvaluatorId = update.selectedAntigravityEvaluatorId;
|
|
6233
|
+
} else {
|
|
6234
|
+
delete companion.selectedAntigravityEvaluatorId;
|
|
6235
|
+
}
|
|
6236
|
+
}
|
|
6237
|
+
if ("selectedVscodeModelId" in update) {
|
|
6238
|
+
if (update.selectedVscodeModelId) {
|
|
6239
|
+
companion.selectedVscodeModelId = update.selectedVscodeModelId;
|
|
6240
|
+
} else {
|
|
6241
|
+
delete companion.selectedVscodeModelId;
|
|
6242
|
+
}
|
|
6243
|
+
}
|
|
6244
|
+
if ("selectedAntigravityModelId" in update) {
|
|
6245
|
+
if (update.selectedAntigravityModelId) {
|
|
6246
|
+
companion.selectedAntigravityModelId = update.selectedAntigravityModelId;
|
|
6247
|
+
} else {
|
|
6248
|
+
delete companion.selectedAntigravityModelId;
|
|
6249
|
+
}
|
|
6250
|
+
}
|
|
6214
6251
|
if (update.collapsed) {
|
|
6215
6252
|
companion.collapsed = {
|
|
6216
6253
|
...companion.collapsed ?? {},
|
|
@@ -6244,6 +6281,30 @@ function setCompanionSelectedEvaluatorId(evaluatorId, path = defaultConfigPath()
|
|
|
6244
6281
|
}
|
|
6245
6282
|
saveMachineCompanionConfig(companion, path);
|
|
6246
6283
|
}
|
|
6284
|
+
function getCompanionSelectedVscodeEvaluatorId(path = defaultConfigPath()) {
|
|
6285
|
+
return getMachineCompanionConfig(path).selectedVscodeEvaluatorId;
|
|
6286
|
+
}
|
|
6287
|
+
function setCompanionSelectedVscodeEvaluatorId(evaluatorId, path = defaultConfigPath()) {
|
|
6288
|
+
const companion = getMachineCompanionConfig(path);
|
|
6289
|
+
if (evaluatorId) {
|
|
6290
|
+
companion.selectedVscodeEvaluatorId = evaluatorId;
|
|
6291
|
+
} else {
|
|
6292
|
+
delete companion.selectedVscodeEvaluatorId;
|
|
6293
|
+
}
|
|
6294
|
+
saveMachineCompanionConfig(companion, path);
|
|
6295
|
+
}
|
|
6296
|
+
function getCompanionSelectedAntigravityEvaluatorId(path = defaultConfigPath()) {
|
|
6297
|
+
return getMachineCompanionConfig(path).selectedAntigravityEvaluatorId;
|
|
6298
|
+
}
|
|
6299
|
+
function setCompanionSelectedAntigravityEvaluatorId(evaluatorId, path = defaultConfigPath()) {
|
|
6300
|
+
const companion = getMachineCompanionConfig(path);
|
|
6301
|
+
if (evaluatorId) {
|
|
6302
|
+
companion.selectedAntigravityEvaluatorId = evaluatorId;
|
|
6303
|
+
} else {
|
|
6304
|
+
delete companion.selectedAntigravityEvaluatorId;
|
|
6305
|
+
}
|
|
6306
|
+
saveMachineCompanionConfig(companion, path);
|
|
6307
|
+
}
|
|
6247
6308
|
function getCompanionSelectedVscodeModelId(path = defaultConfigPath()) {
|
|
6248
6309
|
return getMachineCompanionConfig(path).selectedVscodeModelId;
|
|
6249
6310
|
}
|
|
@@ -6256,6 +6317,18 @@ function setCompanionSelectedVscodeModelId(modelId, path = defaultConfigPath())
|
|
|
6256
6317
|
}
|
|
6257
6318
|
saveMachineCompanionConfig(companion, path);
|
|
6258
6319
|
}
|
|
6320
|
+
function getCompanionSelectedAntigravityModelId(path = defaultConfigPath()) {
|
|
6321
|
+
return getMachineCompanionConfig(path).selectedAntigravityModelId;
|
|
6322
|
+
}
|
|
6323
|
+
function setCompanionSelectedAntigravityModelId(modelId, path = defaultConfigPath()) {
|
|
6324
|
+
const companion = getMachineCompanionConfig(path);
|
|
6325
|
+
if (modelId) {
|
|
6326
|
+
companion.selectedAntigravityModelId = modelId;
|
|
6327
|
+
} else {
|
|
6328
|
+
delete companion.selectedAntigravityModelId;
|
|
6329
|
+
}
|
|
6330
|
+
saveMachineCompanionConfig(companion, path);
|
|
6331
|
+
}
|
|
6259
6332
|
function getCompanionCollapsed(path = defaultConfigPath()) {
|
|
6260
6333
|
return getMachineCompanionConfig(path).collapsed ?? {};
|
|
6261
6334
|
}
|
|
@@ -6984,8 +7057,11 @@ __export(kernel_exports, {
|
|
|
6984
7057
|
getCardById: () => getCardById,
|
|
6985
7058
|
getCardDeletionImpact: () => getCardDeletionImpact,
|
|
6986
7059
|
getCompanionCollapsed: () => getCompanionCollapsed,
|
|
7060
|
+
getCompanionSelectedAntigravityEvaluatorId: () => getCompanionSelectedAntigravityEvaluatorId,
|
|
7061
|
+
getCompanionSelectedAntigravityModelId: () => getCompanionSelectedAntigravityModelId,
|
|
6987
7062
|
getCompanionSelectedEvaluatorId: () => getCompanionSelectedEvaluatorId,
|
|
6988
7063
|
getCompanionSelectedUserId: () => getCompanionSelectedUserId,
|
|
7064
|
+
getCompanionSelectedVscodeEvaluatorId: () => getCompanionSelectedVscodeEvaluatorId,
|
|
6989
7065
|
getCompanionSelectedVscodeModelId: () => getCompanionSelectedVscodeModelId,
|
|
6990
7066
|
getConfiguredWorkspaces: () => getConfiguredWorkspaces,
|
|
6991
7067
|
getDatabaseTargetInfo: () => getDatabaseTargetInfo,
|
|
@@ -7098,8 +7174,11 @@ __export(kernel_exports, {
|
|
|
7098
7174
|
setActiveWorkspaceId: () => setActiveWorkspaceId,
|
|
7099
7175
|
setAgentConnectAutoDone: () => setAgentConnectAutoDone,
|
|
7100
7176
|
setCompanionCollapsed: () => setCompanionCollapsed,
|
|
7177
|
+
setCompanionSelectedAntigravityEvaluatorId: () => setCompanionSelectedAntigravityEvaluatorId,
|
|
7178
|
+
setCompanionSelectedAntigravityModelId: () => setCompanionSelectedAntigravityModelId,
|
|
7101
7179
|
setCompanionSelectedEvaluatorId: () => setCompanionSelectedEvaluatorId,
|
|
7102
7180
|
setCompanionSelectedUserId: () => setCompanionSelectedUserId,
|
|
7181
|
+
setCompanionSelectedVscodeEvaluatorId: () => setCompanionSelectedVscodeEvaluatorId,
|
|
7103
7182
|
setCompanionSelectedVscodeModelId: () => setCompanionSelectedVscodeModelId,
|
|
7104
7183
|
setInstallChannel: () => setInstallChannel,
|
|
7105
7184
|
setInstallMode: () => setInstallMode,
|
|
@@ -10260,7 +10339,7 @@ async function readWebLink(url) {
|
|
|
10260
10339
|
redirect: "manual",
|
|
10261
10340
|
signal: controller.signal,
|
|
10262
10341
|
headers: {
|
|
10263
|
-
"User-Agent": "ZAM-Content-Studio/0.
|
|
10342
|
+
"User-Agent": "ZAM-Content-Studio/0.12.0"
|
|
10264
10343
|
}
|
|
10265
10344
|
});
|
|
10266
10345
|
if (res.status >= 300 && res.status < 400) {
|