@nativestudio/sdk 0.3.0-rc.20 → 0.3.0-rc.21

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.
Files changed (34) hide show
  1. package/COMPATIBILITY.json +4 -4
  2. package/dist/_chunks/{chunk-VI7HPZJC.js → chunk-2QDPFLIO.js} +1 -1
  3. package/dist/_chunks/chunk-7DXSLHXW.js +1 -0
  4. package/dist/_chunks/{chunk-D3KLEDOI.js → chunk-ASUZJSEP.js} +1 -1
  5. package/dist/_chunks/{chunk-3Q24IPBK.js → chunk-K3TIFCD3.js} +1 -1
  6. package/dist/_chunks/{chunk-O6YL4JVI.js → chunk-NNDKZ5H5.js} +1 -1
  7. package/dist/_chunks/chunk-Q53Q74OP.js +1 -0
  8. package/dist/_chunks/chunk-UKPD77FB.js +1 -0
  9. package/dist/_chunks/chunk-VXBIT7XN.js +1 -0
  10. package/dist/_chunks/{chunk-SXZY76XB.js → chunk-WNXKJRZ6.js} +1 -1
  11. package/dist/_types/contracts/interface/operation.d.ts +59 -0
  12. package/dist/_types/contracts/interface/production-snapshot.d.ts +25 -0
  13. package/dist/_types/contracts/interface/query.d.ts +25 -0
  14. package/dist/_types/contracts/lifecycle-event-projections.d.ts +2 -2
  15. package/dist/_types/contracts/navigation-context.d.ts +49 -1
  16. package/dist/_types/contracts/navigation.d.ts +1 -1
  17. package/dist/_types/sdk/catalog/core.d.ts +108 -0
  18. package/dist/_types/sdk/catalog/federation.d.ts +223 -40
  19. package/dist/_types/sdk/catalog/lifecycle-events.d.ts +2 -2
  20. package/dist/_types/sdk/catalog/mcp.d.ts +3 -0
  21. package/dist/_types/sdk/catalog/navigation.d.ts +86 -4
  22. package/dist/_types/sdk/catalog/reference-preview.d.ts +36 -0
  23. package/dist/_types/sdk/navigation-facade.d.ts +103 -3
  24. package/dist/_types/sdk/observe.d.ts +18 -0
  25. package/dist/host-protocol.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/local-runtime.js +1 -1
  28. package/dist/mcp-discovery.js +1 -1
  29. package/dist/runtime-authority.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/_chunks/chunk-GJULDJSV.js +0 -1
  32. package/dist/_chunks/chunk-OHONXDFL.js +0 -1
  33. package/dist/_chunks/chunk-S64F3WZK.js +0 -1
  34. package/dist/_chunks/chunk-XNROPEWC.js +0 -1
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "protocol": "NVS_PRODUCT_COMPATIBILITY_V1",
3
3
  "product": "@nativestudio/sdk",
4
- "version": "0.3.0-rc.20",
4
+ "version": "0.3.0-rc.21",
5
5
  "source": {
6
- "head": "be3ecdb415f12a3d526993f08b0dd3c6174edc33",
7
- "fileDigest": "a605a1f262d4cf170d797ad8dbbac2d5c96c06896bc85cf0ce67f1c03a8bc9c1",
6
+ "head": "f54d283727f4868da9493fef91d466de35a4d837",
7
+ "fileDigest": "dc04621c3cced1e96fefd731a32bae2f95364056bb828aabf46d7f22c5b85956",
8
8
  "dirty": false,
9
- "remoteMainHead": "be3ecdb415f12a3d526993f08b0dd3c6174edc33"
9
+ "remoteMainHead": "f54d283727f4868da9493fef91d466de35a4d837"
10
10
  },
11
11
  "node": ">=24.12 <25",
12
12
  "discoveryProfile": "contextual-v1",
