@admissible-ai/types 0.1.0 → 0.2.0

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 CHANGED
@@ -2,6 +2,36 @@
2
2
 
3
3
  Shared TypeScript contracts for Admissible AI request, response, trace, and tool-authority data.
4
4
 
5
+ ## Release 0.2.0
6
+
7
+ This README documents the 0.2.0 interface. Install the exact version below and use matching Admissible versions throughout your application. Older package versions do not provide all of the behavior described here.
8
+
9
+ This is a behavior-tightening pre-1.0 release, not a new endpoint migration: the published 0.1 SDK already used V2. Existing named exports remain available; removed source-only V1 methods were not part of the published SDK facade. Legacy request aliases and V1-only injected clients are unsupported. No fallback to V1 or independent work is performed on lost authority.
10
+
11
+ Only the ESM package root is exported. Node >=18 is declared; provider SDKs are application dependencies, with no peer version range promised. Runtime dependencies are pinned: `@baseline-labs/types@0.1.2`. Upgrade the Admissible packages used by your application together to 0.2.0.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm install @admissible-ai/types@0.2.0
17
+ ```
18
+
5
19
  This package is the preferred public package identity for the contracts currently available through `@baseline-labs/types`.
6
20
 
7
- Existing `@baseline-labs/*` imports remain supported during the migration window.
21
+ The Admissible public agent-execution contract uses v2. Existing v1 administrative/control-plane access remains supported; internal Baseline dependency ownership remains separate.
22
+
23
+ ## v2 agent release migration (0.2.0)
24
+
25
+ Explicit v2 request fields; retired trace-parent/supporting-trace request aliases removed; curated exports preserve historical record/projection shapes. This is an intentional breaking pre-1.0 release. Public v1 execution/commit and legacy-only injected transports are unsupported; there is no fallback. Upgrade the six Admissible packages together. Baseline-branded public adapters are retired release products. The published Baseline SDK/types dependencies are internal transport/data owners, not an endorsement of retired adapters.
26
+
27
+ Managed continuation sends the actual `parentOperationId` and unchanged opaque `authorityToken`, with `runId` omitted. A supporting commit sends `supportingOperationId`, applicable authority and all required checkpoint/approval/rollback evidence. An execute ALLOW does not by itself authorize a durable callback. Operation-reference fields such as `lastTraceId` are compatibility projections, not actual runtime run or trace identities.
28
+
29
+ Managed provider integrations in this release family produce bounded `{type, name}` advisory activity, never decision echoes or proof of effects. At supported context import entrypoints, safe copied/JSON-restored activity-only contexts need genuine continuation authority; mixed or identity/decision-bearing imports require explicit reconciliation. Independent observations belong in explicit `priorActions` options/context inputs. Denied, deferred or rejected work loses current continuation authority; reset begins new independently governed work.
30
+
31
+ Runtime idempotency, in-process callback deduplication, provider recovery and cross-process exactly-once are different guarantees. This release does not promise provider-side or cross-process exactly-once execution.
32
+
33
+ `AdmissibleExecuteResponse` and `AdmissibleCommitResponse` describe the v2 immediate operation response. `ExecuteResponse`, `CommitResponse`, `TraceDescriptor` and historical trace records remain data/projection schemas; they do not advertise a v1 transport. Public requests do not accept `traceParent` or `supportingTraceId`.
34
+
35
+ ## Supported administrative APIs
36
+
37
+ The product contract is **Admissible v2 agent execution with retained v1 administrative/control-plane APIs**. Only obsolete v1 agent execute/commit methods and execution fallbacks are retired. Existing credential, sandbox, governor, account, policy, approval, historical-read and operational HTTP clients, routes and authentication remain supported. A `/v1` path alone does not make an administrative API obsolete. The published SDK transport has no administrative convenience methods; existing operational HTTP access remains the supported path. No private internal API is newly exposed by this package.
package/dist/index.d.ts CHANGED
@@ -1 +1,14 @@
1
- export * from "@baseline-labs/types";
1
+ import type { ExecuteRequest as InternalExecuteRequest, ExecuteMetadata as InternalExecuteMetadata, CommitRequest as InternalCommitRequest, V2ImmediateResponse } from "@baseline-labs/types";
2
+ export type { CommitType, CommitState, ProposedCommit, CommitArtifact, CommitApprovalContext, CommitPolicyContext, CommitApproval, CommitAudit, CommitResult, CommitResponse, BaselineDecision, RiskLevel, CapabilityTier, OperatingBand, ExplanationOutcome, AgentDescriptor, SessionDescriptor, EnvironmentDescriptor, TraceDescriptor, ExplanationSummary, ExecuteActionTarget, ExecuteAction, ExecuteIntent, PriorAction, ExecuteState, ExecuteConstraints, ExecuteRisk, ExecutePolicyResult, ExecuteExecutionResult, ExecuteModification, ExecuteApproval, ExecuteAudit, ExecuteResponse, AuthorityPresetName, ToolAuthoritySpec, AuthoritySuggestionInput, BaselineRequestContext, BaselineToolCommitPlan, BaselineManagedToolRecord, BaselineToolRuntimeContext, BaselineToolDefinition, TraceSummary, ExecuteTraceRecord, CommitTraceRecord, BaselineTraceRecord, V2PublicErrorCode, V2ErrorBody, V2ErrorResponse, OperationStatus, OperationResult, OperationNextActionType, OperationKind, OperationRetryMode, OperationApprovalState, OperationContinuationState, OperationRollbackState, OperationSupersessionState, OperationNextAction, OperationRetry, OperationApproval, OperationContinuation, OperationRollback, OperationSupersession, OperationHandle, OperationStatusView, V2ImmediateResponse } from "@baseline-labs/types";
3
+ export { authorityPresets, isAuthorityPresetName, validateToolAuthority, resolveToolAuthority, resolveBaselineToolDefinition, suggestAuthorityFix, V2_PUBLIC_ERROR_CODES, V2_OPERATION_STATUSES, V2_OPERATION_RESULTS, V2_OPERATION_NEXT_ACTION_TYPES } from "@baseline-labs/types";
4
+ /** v2 lineage uses parentOperationId plus opaque authority; managed clients omit runId. */
5
+ export type ExecuteMetadata = Omit<InternalExecuteMetadata, "traceParent">;
6
+ export type ExecuteRequest = Omit<InternalExecuteRequest, "metadata"> & {
7
+ metadata?: ExecuteMetadata;
8
+ };
9
+ /** Public v2 supporting identity is an operation, never a historical trace alias. */
10
+ export type CommitRequest = Omit<InternalCommitRequest, "supportingTraceId">;
11
+ export type AdmissibleExecuteRequest = ExecuteRequest;
12
+ export type AdmissibleCommitRequest = CommitRequest;
13
+ export type AdmissibleExecuteResponse = V2ImmediateResponse;
14
+ export type AdmissibleCommitResponse = V2ImmediateResponse;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export * from "@baseline-labs/types";
1
+ export { authorityPresets, isAuthorityPresetName, validateToolAuthority, resolveToolAuthority, resolveBaselineToolDefinition, suggestAuthorityFix, V2_PUBLIC_ERROR_CODES, V2_OPERATION_STATUSES, V2_OPERATION_RESULTS, V2_OPERATION_NEXT_ACTION_TYPES } from "@baseline-labs/types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admissible-ai/types",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Shared Admissible AI request, response, trace, and tool authority contracts.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -34,6 +34,6 @@
34
34
  "runtime"
35
35
  ],
36
36
  "dependencies": {
37
- "@baseline-labs/types": "^0.1.0"
37
+ "@baseline-labs/types": "0.1.2"
38
38
  }
39
39
  }