ag-ai 0.3.6 → 0.3.8

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.
@@ -40,6 +40,8 @@ const runnerStack = (context) => {
40
40
  throw new Error('AG_AI_GENERATION_CIDR is required');
41
41
  const imageProvider = context.env.AG_AI_IMAGE_PROVIDER ?? 'openai';
42
42
  const opencodeProvider = context.env.AG_AI_OPENCODE_PROVIDER;
43
+ // '1' makes the bridge claim cloud work when the queue pushes it (see runtime/push.mjs).
44
+ const push = context.env.AG_AI_PUSH;
43
45
  const agAiPackage = context.env.AG_AI_PACKAGE;
44
46
  if (!agAiPackage)
45
47
  throw new Error('AG_AI_PACKAGE is required');
@@ -93,6 +95,7 @@ const runnerStack = (context) => {
93
95
  (0, common_1.env)('AG_AI_OPENCODE_URL', opencodeUrl),
94
96
  (0, common_1.env)('AG_AI_OPENCODE_PASSWORD_FILE', secrets.opencode.file),
95
97
  ...(opencodeProvider === undefined ? [] : [(0, common_1.env)('AG_AI_OPENCODE_PROVIDER', opencodeProvider)]),
98
+ ...(push === undefined ? [] : [(0, common_1.env)('AG_AI_PUSH', push)]),
96
99
  (0, common_1.env)('AG_AI_IMAGE_PROVIDER', imageProvider),
97
100
  (0, common_1.env)('AG_AI_IMAGE_API_KEY_FILE', secrets.image.file),
98
101
  (0, common_1.env)('AG_AI_RUNNER_ID', common_1.RUNNER_APP),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-ai",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Provider-neutral AI client and cluster runtime for the rpi-mega cluster.",
5
5
  "license": "ISC",
6
6
  "author": "admin@gec.dev",
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-console */
2
2
 
3
- const ANALYTICA_EVENT_URL = 'https://analytica.click/api/site/event';
3
+ const ANALYTICA_EVENT_URL = 'https://api.analytica.click/site/event';
4
4
  const DEFAULT_ANALYTICA_EVENT_PREFIX = 'andreigec/ag-ai';
5
5
  const DEFAULT_ANALYTICA_PAGE_LOCATION = 'cluster://ag-ai';
6
6
  const ANALYTICA_REQUEST_TIMEOUT_MS = 5_000;