electric-ax 0.2.11 → 0.2.13
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/{entity-stream-db-58-SuPa4.js → entity-stream-db-UBN2gowE.js} +1 -1
- package/dist/{entity-stream-db-DHcwosd1.cjs → entity-stream-db-uLb8jOQA.cjs} +2 -2
- package/dist/entity-stream-db.cjs +1 -1
- package/dist/entity-stream-db.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/observe-ui.cjs +3 -3
- package/dist/observe-ui.js +2 -2
- package/dist/start.cjs +1 -1
- package/dist/start.js +1 -1
- package/dist/{version-W81aZejx.cjs → version-BTg5NFx-.cjs} +1 -1
- package/dist/{version-Dmda0QTw.js → version-D0L4vYi3.js} +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { appendPathToUrl, entityStateSchema } from "@electric-ax/agents-runtime";
|
|
2
|
-
import { createStreamDB } from "@durable-streams/state";
|
|
2
|
+
import { createStreamDB } from "@durable-streams/state/db";
|
|
3
3
|
|
|
4
4
|
//#region src/entity-api.ts
|
|
5
5
|
function withLeadingSlash(path) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-BCwAaXi7.cjs');
|
|
3
3
|
const __electric_ax_agents_runtime = require_chunk.__toESM(require("@electric-ax/agents-runtime"));
|
|
4
|
-
const
|
|
4
|
+
const __durable_streams_state_db = require_chunk.__toESM(require("@durable-streams/state/db"));
|
|
5
5
|
|
|
6
6
|
//#region src/entity-api.ts
|
|
7
7
|
function withLeadingSlash(path) {
|
|
@@ -35,7 +35,7 @@ async function createEntityStreamDB(opts) {
|
|
|
35
35
|
const entity = await res.json();
|
|
36
36
|
const streamPath = getMainStreamPath(entityUrl, entity);
|
|
37
37
|
const streamUrl = (0, __electric_ax_agents_runtime.appendPathToUrl)(baseUrl, streamPath);
|
|
38
|
-
const db = (0,
|
|
38
|
+
const db = (0, __durable_streams_state_db.createStreamDB)({
|
|
39
39
|
streamOptions: {
|
|
40
40
|
url: streamUrl,
|
|
41
41
|
headers: requestHeaders,
|
package/dist/entity-stream-db.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
const require_chunk = require('./chunk-BCwAaXi7.cjs');
|
|
4
4
|
const require_completions = require('./completions-BJ1fys8I.cjs');
|
|
5
|
-
const require_entity_stream_db = require('./entity-stream-db-
|
|
6
|
-
const require_version = require('./version-
|
|
5
|
+
const require_entity_stream_db = require('./entity-stream-db-uLb8jOQA.cjs');
|
|
6
|
+
const require_version = require('./version-BTg5NFx-.cjs');
|
|
7
7
|
const __electric_ax_agents_runtime = require_chunk.__toESM(require("@electric-ax/agents-runtime"));
|
|
8
8
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
9
9
|
const node_os = require_chunk.__toESM(require("node:os"));
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { installCompletions, setupCompletions } from "./completions-BkhbBSPI.js";
|
|
3
|
-
import { createEntityStreamDB, entityApiPath } from "./entity-stream-db-
|
|
4
|
-
import { ELECTRIC_AX_CLI_VERSION, resolveAnthropicApiKey$1 as resolveAnthropicApiKey } from "./version-
|
|
3
|
+
import { createEntityStreamDB, entityApiPath } from "./entity-stream-db-UBN2gowE.js";
|
|
4
|
+
import { ELECTRIC_AX_CLI_VERSION, resolveAnthropicApiKey$1 as resolveAnthropicApiKey } from "./version-D0L4vYi3.js";
|
|
5
5
|
import { appendPathToUrl, buildEntityTimelineData, buildSections } from "@electric-ax/agents-runtime";
|
|
6
6
|
import { existsSync, readFileSync, realpathSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { hostname, userInfo } from "node:os";
|
package/dist/observe-ui.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-BCwAaXi7.cjs');
|
|
3
|
-
const require_entity_stream_db = require('./entity-stream-db-
|
|
3
|
+
const require_entity_stream_db = require('./entity-stream-db-uLb8jOQA.cjs');
|
|
4
4
|
const __electric_ax_agents_runtime = require_chunk.__toESM(require("@electric-ax/agents-runtime"));
|
|
5
|
-
const
|
|
5
|
+
const __durable_streams_state_db = require_chunk.__toESM(require("@durable-streams/state/db"));
|
|
6
6
|
const react = require_chunk.__toESM(require("react"));
|
|
7
7
|
const ink = require_chunk.__toESM(require("ink"));
|
|
8
8
|
const __tanstack_react_db = require_chunk.__toESM(require("@tanstack/react-db"));
|
|
@@ -121,7 +121,7 @@ function ToolResultView({ result }) {
|
|
|
121
121
|
function MessageInput({ db, baseUrl, entityUrl, identity, headers, disabled }) {
|
|
122
122
|
const [value, setValue] = (0, react.useState)(``);
|
|
123
123
|
const [error, setError] = (0, react.useState)(null);
|
|
124
|
-
const sendAction = (0, react.useMemo)(() => (0,
|
|
124
|
+
const sendAction = (0, react.useMemo)(() => (0, __durable_streams_state_db.createOptimisticAction)({
|
|
125
125
|
onMutate: ({ text }) => {
|
|
126
126
|
db.collections.inbox.insert({
|
|
127
127
|
key: `optimistic-${Date.now()}`,
|
package/dist/observe-ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createEntityStreamDB, entityApiUrl } from "./entity-stream-db-
|
|
1
|
+
import { createEntityStreamDB, entityApiUrl } from "./entity-stream-db-UBN2gowE.js";
|
|
2
2
|
import { buildSections, createEntityIncludesQuery, normalizeEntityTimelineData } from "@electric-ax/agents-runtime";
|
|
3
|
-
import { createOptimisticAction } from "@durable-streams/state";
|
|
3
|
+
import { createOptimisticAction } from "@durable-streams/state/db";
|
|
4
4
|
import React, { useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { Box, Newline, Text, render, useInput } from "ink";
|
|
6
6
|
import { useLiveQuery } from "@tanstack/react-db";
|
package/dist/start.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-BCwAaXi7.cjs');
|
|
3
|
-
const require_version = require('./version-
|
|
3
|
+
const require_version = require('./version-BTg5NFx-.cjs');
|
|
4
4
|
const __electric_ax_agents_runtime = require_chunk.__toESM(require("@electric-ax/agents-runtime"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
const __electric_ax_agents_server_headers = require_chunk.__toESM(require("@electric-ax/agents/server-headers"));
|
package/dist/start.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ELECTRIC_AGENTS_SERVER_IMAGE_TAG, ELECTRIC_IMAGE_TAG, readDotEnvFile$1 as readDotEnvFile, resolveAnthropicApiKey$1 as resolveAnthropicApiKey } from "./version-
|
|
1
|
+
import { ELECTRIC_AGENTS_SERVER_IMAGE_TAG, ELECTRIC_IMAGE_TAG, readDotEnvFile$1 as readDotEnvFile, resolveAnthropicApiKey$1 as resolveAnthropicApiKey } from "./version-D0L4vYi3.js";
|
|
2
2
|
import { appendPathToUrl } from "@electric-ax/agents-runtime";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { mergeElectricPrincipalHeader } from "@electric-ax/agents/server-headers";
|
|
@@ -45,7 +45,7 @@ function resolveAnthropicApiKey(options, env = process.env, fileEnv = readDotEnv
|
|
|
45
45
|
* For release builds these remain "latest".
|
|
46
46
|
* The canary CI overwrites them to "canary" before building.
|
|
47
47
|
*/
|
|
48
|
-
const injectedCliVersion = `0.2.
|
|
48
|
+
const injectedCliVersion = `0.2.13`;
|
|
49
49
|
const ELECTRIC_AX_CLI_VERSION = injectedCliVersion.startsWith(`__ELECTRIC_AX_`) ? `0.0.0` : injectedCliVersion;
|
|
50
50
|
const ELECTRIC_IMAGE_TAG = `latest`;
|
|
51
51
|
const ELECTRIC_AGENTS_SERVER_IMAGE_TAG = `latest`;
|
|
@@ -43,7 +43,7 @@ function resolveAnthropicApiKey(options, env = process.env, fileEnv = readDotEnv
|
|
|
43
43
|
* For release builds these remain "latest".
|
|
44
44
|
* The canary CI overwrites them to "canary" before building.
|
|
45
45
|
*/
|
|
46
|
-
const injectedCliVersion = `0.2.
|
|
46
|
+
const injectedCliVersion = `0.2.13`;
|
|
47
47
|
const ELECTRIC_AX_CLI_VERSION = injectedCliVersion.startsWith(`__ELECTRIC_AX_`) ? `0.0.0` : injectedCliVersion;
|
|
48
48
|
const ELECTRIC_IMAGE_TAG = `latest`;
|
|
49
49
|
const ELECTRIC_AGENTS_SERVER_IMAGE_TAG = `latest`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "electric-ax",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "CLI for Electric Agents",
|
|
5
5
|
"author": "ElectricSQL team and contributors",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@durable-streams/client": "^0.2.6",
|
|
41
|
-
"@durable-streams/state": "^0.
|
|
41
|
+
"@durable-streams/state": "^0.3.1",
|
|
42
42
|
"@electric-sql/client": "^1.5.20",
|
|
43
43
|
"@tanstack/db": "^0.6.4",
|
|
44
|
-
"@tanstack/react-db": "^0.1.
|
|
44
|
+
"@tanstack/react-db": "^0.1.85",
|
|
45
45
|
"commander": "^13.1.0",
|
|
46
46
|
"ink": "^6.8.0",
|
|
47
47
|
"omelette": "^0.4.17",
|
|
48
48
|
"react": "^19.2.0",
|
|
49
|
-
"@electric-ax/agents": "0.4.
|
|
50
|
-
"@electric-ax/agents-runtime": "0.3.
|
|
49
|
+
"@electric-ax/agents": "0.4.13",
|
|
50
|
+
"@electric-ax/agents-runtime": "0.3.9"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@vitest/coverage-v8": "^4.1.0",
|