@you-agent-factory/client 0.0.2 → 0.0.7
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/contracts.d.ts +1 -0
- package/dist/generated/factory-event.schema.json +235 -62
- package/dist/generated/factory.schema.json +171 -62
- package/dist/generated/openapi.d.ts +409 -41
- package/dist/generated/openapi.js +41 -14
- package/dist/index.d.ts +1 -1
- package/package.json +1 -2
|
@@ -148,6 +148,8 @@ export const ErrorResponseCode = {
|
|
|
148
148
|
STALE_FACTORY_VERSION: "STALE_FACTORY_VERSION",
|
|
149
149
|
// Operator move requestId was already applied for this session.
|
|
150
150
|
MOVE_WORK_REQUEST_ALREADY_APPLIED: "MOVE_WORK_REQUEST_ALREADY_APPLIED",
|
|
151
|
+
// The HTTP method is not allowed for the requested route.
|
|
152
|
+
METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED",
|
|
151
153
|
// Durable execution requestId was reused with materially different inputs.
|
|
152
154
|
EXECUTION_REQUEST_ID_CONFLICT: "EXECUTION_REQUEST_ID_CONFLICT",
|
|
153
155
|
// Lifecycle control requestId was already applied with different control inputs.
|
|
@@ -434,6 +436,9 @@ export const ProviderSessionTranscriptEntryType = {
|
|
|
434
436
|
tool_output: "tool_output",
|
|
435
437
|
system_event: "system_event",
|
|
436
438
|
};
|
|
439
|
+
export const NameValueType = {
|
|
440
|
+
LOCALIZABLE_ASSET: "LOCALIZABLE_ASSET",
|
|
441
|
+
};
|
|
437
442
|
export const FactoryWorldWorkItemRefPayloadStatus = {
|
|
438
443
|
RESOLVED: "RESOLVED",
|
|
439
444
|
UNAVAILABLE: "UNAVAILABLE",
|
|
@@ -484,6 +489,8 @@ export const FactoryEventType = {
|
|
|
484
489
|
FactoryEventTypeRelationshipChangeRequest: "RELATIONSHIP_CHANGE_REQUEST",
|
|
485
490
|
// A workstation request began processing a set of input work.
|
|
486
491
|
FactoryEventTypeDispatchRequest: "DISPATCH_REQUEST",
|
|
492
|
+
// A dispatch was associated with the Worker Session allocated to execute it.
|
|
493
|
+
FactoryEventTypeDispatchWorkerSessionAssociation: "DISPATCH_WORKER_SESSION_ASSOCIATION",
|
|
487
494
|
// A model-backed worker invocation request is about to enter resource, load, and execution boundaries.
|
|
488
495
|
FactoryEventTypeModelRequest: "MODEL_REQUEST",
|
|
489
496
|
// A model-backed worker invocation returned with resource, load, output, and failure evidence.
|
|
@@ -811,20 +818,40 @@ export const WorkerType = {
|
|
|
811
818
|
export const WorkerModelProvider = {
|
|
812
819
|
CLAUDE: "CLAUDE",
|
|
813
820
|
CODEX: "CODEX",
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
821
|
+
ANTIGRAVITY: "ANTIGRAVITY",
|
|
822
|
+
};
|
|
823
|
+
export const ProviderCatalogFormatVersion = {
|
|
824
|
+
Value1_0_0: "1.0.0",
|
|
825
|
+
};
|
|
826
|
+
export const ProviderCatalogProviderSchema = {
|
|
827
|
+
https_schemas_you_dev_model_providers_provider_manifest_1_0_0_schema_json: "https://schemas.you.dev/model-providers/provider-manifest/1.0.0.schema.json",
|
|
828
|
+
};
|
|
829
|
+
export const ProviderTechnicalSupportLevel = {
|
|
830
|
+
production: "production",
|
|
831
|
+
experimental: "experimental",
|
|
832
|
+
not_supported: "not-supported",
|
|
833
|
+
};
|
|
834
|
+
export const ProviderImplementationAvailability = {
|
|
835
|
+
bundled: "bundled",
|
|
836
|
+
externally_supplied: "externally-supplied",
|
|
837
|
+
catalog_only: "catalog-only",
|
|
838
|
+
};
|
|
839
|
+
export const ProviderDocumentationLinkKind = {
|
|
840
|
+
homepage: "homepage",
|
|
841
|
+
setup: "setup",
|
|
842
|
+
reference: "reference",
|
|
843
|
+
support: "support",
|
|
844
|
+
};
|
|
845
|
+
export const ProviderDiscoveryEndpointKind = {
|
|
846
|
+
local_http: "local-http",
|
|
847
|
+
remote_http: "remote-http",
|
|
848
|
+
stdio: "stdio",
|
|
849
|
+
unix_socket: "unix-socket",
|
|
820
850
|
};
|
|
821
851
|
export const WorkerModelLocality = {
|
|
822
852
|
LOCAL: "LOCAL",
|
|
823
853
|
CLOUD: "CLOUD",
|
|
824
854
|
};
|
|
825
|
-
export const WorkerProvider = {
|
|
826
|
-
SCRIPT_WRAP: "SCRIPT_WRAP",
|
|
827
|
-
};
|
|
828
855
|
export const ModelOperationContentType = {
|
|
829
856
|
TEXT: "TEXT",
|
|
830
857
|
IMAGE: "IMAGE",
|
|
@@ -834,11 +861,8 @@ export const ModelOperationContentType = {
|
|
|
834
861
|
};
|
|
835
862
|
export const RunnerID = {
|
|
836
863
|
codex: "codex",
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
cursor_cli: "cursor-cli",
|
|
840
|
-
opencode: "opencode",
|
|
841
|
-
pi: "pi",
|
|
864
|
+
claude: "claude",
|
|
865
|
+
antigravity: "antigravity",
|
|
842
866
|
};
|
|
843
867
|
export const RunnerSelectionSource = {
|
|
844
868
|
// Workstation-level runner override resolved the dispatch target.
|
|
@@ -1015,6 +1039,9 @@ export const WorkstationGuardType = {
|
|
|
1015
1039
|
VISIT_COUNT: "VISIT_COUNT",
|
|
1016
1040
|
MATCHES_FIELDS: "MATCHES_FIELDS",
|
|
1017
1041
|
};
|
|
1042
|
+
export const GlobalConfigACPIntegrationTransport = {
|
|
1043
|
+
stdio: "stdio",
|
|
1044
|
+
};
|
|
1018
1045
|
export const ComponentsParametersSortBy = {
|
|
1019
1046
|
state_type: "state.type",
|
|
1020
1047
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { type components, FACTORY_EVENT_SCHEMA_VERSIONS, FACTORY_EVENT_TYPES, ty
|
|
|
2
2
|
export { compareFactoryEvents, createFactoryEventCursor, type FactoryEventCursor, getFactoryEventEffectiveSequence, orderFactoryEvents, } from "./event-ordering.js";
|
|
3
3
|
export { FACTORY_RECORDING_SCHEMA_VERSION, type FactoryRecording, FactoryRecordingValidationError, parseFactoryRecording, type RecordingValidationIssue, type RecordingValidationIssueCode, type SafeParseFactoryRecordingResult, safeParseFactoryRecording, } from "./recording.js";
|
|
4
4
|
export { type FactoryReplayTextIssue, type FactoryReplayTextIssueCode, FactoryReplayTextParseError, parseFactoryEventReplayText, type SafeParseFactoryEventReplayTextResult, safeParseFactoryEventReplayText, } from "./replay.js";
|
|
5
|
-
export { parseFactoryVisualizationLayout, safeParseFactoryVisualizationLayout,
|
|
5
|
+
export { type FactoryVisualizationLayoutCanonicalNodeContext, parseFactoryVisualizationLayout, safeParseFactoryVisualizationLayout, } from "./visualization-layout.js";
|
|
6
6
|
export { FACTORY_VISUALIZATION_LAYOUT_SCHEMA_VERSION, type FactoryVisualizationAnnotation, type FactoryVisualizationEmbeddedImageSource, type FactoryVisualizationImageAnnotation, type FactoryVisualizationImageContent, type FactoryVisualizationLayoutIssue, type FactoryVisualizationLayoutIssueCode, type FactoryVisualizationLayoutV1, type FactoryVisualizationNodeEmptyState, type FactoryVisualizationNoteAnnotation, type FactoryVisualizationNoteTone, type FactoryVisualizationPosition, type FactoryVisualizationSize, type FactoryVisualizationTextEmptyState, type SafeParseFactoryVisualizationLayoutResult, } from "./visualization-layout-contracts.js";
|
|
7
7
|
export { FactoryVisualizationLayoutValidationError } from "./visualization-layout-error.js";
|
|
8
8
|
export { MAX_EMBEDDED_IMAGE_BYTES, MAX_IMAGE_ALT_TEXT_LENGTH, MAX_LAYOUT_IMAGE_BYTES, } from "./visualization-layout-media.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@you-agent-factory/client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Transport-neutral Factory contracts and recording utilities.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"check:pack": "node scripts/verify-package-pack.mjs",
|
|
35
35
|
"check:generated": "node scripts/generate-contracts.mjs --check",
|
|
36
36
|
"generate": "node scripts/generate-contracts.mjs",
|
|
37
|
-
"prepack": "bun run build",
|
|
38
37
|
"test": "vitest run --config vitest.config.ts",
|
|
39
38
|
"typecheck": "tsc -p tsconfig.json --noEmit --pretty false",
|
|
40
39
|
"verify": "bun run check:generated && bun run typecheck && bun run test && bun run build && bun run check:pack && bun run check:installed-consumer"
|