@keystrokehq/cli 0.1.80 → 0.1.82
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-hlO_zOcR.mjs → dist-CEmkrm9b.mjs} +4 -14
- package/dist/{dist-hlO_zOcR.mjs.map → dist-CEmkrm9b.mjs.map} +1 -1
- package/dist/{dist-CaXCStMR.mjs → dist-CnRkj0Dr.mjs} +1 -1
- package/dist/{dist-CPKw37uL.mjs → dist-CnsvKhw-.mjs} +3 -3
- package/dist/{dist-CPKw37uL.mjs.map → dist-CnsvKhw-.mjs.map} +1 -1
- package/dist/{dist-D4gIEWN9.mjs → dist-Digu3xY8.mjs} +3 -5
- package/dist/dist-Digu3xY8.mjs.map +1 -0
- package/dist/{dist-BIB3Iubo.mjs → dist-uPQD-3bl.mjs} +2 -2
- package/dist/{dist-BIB3Iubo.mjs.map → dist-uPQD-3bl.mjs.map} +1 -1
- package/dist/index.mjs +14 -16
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-I4VJVddd.mjs → maybe-auto-update-B3xm1MYv.mjs} +2 -2
- package/dist/{maybe-auto-update-I4VJVddd.mjs.map → maybe-auto-update-B3xm1MYv.mjs.map} +1 -1
- package/dist/{version-DJCgo5_v.mjs → version-ikvpTH-2.mjs} +2 -2
- package/dist/{version-DJCgo5_v.mjs.map → version-ikvpTH-2.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/dist-D4gIEWN9.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as
|
|
3
|
-
import { i as packProjectArtifact, n as withMcpReadClient, r as mergeFilteredArtifact, t as mapInParallelBatches } from "./dist-
|
|
4
|
-
import { _ as resolvePlatformUrlForWebUrl, a as installPlaygroundDependencies, c as isNewerVersion, d as getConfigDir, f as getEffectiveApiTarget, h as DEFAULT_PLATFORM_URL, i as installDependencies$1, l as createCliConfig, m as getWebUrl, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getPlatformUrl, s as resolveCliRoot, t as readCliVersion, u as getCliConfigDir } from "./version-
|
|
2
|
+
import { $ as CredentialInstanceRecordSchema, $n as WorkflowRunDetailResponseSchema, $t as PresignProjectSourceResponseSchema, A as ConnectManagedServiceCredentialRequestSchema, An as TriggerRunListResponseSchema, At as ListManagedServiceCredentialsResponseSchema, B as CreateCustomAppResponseSchema, Bn as UpdateProjectMemberResponseSchema, Bt as ManagedServiceCredentialSchema, C as ChannelConnectionListResponseSchema, Cn as SubmitMarketingContactRequestSchema, Ct as ListAgentMemoryFilesResponseSchema, D as ConfirmCheckoutRequestSchema, Dn as TriggerInvokeResponseSchema, Dr as resolvePublicPlatformOrigin, Dt as ListChannelPlatformsResponseSchema, E as CompleteProjectArtifactResponseSchema, En as TriggerInvokeInputsSchema, Er as resolveDocsMcpUrl, Et as ListAppsResponseSchema, F as CreateCredentialInstanceBodySchema, Fn as UpdateManagedServiceCredentialRequestSchema, Ft as ListProjectDeploymentsResponseSchema, G as CreateProjectResponseSchema, Gn as UpsertGatewayAttachmentBodySchema, Gt as OrganizationSidebarBrandingSchema, H as CreateOrganizationResponseSchema, Hn as UpdateProjectSettingsRequestSchema, Ht as McpDiscoverResponseSchema, I as CreateCredentialsRequestSchema, In as UpdateOrganizationMemberRequestSchema, It as ListProjectFilesResponseSchema, J as CredentialAssignmentListResponseSchema, Jn as UserPreferencesPatchSchema, Jt as PresignChatAttachmentRequestSchema, K as CreateSubscriptionCheckoutRequestSchema, Kn as UserAvatarPatchSchema, Kt as PROJECT_PULL_STATE_RELATIVE_PATH, L as CreateCredentialsResponseSchema, Ln as UpdateOrganizationMemberResponseSchema, Lt as ListProjectMembersResponseSchema, M as CreateApiKeyRequestSchema, Mn as UpdateChannelBindingBodySchema, Mt as ListOrganizationMembersPageQuerySchema, N as CreateApiKeyResponseSchema, Nn as UpdateCredentialInstanceBodySchema, Nt as ListOrganizationMembersPageResponseSchema, O as ConfirmCheckoutResponseSchema, On as TriggerListResponseSchema, Or as slugifyAppName, Ot as ListCredentialsPageQuerySchema, P as CreateBillingPortalRequestSchema, Pn as UpdateCredentialRequestSchema, Pt as ListOrganizationsResponseSchema, Q as CredentialInstanceListResponseSchema, Qn as WorkflowCanvasSchema, Qt as PresignProjectSourceRequestSchema, R as CreateCreditsCheckoutRequestSchema, Rn as UpdateOrganizationRequestSchema, Rt as ListProjectMetricsResponseSchema, S as ChannelAccountListResponseSchema, Sn as StartOAuthConnectionResultSchema, Sr as parseErrorResponse, T as ChannelDirectoryListResponseSchema, Tn as TriggerDetailResponseSchema, Tr as resolveConnectAppSlug, Tt as ListApiKeysResponseSchema, U as CreateProjectArtifactResponseSchema, Un as UploadProjectSourceManifestRequestSchema, Ut as OpenApiDiscoverResponseSchema, V as CreateOrganizationRequestSchema, Vn as UpdateProjectRequestSchema, Vt as ManagedServiceKindSchema, W as CreateProjectRequestSchema, Wn as UploadProjectSourceResponseSchema, Wt as OrganizationSidebarBrandingPatchSchema, X as CredentialConsumerListQuerySchema, Xn as WorkflowCanvasCredentialBindingsSchema, Xt as PresignOrgLogoRequestSchema, Y as CredentialAssignmentRecordSchema, Yn as UserPreferencesSchema, Yt as PresignChatAttachmentResponseSchema, Z as CredentialConsumerListResponseSchema, Zn as WorkflowCanvasRunSchema, Zt as PresignOrgLogoResponseSchema, _ as BindChannelBodySchema, _n as StartKeystrokeConnectionInputSchema, _r as isAcceptableInstallExit, _t as HistoryRunListResponseSchema, a as AgentSessionListResponseSchema, an as ProjectSettingsResponseSchema, ar as WorkflowSummaryDetailResponseSchema, at as DownloadActiveProjectSourceResponseSchema, b as CatalogAppDetailResponseSchema, bn as StartMcpOAuthConnectionResultSchema, bt as InviteProjectMembersRequestSchema, c as AgentTriggerSummaryListResponseSchema, cn as PromptResponseSchema, cr as WorkspaceTriggerFileSchema, ct as GatewayAttachmentRecordSchema, d as AutoTopupSummarySchema, dn as QueuedRunResponseSchema, dr as WorkspaceTriggerRunListResponseSchema, dt as GetCustomAppResponseSchema, en as PresignUserAvatarRequestSchema, er as WorkflowRunHooksResponseSchema, f as BillingActivityResponseSchema, fr as WorkspaceWorkflowOverviewSchema, ft as GraphqlDiscoverResponseSchema, g as BillingUsageResponseSchema, gn as SlugAvailabilityResponseSchema, gr as detectProjectPackageManagerFromSnapshot, gt as HistoryRunListQuerySchema, h as BillingSummaryResponseSchema, hn as SkillSummaryListResponseSchema, hr as deriveCustomAppDisplay, ht as HistoryRunDetailResponseSchema, i as AgentSessionDetailResponseSchema, in as ProjectResponseSchema, ir as WorkflowRunResponseSchema, it as DownloadActiveProjectArtifactResponseSchema, j as ConnectProvidersResponseSchema, jn as UpdateAutoTopupRequestSchema, jt as ListOrganizationInvitationsResponseSchema, k as ConnectAuthorizeUrlResponseSchema, kn as TriggerRunDetailResponseSchema, kt as ListCredentialsPageResponseSchema, l as AppSlugAvailabilityResponseSchema, lr as WorkspaceTriggerListResponseSchema, lt as GetAppCatalogEntryResponseSchema, m as BillingRedirectResponseSchema, mn as SkillSummaryDetailResponseSchema, mt as HistoryRunCancelResponseSchema, n as AcceptOrganizationInvitationResponseSchema, nn as ProjectPullStateSchema, nr as WorkflowRunInputsSchema, nt as DOCS_SEARCH_TOOL, o as AgentSummaryDetailResponseSchema, on as ProjectSlugAvailabilityResponseSchema, or as WorkflowSummaryListResponseSchema, ot as ErrorResponseSchema, p as BillingInvoiceUrlResponseSchema, pn as RecentResourceListResponseSchema, pr as buildConnectDeeplink, pt as HealthResponseSchema, q as CredentialAssignmentListQuerySchema, qn as UserAvatarSchema, qt as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, r as ActiveOrganizationResponseSchema, rn as ProjectReachabilityResponseSchema, rr as WorkflowRunListResponseSchema, rt as DeclineOrganizationInvitationResponseSchema, s as AgentSummaryListResponseSchema, sn as PromptInputSchema, sr as WorkspaceTriggerDetailSchema, st as ExecuteKeystrokeToolRequestSchema, t as ACTIVE_ORG_HEADER, tn as PresignUserAvatarResponseSchema, tr as WorkflowRunInputsPutBodySchema, tt as DOCS_QUERY_TOOL, u as AssignCredentialBodySchema, un as QueuedAgentPromptResponseSchema, ur as WorkspaceTriggerOverviewSchema, ut as GetCredentialResponseSchema, v as CatalogActionDetailResponseSchema, vn as StartKeystrokeConnectionResultSchema, vr as listenPortFromPublicUrl, vt as InviteOrganizationMembersRequestSchema, w as ChannelConnectionSchema, wn as SubmitTeamRequestRequestSchema, wt as ListAgentWorkspaceFilesResponseSchema, x as CatalogAppsPageResponseSchema, xn as StartOAuthConnectionInputSchema, xr as parseAppSlug, xt as InviteProjectMembersResponseSchema, y as CatalogActionsPageResponseSchema, yn as StartMcpOAuthConnectionInputSchema, yt as InviteOrganizationMembersResponseSchema, z as CreateCustomAppRequestSchema, zn as UpdateProjectMemberRequestSchema, zt as ListProjectsResponseSchema } from "./dist-CEmkrm9b.mjs";
|
|
3
|
+
import { i as packProjectArtifact, n as withMcpReadClient, r as mergeFilteredArtifact, t as mapInParallelBatches } from "./dist-uPQD-3bl.mjs";
|
|
4
|
+
import { _ as resolvePlatformUrlForWebUrl, a as installPlaygroundDependencies, c as isNewerVersion, d as getConfigDir, f as getEffectiveApiTarget, h as DEFAULT_PLATFORM_URL, i as installDependencies$1, l as createCliConfig, m as getWebUrl, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getPlatformUrl, s as resolveCliRoot, t as readCliVersion, u as getCliConfigDir } from "./version-ikvpTH-2.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { Command } from "commander";
|
|
7
7
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -3656,13 +3656,11 @@ function createAgentsResource(http) {
|
|
|
3656
3656
|
throw await toPlatformError(error);
|
|
3657
3657
|
}
|
|
3658
3658
|
},
|
|
3659
|
-
|
|
3659
|
+
/** Session detail; defaults to the lightweight record-only response. */
|
|
3660
|
+
async getSession(projectId, agentSlug, sessionId, options) {
|
|
3660
3661
|
try {
|
|
3661
|
-
const
|
|
3662
|
-
|
|
3663
|
-
const data = await http.get(`api/projects/${encodeURIComponent(projectId)}/sessions/${encodeURIComponent(sessionId)}/state`, { searchParams }).json();
|
|
3664
|
-
if (data == null) return null;
|
|
3665
|
-
return AgentSessionChatStateResponseSchema.parse(data);
|
|
3662
|
+
const data = await http.get(`api/projects/${encodeURIComponent(projectId)}/agents/${encodeURIComponent(agentSlug)}/sessions/${encodeURIComponent(sessionId)}`, { searchParams: { include: options?.include ?? "none" } }).json();
|
|
3663
|
+
return AgentSessionDetailResponseSchema.parse(data);
|
|
3666
3664
|
} catch (error) {
|
|
3667
3665
|
throw await toPlatformError(error);
|
|
3668
3666
|
}
|
|
@@ -6761,7 +6759,7 @@ function registerBuildCommand(program) {
|
|
|
6761
6759
|
try {
|
|
6762
6760
|
const root = resolveProjectRoot(options.dir);
|
|
6763
6761
|
await ensureSdkCurrent(root);
|
|
6764
|
-
const { buildApp } = await import("./dist-
|
|
6762
|
+
const { buildApp } = await import("./dist-CnsvKhw-.mjs");
|
|
6765
6763
|
await buildApp({ root });
|
|
6766
6764
|
process.stdout.write(`Built ${root}\n`);
|
|
6767
6765
|
} catch (error) {
|
|
@@ -6886,7 +6884,7 @@ async function sleep(ms) {
|
|
|
6886
6884
|
}
|
|
6887
6885
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
6888
6886
|
if (filter?.length) {
|
|
6889
|
-
const { buildFilteredApp } = await import("./dist-
|
|
6887
|
+
const { buildFilteredApp } = await import("./dist-CnsvKhw-.mjs");
|
|
6890
6888
|
const filtered = await buildFilteredApp({
|
|
6891
6889
|
root,
|
|
6892
6890
|
filter,
|
|
@@ -6908,7 +6906,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
6908
6906
|
sourceFiles: filtered.sourceFiles
|
|
6909
6907
|
};
|
|
6910
6908
|
}
|
|
6911
|
-
const { buildApp } = await import("./dist-
|
|
6909
|
+
const { buildApp } = await import("./dist-CnsvKhw-.mjs");
|
|
6912
6910
|
const { sourceFiles } = await buildApp({
|
|
6913
6911
|
root,
|
|
6914
6912
|
collectSources: true,
|
|
@@ -7030,7 +7028,7 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
7030
7028
|
//#region src/project/bootstrap-run.ts
|
|
7031
7029
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
7032
7030
|
async function resolveBootstrapRun(options) {
|
|
7033
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
7031
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-CnsvKhw-.mjs");
|
|
7034
7032
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
7035
7033
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
7036
7034
|
const args = [`--import=${loader}`];
|
|
@@ -7179,7 +7177,7 @@ async function runDev(options) {
|
|
|
7179
7177
|
process.on("SIGINT", shutdown);
|
|
7180
7178
|
process.on("SIGTERM", shutdown);
|
|
7181
7179
|
try {
|
|
7182
|
-
const { watchApp } = await import("./dist-
|
|
7180
|
+
const { watchApp } = await import("./dist-CnsvKhw-.mjs");
|
|
7183
7181
|
await watchApp({
|
|
7184
7182
|
root,
|
|
7185
7183
|
clean: false,
|
|
@@ -8222,7 +8220,7 @@ async function runStart(options) {
|
|
|
8222
8220
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
8223
8221
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
8224
8222
|
ensureNativeDeps(runtimeNodeModules);
|
|
8225
|
-
const { buildApp } = await import("./dist-
|
|
8223
|
+
const { buildApp } = await import("./dist-CnsvKhw-.mjs");
|
|
8226
8224
|
await buildApp({
|
|
8227
8225
|
root,
|
|
8228
8226
|
clean: false
|
|
@@ -8852,7 +8850,7 @@ function createProgram() {
|
|
|
8852
8850
|
return program;
|
|
8853
8851
|
}
|
|
8854
8852
|
async function runCli(argv) {
|
|
8855
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
8853
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-B3xm1MYv.mjs");
|
|
8856
8854
|
await maybeAutoUpdate(argv);
|
|
8857
8855
|
createProgram().parse(argv);
|
|
8858
8856
|
}
|