@keystrokehq/cli 1.0.1 → 1.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/README.md +3 -3
- package/dist/{dist-D5mdqlok.mjs → dist-B1SvZCxJ.mjs} +2 -2
- package/dist/{dist-D5mdqlok.mjs.map → dist-B1SvZCxJ.mjs.map} +1 -1
- package/dist/dist-BjnCSbC2.mjs +3 -0
- package/dist/{dist-D0bvBuXk.mjs → dist-C0QtLjpR.mjs} +6 -8
- package/dist/dist-C0QtLjpR.mjs.map +1 -0
- package/dist/{dist-DAVSXcfW.mjs → dist-DR0-KRom.mjs} +26 -3
- package/dist/{dist-DAVSXcfW.mjs.map → dist-DR0-KRom.mjs.map} +1 -1
- package/dist/index.mjs +23 -13
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-C5I7EUot.mjs → maybe-auto-update-DxAS-9S7.mjs} +2 -2
- package/dist/{maybe-auto-update-C5I7EUot.mjs.map → maybe-auto-update-DxAS-9S7.mjs.map} +1 -1
- package/dist/skills-bundle/_AGENTS.md +5 -5
- package/dist/skills-bundle/skills/keystroke-actions/SKILL.md +39 -7
- package/dist/skills-bundle/skills/keystroke-actions/references/catalog-and-imports.md +25 -19
- package/dist/skills-bundle/skills/keystroke-agents/SKILL.md +1 -1
- package/dist/skills-bundle/skills/keystroke-apps/SKILL.md +133 -0
- package/dist/skills-bundle/skills/keystroke-apps/references/cli-and-catalog.md +66 -0
- package/dist/skills-bundle/skills/keystroke-cli/SKILL.md +2 -2
- package/dist/skills-bundle/skills/keystroke-cli/references/api-targets.md +2 -2
- package/dist/skills-bundle/skills/keystroke-deploy/SKILL.md +2 -2
- package/dist/skills-bundle/skills/keystroke-gateways/SKILL.md +2 -2
- package/dist/skills-bundle/skills/keystroke-gateways/references/slack-setup.md +1 -1
- package/dist/skills-bundle/skills/keystroke-workflows/SKILL.md +1 -1
- package/dist/skills-bundle/skills/keystroke-workflows/references/authoring.md +2 -2
- package/dist/{version-_fM2Xco6.mjs → version-TtPeAEMz.mjs} +4 -4
- package/dist/version-TtPeAEMz.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/dist-6GfH430k.mjs +0 -3
- package/dist/dist-D0bvBuXk.mjs.map +0 -1
- package/dist/skills-bundle/skills/keystroke-credentials/SKILL.md +0 -108
- package/dist/skills-bundle/skills/keystroke-credentials/references/cli-and-oauth.md +0 -51
- package/dist/version-_fM2Xco6.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as ListCredentialsResponseSchema, $t as
|
|
3
|
-
import { _ as resolvePlatformUrlForWebUrl, a as installPlaygroundDependencies, c as createCliConfig, d as getEffectiveApiTarget, f as getPlatformUrl, h as DEFAULT_PLATFORM_URL, i as installDependencies, l as getCliConfigDir, m as getWebUrl, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getServerUrl, s as resolveCliRoot, t as readCliVersion, u as getConfigDir } from "./version-
|
|
2
|
+
import { $ as ListCredentialsResponseSchema, $t as UploadProjectSourceResponseSchema, A as CreateOrganizationResponseSchema, At as SlugAvailabilityResponseSchema, B as GetCredentialResponseSchema, Bt as TriggerRunDetailResponseSchema, C as CreateApiKeyResponseSchema, Ct as PromptResponseSchema, D as CreateCustomAppRequestSchema, Dt as RecentResourceListResponseSchema, E as CreateCredentialsResponseSchema, Et as ROUTE_MANIFEST_REL_PATH, F as CredentialInstanceRecordSchema, Ft as StoredRouteManifestSchema, G as HistoryRunListQuerySchema, Gt as UpdateOrganizationMemberRequestSchema, H as HealthResponseSchema, Ht as UpdateChannelBindingBodySchema, I as DeclineOrganizationInvitationResponseSchema, It as SubmitMarketingContactRequestSchema, J as InviteOrganizationMembersResponseSchema, Jt as UpdateProjectMemberRequestSchema, K as HistoryRunListResponseSchema, Kt as UpdateOrganizationMemberResponseSchema, L as DownloadActiveProjectArtifactResponseSchema, Lt as SubmitTeamRequestRequestSchema, M as CreateProjectRequestSchema, Mt as StartKeystrokeConnectionResultSchema, N as CreateProjectResponseSchema, Nt as StartOAuthConnectionInputSchema, O as CreateCustomAppResponseSchema, Ot as SkillSummaryDetailResponseSchema, P as CredentialInstanceListResponseSchema, Pt as StartOAuthConnectionResultSchema, Q as ListAppsResponseSchema, Qt as UploadProjectSourceManifestRequestSchema, R as ErrorResponseSchema, Rt as TriggerDetailResponseSchema, S as CreateApiKeyRequestSchema, St as PromptInputSchema, T as CreateCredentialsRequestSchema, Tt as QueuedRunResponseSchema, U as HistoryRunCancelResponseSchema, Ut as UpdateCredentialInstanceBodySchema, V as GetCustomAppResponseSchema, Vt as TriggerRunListResponseSchema, W as HistoryRunDetailResponseSchema, Wt as UpdateCredentialRequestSchema, X as InviteProjectMembersResponseSchema, Xt as UpdateProjectRequestSchema, Y as InviteProjectMembersRequestSchema, Yt as UpdateProjectMemberResponseSchema, Z as ListApiKeysResponseSchema, Zt as UpdateProjectSettingsRequestSchema, _ as ChannelDirectoryListResponseSchema, _t as PresignUserAvatarResponseSchema, a as AgentSessionListResponseSchema, an as WorkflowRunDetailResponseSchema, at as ListProjectMembersResponseSchema, b as ConnectAuthorizeUrlResponseSchema, bt as ProjectSettingsResponseSchema, c as AppSlugAvailabilityResponseSchema, cn as WorkflowSummaryListResponseSchema, ct as OrganizationSidebarBrandingPatchSchema, d as CatalogActionsPageResponseSchema, dt as PollRunResponseSchema, en as UpsertGatewayAttachmentBodySchema, et as ListOrganizationInvitationsResponseSchema, f as CatalogAppDetailResponseSchema, fn as parseAppSlug, ft as PresignOrgLogoRequestSchema, g as ChannelConnectionSchema, gt as PresignUserAvatarRequestSchema, h as ChannelConnectionListResponseSchema, ht as PresignProjectSourceResponseSchema, i as AgentSessionDetailResponseSchema, in as UserPreferencesSchema, it as ListProjectFilesResponseSchema, j as CreateProjectArtifactResponseSchema, jt as StartKeystrokeConnectionInputSchema, k as CreateOrganizationRequestSchema, kt as SkillSummaryListResponseSchema, l as BindChannelBodySchema, ln as listenPortFromPublicUrl, lt as OrganizationSidebarBrandingSchema, m as ChannelAccountListResponseSchema, mn as slugifyAppName, mt as PresignProjectSourceRequestSchema, n as AcceptOrganizationInvitationResponseSchema, nn as UserAvatarSchema, nt as ListOrganizationsResponseSchema, o as AgentSummaryDetailResponseSchema, on as WorkflowRunListResponseSchema, ot as ListProjectMetricsResponseSchema, p as CatalogAppsPageResponseSchema, pn as parseErrorResponse, pt as PresignOrgLogoResponseSchema, q as InviteOrganizationMembersRequestSchema, qt as UpdateOrganizationRequestSchema, r as ActiveOrganizationResponseSchema, rn as UserPreferencesPatchSchema, rt as ListProjectDeploymentsResponseSchema, s as AgentSummaryListResponseSchema, sn as WorkflowSummaryDetailResponseSchema, st as ListProjectsResponseSchema, t as ACTIVE_ORG_HEADER, tn as UserAvatarPatchSchema, tt as ListOrganizationMembersResponseSchema, u as CatalogActionDetailResponseSchema, ut as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, v as ChannelPlatformSchema, vt as ProjectReachabilityResponseSchema, w as CreateCredentialInstanceBodySchema, wt as QueuedAgentPromptResponseSchema, x as ConnectProvidersResponseSchema, xt as ProjectSlugAvailabilityResponseSchema, y as CompleteProjectArtifactResponseSchema, yt as ProjectResponseSchema, z as GatewayAttachmentRecordSchema, zt as TriggerListResponseSchema } from "./dist-DR0-KRom.mjs";
|
|
3
|
+
import { _ as resolvePlatformUrlForWebUrl, a as installPlaygroundDependencies, c as createCliConfig, d as getEffectiveApiTarget, f as getPlatformUrl, h as DEFAULT_PLATFORM_URL, i as installDependencies, l as getCliConfigDir, m as getWebUrl, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getServerUrl, s as resolveCliRoot, t as readCliVersion, u as getConfigDir } from "./version-TtPeAEMz.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import { platform, tmpdir } from "node:os";
|
|
@@ -3718,6 +3718,16 @@ function createTeamRequestsResource(http) {
|
|
|
3718
3718
|
}
|
|
3719
3719
|
} };
|
|
3720
3720
|
}
|
|
3721
|
+
function createMarketingContactResource(http) {
|
|
3722
|
+
return { async submit(input) {
|
|
3723
|
+
const body = SubmitMarketingContactRequestSchema.parse(input);
|
|
3724
|
+
try {
|
|
3725
|
+
await http.post("/api/public/contact", { json: body }).json();
|
|
3726
|
+
} catch (error) {
|
|
3727
|
+
throw await toPlatformError(error);
|
|
3728
|
+
}
|
|
3729
|
+
} };
|
|
3730
|
+
}
|
|
3721
3731
|
function createRecentsResource(http) {
|
|
3722
3732
|
return {
|
|
3723
3733
|
/** Always the viewer's own recents, scoped to their project memberships. */
|
|
@@ -4246,6 +4256,7 @@ function projectChannelPlatform(app) {
|
|
|
4246
4256
|
resourceNoun: app.gateway.resourceNoun,
|
|
4247
4257
|
webhookPathHint: app.gateway.webhookPathHint,
|
|
4248
4258
|
supportsChannelDirectory: app.gateway.supportsChannelDirectory,
|
|
4259
|
+
...app.gateway.connectAppId ? { connectAppId: app.gateway.connectAppId } : {},
|
|
4249
4260
|
docsUrl: app.gateway.docsUrl
|
|
4250
4261
|
});
|
|
4251
4262
|
}
|
|
@@ -4378,6 +4389,7 @@ function createPlatformClient(options) {
|
|
|
4378
4389
|
userAvatar: createUserAvatarResource(http),
|
|
4379
4390
|
organizationSidebarBranding: createOrganizationSidebarBrandingResource(http, { getActiveOrganizationId: () => activeOrganizationId }),
|
|
4380
4391
|
teamRequests: createTeamRequestsResource(http),
|
|
4392
|
+
marketingContact: createMarketingContactResource(http),
|
|
4381
4393
|
getActiveOrganizationId: () => activeOrganizationId,
|
|
4382
4394
|
setActiveOrganizationId
|
|
4383
4395
|
};
|
|
@@ -5655,7 +5667,7 @@ function registerCredentialsCommand(program) {
|
|
|
5655
5667
|
//#endregion
|
|
5656
5668
|
//#region src/auth/resolve-login-targets.ts
|
|
5657
5669
|
function resolveAuthLoginTargets(options, config) {
|
|
5658
|
-
const webUrl = options.webUrl ?? "https://
|
|
5670
|
+
const webUrl = options.webUrl ?? "https://keystroke.ai";
|
|
5659
5671
|
return {
|
|
5660
5672
|
webUrl,
|
|
5661
5673
|
platformUrl: resolvePlatformUrlForWebUrl(webUrl, {
|
|
@@ -5762,7 +5774,7 @@ function registerBuildCommand(program) {
|
|
|
5762
5774
|
program.command("build").description("Build the keystroke project for production").option("--dir <path>", "Project directory", process.cwd()).action(async (options) => {
|
|
5763
5775
|
try {
|
|
5764
5776
|
const root = resolveProjectRoot(options.dir);
|
|
5765
|
-
const { buildApp } = await import("./dist-
|
|
5777
|
+
const { buildApp } = await import("./dist-C0QtLjpR.mjs");
|
|
5766
5778
|
await buildApp({ root });
|
|
5767
5779
|
process.stdout.write(`Built ${root}\n`);
|
|
5768
5780
|
} catch (error) {
|
|
@@ -5919,7 +5931,7 @@ async function sleep(ms) {
|
|
|
5919
5931
|
}
|
|
5920
5932
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
5921
5933
|
if (filter?.length) {
|
|
5922
|
-
const { buildFilteredApp } = await import("./dist-
|
|
5934
|
+
const { buildFilteredApp } = await import("./dist-C0QtLjpR.mjs");
|
|
5923
5935
|
const filtered = await buildFilteredApp({
|
|
5924
5936
|
root,
|
|
5925
5937
|
filter,
|
|
@@ -5941,7 +5953,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
5941
5953
|
sourceFiles: filtered.sourceFiles
|
|
5942
5954
|
};
|
|
5943
5955
|
}
|
|
5944
|
-
const { buildApp } = await import("./dist-
|
|
5956
|
+
const { buildApp } = await import("./dist-C0QtLjpR.mjs");
|
|
5945
5957
|
const { sourceFiles } = await buildApp({
|
|
5946
5958
|
root,
|
|
5947
5959
|
collectSources: true,
|
|
@@ -6047,14 +6059,13 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
6047
6059
|
env.DATABASE_URL = "file:./data/public.db";
|
|
6048
6060
|
}
|
|
6049
6061
|
env.KEYSTROKE_APP_MODE ??= "standalone";
|
|
6050
|
-
env.PROJECT_ID ??= "default";
|
|
6051
6062
|
return env;
|
|
6052
6063
|
}
|
|
6053
6064
|
//#endregion
|
|
6054
6065
|
//#region src/project/bootstrap-run.ts
|
|
6055
6066
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
6056
6067
|
async function resolveBootstrapRun(options) {
|
|
6057
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
6068
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-C0QtLjpR.mjs");
|
|
6058
6069
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
6059
6070
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
6060
6071
|
const args = [`--import=${loader}`];
|
|
@@ -6064,8 +6075,7 @@ async function resolveBootstrapRun(options) {
|
|
|
6064
6075
|
const childEnv = runtimeChildEnv(process.env, {
|
|
6065
6076
|
KEYSTROKE_ROOT: options.root,
|
|
6066
6077
|
KEYSTROKE_RUNTIME_NODE_MODULES: options.runtimeNodeModules,
|
|
6067
|
-
KEYSTROKE_APP_MODE: "standalone"
|
|
6068
|
-
PROJECT_ID: process.env.PROJECT_ID ?? "default"
|
|
6078
|
+
KEYSTROKE_APP_MODE: "standalone"
|
|
6069
6079
|
});
|
|
6070
6080
|
childEnv.PORT = String(listenPortFromPublicUrl(childEnv.PUBLIC_SERVER_URL, options.apiPort));
|
|
6071
6081
|
return {
|
|
@@ -6205,7 +6215,7 @@ async function runDev(options) {
|
|
|
6205
6215
|
process.on("SIGINT", shutdown);
|
|
6206
6216
|
process.on("SIGTERM", shutdown);
|
|
6207
6217
|
try {
|
|
6208
|
-
const { watchApp } = await import("./dist-
|
|
6218
|
+
const { watchApp } = await import("./dist-C0QtLjpR.mjs");
|
|
6209
6219
|
await watchApp({
|
|
6210
6220
|
root,
|
|
6211
6221
|
clean: false,
|
|
@@ -7031,7 +7041,7 @@ async function runStart(options) {
|
|
|
7031
7041
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
7032
7042
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
7033
7043
|
ensureNativeDeps(runtimeNodeModules);
|
|
7034
|
-
const { buildApp } = await import("./dist-
|
|
7044
|
+
const { buildApp } = await import("./dist-C0QtLjpR.mjs");
|
|
7035
7045
|
await buildApp({
|
|
7036
7046
|
root,
|
|
7037
7047
|
clean: false
|
|
@@ -7554,7 +7564,7 @@ function createProgram() {
|
|
|
7554
7564
|
return program;
|
|
7555
7565
|
}
|
|
7556
7566
|
async function runCli(argv) {
|
|
7557
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
7567
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-DxAS-9S7.mjs");
|
|
7558
7568
|
await maybeAutoUpdate(argv);
|
|
7559
7569
|
createProgram().parse(argv);
|
|
7560
7570
|
}
|