@statelyai/agent 2.0.0-alpha.6 → 2.0.0-alpha.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.
- package/dist/ai-sdk.cjs +100 -7
- package/dist/ai-sdk.d.cts +43 -5
- package/dist/ai-sdk.d.mts +43 -5
- package/dist/ai-sdk.mjs +99 -9
- package/dist/cli.cjs +3 -2
- package/dist/cli.mjs +2 -1
- package/dist/{decision-D1654JdD.mjs → decision-CQdrKc8k.mjs} +42 -4
- package/dist/{decision-CX3YdwrO.cjs → decision-b-lkcs4L.cjs} +59 -3
- package/dist/index.cjs +15 -12
- package/dist/index.d.cts +6 -1039
- package/dist/index.d.mts +6 -1039
- package/dist/index.mjs +4 -3
- package/dist/openai-compat.cjs +1 -1
- package/dist/openai-compat.d.cts +3 -3
- package/dist/openai-compat.d.mts +3 -3
- package/dist/openai-compat.mjs +1 -1
- package/dist/{src-CEa947Dm.mjs → run-agent-7OaHM7SB.mjs} +61 -979
- package/dist/{src-wBfi-kTA.cjs → run-agent-BQ3vV7UI.cjs} +59 -1037
- package/dist/run-agent-BzW4emV_.d.cts +1078 -0
- package/dist/run-agent-XYjmBxHi.d.mts +1078 -0
- package/dist/src-CFtSqm-c.cjs +1043 -0
- package/dist/src-d-jhiOgP.mjs +984 -0
- package/dist/{text-logic-1ZQkO3zr.d.cts → text-logic-C7WJpCIc.d.mts} +34 -6
- package/dist/{text-logic-2EMJIS-n.d.mts → text-logic-CZjyACzQ.d.cts} +34 -6
- package/dist/{types-BHjeDdch.d.cts → types-C9QiMjre.d.cts} +16 -5
- package/dist/{types-Cq1YlAQ6.d.mts → types-qm00QF91.d.mts} +16 -5
- package/dist/{utils-CWUCa3pF.d.mts → utils-Dri7aeEG.d.cts} +1 -1
- package/dist/{utils-lK1wnL2i.d.cts → utils-Y6GDRGGE.d.mts} +1 -1
- package/dist/zod.d.cts +1 -1
- package/dist/zod.d.mts +1 -1
- package/package.json +2 -2
- package/readme.md +22 -23
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { a as runAgent, c as setupAgent, i as inspectTransitions, l as appendMessages, n as IllegalResumeEventError, o as runAgentToCompletion, r as SnapshotVersionMismatchError, s as createAgentSchemas, t as AgentIdleError, u as messagesSchema } from "./run-agent-7OaHM7SB.mjs";
|
|
2
|
+
import { $ as validateSchemaSync, A as parseOutput, C as createTextLogic, E as isStructuredOutputSchema, G as getJsonSchemaSync, J as isStandardSchema, K as getMachineStructuralHash, Q as userMessage, T as getAgentOutputMode, U as getAgentMessages, V as assistantMessage, W as getJsonSchema, X as systemMessage, Y as persistSnapshot, Z as toolMessage, b as bindRequestExecutor, d as EVENT_TOOL_PREFIX, f as getAcceptedEvents, j as parseStructuredEnvelope, k as parseModelRef, l as renderDecisionAttempts, m as parseAgentEvent, n as PLAN_DONE_EVENT_TYPE, p as matchesEventPattern, q as getStateMeta, t as DecisionExhaustedError, u as resolveDecision, x as buildEnvelopeSchema } from "./decision-CQdrKc8k.mjs";
|
|
3
|
+
import { a as executeAgentRequest, c as resolveAgentRequests, i as simulateAgent, l as resolveAgentStep, n as explorePaths, o as getAgentRequests, r as lintAgentMachine, s as initialAgentStep, t as canReach, u as transitionAgentStep } from "./src-d-jhiOgP.mjs";
|
|
4
|
+
export { AgentIdleError, DecisionExhaustedError, EVENT_TOOL_PREFIX, IllegalResumeEventError, PLAN_DONE_EVENT_TYPE, SnapshotVersionMismatchError, appendMessages, assistantMessage, bindRequestExecutor, buildEnvelopeSchema, canReach, createAgentSchemas, createTextLogic, executeAgentRequest, explorePaths, getAcceptedEvents, getAgentMessages, getAgentOutputMode, getAgentRequests, getJsonSchema, getJsonSchemaSync, getMachineStructuralHash, getStateMeta, initialAgentStep, inspectTransitions, isStandardSchema, isStructuredOutputSchema, lintAgentMachine, matchesEventPattern, messagesSchema, parseAgentEvent, parseModelRef, parseOutput, parseStructuredEnvelope, persistSnapshot, renderDecisionAttempts, resolveAgentRequests, resolveAgentStep, resolveDecision, runAgent, runAgentToCompletion, setupAgent, simulateAgent, systemMessage, toolMessage, transitionAgentStep, userMessage, validateSchemaSync };
|
package/dist/openai-compat.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_decision = require("./decision-
|
|
2
|
+
const require_decision = require("./decision-b-lkcs4L.cjs");
|
|
3
3
|
//#region src/openai-compat/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* OpenAI-compatible Chat Completions adapter — a COMPLETE `{ generateText,
|
package/dist/openai-compat.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as getJsonSchema } from "./utils-
|
|
1
|
+
import { u as AgentTools } from "./types-C9QiMjre.cjs";
|
|
2
|
+
import { H as AgentEventDescriptor, j as AgentDecisionRequest, k as AgentDecisionExecutor, l as AgentTextRequest, s as AgentRequestExecutors } from "./text-logic-CZjyACzQ.cjs";
|
|
3
|
+
import { r as getJsonSchema } from "./utils-Dri7aeEG.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/openai-compat/index.d.ts
|
|
6
6
|
interface WireMessage {
|
package/dist/openai-compat.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as getJsonSchema } from "./utils-
|
|
1
|
+
import { u as AgentTools } from "./types-qm00QF91.mjs";
|
|
2
|
+
import { H as AgentEventDescriptor, j as AgentDecisionRequest, k as AgentDecisionExecutor, l as AgentTextRequest, s as AgentRequestExecutors } from "./text-logic-C7WJpCIc.mjs";
|
|
3
|
+
import { r as getJsonSchema } from "./utils-Y6GDRGGE.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/openai-compat/index.d.ts
|
|
6
6
|
interface WireMessage {
|
package/dist/openai-compat.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as
|
|
1
|
+
import { G as getJsonSchemaSync, J as isStandardSchema, T as getAgentOutputMode, W as getJsonSchema, l as renderDecisionAttempts, x as buildEnvelopeSchema } from "./decision-CQdrKc8k.mjs";
|
|
2
2
|
//#region src/openai-compat/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* OpenAI-compatible Chat Completions adapter — a COMPLETE `{ generateText,
|