@ycodium-ai/agent-antigravity 0.2.3710 → 0.2.3766
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/index.js +36 -1
- package/locales/en.json +7 -2
- package/locales/zh-CN.json +7 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1385,6 +1385,10 @@ var require_yauzl = __commonJS({
|
|
|
1385
1385
|
|
|
1386
1386
|
// src/index.ts
|
|
1387
1387
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
1388
|
+
import {
|
|
1389
|
+
EXECUTOR_EFFECTIVE_PAYLOAD_SCHEMA,
|
|
1390
|
+
readExecutorEffectiveRequest
|
|
1391
|
+
} from "@ycodium-ai/plugin-api/executor";
|
|
1388
1392
|
|
|
1389
1393
|
// src/signIn.ts
|
|
1390
1394
|
var ANTIGRAVITY_SIGN_IN_REQUIRED_MESSAGE = "Antigravity is not signed in. Sign in with your Google account, then try again.";
|
|
@@ -30598,6 +30602,8 @@ var ANTIGRAVITY_CARD = {
|
|
|
30598
30602
|
launchArgs: "",
|
|
30599
30603
|
// 账户目录由插件按实例私有地建,GEMINI_HOME 由插件自己注入;宿主不替它投变量。
|
|
30600
30604
|
homeEnvVar: "",
|
|
30605
|
+
// 设置表单里留空的格子此刻会用什么,见 index.ts 的同名命令。
|
|
30606
|
+
effectiveCommand: "effectiveConfig",
|
|
30601
30607
|
environment: [],
|
|
30602
30608
|
install: null,
|
|
30603
30609
|
signIn: [],
|
|
@@ -34812,6 +34818,7 @@ var capturedDeps;
|
|
|
34812
34818
|
var executors = [
|
|
34813
34819
|
{
|
|
34814
34820
|
card: ANTIGRAVITY_CARD,
|
|
34821
|
+
lifecycle: [{ kind: "detect", reversible: true }],
|
|
34815
34822
|
createInstance: async (config2, host) => {
|
|
34816
34823
|
host.log.info("createInstance");
|
|
34817
34824
|
if (capturedDeps === void 0) {
|
|
@@ -34823,7 +34830,7 @@ var executors = [
|
|
|
34823
34830
|
];
|
|
34824
34831
|
var index_default = definePlugin({
|
|
34825
34832
|
id: "agent-antigravity",
|
|
34826
|
-
apiVersion:
|
|
34833
|
+
apiVersion: 56,
|
|
34827
34834
|
executors,
|
|
34828
34835
|
activate(ctx) {
|
|
34829
34836
|
const runtime = createRuntimeManager({
|
|
@@ -34833,6 +34840,34 @@ var index_default = definePlugin({
|
|
|
34833
34840
|
});
|
|
34834
34841
|
capturedDeps = { dataDir: ctx.paths.dataDir, attachments: ctx.attachments, runtime };
|
|
34835
34842
|
registerRuntimeCommands(ctx, runtime);
|
|
34843
|
+
ctx.command({
|
|
34844
|
+
name: "effectiveConfig",
|
|
34845
|
+
description: "Settings form: the program and account directory empty fields resolve to.",
|
|
34846
|
+
scope: "read",
|
|
34847
|
+
payloadSchema: EXECUTOR_EFFECTIVE_PAYLOAD_SCHEMA,
|
|
34848
|
+
handle: async (payload) => {
|
|
34849
|
+
const request2 = readExecutorEffectiveRequest(payload);
|
|
34850
|
+
const program = await runtime.resolve({ binaryPath: "", environment: request2.environment }).then(
|
|
34851
|
+
(found) => ({
|
|
34852
|
+
value: found.executablePath,
|
|
34853
|
+
detailKey: `form.binaryPath.${found.source === "managed" ? "managed" : "path"}`
|
|
34854
|
+
}),
|
|
34855
|
+
() => ({ detailKey: "form.binaryPath.notInstalled" })
|
|
34856
|
+
);
|
|
34857
|
+
return {
|
|
34858
|
+
binaryPath: program,
|
|
34859
|
+
// 私有目录按实例 id 起名,添加时还没有 id。
|
|
34860
|
+
homePath: request2.instanceId === void 0 ? { detailKey: "form.homePath.newInstance" } : {
|
|
34861
|
+
value: resolveAntigravityDirectories({
|
|
34862
|
+
dataDir: ctx.paths.dataDir,
|
|
34863
|
+
instanceId: request2.instanceId,
|
|
34864
|
+
homePath: ""
|
|
34865
|
+
}).profile,
|
|
34866
|
+
detailKey: "form.homePath.private"
|
|
34867
|
+
}
|
|
34868
|
+
};
|
|
34869
|
+
}
|
|
34870
|
+
});
|
|
34836
34871
|
registerAntigravityAuthCommands(ctx);
|
|
34837
34872
|
ctx.log.info("Antigravity executor ready");
|
|
34838
34873
|
}
|
package/locales/en.json
CHANGED
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
"binaryPath": {
|
|
4
4
|
"title": "Program path",
|
|
5
5
|
"description": "Leave empty to use the runtime you download in this provider’s settings after adding it, or the `agy_acp_server` program on PATH. To use your own copy, enter its absolute path; its `localharness_external` companion file must sit in the same folder.",
|
|
6
|
-
"placeholder": "Use the downloaded runtime"
|
|
6
|
+
"placeholder": "Use the downloaded runtime",
|
|
7
|
+
"managed": "downloaded runtime",
|
|
8
|
+
"path": "agy_acp_server on PATH",
|
|
9
|
+
"notInstalled": "Not installed: download the runtime in this provider's settings"
|
|
7
10
|
},
|
|
8
11
|
"homePath": {
|
|
9
12
|
"title": "Account directory",
|
|
10
13
|
"description": "The Google sign-in and conversation history live here, so providers sharing this directory share one sign-in and can pick up each other's threads. Leave empty to give this provider its own private directory.",
|
|
11
|
-
"placeholder": "e.g. ~/.antigravity-work"
|
|
14
|
+
"placeholder": "e.g. ~/.antigravity-work",
|
|
15
|
+
"private": "private to this provider",
|
|
16
|
+
"newInstance": "A private directory for this provider, created when you add it"
|
|
12
17
|
}
|
|
13
18
|
},
|
|
14
19
|
"common": {
|
package/locales/zh-CN.json
CHANGED
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
"binaryPath": {
|
|
4
4
|
"title": "程序路径",
|
|
5
5
|
"description": "留空即可:添加之后在此 provider 的设置里下载运行时,或者使用 PATH 上的 `agy_acp_server`。要用自己的那一份就填它的绝对路径,它的配套文件 `localharness_external` 必须放在同一个文件夹里。",
|
|
6
|
-
"placeholder": "使用下载的运行时"
|
|
6
|
+
"placeholder": "使用下载的运行时",
|
|
7
|
+
"managed": "下载的运行时",
|
|
8
|
+
"path": "PATH 上的 agy_acp_server",
|
|
9
|
+
"notInstalled": "未安装:在这个 provider 的设置里下载运行时"
|
|
7
10
|
},
|
|
8
11
|
"homePath": {
|
|
9
12
|
"title": "账号目录",
|
|
10
13
|
"description": "Google 登录状态和会话历史都保存在这里,因此共用同一目录的 provider 共享一次登录,并可以接手彼此的会话。留空则这个 provider 使用自己独立的私有目录。",
|
|
11
|
-
"placeholder": "例如 ~/.antigravity-work"
|
|
14
|
+
"placeholder": "例如 ~/.antigravity-work",
|
|
15
|
+
"private": "这个 provider 私有",
|
|
16
|
+
"newInstance": "添加后为这个 provider 建一个私有目录"
|
|
12
17
|
}
|
|
13
18
|
},
|
|
14
19
|
"common": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-antigravity",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3766",
|
|
4
4
|
"description": "Google Antigravity executor: runs the Antigravity agent over Agent Client Protocol stdio.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vite-plus": "0.2.2",
|
|
33
33
|
"yauzl": "^3.4.0",
|
|
34
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
34
|
+
"@ycodium-ai/plugin-api": "0.2.3766",
|
|
35
35
|
"ycodium-executor-testing": "0.0.0",
|
|
36
|
-
"ycodium-acp-executor": "0.2.
|
|
36
|
+
"ycodium-acp-executor": "0.2.3766"
|
|
37
37
|
},
|
|
38
38
|
"ycodium": {
|
|
39
39
|
"plugin": "./dist/index.js",
|