@sellable/install 0.1.912 → 0.1.913
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/container/Dockerfile +4 -4
- package/container/README.md +1 -1
- package/lib/sellable-agent/fly-admin-image/Dockerfile +38 -0
- package/lib/sellable-agent/fly-admin-image/admin-antigravity.mjs +134 -0
- package/lib/sellable-agent/fly-admin-image/admin-runtime.mjs +13 -1
- package/lib/sellable-agent/fly-admin-image/sellable-admin-antigravity +53 -0
- package/lib/sellable-agent/fly-customer-image/Dockerfile +1 -1
- package/lib/sellable-agent/fly-customer-image/customer-runtime.mjs +1 -1
- package/lib/sellable-agent/host-bootstrap.mjs +1 -1
- package/lib/sellable-agent/host-worker.mjs +1 -1
- package/lib/sellable-agent/profile-materializer.mjs +1 -1
- package/lib/sellable-agent/provisioning-adapter.mjs +1 -1
- package/package.json +1 -1
package/container/Dockerfile
CHANGED
|
@@ -3,12 +3,12 @@ FROM ${HERMES_IMAGE}
|
|
|
3
3
|
|
|
4
4
|
USER root
|
|
5
5
|
|
|
6
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
6
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.913
|
|
7
7
|
ARG MCP_PACKAGE=@sellable/mcp@0.1.1033
|
|
8
8
|
ARG INSTALLER_INTEGRITY
|
|
9
9
|
ARG MCP_INTEGRITY=sha512-d01fFKmJLQIBHBXA5FsWn7lOeX3igg6xh58x10VDLWfqwg1OLzsbaI43UHpUWYQzAsnN+Qivdyk2YYkoNhElEw==
|
|
10
10
|
|
|
11
|
-
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.
|
|
11
|
+
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.913" \
|
|
12
12
|
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.1033" \
|
|
13
13
|
&& test -n "${INSTALLER_INTEGRITY}" \
|
|
14
14
|
&& test "$(npm view "${INSTALLER_PACKAGE}" dist.integrity)" = "${INSTALLER_INTEGRITY}" \
|
|
@@ -23,9 +23,9 @@ RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.912" \
|
|
|
23
23
|
&& mkdir -p /opt/sellable-agent/install-root /opt/sellable-agent/mcp-root \
|
|
24
24
|
&& npm install --prefix /opt/sellable-agent/install-root --omit=dev --ignore-scripts --no-audit --no-fund "${INSTALLER_PACKAGE}" \
|
|
25
25
|
&& npm install --prefix /opt/sellable-agent/mcp-root --omit=dev --ignore-scripts --no-audit --no-fund "${MCP_PACKAGE}" \
|
|
26
|
-
&& node --input-type=module -e "import { readFileSync } from 'node:fs'; const install = JSON.parse(readFileSync('/opt/sellable-agent/install-root/node_modules/@sellable/install/package.json')); const mcp = JSON.parse(readFileSync('/opt/sellable-agent/mcp-root/node_modules/@sellable/mcp/package.json')); if (install.name !== '@sellable/install' || install.version !== '0.1.
|
|
26
|
+
&& node --input-type=module -e "import { readFileSync } from 'node:fs'; const install = JSON.parse(readFileSync('/opt/sellable-agent/install-root/node_modules/@sellable/install/package.json')); const mcp = JSON.parse(readFileSync('/opt/sellable-agent/mcp-root/node_modules/@sellable/mcp/package.json')); if (install.name !== '@sellable/install' || install.version !== '0.1.913' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.1033') throw new Error('package identity rejected');" \
|
|
27
27
|
&& node --input-type=module -e "import { buildExternalRuntimeClosure } from '/opt/sellable-agent/install-root/node_modules/@sellable/install/lib/sellable-agent/external-runtime-builder.mjs'; const built = buildExternalRuntimeClosure({ mcpPackageRoot: '/opt/sellable-agent/mcp-root/node_modules/@sellable/mcp', mcpNodeModulesRoot: '/opt/sellable-agent/mcp-root/node_modules', hermesSourceRoot: '/opt/hermes', ownerUid: 0, ownerGid: 0 }); if (!built.closureDigest) throw new Error('runtime closure rejected');" \
|
|
28
|
-
&& node --input-type=module -e "import { chmodSync, writeFileSync } from 'node:fs'; const release = { installerPackage: '@sellable/install@0.1.
|
|
28
|
+
&& node --input-type=module -e "import { chmodSync, writeFileSync } from 'node:fs'; const release = { installerPackage: '@sellable/install@0.1.913', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.1033', mcpIntegrity: process.argv[2] }; writeFileSync('/opt/sellable-agent/release.json', JSON.stringify(release) + '\\n', { mode: 0o444 }); chmodSync('/opt/sellable-agent/release.json', 0o444);" "${INSTALLER_INTEGRITY}" "${MCP_INTEGRITY}" \
|
|
29
29
|
&& npm cache clean --force
|
|
30
30
|
|
|
31
31
|
COPY entrypoint.sh /usr/local/bin/sellable-agent-container-entrypoint
|
package/container/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
This image is a dedicated Agent worker/runtime boundary beside an existing Hermes dashboard. It never replaces or reconfigures the dashboard container.
|
|
4
4
|
|
|
5
5
|
Build from this directory after
|
|
6
|
-
`@sellable/install@0.1.
|
|
6
|
+
`@sellable/install@0.1.913` is
|
|
7
7
|
published:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
@@ -154,6 +154,40 @@ RUN --mount=type=secret,id=admin_install_tarball,required=false \
|
|
|
154
154
|
/etc/cont-init.d/02-reconcile-profiles; \
|
|
155
155
|
npm cache clean --force
|
|
156
156
|
|
|
157
|
+
# Admin only: Google's agy CLI and the Hermes provider plugin that drives it,
|
|
158
|
+
# so the Admin can run on the Antigravity subscription (Gemini 4 Neon) ahead of
|
|
159
|
+
# Codex and OpenRouter. Both are pinned by content: the agy tarball by its
|
|
160
|
+
# SHA-512 from Google's release manifest, the plugin by its git commit. The
|
|
161
|
+
# plugin goes in Hermes' bundled provider directory, which Hermes discovers for
|
|
162
|
+
# every profile; the bridge contract digests only named files, not this tree.
|
|
163
|
+
# Nothing here signs in: without the Antigravity credential the Admin keeps
|
|
164
|
+
# its Codex-first chain.
|
|
165
|
+
ARG AGY_CLI_VERSION=1.5.13
|
|
166
|
+
ARG AGY_CLI_URL=https://storage.googleapis.com/antigravity-public/antigravity-cli/1.5.13-5999302598852608/linux-x64/cli_linux_x64.tar.gz
|
|
167
|
+
ARG AGY_CLI_SHA512=014b37387703acab1f47cd532c8bb60167a6a3537b0f9891de03f1b1ffa9614307bc83c4b2f7551273b0877d722716b0cd9e26782f6b2a50705db4f05e18c68f
|
|
168
|
+
ARG ANTIGRAVITY_PLUGIN_REPO=https://github.com/soyelmismo/hermes-antigravity-subscription
|
|
169
|
+
ARG ANTIGRAVITY_PLUGIN_COMMIT=f1c1a8ccc5a560b8d5926e2b7e4b544d272d2dd2
|
|
170
|
+
RUN set -eux; \
|
|
171
|
+
work="$(mktemp -d)"; \
|
|
172
|
+
curl --retry 5 --retry-all-errors -fsSL "${AGY_CLI_URL}" -o "${work}/agy.tar.gz"; \
|
|
173
|
+
printf '%s %s\n' "${AGY_CLI_SHA512}" "${work}/agy.tar.gz" | sha512sum -c -; \
|
|
174
|
+
tar -xzf "${work}/agy.tar.gz" -C "${work}" antigravity; \
|
|
175
|
+
install -o root -g root -m 0555 "${work}/antigravity" /usr/local/bin/agy; \
|
|
176
|
+
test "$(HOME="${work}/home" agy --version)" = "${AGY_CLI_VERSION}"; \
|
|
177
|
+
git init -q "${work}/plugin"; \
|
|
178
|
+
git -C "${work}/plugin" fetch -q --depth 1 "${ANTIGRAVITY_PLUGIN_REPO}" "${ANTIGRAVITY_PLUGIN_COMMIT}"; \
|
|
179
|
+
git -C "${work}/plugin" checkout -q FETCH_HEAD; \
|
|
180
|
+
test "$(git -C "${work}/plugin" rev-parse HEAD)" = "${ANTIGRAVITY_PLUGIN_COMMIT}"; \
|
|
181
|
+
plugin_dir=/opt/hermes/plugins/model-providers/antigravity-subscription-directsdk; \
|
|
182
|
+
install -d -o root -g root -m 0555 "${plugin_dir}"; \
|
|
183
|
+
for f in __init__.py client.py debug.py delivery.py models.py plugin.yaml process.py prompt.py stream.py usage.py LICENSE; do \
|
|
184
|
+
install -o root -g root -m 0444 "${work}/plugin/${f}" "${plugin_dir}/${f}"; \
|
|
185
|
+
done; \
|
|
186
|
+
printf '%s\n' "${ANTIGRAVITY_PLUGIN_COMMIT}" > "${plugin_dir}/SOURCE_COMMIT"; \
|
|
187
|
+
chmod 0444 "${plugin_dir}/SOURCE_COMMIT"; \
|
|
188
|
+
PYTHONPATH=/opt/hermes HERMES_HOME="${work}/hermes-home" /opt/hermes/.venv/bin/python -c 'from providers import get_provider_profile; p = get_provider_profile("antigravity-subscription-directsdk"); assert p is not None and p.auth_type == "external_process", p'; \
|
|
189
|
+
rm -rf "${work}"
|
|
190
|
+
|
|
157
191
|
# The MCP turn trust root is the same build secret the customer image bakes.
|
|
158
192
|
# The Admin runtime hands the Product MCP context proxy this exact file plus
|
|
159
193
|
# its fingerprint, so the baked bytes must match the pinned signing contract.
|
|
@@ -167,6 +201,8 @@ RUN --mount=type=secret,id=mcp_trust_root,required=true \
|
|
|
167
201
|
test "$(sha256sum /usr/local/share/sellable-agent/mcp-turn-trust-root.pem | cut -d ' ' -f 1)" = "${MCP_TRUST_ROOT_FINGERPRINT}"
|
|
168
202
|
|
|
169
203
|
COPY fly-admin-image/admin-runtime.mjs /usr/local/lib/sellable-agent/admin-runtime/admin-runtime.mjs
|
|
204
|
+
COPY fly-admin-image/admin-antigravity.mjs /usr/local/lib/sellable-agent/admin-runtime/admin-antigravity.mjs
|
|
205
|
+
COPY fly-admin-image/sellable-admin-antigravity /usr/local/bin/sellable-admin-antigravity
|
|
170
206
|
COPY fly-admin-image/admin-runtime-phase-telemetry.mjs /usr/local/lib/sellable-agent/admin-runtime/admin-runtime-phase-telemetry.mjs
|
|
171
207
|
COPY fly-admin-image/admin-state-generation.mjs /usr/local/lib/sellable-agent/admin-runtime/admin-state-generation.mjs
|
|
172
208
|
COPY fly-admin-image/start-admin-runtime /usr/local/lib/sellable-agent/admin-runtime/start-admin-runtime
|
|
@@ -274,6 +310,8 @@ RUN set -eux; \
|
|
|
274
310
|
&& chmod 0755 /etc \
|
|
275
311
|
&& chmod 0555 \
|
|
276
312
|
/usr/local/lib/sellable-agent/admin-runtime/admin-runtime.mjs \
|
|
313
|
+
/usr/local/lib/sellable-agent/admin-runtime/admin-antigravity.mjs \
|
|
314
|
+
/usr/local/bin/sellable-admin-antigravity \
|
|
277
315
|
/usr/local/lib/sellable-agent/admin-runtime/admin-state-generation.mjs \
|
|
278
316
|
/usr/local/lib/sellable-agent/admin-runtime/start-admin-runtime \
|
|
279
317
|
/usr/local/lib/sellable-agent/fly-customer-image/customer-runtime.mjs \
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// Admin only: run the Admin on the Google Antigravity subscription (Gemini 4
|
|
2
|
+
// Neon through Google's agy CLI) ahead of its Codex and OpenRouter chain.
|
|
3
|
+
// Owner, 2026-11-19: "agy -> codex -> openrouter just for admin machines".
|
|
4
|
+
//
|
|
5
|
+
// The Admin image bakes agy and the Hermes provider plugin that drives it (see
|
|
6
|
+
// fly-admin-image/Dockerfile). Signing in is agy's own Google flow, run once on
|
|
7
|
+
// the Admin as the hermes user with HOME=/opt/data (`sellable-admin-antigravity
|
|
8
|
+
// login`), so the token lives on the Admin volume and agy refreshes it there.
|
|
9
|
+
// Nothing here writes the token. While no valid sign-in is present the Admin
|
|
10
|
+
// keeps the Codex-first chain that Customer runtimes use, so this module
|
|
11
|
+
// changes nothing until someone signs in.
|
|
12
|
+
//
|
|
13
|
+
// Google's Antigravity terms forbid driving the service from third-party
|
|
14
|
+
// software; the owner accepted that risk for the Admin only. Never use this on
|
|
15
|
+
// Customer runtimes.
|
|
16
|
+
import {
|
|
17
|
+
accessSync,
|
|
18
|
+
constants,
|
|
19
|
+
lstatSync,
|
|
20
|
+
readFileSync,
|
|
21
|
+
statSync,
|
|
22
|
+
} from "node:fs";
|
|
23
|
+
import { join } from "node:path";
|
|
24
|
+
import {
|
|
25
|
+
MODEL_AUTH_DEFAULT_MODEL,
|
|
26
|
+
MODEL_AUTH_PROVIDER,
|
|
27
|
+
modelAuthConfigOverlay,
|
|
28
|
+
} from "../model-auth-reconciler.mjs";
|
|
29
|
+
|
|
30
|
+
export const ADMIN_ANTIGRAVITY_PROVIDER = "antigravity-subscription-directsdk";
|
|
31
|
+
export const ADMIN_ANTIGRAVITY_MODEL = "gemini-4-neon";
|
|
32
|
+
// The plugin caps Hermes' xhigh at high.
|
|
33
|
+
export const ADMIN_ANTIGRAVITY_REASONING_EFFORT = "high";
|
|
34
|
+
// A turn waits for agy to start and think, so this leg gets a longer ceiling
|
|
35
|
+
// than the HTTP providers' 60 seconds.
|
|
36
|
+
export const ADMIN_ANTIGRAVITY_REQUEST_TIMEOUT_SECONDS = 120;
|
|
37
|
+
export const ADMIN_ANTIGRAVITY_COMMAND = "/usr/local/bin/agy";
|
|
38
|
+
export const ADMIN_ANTIGRAVITY_PLUGIN_ROOT =
|
|
39
|
+
"/opt/hermes/plugins/model-providers/antigravity-subscription-directsdk";
|
|
40
|
+
// Each idle agy worker holds about 250 MB; release them after two minutes.
|
|
41
|
+
export const ADMIN_ANTIGRAVITY_WORKER_IDLE_SECONDS = 120;
|
|
42
|
+
|
|
43
|
+
const TOKEN_FILE = "antigravity-oauth-token";
|
|
44
|
+
const MAX_TOKEN_BYTES = 64 * 1024;
|
|
45
|
+
|
|
46
|
+
export function adminAntigravityConfigDir(dataRoot) {
|
|
47
|
+
return join(dataRoot, ".gemini", "antigravity-cli");
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* True only when the image has agy and the plugin and a private agy sign-in
|
|
52
|
+
* with a refresh token is on the volume. Any doubt answers false, which keeps
|
|
53
|
+
* the Codex-first chain. The token is read only to check its shape.
|
|
54
|
+
*/
|
|
55
|
+
export function adminAntigravitySignedIn({
|
|
56
|
+
dataRoot,
|
|
57
|
+
command = ADMIN_ANTIGRAVITY_COMMAND,
|
|
58
|
+
pluginRoot = ADMIN_ANTIGRAVITY_PLUGIN_ROOT,
|
|
59
|
+
}) {
|
|
60
|
+
try {
|
|
61
|
+
accessSync(command, constants.X_OK);
|
|
62
|
+
if (!statSync(join(pluginRoot, "__init__.py")).isFile()) return false;
|
|
63
|
+
const path = join(adminAntigravityConfigDir(dataRoot), TOKEN_FILE);
|
|
64
|
+
const stat = lstatSync(path);
|
|
65
|
+
if (
|
|
66
|
+
stat.isSymbolicLink() ||
|
|
67
|
+
!stat.isFile() ||
|
|
68
|
+
(stat.mode & 0o077) !== 0 ||
|
|
69
|
+
stat.size < 16 ||
|
|
70
|
+
stat.size > MAX_TOKEN_BYTES
|
|
71
|
+
) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
const token = JSON.parse(readFileSync(path, "utf8"))?.token;
|
|
75
|
+
return Boolean(
|
|
76
|
+
token &&
|
|
77
|
+
typeof token === "object" &&
|
|
78
|
+
typeof token.refresh_token === "string" &&
|
|
79
|
+
token.refresh_token.length > 0
|
|
80
|
+
);
|
|
81
|
+
} catch {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** Antigravity first, then the unchanged Codex and OpenRouter chain. */
|
|
87
|
+
export function adminAntigravityConfigOverlay(credential) {
|
|
88
|
+
const base = modelAuthConfigOverlay(credential);
|
|
89
|
+
return Object.freeze({
|
|
90
|
+
...base,
|
|
91
|
+
providers: Object.freeze({
|
|
92
|
+
...base.providers,
|
|
93
|
+
[ADMIN_ANTIGRAVITY_PROVIDER]: Object.freeze({
|
|
94
|
+
request_timeout_seconds: ADMIN_ANTIGRAVITY_REQUEST_TIMEOUT_SECONDS,
|
|
95
|
+
}),
|
|
96
|
+
}),
|
|
97
|
+
model: Object.freeze({
|
|
98
|
+
...base.model,
|
|
99
|
+
default: ADMIN_ANTIGRAVITY_MODEL,
|
|
100
|
+
provider: ADMIN_ANTIGRAVITY_PROVIDER,
|
|
101
|
+
reasoning_effort: ADMIN_ANTIGRAVITY_REASONING_EFFORT,
|
|
102
|
+
}),
|
|
103
|
+
fallback_providers: Object.freeze([
|
|
104
|
+
Object.freeze({
|
|
105
|
+
provider: MODEL_AUTH_PROVIDER,
|
|
106
|
+
model: MODEL_AUTH_DEFAULT_MODEL,
|
|
107
|
+
}),
|
|
108
|
+
...base.fallback_providers,
|
|
109
|
+
]),
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** The Admin's model config: Antigravity first only while agy is signed in. */
|
|
114
|
+
export function adminModelConfigOverlay(credential, { signedIn }) {
|
|
115
|
+
return signedIn === true
|
|
116
|
+
? adminAntigravityConfigOverlay(credential)
|
|
117
|
+
: modelAuthConfigOverlay(credential);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Environment for the Admin gateway. The gateway's HOME is the profile, so the
|
|
122
|
+
* plugin is told where the volume's sign-in lives. Strict mode passes agy only
|
|
123
|
+
* a minimal environment, never the gateway's Sellable credentials.
|
|
124
|
+
*/
|
|
125
|
+
export function adminAntigravityGatewayEnvironment(dataRoot) {
|
|
126
|
+
return Object.freeze({
|
|
127
|
+
ANTIGRAVITY_CONFIG_DIR: adminAntigravityConfigDir(dataRoot),
|
|
128
|
+
ANTIGRAVITY_COMMAND: ADMIN_ANTIGRAVITY_COMMAND,
|
|
129
|
+
ANTIGRAVITY_ENV_STRICT: "1",
|
|
130
|
+
ANTIGRAVITY_WORKER_IDLE_SECONDS: String(
|
|
131
|
+
ADMIN_ANTIGRAVITY_WORKER_IDLE_SECONDS
|
|
132
|
+
),
|
|
133
|
+
});
|
|
134
|
+
}
|
|
@@ -128,6 +128,11 @@ import {
|
|
|
128
128
|
} from "../model-auth-reconciler.mjs";
|
|
129
129
|
import { createModelHealthReporter } from "../model-health-reporter.mjs";
|
|
130
130
|
import { reconcilePublicHermesSkills } from "../public-skills.mjs";
|
|
131
|
+
import {
|
|
132
|
+
adminAntigravityGatewayEnvironment,
|
|
133
|
+
adminAntigravitySignedIn,
|
|
134
|
+
adminModelConfigOverlay,
|
|
135
|
+
} from "./admin-antigravity.mjs";
|
|
131
136
|
import { createAdminRuntimePhaseTelemetry } from "./admin-runtime-phase-telemetry.mjs";
|
|
132
137
|
import {
|
|
133
138
|
completeAdminStateReceiptRecovery,
|
|
@@ -2105,7 +2110,11 @@ async function installRuntimeSecrets({ claim, secrets, desiredLifecycle }) {
|
|
|
2105
2110
|
markerPath,
|
|
2106
2111
|
model,
|
|
2107
2112
|
modelAuthState,
|
|
2108
|
-
|
|
2113
|
+
// Antigravity (Gemini 4 Neon) leads only while agy is signed in on this
|
|
2114
|
+
// volume; otherwise the same Codex-first chain as Customer runtimes.
|
|
2115
|
+
modelConfig: adminModelConfigOverlay(model, {
|
|
2116
|
+
signedIn: adminAntigravitySignedIn({ dataRoot: DATA_ROOT }),
|
|
2117
|
+
}),
|
|
2109
2118
|
productConfigPath,
|
|
2110
2119
|
slackSecretFile,
|
|
2111
2120
|
};
|
|
@@ -3162,6 +3171,9 @@ async function startNativeGateway({ profile, claim }) {
|
|
|
3162
3171
|
// 2026-11-13 to 2026-11-19, while customer gateways, which inherit the
|
|
3163
3172
|
// variable, kept working.
|
|
3164
3173
|
PLAYWRIGHT_BROWSERS_PATH: ADMIN_PLAYWRIGHT_BROWSERS_PATH,
|
|
3174
|
+
// The Antigravity plugin reads agy's sign-in from the volume, not from
|
|
3175
|
+
// this profile HOME, and passes agy a strict environment.
|
|
3176
|
+
...adminAntigravityGatewayEnvironment(DATA_ROOT),
|
|
3165
3177
|
NO_COLOR: "1",
|
|
3166
3178
|
},
|
|
3167
3179
|
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Sign the Admin's agy CLI in to the Google Antigravity subscription (Gemini 4
|
|
3
|
+
# Neon), show the sign-in and quota, or sign out. Run as root on the Admin:
|
|
4
|
+
#
|
|
5
|
+
# sellable-admin-antigravity login # agy's own Google sign-in
|
|
6
|
+
# sellable-admin-antigravity status # signed in? quota left
|
|
7
|
+
# sellable-admin-antigravity logout # back to Codex first
|
|
8
|
+
#
|
|
9
|
+
# The sign-in lands on the Admin volume (HOME=/opt/data, as the hermes user)
|
|
10
|
+
# and agy refreshes it there. After login or logout, press Refresh Agent so the
|
|
11
|
+
# Admin rebuilds its model chain: Antigravity first while signed in, otherwise
|
|
12
|
+
# Codex first. agy only ever sees a minimal environment.
|
|
13
|
+
set -eu
|
|
14
|
+
dir=/opt/data/.gemini/antigravity-cli
|
|
15
|
+
token="${dir}/antigravity-oauth-token"
|
|
16
|
+
|
|
17
|
+
as_hermes() {
|
|
18
|
+
/command/s6-setuidgid hermes env -i \
|
|
19
|
+
PATH=/usr/local/bin:/usr/bin:/bin \
|
|
20
|
+
HOME=/opt/data \
|
|
21
|
+
TERM="${TERM:-xterm-256color}" \
|
|
22
|
+
"$@"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
status() {
|
|
26
|
+
if [ ! -s "${token}" ]; then
|
|
27
|
+
echo "agy is not signed in on this Admin."
|
|
28
|
+
return 1
|
|
29
|
+
fi
|
|
30
|
+
as_hermes /usr/local/bin/agy -p "/usage" --output-format text </dev/null
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
case "${1:-status}" in
|
|
34
|
+
login)
|
|
35
|
+
install -d -o hermes -g hermes -m 0700 /opt/data/.gemini "${dir}"
|
|
36
|
+
echo "Choose '1. Google OAuth', open the URL on your own computer, sign in,"
|
|
37
|
+
echo "and paste the code back here. Once agy says you are signed in, leave"
|
|
38
|
+
echo "it with Ctrl+C. Then press Refresh Agent."
|
|
39
|
+
as_hermes /usr/local/bin/agy || true
|
|
40
|
+
status
|
|
41
|
+
;;
|
|
42
|
+
status)
|
|
43
|
+
status
|
|
44
|
+
;;
|
|
45
|
+
logout)
|
|
46
|
+
rm -f "${token}"
|
|
47
|
+
echo "Signed out. Press Refresh Agent to put Codex first again."
|
|
48
|
+
;;
|
|
49
|
+
*)
|
|
50
|
+
echo "usage: sellable-admin-antigravity login|status|logout" >&2
|
|
51
|
+
exit 2
|
|
52
|
+
;;
|
|
53
|
+
esac
|
|
@@ -8,7 +8,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/opt/hermes/.playwright
|
|
|
8
8
|
|
|
9
9
|
ARG MCP_PACKAGE=@sellable/mcp@0.1.1033
|
|
10
10
|
ARG MCP_INTEGRITY=sha512-d01fFKmJLQIBHBXA5FsWn7lOeX3igg6xh58x10VDLWfqwg1OLzsbaI43UHpUWYQzAsnN+Qivdyk2YYkoNhElEw==
|
|
11
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
11
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.913
|
|
12
12
|
ARG ADMIN_MCP_PACKAGE=@sellable/admin-mcp@0.1.202
|
|
13
13
|
ARG ADMIN_MCP_INTEGRITY=sha512-ym3aye/0vQ8tfULJlKz9JFOxvIQsl1G+n3np+TTgK/tecwNblBo/j3AkTnRqH9iomKzPbZzP+n4tEQsvsU8ByA==
|
|
14
14
|
ARG TUS_JS_CLIENT_VERSION=4.3.1
|
|
@@ -135,7 +135,7 @@ const BOOT_SESSION_ID = randomUUID();
|
|
|
135
135
|
const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.21.5";
|
|
136
136
|
const INSTALLER_PACKAGE =
|
|
137
137
|
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ??
|
|
138
|
-
"@sellable/install@0.1.
|
|
138
|
+
"@sellable/install@0.1.913";
|
|
139
139
|
const MCP_PACKAGE =
|
|
140
140
|
process.env.SELLABLE_AGENT_MCP_PACKAGE ??
|
|
141
141
|
"@sellable/mcp@0.1.1033";
|
|
@@ -39,7 +39,7 @@ const PACKAGE_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "../..");
|
|
|
39
39
|
const VERSION = "sellable-agent-host-bootstrap/v1";
|
|
40
40
|
const RECEIPT_VERSION = "sellable-agent-host-registration/v1";
|
|
41
41
|
const INSTALLER_PACKAGE =
|
|
42
|
-
"@sellable/install@0.1.
|
|
42
|
+
"@sellable/install@0.1.913";
|
|
43
43
|
const MCP_PACKAGE = "@sellable/mcp@0.1.1033";
|
|
44
44
|
const HERMES_VERSION = "0.18.0";
|
|
45
45
|
const SHA256 = /^[a-f0-9]{64}$/;
|
|
@@ -1547,7 +1547,7 @@ export function compileClaimToProfileDesired(activeClaim, config) {
|
|
|
1547
1547
|
pinned.hermesCli !== "hermes" ||
|
|
1548
1548
|
pinned.hermesVersion !== "0.18.0" ||
|
|
1549
1549
|
pinned.installerPackage !==
|
|
1550
|
-
"@sellable/install@0.1.
|
|
1550
|
+
"@sellable/install@0.1.913" ||
|
|
1551
1551
|
pinned.mcpPackage !==
|
|
1552
1552
|
"@sellable/mcp@0.1.1033" ||
|
|
1553
1553
|
!Array.isArray(policy.toolInclude) ||
|
|
@@ -318,7 +318,7 @@ function validateDesired(desired) {
|
|
|
318
318
|
desired.hermesCli !== "hermes" ||
|
|
319
319
|
desired.hermesVersion !== "0.18.0" ||
|
|
320
320
|
desired.installerPackage !==
|
|
321
|
-
"@sellable/install@0.1.
|
|
321
|
+
"@sellable/install@0.1.913" ||
|
|
322
322
|
desired.mcpPackage !== "@sellable/mcp@0.1.1033" ||
|
|
323
323
|
!Array.isArray(desired.toolInclude) ||
|
|
324
324
|
desired.toolInclude.length === 0 ||
|
|
@@ -26,7 +26,7 @@ import { deriveContainedProfileId } from "./profile-materializer.mjs";
|
|
|
26
26
|
|
|
27
27
|
export const PROVISIONING_ACTION = "PROVISION_HERMES_PROFILE";
|
|
28
28
|
export const PINNED_INSTALL_PACKAGE =
|
|
29
|
-
"@sellable/install@0.1.
|
|
29
|
+
"@sellable/install@0.1.913";
|
|
30
30
|
export const PINNED_MCP_PACKAGE =
|
|
31
31
|
"@sellable/mcp@0.1.1033";
|
|
32
32
|
const PINNED_INSTALL_VERSION = PINNED_INSTALL_PACKAGE.slice(
|