@zhivex-ai/agents 1.0.0 → 1.0.2
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/README.md +5 -0
- package/dist/ops.d.ts +1 -1
- package/dist/ops.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -61,6 +61,7 @@ Beta APIs may change between minor releases. Experimental APIs may change more f
|
|
|
61
61
|
- Durable harnesses: capsule fingerprints, app-provided execution-environment enforcement, and replay-visible context compaction.
|
|
62
62
|
- Memory and stores from `/ops`: in-memory, file, SQLite, and Postgres run stores and memory stores.
|
|
63
63
|
- Multi-agent patterns: handoffs, subagents as tools, parallel agent groups, and hierarchical traces.
|
|
64
|
+
- Durable subagents: stores with atomic idempotency claims reuse a completed child after a failed parent checkpoint instead of repeating child tools.
|
|
64
65
|
- Production safety: stable safety policies and budget guards in the root; beta governance policies and audit records under `/beta`.
|
|
65
66
|
- Observability and evaluation from `/ops`: trace collectors, run snapshots, replay, cost estimates, and evaluation fixtures.
|
|
66
67
|
- Provider inspection from `/ops`, with beta capability routing and model selection under `/beta`.
|
|
@@ -172,8 +173,12 @@ Run stores claim an `idempotencyKey` before model or tool execution and persist
|
|
|
172
173
|
|
|
173
174
|
SQLite and Postgres support renewable worker leases, expired-run recovery, model/tool checkpoints, paginated run queries, retention cleanup, and a durable tool journal. The journal reuses completed results and refuses to repeat an indeterminate effect. Forward `context.idempotencyKey` and `context.abortSignal` from every side-effecting tool to the external API. The file store is a local-development backend with best-effort cross-process coordination.
|
|
174
175
|
|
|
176
|
+
Store keys are canonical opaque digests of the full identity tuple, so delimiter-containing tenant, user, session, workflow, artifact, run, and memory identifiers remain isolated. File stores create new directories and files with private permissions (`0700`/`0600`). Matching legacy delimiter-based records remain readable and are removed after a successful migrated write.
|
|
177
|
+
|
|
175
178
|
Active workers observe durable cancellation and abort in-flight provider/tool work. Streams and persisted state are bounded: stream overflow is explicit, step request snapshots are incremental, and `policy.maxStateBytes` defaults to 4 MiB. Telemetry and memory failures are isolated by default and can be reported through `hookFailurePolicy.onError`.
|
|
176
179
|
|
|
180
|
+
Read-only governance is fail-closed: a tool must declare a non-empty explicit permission set that contains only `read`; missing permission metadata requires review. Production trace collectors retain bounded runs/events and expire old entries. Ledgers redact snapshot, timeline, audit, trace, metadata, and output payloads by default; enable each sensitive family only for an approved server-side destination.
|
|
181
|
+
|
|
177
182
|
New states use `AGENT_RUN_STATE_SCHEMA_VERSION`. `normalizeAgentRunState()` accepts legacy states without a version or revision, while rejecting unknown future schema versions; `migrateAgentRunState()` is the explicit application-boundary helper.
|
|
178
183
|
|
|
179
184
|
Capsules created through `createAgentCapsule()` bind a canonical harness fingerprint to the run. Agents may also define `executionEnvironment` to acquire and authorize an app-owned boundary, plus `compaction` to replace an old context prefix with a durable summary before a provider request. The environment adapter is responsible for real isolation; this package does not provide a managed sandbox.
|
package/dist/ops.d.ts
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* cost accounting, and provider-support inspection.
|
|
4
4
|
*/
|
|
5
5
|
export { createAgentEvaluationFixture, createAgentEvaluationReport, createAgentRunSnapshot, createAgentRunTreeSnapshot, createAgentTraceArtifact, createAgentTraceCollector, createFileAgentMemoryStore, createFileAgentRunStore, createHierarchicalAgentTrace, createInMemoryAgentMemoryStore, createInMemoryAgentRunStore, createPostgresAgentMemoryStore, createPostgresAgentRunStore, createProductionTraceCollector, createProductionTraceOptions, createProviderSupportDriftReport, createProviderSupportMatrix, createSqliteAgentMemoryStore, createSqliteAgentRunStore, estimateAgentRunCost, estimateTokenCost, inspectProviderAgentSupport, judgeAgentEvaluation, renderProviderSupportMatrix, replayAgentRun, runAgentEvaluation, runAgentEvaluationFixture, summarizeAgentTrace } from "@zhivex-ai/core";
|
|
6
|
-
export type { AgentCapabilities, AgentEvaluationCase, AgentEvaluationCaseResult, AgentEvaluationExpectations, AgentEvaluationFixture, AgentEvaluationJudge, AgentEvaluationJudgeResult, AgentEvaluationReport, AgentEvaluationReportCase, AgentEvaluationResult, AgentMemoryContext, AgentMemoryStore, AgentReplayResult, AgentReplayTimelineEvent, AgentRunCostPricing, AgentRunClaimResult, AgentRunLease, AgentRunLeaseOptions, AgentRunListOptions, AgentRunPage, AgentRunRetentionOptions, AgentRunSaveOptions, AgentRunSnapshot, AgentRunStore, AgentRunStoreScopeOptions, AgentRunTreeCancellationResult, AgentRunTreeNode, AgentRunTreeSnapshot, AgentSupportTier, AgentStoreScope, AgentTelemetryApprovalRequestEvent, AgentTelemetryApprovalResolvedEvent, AgentTelemetryEvent, AgentTelemetryGuardrailTriggeredEvent, AgentTelemetryHandoffEvent, AgentTelemetryMemoryLoadedEvent, AgentTelemetryObserver, AgentTelemetryRunFinishEvent, AgentTelemetryRunStartEvent, AgentTelemetryStateSavedEvent, AgentTelemetryStepFinishEvent, AgentTelemetryStepStartEvent, AgentTelemetrySubAgentFinishEvent, AgentTelemetrySubAgentStartEvent, AgentTelemetryToolApprovalEvent, AgentTraceApproval, AgentTraceArtifact, AgentTraceCollector, AgentTraceEvent, AgentTraceOptions, AgentTraceStep, AgentTraceSummary, AgentTraceToolCall, AgentToolCallJournalEntry, AgentToolCallJournalSaveOptions, AgentToolCallJournalStatus, AgentToolExecutionClaimResult, CostEstimate, HierarchicalAgentTrace, HierarchicalAgentTraceNode, LatencySummary, PostgresAgentMemoryStoreOptions, PostgresAgentRunStoreOptions, ProviderAgentSupport, ProviderSupportDrift, ProviderSupportDriftExpectedEntry, ProviderSupportDriftExpectedMatrix, ProviderSupportDriftReport, ProviderSupportMatrix, ProviderSupportMatrixEntry, ProviderSupportMatrixFormat, RunAgentEvaluationOptions, SqliteAgentMemoryStoreOptions, SqliteAgentRunStoreOptions, TokenPricing } from "@zhivex-ai/core";
|
|
6
|
+
export type { AgentCapabilities, AgentEvaluationCase, AgentEvaluationCaseResult, AgentEvaluationExpectations, AgentEvaluationFixture, AgentEvaluationJudge, AgentEvaluationJudgeResult, AgentEvaluationReport, AgentEvaluationReportCase, AgentEvaluationResult, AgentMemoryContext, AgentMemoryStore, AgentReplayResult, AgentReplayTimelineEvent, AgentRunCostPricing, AgentRunClaimResult, AgentRunLease, AgentRunLeaseOptions, AgentRunListOptions, AgentRunPage, AgentRunRetentionOptions, AgentRunSaveOptions, AgentRunSnapshot, AgentRunStore, AgentRunStoreScopeOptions, AgentRunTreeCancellationResult, AgentRunTreeNode, AgentRunTreeSnapshot, AgentSupportTier, AgentStoreScope, AgentTelemetryApprovalRequestEvent, AgentTelemetryApprovalResolvedEvent, AgentTelemetryEvent, AgentTelemetryGuardrailTriggeredEvent, AgentTelemetryHandoffEvent, AgentTelemetryMemoryLoadedEvent, AgentTelemetryObserver, AgentTelemetryRunFinishEvent, AgentTelemetryRunStartEvent, AgentTelemetryStateSavedEvent, AgentTelemetryStepFinishEvent, AgentTelemetryStepStartEvent, AgentTelemetrySubAgentFinishEvent, AgentTelemetrySubAgentStartEvent, AgentTelemetryToolApprovalEvent, AgentTraceApproval, AgentTraceArtifact, AgentTraceCollector, AgentTraceCollectorOptions, AgentTraceEvent, AgentTraceOptions, AgentTraceStep, AgentTraceSummary, AgentTraceToolCall, AgentToolCallJournalEntry, AgentToolCallJournalSaveOptions, AgentToolCallJournalStatus, AgentToolExecutionClaimResult, CostEstimate, HierarchicalAgentTrace, HierarchicalAgentTraceNode, LatencySummary, PostgresAgentMemoryStoreOptions, PostgresAgentRunStoreOptions, ProviderAgentSupport, ProviderSupportDrift, ProviderSupportDriftExpectedEntry, ProviderSupportDriftExpectedMatrix, ProviderSupportDriftReport, ProviderSupportMatrix, ProviderSupportMatrixEntry, ProviderSupportMatrixFormat, RunAgentEvaluationOptions, SqliteAgentMemoryStoreOptions, SqliteAgentRunStoreOptions, TokenPricing } from "@zhivex-ai/core";
|
|
7
7
|
//# sourceMappingURL=ops.d.ts.map
|
package/dist/ops.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ops.d.ts","sourceRoot":"","sources":["../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AwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,yBAAyB,EACzB,8BAA8B,EAC9B,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,kCAAkC,EAClC,mCAAmC,EACnC,mBAAmB,EACnB,qCAAqC,EACrC,0BAA0B,EAC1B,+BAA+B,EAC/B,sBAAsB,EACtB,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,EAC5B,iCAAiC,EACjC,gCAAgC,EAChC,+BAA+B,EAC/B,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,EAC7B,YAAY,EACZ,sBAAsB,EACtB,0BAA0B,EAC1B,cAAc,EACd,+BAA+B,EAC/B,4BAA4B,EAC5B,oBAAoB,EACpB,oBAAoB,EACpB,iCAAiC,EACjC,kCAAkC,EAClC,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,6BAA6B,EAC7B,0BAA0B,EAC1B,YAAY,EACb,MAAM,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhivex-ai/agents",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Agent-first facade for the Zhivex AI SDK runtime.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@zhivex-ai/core": "^1.
|
|
60
|
+
"@zhivex-ai/core": "^1.1.2"
|
|
61
61
|
}
|
|
62
62
|
}
|