@agentuity/core 2.0.8 → 2.0.9-v3.48d5810
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/services/coder/agents.d.ts +172 -0
- package/dist/services/coder/agents.d.ts.map +1 -0
- package/dist/services/coder/agents.js +77 -0
- package/dist/services/coder/agents.js.map +1 -0
- package/dist/services/coder/api-reference.d.ts.map +1 -1
- package/dist/services/coder/api-reference.js +393 -41
- package/dist/services/coder/api-reference.js.map +1 -1
- package/dist/services/coder/client.d.ts +44 -2
- package/dist/services/coder/client.d.ts.map +1 -1
- package/dist/services/coder/client.js +89 -3
- package/dist/services/coder/client.js.map +1 -1
- package/dist/services/coder/close-codes.d.ts +76 -0
- package/dist/services/coder/close-codes.d.ts.map +1 -0
- package/dist/services/coder/close-codes.js +77 -0
- package/dist/services/coder/close-codes.js.map +1 -0
- package/dist/services/coder/discover.d.ts +1 -1
- package/dist/services/coder/discover.js +2 -2
- package/dist/services/coder/discover.js.map +1 -1
- package/dist/services/coder/index.d.ts +9 -2
- package/dist/services/coder/index.d.ts.map +1 -1
- package/dist/services/coder/index.js +6 -1
- package/dist/services/coder/index.js.map +1 -1
- package/dist/services/coder/protocol.d.ts +1855 -0
- package/dist/services/coder/protocol.d.ts.map +1 -0
- package/dist/services/coder/protocol.js +976 -0
- package/dist/services/coder/protocol.js.map +1 -0
- package/dist/services/coder/sessions.d.ts +9 -0
- package/dist/services/coder/sessions.d.ts.map +1 -1
- package/dist/services/coder/sessions.js +30 -6
- package/dist/services/coder/sessions.js.map +1 -1
- package/dist/services/coder/sse.d.ts +255 -0
- package/dist/services/coder/sse.d.ts.map +1 -0
- package/dist/services/coder/sse.js +676 -0
- package/dist/services/coder/sse.js.map +1 -0
- package/dist/services/coder/types.d.ts +1024 -0
- package/dist/services/coder/types.d.ts.map +1 -1
- package/dist/services/coder/types.js +230 -1
- package/dist/services/coder/types.js.map +1 -1
- package/dist/services/coder/websocket.d.ts +346 -0
- package/dist/services/coder/websocket.d.ts.map +1 -0
- package/dist/services/coder/websocket.js +791 -0
- package/dist/services/coder/websocket.js.map +1 -0
- package/dist/services/oauth/types.d.ts +10 -0
- package/dist/services/oauth/types.d.ts.map +1 -1
- package/dist/services/oauth/types.js +3 -0
- package/dist/services/oauth/types.js.map +1 -1
- package/dist/services/project/deploy.d.ts +56 -5
- package/dist/services/project/deploy.d.ts.map +1 -1
- package/dist/services/project/deploy.js +39 -4
- package/dist/services/project/deploy.js.map +1 -1
- package/dist/services/sandbox/run.d.ts +2 -2
- package/dist/services/sandbox/types.d.ts +2 -2
- package/package.json +280 -100
- package/src/services/coder/agents.ts +148 -0
- package/src/services/coder/api-reference.ts +411 -45
- package/src/services/coder/client.ts +133 -2
- package/src/services/coder/close-codes.ts +83 -0
- package/src/services/coder/discover.ts +2 -2
- package/src/services/coder/index.ts +29 -1
- package/src/services/coder/protocol.ts +1200 -0
- package/src/services/coder/sessions.ts +40 -10
- package/src/services/coder/sse.ts +796 -0
- package/src/services/coder/types.ts +266 -1
- package/src/services/coder/websocket.ts +943 -0
- package/src/services/oauth/types.ts +3 -0
- package/src/services/project/deploy.ts +67 -26
|
@@ -20,6 +20,7 @@ export const OAuthClientSchema = z.object({
|
|
|
20
20
|
id_token_lifetime_seconds: z.number().optional(),
|
|
21
21
|
allowed_user_ids: z.array(z.string()),
|
|
22
22
|
internal: z.boolean().optional().default(false),
|
|
23
|
+
is_public: z.boolean().default(true),
|
|
23
24
|
created_at: z.string(),
|
|
24
25
|
updated_at: z.string(),
|
|
25
26
|
});
|
|
@@ -50,6 +51,7 @@ export const OAuthClientCreateRequestSchema = z.object({
|
|
|
50
51
|
refresh_token_lifetime_seconds: z.number().optional(),
|
|
51
52
|
id_token_lifetime_seconds: z.number().optional(),
|
|
52
53
|
allowed_user_ids: z.array(z.string()).optional(),
|
|
54
|
+
is_public: z.boolean().optional(),
|
|
53
55
|
});
|
|
54
56
|
|
|
55
57
|
export type OAuthClientCreateRequest = z.infer<typeof OAuthClientCreateRequestSchema>;
|
|
@@ -77,6 +79,7 @@ export const OAuthClientUpdateRequestSchema = z.object({
|
|
|
77
79
|
refresh_token_lifetime_seconds: z.number().optional(),
|
|
78
80
|
id_token_lifetime_seconds: z.number().optional(),
|
|
79
81
|
allowed_user_ids: z.array(z.string()).optional(),
|
|
82
|
+
is_public: z.boolean().optional(),
|
|
80
83
|
});
|
|
81
84
|
|
|
82
85
|
export type OAuthClientUpdateRequest = z.infer<typeof OAuthClientUpdateRequestSchema>;
|
|
@@ -73,33 +73,71 @@ export const BuildAgentSchema = z.object({
|
|
|
73
73
|
...BaseAgentFields,
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Launch process definition — describes how to start the application.
|
|
78
|
+
* Produced by the buildpack pipeline for any framework.
|
|
79
|
+
*/
|
|
80
|
+
export const LaunchProcessSchema = z.object({
|
|
81
|
+
type: z.string().describe('process type (e.g., web, worker)'),
|
|
82
|
+
command: z.string().describe('command to execute'),
|
|
83
|
+
default: z.boolean().describe('whether this is the default process'),
|
|
84
|
+
workingDirectory: z.string().optional().describe('working directory relative to app root'),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export const LaunchMetadataSchema = z.object({
|
|
88
|
+
processes: z.array(LaunchProcessSchema).describe('application processes'),
|
|
89
|
+
framework: z.object({
|
|
90
|
+
name: z.string().describe('detected framework name'),
|
|
91
|
+
version: z.string().optional().describe('framework version'),
|
|
92
|
+
}),
|
|
93
|
+
runtime: z.object({
|
|
94
|
+
name: z.string().describe('runtime binary (node, bun, deno)'),
|
|
95
|
+
port: z.number().optional().describe('port the app listens on'),
|
|
96
|
+
}),
|
|
97
|
+
build: z.object({
|
|
98
|
+
date: z.string().describe('build timestamp'),
|
|
99
|
+
duration: z.number().describe('build duration in ms'),
|
|
100
|
+
}),
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
export type LaunchMetadata = z.infer<typeof LaunchMetadataSchema>;
|
|
104
|
+
|
|
76
105
|
export const BuildMetadataSchema = z.object({
|
|
77
|
-
routes: z
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
routes: z
|
|
107
|
+
.array(
|
|
108
|
+
z.object({
|
|
109
|
+
id: z.string().describe('the unique calculated id for the route'),
|
|
110
|
+
filename: z.string().describe('the relative path for the file'),
|
|
111
|
+
path: z.string().describe('the route path'),
|
|
112
|
+
method: z.enum(['get', 'post', 'put', 'delete', 'patch']).describe('the HTTP method'),
|
|
113
|
+
version: z.string().describe('the SHA256 content of the file'),
|
|
114
|
+
type: z.enum(['api', 'sms', 'email', 'cron', 'websocket', 'sse', 'stream']),
|
|
115
|
+
agentIds: z
|
|
116
|
+
.array(z.string())
|
|
117
|
+
.optional()
|
|
118
|
+
.describe('the agent ids associated with this route'),
|
|
119
|
+
config: z
|
|
120
|
+
.record(z.string(), z.unknown())
|
|
121
|
+
.optional()
|
|
122
|
+
.describe('type specific configuration'),
|
|
123
|
+
schema: z
|
|
124
|
+
.object({
|
|
125
|
+
input: z.string().optional().describe('JSON schema for input (stringified JSON)'),
|
|
126
|
+
output: z
|
|
127
|
+
.string()
|
|
128
|
+
.optional()
|
|
129
|
+
.describe('JSON schema for output (stringified JSON)'),
|
|
130
|
+
})
|
|
131
|
+
.optional()
|
|
132
|
+
.describe('input and output JSON schemas for the route'),
|
|
133
|
+
})
|
|
134
|
+
)
|
|
135
|
+
.default([])
|
|
136
|
+
.describe('routes — only present for Agentuity native apps'),
|
|
137
|
+
agents: z
|
|
138
|
+
.array(BuildAgentSchema)
|
|
139
|
+
.default([])
|
|
140
|
+
.describe('agents — only present for Agentuity native apps'),
|
|
103
141
|
assets: z.array(
|
|
104
142
|
z.object({
|
|
105
143
|
filename: z.string().describe('the relative path for the file'),
|
|
@@ -176,6 +214,9 @@ export const BuildMetadataSchema = z.object({
|
|
|
176
214
|
}),
|
|
177
215
|
})
|
|
178
216
|
),
|
|
217
|
+
launch: LaunchMetadataSchema.optional().describe(
|
|
218
|
+
'launch metadata — how to start the application (processes, framework, runtime)'
|
|
219
|
+
),
|
|
179
220
|
});
|
|
180
221
|
|
|
181
222
|
export type BuildMetadata = z.infer<typeof BuildMetadataSchema>;
|