@@ -1 +1 @@
1
- import{StudioInputContentSchema}from"./chunk-QVP4AMRJ.js";import{AgentHostBindingSchema,CurrentHostInstallationTransportSchema,HistoricalHostTransportSchema,HostReferenceSchema}from"./chunk-O6YL4JVI.js";import{z}from"zod";var id=z.uuid();var sha=z.string().regex(/^[0-9a-f]{64}$/);var AgentHostExecutionScopeSchema=z.strictObject({tenantId:id,projectId:id,productionId:id});var StartAgentHostExecutionSchema=AgentHostExecutionScopeSchema.extend({requestId:id,studioInputArtifactId:id,bindingId:id,expectedProductionRevision:z.int().positive(),expectedBindingRevision:z.int().positive(),expectedConfigurationVersion:z.int().positive()});var AgentHostExecutionGetSchema=AgentHostExecutionScopeSchema.extend({executionId:id});var AgentHostExecutionQuerySchema=AgentHostExecutionScopeSchema.extend({limit:z.int().min(1).max(100).default(20),beforeId:id.optional()});var AgentHostExecutionSourceSchema=z.strictObject({artifactId:id,representationId:id,checksumSha256:sha,byteSize:z.int().positive().max(8388608),contentType:z.string().min(1).max(100),kind:z.enum(["PRODUCT_INFORMATION","REFERENCE_IMAGE","REFERENCE_VIDEO"])});var AgentHostExecutionInputSchema=AgentHostExecutionScopeSchema.extend({protocol:z.literal("NATIVESTUDIO_PRODUCTION_V1"),executionId:id,hostRequestId:id,productionRevision:z.int().positive(),studioInput:StudioInputContentSchema,intake:AgentHostExecutionSourceSchema,sources:z.array(AgentHostExecutionSourceSchema).max(12)}).refine(v=>v.studioInput.productionId===v.productionId&&v.studioInput.sourceArtifactIds.length===v.sources.length&&new Set(v.sources.map(s=>s.artifactId)).size===v.sources.length&&v.sources.every((s,index)=>s.artifactId===v.studioInput.sourceArtifactIds[index])&&!v.sources.some(s=>s.artifactId===v.intake.artifactId));var AgentHostInstallationTransportSchema=z.union([CurrentHostInstallationTransportSchema,HistoricalHostTransportSchema]);var AgentHostNativeToolAuthoritySchema=AgentHostExecutionScopeSchema.extend({protocol:z.literal("NATIVESTUDIO_AGENT_TOOLS_V1"),authorityRef:id,executionId:id,hostRequestId:id,bindingId:id,configurationVersion:z.int().positive(),inputFingerprint:sha,capabilityDigest:sha,expiresAt:z.iso.datetime({offset:true}),executionClass:z.enum(["LIVE","TEST_ONLY"]),transport:AgentHostInstallationTransportSchema.optional()});var AgentHostExecutionSnapshotSchema=z.strictObject({binding:AgentHostBindingSchema,input:AgentHostExecutionInputSchema,authority:AgentHostNativeToolAuthoritySchema}).refine(v=>v.binding.tenantId===v.input.tenantId&&v.binding.projectId===v.input.projectId&&v.binding.enabled&&v.authority.tenantId===v.input.tenantId&&v.authority.projectId===v.input.projectId&&v.authority.productionId===v.input.productionId&&v.authority.executionId===v.input.executionId&&v.authority.hostRequestId===v.input.hostRequestId&&v.authority.bindingId===v.binding.bindingId&&v.authority.configurationVersion===v.binding.configurationVersion);var AgentHostTaskObservationSchema=z.strictObject({requestId:id,runKey:z.string().regex(/^[A-Za-z0-9_-]{1,160}$/),status:z.enum(["accepted","running","succeeded","failed","cancelled","unknown"]),agentKey:HostReferenceSchema,agentVersion:z.union([HostReferenceSchema,z.int().positive()]),modelOptionKey:HostReferenceSchema,cancelRequested:z.boolean(),createdAt:z.iso.datetime({offset:true}),updatedAt:z.iso.datetime({offset:true}),timing:z.strictObject({acceptedAt:z.iso.datetime({offset:true}),deadlineAt:z.iso.datetime({offset:true}),limitSource:z.literal("TASK_POLICY")}).nullable()});var AgentHostDispatchPhaseSchema=z.enum(["ADMITTED","SENDING","OUTCOME_UNKNOWN","OBSERVING","REJECTED","CANCELLED_BEFORE_SUBMISSION"]);var AgentHostExecutionViewSchema=AgentHostExecutionScopeSchema.extend({executionId:id,requestId:id,requestedByPrincipalId:id,hostRequestId:id,revision:z.int().positive(),contractVersion:z.union([z.literal(1),z.literal(2)]).optional(),legacyDispatchFenceReleased:z.boolean().optional(),snapshotFingerprint:sha,snapshot:AgentHostExecutionSnapshotSchema,dispatchPhase:AgentHostDispatchPhaseSchema,active:z.boolean(),observation:AgentHostTaskObservationSchema.nullable(),cancelRequestId:id.nullable(),errorCode:z.string().regex(/^[A-Z_]{1,80}$/).nullable(),createdAt:z.iso.datetime({offset:true}),updatedAt:z.iso.datetime({offset:true})}).refine(v=>(!v.legacyDispatchFenceReleased||v.contractVersion===1)&&v.snapshot.input.executionId===v.executionId&&v.snapshot.input.hostRequestId===v.hostRequestId&&v.snapshot.input.tenantId===v.tenantId&&v.snapshot.input.projectId===v.projectId&&v.snapshot.input.productionId===v.productionId&&(!v.observation||v.observation.requestId===v.hostRequestId&&v.observation.agentKey===v.snapshot.binding.selection.agentKey&&v.observation.agentVersion===v.snapshot.binding.selection.agentVersion&&v.observation.modelOptionKey===v.snapshot.binding.selection.modelOptionKey));var AgentHostExecutionPageSchema=z.strictObject({items:z.array(AgentHostExecutionViewSchema).max(100),hasMore:z.boolean(),nextBeforeId:id.nullable()}).refine(v=>v.hasMore===(v.nextBeforeId!==null)&&(!v.hasMore||v.nextBeforeId===v.items.at(-1)?.executionId)&&new Set(v.items.map(item=>item.executionId)).size===v.items.length);var AgentHostExecutionEventSchema=z.strictObject({id,executionId:id,revision:z.int().positive(),action:z.enum(["ADMIT","CLAIM","RECOVER_UNKNOWN","OBSERVE","REJECT","CANCEL_REQUEST","CANCEL_UNSENT"]),createdByPrincipalId:id,observation:AgentHostTaskObservationSchema.nullable(),errorCode:z.string().regex(/^[A-Z_]{1,80}$/).nullable(),createdAt:z.iso.datetime({offset:true})});var AgentHostExecutionEventQuerySchema=AgentHostExecutionGetSchema.extend({limit:z.int().min(1).max(100).default(20),beforeRevision:z.int().positive().optional()});var AgentHostExecutionEventPageSchema=z.strictObject({items:z.array(AgentHostExecutionEventSchema).max(100),hasMore:z.boolean(),nextBeforeRevision:z.int().positive().nullable()}).refine(v=>v.hasMore===(v.nextBeforeRevision!==null)&&(!v.hasMore||v.nextBeforeRevision===v.items.at(-1)?.revision)&&v.items.every((item,index)=>!index||item.revision<v.items[index-1].revision));var AgentHostExecutionFailureSchema=z.strictObject({semanticStatus:z.enum(["INVALID_INPUT","NOT_FOUND","BLOCKED","REVISION_CONFLICT","CAPABILITY_UNAVAILABLE","INTERNAL_OPERATIONAL_FAILURE"]),error:z.strictObject({code:z.enum(["INVALID_INPUT","UNAUTHENTICATED","FORBIDDEN","NOT_FOUND","REVISION_CONFLICT","REQUEST_CONFLICT","SOURCE_UNAVAILABLE","TOOL_AUTHORITY_UNAVAILABLE","ACTIVE_EXECUTION_EXISTS","LEASE_LOST","BINDING_UNAVAILABLE","INTERNAL_OPERATIONAL_FAILURE"]),message:z.literal("Agent Host execution did not complete")})});export{AgentHostExecutionScopeSchema,StartAgentHostExecutionSchema,AgentHostExecutionGetSchema,AgentHostExecutionQuerySchema,AgentHostExecutionInputSchema,AgentHostInstallationTransportSchema,AgentHostNativeToolAuthoritySchema,AgentHostExecutionViewSchema,AgentHostExecutionPageSchema,AgentHostExecutionEventQuerySchema,AgentHostExecutionEventPageSchema};
1
+ import{StudioInputContentSchema}from"./chunk-QVP4AMRJ.js";import{AgentHostBindingSchema,CurrentHostInstallationTransportSchema,HistoricalHostTransportSchema,HostReferenceSchema}from"./chunk-NNDKZ5H5.js";import{z}from"zod";var id=z.uuid();var sha=z.string().regex(/^[0-9a-f]{64}$/);var AgentHostExecutionScopeSchema=z.strictObject({tenantId:id,projectId:id,productionId:id});var StartAgentHostExecutionSchema=AgentHostExecutionScopeSchema.extend({requestId:id,studioInputArtifactId:id,bindingId:id,expectedProductionRevision:z.int().positive(),expectedBindingRevision:z.int().positive(),expectedConfigurationVersion:z.int().positive()});var AgentHostExecutionGetSchema=AgentHostExecutionScopeSchema.extend({executionId:id});var AgentHostExecutionQuerySchema=AgentHostExecutionScopeSchema.extend({limit:z.int().min(1).max(100).default(20),beforeId:id.optional()});var AgentHostExecutionSourceSchema=z.strictObject({artifactId:id,representationId:id,checksumSha256:sha,byteSize:z.int().positive().max(8388608),contentType:z.string().min(1).max(100),kind:z.enum(["PRODUCT_INFORMATION","REFERENCE_IMAGE","REFERENCE_VIDEO"])});var AgentHostExecutionInputSchema=AgentHostExecutionScopeSchema.extend({protocol:z.literal("NATIVESTUDIO_PRODUCTION_V1"),executionId:id,hostRequestId:id,productionRevision:z.int().positive(),studioInput:StudioInputContentSchema,intake:AgentHostExecutionSourceSchema,sources:z.array(AgentHostExecutionSourceSchema).max(12)}).refine(v=>v.studioInput.productionId===v.productionId&&v.studioInput.sourceArtifactIds.length===v.sources.length&&new Set(v.sources.map(s=>s.artifactId)).size===v.sources.length&&v.sources.every((s,index)=>s.artifactId===v.studioInput.sourceArtifactIds[index])&&!v.sources.some(s=>s.artifactId===v.intake.artifactId));var AgentHostInstallationTransportSchema=z.union([CurrentHostInstallationTransportSchema,HistoricalHostTransportSchema]);var AgentHostNativeToolAuthoritySchema=AgentHostExecutionScopeSchema.extend({protocol:z.literal("NATIVESTUDIO_AGENT_TOOLS_V1"),authorityRef:id,executionId:id,hostRequestId:id,bindingId:id,configurationVersion:z.int().positive(),inputFingerprint:sha,capabilityDigest:sha,expiresAt:z.iso.datetime({offset:true}),executionClass:z.enum(["LIVE","TEST_ONLY"]),transport:AgentHostInstallationTransportSchema.optional()});var AgentHostExecutionSnapshotSchema=z.strictObject({binding:AgentHostBindingSchema,input:AgentHostExecutionInputSchema,authority:AgentHostNativeToolAuthoritySchema}).refine(v=>v.binding.tenantId===v.input.tenantId&&v.binding.projectId===v.input.projectId&&v.binding.enabled&&v.authority.tenantId===v.input.tenantId&&v.authority.projectId===v.input.projectId&&v.authority.productionId===v.input.productionId&&v.authority.executionId===v.input.executionId&&v.authority.hostRequestId===v.input.hostRequestId&&v.authority.bindingId===v.binding.bindingId&&v.authority.configurationVersion===v.binding.configurationVersion);var AgentHostTaskObservationSchema=z.strictObject({requestId:id,runKey:z.string().regex(/^[A-Za-z0-9_-]{1,160}$/),status:z.enum(["accepted","running","succeeded","failed","cancelled","unknown"]),agentKey:HostReferenceSchema,agentVersion:z.union([HostReferenceSchema,z.int().positive()]),modelOptionKey:HostReferenceSchema,cancelRequested:z.boolean(),createdAt:z.iso.datetime({offset:true}),updatedAt:z.iso.datetime({offset:true}),timing:z.strictObject({acceptedAt:z.iso.datetime({offset:true}),deadlineAt:z.iso.datetime({offset:true}),limitSource:z.literal("TASK_POLICY")}).nullable()});var AgentHostDispatchPhaseSchema=z.enum(["ADMITTED","SENDING","OUTCOME_UNKNOWN","OBSERVING","REJECTED","CANCELLED_BEFORE_SUBMISSION"]);var AgentHostExecutionViewSchema=AgentHostExecutionScopeSchema.extend({executionId:id,requestId:id,requestedByPrincipalId:id,hostRequestId:id,revision:z.int().positive(),contractVersion:z.union([z.literal(1),z.literal(2)]).optional(),legacyDispatchFenceReleased:z.boolean().optional(),snapshotFingerprint:sha,snapshot:AgentHostExecutionSnapshotSchema,dispatchPhase:AgentHostDispatchPhaseSchema,active:z.boolean(),observation:AgentHostTaskObservationSchema.nullable(),cancelRequestId:id.nullable(),errorCode:z.string().regex(/^[A-Z_]{1,80}$/).nullable(),createdAt:z.iso.datetime({offset:true}),updatedAt:z.iso.datetime({offset:true})}).refine(v=>(!v.legacyDispatchFenceReleased||v.contractVersion===1)&&v.snapshot.input.executionId===v.executionId&&v.snapshot.input.hostRequestId===v.hostRequestId&&v.snapshot.input.tenantId===v.tenantId&&v.snapshot.input.projectId===v.projectId&&v.snapshot.input.productionId===v.productionId&&(!v.observation||v.observation.requestId===v.hostRequestId&&v.observation.agentKey===v.snapshot.binding.selection.agentKey&&v.observation.agentVersion===v.snapshot.binding.selection.agentVersion&&v.observation.modelOptionKey===v.snapshot.binding.selection.modelOptionKey));var AgentHostExecutionPageSchema=z.strictObject({items:z.array(AgentHostExecutionViewSchema).max(100),hasMore:z.boolean(),nextBeforeId:id.nullable()}).refine(v=>v.hasMore===(v.nextBeforeId!==null)&&(!v.hasMore||v.nextBeforeId===v.items.at(-1)?.executionId)&&new Set(v.items.map(item=>item.executionId)).size===v.items.length);var AgentHostExecutionEventSchema=z.strictObject({id,executionId:id,revision:z.int().positive(),action:z.enum(["ADMIT","CLAIM","RECOVER_UNKNOWN","OBSERVE","REJECT","CANCEL_REQUEST","CANCEL_UNSENT"]),createdByPrincipalId:id,observation:AgentHostTaskObservationSchema.nullable(),errorCode:z.string().regex(/^[A-Z_]{1,80}$/).nullable(),createdAt:z.iso.datetime({offset:true})});var AgentHostExecutionEventQuerySchema=AgentHostExecutionGetSchema.extend({limit:z.int().min(1).max(100).default(20),beforeRevision:z.int().positive().optional()});var AgentHostExecutionEventPageSchema=z.strictObject({items:z.array(AgentHostExecutionEventSchema).max(100),hasMore:z.boolean(),nextBeforeRevision:z.int().positive().nullable()}).refine(v=>v.hasMore===(v.nextBeforeRevision!==null)&&(!v.hasMore||v.nextBeforeRevision===v.items.at(-1)?.revision)&&v.items.every((item,index)=>!index||item.revision<v.items[index-1].revision));var AgentHostExecutionFailureSchema=z.strictObject({semanticStatus:z.enum(["INVALID_INPUT","NOT_FOUND","BLOCKED","REVISION_CONFLICT","CAPABILITY_UNAVAILABLE","INTERNAL_OPERATIONAL_FAILURE"]),error:z.strictObject({code:z.enum(["INVALID_INPUT","UNAUTHENTICATED","FORBIDDEN","NOT_FOUND","REVISION_CONFLICT","REQUEST_CONFLICT","SOURCE_UNAVAILABLE","TOOL_AUTHORITY_UNAVAILABLE","ACTIVE_EXECUTION_EXISTS","LEASE_LOST","BINDING_UNAVAILABLE","INTERNAL_OPERATIONAL_FAILURE"]),message:z.literal("Agent Host execution did not complete")})});export{AgentHostExecutionScopeSchema,StartAgentHostExecutionSchema,AgentHostExecutionGetSchema,AgentHostExecutionQuerySchema,AgentHostExecutionInputSchema,AgentHostInstallationTransportSchema,AgentHostNativeToolAuthoritySchema,AgentHostExecutionViewSchema,AgentHostExecutionPageSchema,AgentHostExecutionEventQuerySchema,AgentHostExecutionEventPageSchema};