@anvia/studio 0.4.1 → 0.5.1
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.d.ts +7 -1
- package/dist/index.js +16 -10
- package/dist/index.js.map +1 -1
- package/dist/ui/assets/index-BX1sXbDt.js +100 -0
- package/dist/ui/assets/index-BX1sXbDt.js.map +1 -0
- package/dist/ui/assets/index-DMFsvim-.css +1 -0
- package/dist/ui/index.html +2 -2
- package/package.json +12 -12
- package/dist/ui/assets/index-B4i1IueG.js +0 -100
- package/dist/ui/assets/index-B4i1IueG.js.map +0 -1
- package/dist/ui/assets/index-BiMI9T3_.css +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import {
|
|
2
|
+
import { AgentTraceOptions, AgentTraceInfo, AgentObserver, AgentRunStartArgs, AgentRunObserver } from '@anvia/core/observability';
|
|
3
|
+
import { PromptResponse, AgentStreamEvent } from '@anvia/core/agent';
|
|
4
|
+
import { Message, JsonObject, JsonValue, ToolResultContent, Usage } from '@anvia/core/completion';
|
|
5
|
+
import { RunEvalSuiteOptions } from '@anvia/core/evals';
|
|
6
|
+
import { Agent } from '@anvia/core/internal/agent';
|
|
7
|
+
import { MemoryStore } from '@anvia/core/memory';
|
|
8
|
+
import { Pipeline, PipelineGraph } from '@anvia/core/pipeline';
|
|
3
9
|
|
|
4
10
|
type StudioCapability = "agents" | "approvals" | "evals" | "memory" | "knowledge" | "mcps" | "observability" | "pipelines" | "sessions" | "status" | "tools" | "traces";
|
|
5
11
|
type StudioAgent = {
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// src/runtime/studio.ts
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "@anvia/core";
|
|
3
|
+
createHook as createHook3
|
|
4
|
+
} from "@anvia/core/agent";
|
|
5
|
+
import { Message } from "@anvia/core/completion";
|
|
6
|
+
import { Agent } from "@anvia/core/internal/agent";
|
|
7
|
+
import { resolveMemoryOptions } from "@anvia/core/memory";
|
|
8
|
+
import { Pipeline } from "@anvia/core/pipeline";
|
|
9
9
|
import { serve } from "@hono/node-server";
|
|
10
10
|
import { Hono as HonoApp } from "hono";
|
|
11
11
|
|
|
@@ -791,7 +791,12 @@ function escapeHtml(value) {
|
|
|
791
791
|
}
|
|
792
792
|
|
|
793
793
|
// src/runtime/approvals.ts
|
|
794
|
-
import {
|
|
794
|
+
import {
|
|
795
|
+
createHook
|
|
796
|
+
} from "@anvia/core/agent";
|
|
797
|
+
import {
|
|
798
|
+
parseToolArgs
|
|
799
|
+
} from "@anvia/core/tool";
|
|
795
800
|
|
|
796
801
|
// src/storage/memory-store.ts
|
|
797
802
|
function createInMemoryStudioStore() {
|
|
@@ -2234,7 +2239,7 @@ function serializeUnknown(error) {
|
|
|
2234
2239
|
}
|
|
2235
2240
|
|
|
2236
2241
|
// src/runtime/tool-metadata.ts
|
|
2237
|
-
import { ToolSet } from "@anvia/core";
|
|
2242
|
+
import { ToolSet } from "@anvia/core/tool";
|
|
2238
2243
|
var MCP_TOOL_METADATA_KEY = /* @__PURE__ */ Symbol.for("anvia.mcp.tool.metadata");
|
|
2239
2244
|
function agentToolItems(agent) {
|
|
2240
2245
|
return [
|
|
@@ -2854,7 +2859,7 @@ function publicApproval(approval) {
|
|
|
2854
2859
|
}
|
|
2855
2860
|
|
|
2856
2861
|
// src/runtime/evals.ts
|
|
2857
|
-
import { runEvalSuite } from "@anvia/core";
|
|
2862
|
+
import { runEvalSuite } from "@anvia/core/evals";
|
|
2858
2863
|
function registerEvalRoutes(app, props) {
|
|
2859
2864
|
app.get(
|
|
2860
2865
|
"/evals",
|
|
@@ -4801,7 +4806,8 @@ function toJsonValue3(value) {
|
|
|
4801
4806
|
}
|
|
4802
4807
|
|
|
4803
4808
|
// src/runtime/questions.ts
|
|
4804
|
-
import { createHook as createHook2
|
|
4809
|
+
import { createHook as createHook2 } from "@anvia/core/agent";
|
|
4810
|
+
import { parseToolArgs as parseToolArgs2 } from "@anvia/core/tool";
|
|
4805
4811
|
function registerQuestionRoutes(app, questions) {
|
|
4806
4812
|
app.get("/questions", (c) => {
|
|
4807
4813
|
const status = parseQuestionStatus(c.req.query("status"));
|