@keystrokehq/cli 0.1.16 → 0.1.17
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/{dist-BnIugffH.mjs → dist-BRA_tOTT.mjs} +47 -5
- package/dist/{dist-BnIugffH.mjs.map → dist-BRA_tOTT.mjs.map} +1 -1
- package/dist/dist-BZBvPUyu.mjs +3 -0
- package/dist/{dist-PBiyADK0.mjs → dist-C6KqfgGN.mjs} +3 -3
- package/dist/{dist-PBiyADK0.mjs.map → dist-C6KqfgGN.mjs.map} +1 -1
- package/dist/{dist-B4pkCJsM.mjs → dist-DeRE4uJW.mjs} +2 -2
- package/dist/dist-DeRE4uJW.mjs.map +1 -0
- package/dist/{dist-BW3AMCud.mjs → dist-E9nHDRnf.mjs} +3 -3
- package/dist/{dist-BW3AMCud.mjs.map → dist-E9nHDRnf.mjs.map} +1 -1
- package/dist/index.mjs +20 -11
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-BIarxWf3.mjs → maybe-auto-update-douMZFWJ.mjs} +2 -2
- package/dist/{maybe-auto-update-BIarxWf3.mjs.map → maybe-auto-update-douMZFWJ.mjs.map} +1 -1
- package/dist/{version-DScIhncv.mjs → version-CJd1mEoq.mjs} +2 -2
- package/dist/{version-DScIhncv.mjs.map → version-CJd1mEoq.mjs.map} +1 -1
- package/package.json +2 -2
- package/dist/dist-B4pkCJsM.mjs.map +0 -1
- package/dist/dist-c4WWC9_F.mjs +0 -3
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as HistoryRunCancelResponseSchema, $t as
|
|
3
|
-
import { a as installPlaygroundDependencies, c as createCliConfig, d as getEffectiveApiTarget, f as getPlatformUrl, g as resolvePlatformUrlForWebUrl, i as installDependencies$1, l as getCliConfigDir, m as DEFAULT_PLATFORM_URL, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getWebUrl, s as resolveCliRoot, t as readCliVersion, u as getConfigDir } from "./version-
|
|
4
|
-
import { n as mergeFilteredArtifact, r as packProjectArtifact, t as mapInParallelBatches } from "./dist-
|
|
2
|
+
import { $ as HistoryRunCancelResponseSchema, $t as StartMcpOAuthConnectionResultSchema, A as CreateCustomAppRequestSchema, An as WorkspaceTriggerDetailSchema, At as PresignOrgLogoRequestSchema, B as CredentialConsumerListQuerySchema, Bt as ProjectSlugAvailabilityResponseSchema, C as ConnectAuthorizeUrlResponseSchema, Cn as UserPreferencesPatchSchema, Ct as OrganizationSidebarBrandingPatchSchema, D as CreateCredentialInstanceBodySchema, Dn as WorkflowRunListResponseSchema, Dt as PollRunResponseSchema, E as CreateApiKeyResponseSchema, En as WorkflowRunHooksResponseSchema, Et as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, F as CreateProjectRequestSchema, Fn as buildConnectDeeplink, Ft as PresignUserAvatarResponseSchema, G as DownloadActiveProjectArtifactResponseSchema, Gn as resolveConnectAppSlug, H as CredentialInstanceListResponseSchema, Hn as parseAppSlug, Ht as PromptResponseSchema, I as CreateProjectResponseSchema, It as ProjectPullStateSchema, J as GatewayAttachmentRecordSchema, Jt as SkillSummaryListResponseSchema, K as DownloadActiveProjectSourceResponseSchema, Kn as resolvePublicPlatformOrigin, Kt as RecentResourceListResponseSchema, L as CredentialAssignmentListQuerySchema, Ln as detectProjectPackageManagerFromSnapshot, Lt as ProjectReachabilityResponseSchema, M as CreateOrganizationRequestSchema, Mn as WorkspaceTriggerListResponseSchema, Mt as PresignProjectSourceRequestSchema, N as CreateOrganizationResponseSchema, Nn as WorkspaceTriggerOverviewSchema, Nt as PresignProjectSourceResponseSchema, O as CreateCredentialsRequestSchema, On as WorkflowSummaryDetailResponseSchema, Ot as PresignChatAttachmentRequestSchema, P as CreateProjectArtifactResponseSchema, Pn as WorkspaceTriggerRunListResponseSchema, Pt as PresignUserAvatarRequestSchema, Q as HealthResponseSchema, Qt as StartMcpOAuthConnectionInputSchema, R as CredentialAssignmentListResponseSchema, Rn as isAcceptableInstallExit, Rt as ProjectResponseSchema, S as CompleteProjectArtifactResponseSchema, Sn as UserAvatarSchema, St as OpenApiDiscoverResponseSchema, T as CreateApiKeyRequestSchema, Tn as WorkflowRunDetailResponseSchema, Tt as PROJECT_PULL_STATE_RELATIVE_PATH, U as CredentialInstanceRecordSchema, Un as parseErrorResponse, Ut as QueuedAgentPromptResponseSchema, V as CredentialConsumerListResponseSchema, Vt as PromptInputSchema, W as DeclineOrganizationInvitationResponseSchema, Wt as QueuedRunResponseSchema, X as GetCustomAppResponseSchema, Xt as StartKeystrokeConnectionInputSchema, Y as GetCredentialResponseSchema, Yt as SlugAvailabilityResponseSchema, Z as GraphqlDiscoverResponseSchema, Zt as StartKeystrokeConnectionResultSchema, _ as ChannelAccountListResponseSchema, _n as UpdateProjectSettingsRequestSchema, _t as ListProjectFilesResponseSchema, a as AgentSessionDetailResponseSchema, an as TriggerListResponseSchema, at as InviteProjectMembersRequestSchema, b as ChannelDirectoryListResponseSchema, bn as UpsertGatewayAttachmentBodySchema, bt as ListProjectsResponseSchema, c as AgentSummaryListResponseSchema, cn as UpdateChannelBindingBodySchema, ct as ListAgentMemoryFilesResponseSchema, d as AssignCredentialBodySchema, dn as UpdateOrganizationMemberRequestSchema, dt as ListAppsResponseSchema, en as StartOAuthConnectionInputSchema, et as HistoryRunDetailResponseSchema, f as BindChannelBodySchema, fn as UpdateOrganizationMemberResponseSchema, ft as ListCredentialsResponseSchema, g as CatalogAppsPageResponseSchema, gn as UpdateProjectRequestSchema, gt as ListProjectDeploymentsResponseSchema, h as CatalogAppDetailResponseSchema, hn as UpdateProjectMemberResponseSchema, ht as ListOrganizationsResponseSchema, i as AgentSessionChatStateResponseSchema, in as TriggerDetailResponseSchema, it as InviteOrganizationMembersResponseSchema, j as CreateCustomAppResponseSchema, jn as WorkspaceTriggerFileSchema, jt as PresignOrgLogoResponseSchema, k as CreateCredentialsResponseSchema, kn as WorkflowSummaryListResponseSchema, kt as PresignChatAttachmentResponseSchema, l as AgentTriggerSummaryListResponseSchema, ln as UpdateCredentialInstanceBodySchema, lt as ListAgentWorkspaceFilesResponseSchema, m as CatalogActionsPageResponseSchema, mn as UpdateProjectMemberRequestSchema, mt as ListOrganizationMembersResponseSchema, n as AcceptOrganizationInvitationResponseSchema, nn as SubmitMarketingContactRequestSchema, nt as HistoryRunListResponseSchema, o as AgentSessionListResponseSchema, on as TriggerRunDetailResponseSchema, ot as InviteProjectMembersResponseSchema, p as CatalogActionDetailResponseSchema, pn as UpdateOrganizationRequestSchema, pt as ListOrganizationInvitationsResponseSchema, q as ErrorResponseSchema, qn as slugifyAppName, qt as SkillSummaryDetailResponseSchema, r as ActiveOrganizationResponseSchema, rn as SubmitTeamRequestRequestSchema, rt as InviteOrganizationMembersRequestSchema, s as AgentSummaryDetailResponseSchema, sn as TriggerRunListResponseSchema, t as ACTIVE_ORG_HEADER, tn as StartOAuthConnectionResultSchema, tt as HistoryRunListQuerySchema, u as AppSlugAvailabilityResponseSchema, un as UpdateCredentialRequestSchema, ut as ListApiKeysResponseSchema, v as ChannelConnectionListResponseSchema, vn as UploadProjectSourceManifestRequestSchema, vt as ListProjectMembersResponseSchema, w as ConnectProvidersResponseSchema, wn as UserPreferencesSchema, wt as OrganizationSidebarBrandingSchema, x as ChannelPlatformSchema, xn as UserAvatarPatchSchema, xt as McpDiscoverResponseSchema, y as ChannelConnectionSchema, yn as UploadProjectSourceResponseSchema, yt as ListProjectMetricsResponseSchema, z as CredentialAssignmentRecordSchema, zn as listenPortFromPublicUrl, zt as ProjectSettingsResponseSchema } from "./dist-BRA_tOTT.mjs";
|
|
3
|
+
import { a as installPlaygroundDependencies, c as createCliConfig, d as getEffectiveApiTarget, f as getPlatformUrl, g as resolvePlatformUrlForWebUrl, i as installDependencies$1, l as getCliConfigDir, m as DEFAULT_PLATFORM_URL, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getWebUrl, s as resolveCliRoot, t as readCliVersion, u as getConfigDir } from "./version-CJd1mEoq.mjs";
|
|
4
|
+
import { n as mergeFilteredArtifact, r as packProjectArtifact, t as mapInParallelBatches } from "./dist-DeRE4uJW.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { Command } from "commander";
|
|
7
7
|
import { platform } from "node:os";
|
|
@@ -3655,6 +3655,15 @@ function createAgentsResource(http) {
|
|
|
3655
3655
|
throw await toPlatformError(error);
|
|
3656
3656
|
}
|
|
3657
3657
|
},
|
|
3658
|
+
async presignAttachment(projectId, agentSlug, input) {
|
|
3659
|
+
try {
|
|
3660
|
+
const payload = PresignChatAttachmentRequestSchema.parse(input);
|
|
3661
|
+
const data = await http.post(`api/projects/${encodeURIComponent(projectId)}/agents/${encodeURIComponent(agentSlug)}/attachments/presign`, { json: payload }).json();
|
|
3662
|
+
return PresignChatAttachmentResponseSchema.parse(data);
|
|
3663
|
+
} catch (error) {
|
|
3664
|
+
throw await toPlatformError(error);
|
|
3665
|
+
}
|
|
3666
|
+
},
|
|
3658
3667
|
async getSessionState(projectId, sessionId, options) {
|
|
3659
3668
|
try {
|
|
3660
3669
|
const sinceSeq = options?.sinceSeq;
|
|
@@ -6105,7 +6114,7 @@ function registerBuildCommand(program) {
|
|
|
6105
6114
|
program.command("build").description("Build the keystroke project for production").option("--dir <path>", "Project directory", process.cwd()).action(async (options) => {
|
|
6106
6115
|
try {
|
|
6107
6116
|
const root = resolveProjectRoot(options.dir);
|
|
6108
|
-
const { buildApp } = await import("./dist-
|
|
6117
|
+
const { buildApp } = await import("./dist-C6KqfgGN.mjs");
|
|
6109
6118
|
await buildApp({ root });
|
|
6110
6119
|
process.stdout.write(`Built ${root}\n`);
|
|
6111
6120
|
} catch (error) {
|
|
@@ -6159,7 +6168,7 @@ async function sleep(ms) {
|
|
|
6159
6168
|
}
|
|
6160
6169
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
6161
6170
|
if (filter?.length) {
|
|
6162
|
-
const { buildFilteredApp } = await import("./dist-
|
|
6171
|
+
const { buildFilteredApp } = await import("./dist-C6KqfgGN.mjs");
|
|
6163
6172
|
const filtered = await buildFilteredApp({
|
|
6164
6173
|
root,
|
|
6165
6174
|
filter,
|
|
@@ -6181,7 +6190,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
6181
6190
|
sourceFiles: filtered.sourceFiles
|
|
6182
6191
|
};
|
|
6183
6192
|
}
|
|
6184
|
-
const { buildApp } = await import("./dist-
|
|
6193
|
+
const { buildApp } = await import("./dist-C6KqfgGN.mjs");
|
|
6185
6194
|
const { sourceFiles } = await buildApp({
|
|
6186
6195
|
root,
|
|
6187
6196
|
collectSources: true,
|
|
@@ -6300,7 +6309,7 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
6300
6309
|
//#region src/project/bootstrap-run.ts
|
|
6301
6310
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
6302
6311
|
async function resolveBootstrapRun(options) {
|
|
6303
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
6312
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-C6KqfgGN.mjs");
|
|
6304
6313
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
6305
6314
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
6306
6315
|
const args = [`--import=${loader}`];
|
|
@@ -6449,7 +6458,7 @@ async function runDev(options) {
|
|
|
6449
6458
|
process.on("SIGINT", shutdown);
|
|
6450
6459
|
process.on("SIGTERM", shutdown);
|
|
6451
6460
|
try {
|
|
6452
|
-
const { watchApp } = await import("./dist-
|
|
6461
|
+
const { watchApp } = await import("./dist-C6KqfgGN.mjs");
|
|
6453
6462
|
await watchApp({
|
|
6454
6463
|
root,
|
|
6455
6464
|
clean: false,
|
|
@@ -6599,7 +6608,7 @@ const INIT_CATALOG_VERSIONS = {
|
|
|
6599
6608
|
vitest: "^4.1.7",
|
|
6600
6609
|
"@types/node": "^25.9.1"
|
|
6601
6610
|
};
|
|
6602
|
-
const INIT_KEYSTROKE_VERSION = "^0.1.
|
|
6611
|
+
const INIT_KEYSTROKE_VERSION = "^0.1.15";
|
|
6603
6612
|
//#endregion
|
|
6604
6613
|
//#region src/init/copy-template.ts
|
|
6605
6614
|
function renderTemplate(content, variables) {
|
|
@@ -7384,7 +7393,7 @@ async function runStart(options) {
|
|
|
7384
7393
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
7385
7394
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
7386
7395
|
ensureNativeDeps(runtimeNodeModules);
|
|
7387
|
-
const { buildApp } = await import("./dist-
|
|
7396
|
+
const { buildApp } = await import("./dist-C6KqfgGN.mjs");
|
|
7388
7397
|
await buildApp({
|
|
7389
7398
|
root,
|
|
7390
7399
|
clean: false
|
|
@@ -7968,7 +7977,7 @@ function createProgram() {
|
|
|
7968
7977
|
return program;
|
|
7969
7978
|
}
|
|
7970
7979
|
async function runCli(argv) {
|
|
7971
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
7980
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-douMZFWJ.mjs");
|
|
7972
7981
|
await maybeAutoUpdate(argv);
|
|
7973
7982
|
createProgram().parse(argv);
|
|
7974
7983
|
}
|