@keystrokehq/cli 0.0.39 → 0.0.40
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 +1 -1
- package/dist/{accept.handler-CykuBpt6.mjs → accept.handler-Ca7uzwxi.mjs} +3 -3
- package/dist/{admin-gRjPC3eD.mjs → admin-dG6GUb3q.mjs} +11 -11
- package/dist/{agents-BpyuvM9p.mjs → agents-sPFPgn4f.mjs} +8 -8
- package/dist/{api-sWkB_Wta.mjs → api-b0DzMwXP.mjs} +1 -1
- package/dist/{api-keys-BSKhdD_x.mjs → api-keys-4tXQbpkQ.mjs} +6 -6
- package/dist/{auth-DCgToFf5.mjs → auth-CWW1yAyX.mjs} +6 -6
- package/dist/{auth.handler-QRQAEUJC.mjs → auth.handler-BdIVmlEw.mjs} +4 -4
- package/dist/{authored-workflow-ref-BRCQgyWl.mjs → authored-workflow-ref-DpaMDcsV.mjs} +6 -6
- package/dist/{build-agents-CUzBnlAG-3ePFZiJ6.mjs → build-agents-CUzBnlAG-BlVdU8WI.mjs} +5 -5
- package/dist/{build-metadata-BB_L45ZS-DRQsV6JK.mjs → build-metadata-BB_L45ZS-DF9jjlo7.mjs} +6 -6
- package/dist/{build-progress-D_SQqdHA.mjs → build-progress-ClHW7cxW.mjs} +1 -1
- package/dist/{build-tasks-5eOvI19S-tbN6CRx9.mjs → build-tasks-5eOvI19S-DOJYTRNL.mjs} +3 -3
- package/dist/{build-workflows-C-gQM3l5-_zcBHE3M.mjs → build-workflows-C-gQM3l5-B1By02sw.mjs} +8 -8
- package/dist/{build.handler-DGQn_clk.mjs → build.handler-oSb0aOLO.mjs} +6 -6
- package/dist/{clear-cache.handler-gJpwslkK.mjs → clear-cache.handler-nH67vXdu.mjs} +1 -1
- package/dist/{clear.handler-CuXYvUj2.mjs → clear.handler-b7T3XjAx.mjs} +2 -2
- package/dist/{commander-B_8QwPpe.mjs → commander-DIOuj6NJ.mjs} +2 -2
- package/dist/{connect-DV9lhP6C.mjs → connect-Cg4oFCFZ.mjs} +3 -3
- package/dist/{connect.handler-D6JzuFuT.mjs → connect.handler-BsMTctjd.mjs} +241 -187
- package/dist/{context-Brc9VGV9.mjs → context-DaBLwEWi.mjs} +4 -4
- package/dist/{create.handler-D_tmjANR.mjs → create.handler-CAj7e5w2.mjs} +2 -2
- package/dist/{credential-env-map-5a41jLwM.mjs → credential-env-map-rXDibCDT.mjs} +1 -1
- package/dist/{credential-schema-mismatch-CStYUB2h.mjs → credential-schema-mismatch-BvcO7KgE.mjs} +1 -1
- package/dist/{credentials-DtwLbee6.mjs → credentials-Bud9r1JE.mjs} +1 -1
- package/dist/{credentials-UDrvrKj-.mjs → credentials-CZ7HaiPb.mjs} +11 -11
- package/dist/{current.handler-Cy91EeLU.mjs → current.handler-BJvDHSmV.mjs} +3 -3
- package/dist/{delete.handler-rUDDUrDQ.mjs → delete.handler-DivhWFrZ.mjs} +1 -1
- package/dist/{deploy-DgWPlEKO.mjs → deploy-9ySqfoem.mjs} +2 -2
- package/dist/{deploy-BiKBH25R.mjs → deploy-NSrCthrD.mjs} +1 -1
- package/dist/{deploy-progress-BDOCSm_U.mjs → deploy-progress-DccPUWfp.mjs} +1 -1
- package/dist/{deploy.handler-BDCHCk_A.mjs → deploy.handler-DltgOetG.mjs} +15 -15
- package/dist/{detect-env-access-CwkOYeYM-r4aynBU0.mjs → detect-env-access-CwkOYeYM-CetSMqeq.mjs} +1 -1
- package/dist/{diff.handler-CGERP-Qn.mjs → diff.handler-OIzXMsHB.mjs} +4 -4
- package/dist/{dist-BmbFJq8U.mjs → dist-BpLSQDJX.mjs} +12 -12
- package/dist/{env.handler--8FRrSlJ.mjs → env.handler-DdIhJ4mO.mjs} +9 -9
- package/dist/{error-boundary-D2DiCLAp.mjs → error-boundary-IUSz7k4x.mjs} +2 -2
- package/dist/{file-metadata-DQVDjr7M.mjs → file-metadata-bzAf3GqL.mjs} +1 -1
- package/dist/{iam-command-utils-D01Gw8-M.mjs → iam-command-utils-CPkuyDrD.mjs} +1 -1
- package/dist/{import-module-y0glInUe-EuAWaw9g.mjs → import-module-y0glInUe-CVKziY2H.mjs} +6 -6
- package/dist/{init-Mpe_8lA_.mjs → init-BuVaQkZl.mjs} +2 -2
- package/dist/{init.handler-BjLAIAmm.mjs → init.handler-CX3OQdjn.mjs} +3 -3
- package/dist/{inspect.handler-CXCi7fhH.mjs → inspect.handler-CgJkF6RH.mjs} +5 -5
- package/dist/{integration-catalog-mZs6EAlN.mjs → integration-catalog-DEHwWAO6.mjs} +2 -2
- package/dist/{integrations-D_IH5Ud1.mjs → integrations-DdKOCj3U.mjs} +8 -95
- package/dist/{invites-CWWz4wmY.mjs → invites-DWE6Zmj1.mjs} +5 -5
- package/dist/{invites.list.handler-CQLWSoWo.mjs → invites.list.handler-DO7Wq2u0.mjs} +4 -4
- package/dist/{invites.resend.handler-CeIGE_qM.mjs → invites.resend.handler-BcW922nx.mjs} +4 -4
- package/dist/{invites.revoke.handler-9K6jkym_.mjs → invites.revoke.handler-BdMoZOqx.mjs} +4 -4
- package/dist/keystroke.mjs +38 -42
- package/dist/{list-enrichment-dqbkXJzy.mjs → list-enrichment-mOKJXdJW.mjs} +1 -1
- package/dist/{list.handler-DUTNS8du.mjs → list.handler-6h-dCWy7.mjs} +3 -3
- package/dist/{list.handler-CDWPmiMy.mjs → list.handler-BWEBemPq.mjs} +3 -3
- package/dist/{list.handler-Cuw1fWO_.mjs → list.handler-C1Okanaq.mjs} +3 -3
- package/dist/{list.handler-D-rSyrX0.mjs → list.handler-CD6T_BXB.mjs} +3 -3
- package/dist/{list.handler-BvuxTFLe.mjs → list.handler-CGD1JBJW.mjs} +6 -6
- package/dist/{list.handler-Co32_F3n.mjs → list.handler-CXsHFhRg.mjs} +6 -6
- package/dist/{list.handler-Dz-Yeijp.mjs → list.handler-DYIKuoAv.mjs} +2 -2
- package/dist/{list.handler-DMvq96UA.mjs → list.handler-Dny_G7yA.mjs} +2 -2
- package/dist/{list2.handler-BpqKZTZk.mjs → list2.handler-v14fD-Wx.mjs} +3 -3
- package/dist/{listen-CeNwufij.mjs → listen-DWLGKM9p.mjs} +3 -3
- package/dist/{listen.handler-CfRoaOwu.mjs → listen.handler-BHY0khAc.mjs} +3 -3
- package/dist/{logs-B7k2_W1R.mjs → logs-CAgOxZQ1.mjs} +3 -3
- package/dist/{logs.handler-CSqOzxCU.mjs → logs.handler-BcGJIjn1.mjs} +5 -5
- package/dist/{members.add.handler-CBjoA6vG.mjs → members.add.handler-3y_jsYI5.mjs} +4 -4
- package/dist/{members.invite.handler-D8KcKJ9Y.mjs → members.invite.handler-CLbxTp-x.mjs} +4 -4
- package/dist/{members.list.handler-CB_qSJK0.mjs → members.list.handler--r0ibk1q.mjs} +4 -4
- package/dist/{members.remove.handler-DNhO81mo.mjs → members.remove.handler-DFfOjRmq.mjs} +4 -4
- package/dist/{members.update.handler-Bjdk_uz4.mjs → members.update.handler-pY5ZKxyE.mjs} +4 -4
- package/dist/{normalize-path-CojS-CgQ-aOM0agxS.mjs → normalize-path-CojS-CgQ-lQUBXXzi.mjs} +1 -1
- package/dist/official-providers-DF1Wt_-m.mjs +92 -0
- package/dist/{operations-HHwoArwE.mjs → operations-mpOhoA0C.mjs} +5 -5
- package/dist/{org-context-CNh2p2DP.mjs → org-context-BAbQ9nhH.mjs} +2 -2
- package/dist/{org-output-BcI17Uan.mjs → org-output-Chcob8vH.mjs} +2 -2
- package/dist/{org-f-qo68Em.mjs → org-xlZOYXfd.mjs} +17 -17
- package/dist/{orgs.create.handler-DOE9ZIed.mjs → orgs.create.handler-C_zVtI05.mjs} +3 -3
- package/dist/{orgs.get.handler-sWErVI7r.mjs → orgs.get.handler-CCr0tawz.mjs} +3 -3
- package/dist/{orgs.list.handler-Cp-mXsA0.mjs → orgs.list.handler-C6H6LEdf.mjs} +3 -3
- package/dist/{paused.handler-DWdoKYY8.mjs → paused.handler-BVrzjvyP.mjs} +4 -4
- package/dist/{projects-CCC36zbJ.mjs → projects-CpLiEcTK.mjs} +4 -4
- package/dist/{projects-ZNcKwds2.mjs → projects-DOYjjoZ-.mjs} +2 -2
- package/dist/{register.handler-Dxae5iq8.mjs → register.handler-CSpRM1p1.mjs} +41 -28
- package/dist/{requirements.handler-Bg3mRnER.mjs → requirements.handler-CA4zeT3J.mjs} +6 -6
- package/dist/{resolve-cli-credentials-GVOOedoQ.mjs → resolve-cli-credentials-BecTgRE7.mjs} +1 -1
- package/dist/{resolve-project-CoCN9xfi.mjs → resolve-project-Cto7y-K3.mjs} +2 -2
- package/dist/{run-polling-htHWhG0T.mjs → run-polling-DVis_pob.mjs} +3 -3
- package/dist/{run.handler-C-CM-xZG.mjs → run.handler-Dyo7_OIO.mjs} +7 -7
- package/dist/{runs-BRJPNq4B.mjs → runs-DFWRUETL.mjs} +3 -3
- package/dist/{search-DdJpxHEs.mjs → search-ByKPk0l-.mjs} +3 -3
- package/dist/{search.handler-dsvkAHFo.mjs → search.handler-CE2432ah.mjs} +3 -3
- package/dist/{show.handler-DUDxnNiZ.mjs → show.handler-BD5i6EV5.mjs} +4 -4
- package/dist/{show.handler-D3nDc1MJ.mjs → show.handler-BupYRNqw.mjs} +3 -3
- package/dist/{show.handler-CdZF0aao.mjs → show.handler-C_d60AOd.mjs} +2 -2
- package/dist/{skills-sync.handler-_LVhIMRH.mjs → skills-sync.handler-CbQQaKv7.mjs} +1 -1
- package/dist/{skills.command-DSHGwXPX.mjs → skills.command-D-OoLKTF.mjs} +4 -4
- package/dist/{source-analysis-BBg2E_6G-wPP9mjQx.mjs → source-analysis-BBg2E_6G-CS88X3nS.mjs} +3 -3
- package/dist/{src-DI-ybNjR.mjs → src-DOCKWJRW.mjs} +59 -13
- package/dist/{status.handler-1hEzX5oB.mjs → status.handler-7411LjJt.mjs} +1 -1
- package/dist/{switch.handler-D135WwfB.mjs → switch.handler-CfCy8yzX.mjs} +3 -3
- package/dist/{sync-CFScllh3.mjs → sync-Dp57sXlR.mjs} +2 -2
- package/dist/{sync.handler-x8v53-TT.mjs → sync.handler-B6p_PFqf.mjs} +7 -7
- package/dist/{task-DTvLzUkA.mjs → task-DzwZiru5.mjs} +1 -1
- package/dist/{task-target-build-CtvRyVjH.mjs → task-target-build-bIN-ngtL.mjs} +5 -5
- package/dist/{task-target-deploy-m9LfE488.mjs → task-target-deploy-DhlZNykk.mjs} +1 -1
- package/dist/{task-target-deploy-dQYnMO8n-d2vdeqXH.mjs → task-target-deploy-dQYnMO8n-Cx_r9Kzk.mjs} +1 -1
- package/dist/task-target-deploy-runner.mjs +8 -8
- package/dist/{test-Dx4RXoLZ.mjs → test-BHj1LMHN.mjs} +3 -3
- package/dist/{test.handler-Mz_XOnJl.mjs → test.handler-BmrgrK08.mjs} +1 -1
- package/dist/{test.handler-BmvL5vF8.mjs → test.handler-mo5agj6w.mjs} +11 -11
- package/dist/{tool.handler-DsbpocYI.mjs → tool.handler-wH-lWk7T.mjs} +8 -8
- package/dist/{trigger-artifacts-BcRScRSp-BRpU-He5.mjs → trigger-artifacts-BcRScRSp-CbuG4AfM.mjs} +4 -4
- package/dist/{trigger-manifest-BVqjDhxU.mjs → trigger-manifest-EaOKzq4D.mjs} +2 -2
- package/dist/{upgrade-C9G6HksL.mjs → upgrade-BXgpsNcQ.mjs} +2 -2
- package/dist/{upload.handler-DscKDQ63.mjs → upload.handler-Y-yOXVYC.mjs} +9 -9
- package/dist/{users.get.handler-CaUv_maM.mjs → users.get.handler-BGOCxdkB.mjs} +3 -3
- package/dist/{users.list.handler-DzsOvAtd.mjs → users.list.handler-CeCdVYny.mjs} +3 -3
- package/dist/{users.set-role.handler-koRzA0V9.mjs → users.set-role.handler-ChUvfPm9.mjs} +3 -3
- package/dist/{utils-BaxDlCsW.mjs → utils-DZkAd_Yh.mjs} +2 -2
- package/dist/{validate.handler-BkBsS8BL.mjs → validate.handler-Cf6Hv_La.mjs} +7 -7
- package/dist/{workflow-build-Db6at6IA.mjs → workflow-build-BdjQ_VZx.mjs} +21 -21
- package/dist/{workflow-build-manifest-CV6bBmDO.mjs → workflow-build-manifest-EnRP3HRK.mjs} +3 -3
- package/dist/{workflow-bundler-Bs3zQNQv-Dy7lXxy3.mjs → workflow-bundler-Bs3zQNQv-DeOFaxmV.mjs} +2 -2
- package/dist/{workflows-B8VG6nKg.mjs → workflows-CLWyveLm.mjs} +16 -16
- package/dist/{writer-BLg0RuZa-Y6ExdYH9.mjs → writer-BLg0RuZa-ynLkRVCU.mjs} +5 -5
- package/package.json +7 -7
- package/dist/{agent-bundle-package-DWV6B_5q-B-qzc3zC.mjs → agent-bundle-package-DWV6B_5q-DyuZcU-M.mjs} +0 -0
- package/dist/{agent-manifest-DfWD5tvv.mjs → agent-manifest-IKErxq4q.mjs} +0 -0
- package/dist/{browser-Dvv5OQrt.mjs → browser-CvuyMLhI.mjs} +0 -0
- package/dist/{clear.handler-DnjvgyMj.mjs → clear.handler-C52FDzQh.mjs} +0 -0
- package/dist/{common-AK0q0Oz0.mjs → common-BcLVOrEe.mjs} +0 -0
- package/dist/{concurrency-gXn9Rw8x-CnBnF2cg.mjs → concurrency-gXn9Rw8x-DL-HGvhT.mjs} +0 -0
- package/dist/{credential-requirements-B5Alhu1v-DanlSKnT.mjs → credential-requirements-B5Alhu1v-C26qMgU_.mjs} +0 -0
- package/dist/{declared-credential-requirements-B6h4WRv4.mjs → declared-credential-requirements-D6KT-r-e.mjs} +0 -0
- package/dist/{default-urls-BoSm4s9C.mjs → default-urls-jMHepw2q.mjs} +0 -0
- package/dist/{dist-B5jy238v.mjs → dist-rsDq3fTk.mjs} +0 -0
- package/dist/{layout-B95Tku8F.mjs → layout-CqQq4MmI.mjs} +0 -0
- package/dist/{logs.handler-BIqJ0FED.mjs → logs.handler-BvOCKckB.mjs} +0 -0
- package/dist/{metadata-layout-Bv-B0nHj-CO8mjjSl.mjs → metadata-layout-Bv-B0nHj-qhsuNON1.mjs} +0 -0
- package/dist/{output-BPydP5tG.mjs → output-C0pbsv39.mjs} +0 -0
- package/dist/{oxc-B3KI3rf_-B9omBIuN.mjs → oxc-B3KI3rf_-ghZc3xZ5.mjs} +0 -0
- package/dist/{project-config-DudGRFPO.mjs → project-config-VloWJirJ.mjs} +1 -1
- /package/dist/{read-credential-keys-77a91T8M-I07NYwfH.mjs → read-credential-keys-77a91T8M-C4dOpzvX.mjs} +0 -0
- /package/dist/{render-operation-iF7Wblv2.mjs → render-operation-BhivW7cA.mjs} +0 -0
- /package/dist/{rolldown-runtime-twds-ZHy-RuJszab7.mjs → rolldown-runtime-twds-ZHy-BvwnxyIt.mjs} +0 -0
- /package/dist/{run-polling-1c0ckC1A.mjs → run-polling-CJWe6cxy.mjs} +0 -0
- /package/dist/{schema-Lbp5lGJu.mjs → schema-GwRMmuKB.mjs} +0 -0
- /package/dist/{schema-DFJiNWyd.mjs → schema-QbiBSbhG.mjs} +0 -0
- /package/dist/{schema-display-sZ6ConJd.mjs → schema-display-DKreWhh1.mjs} +0 -0
- /package/dist/{schemas-ClAIoIrX.mjs → schemas-COSVuCFH.mjs} +0 -0
- /package/dist/{skills.handler-DqLXJepA.mjs → skills.handler-CvXcuOf5.mjs} +0 -0
- /package/dist/{source-analysis-z2RSZw6X.mjs → source-analysis-BYwAbHx2.mjs} +0 -0
- /package/dist/{spinner-progress-fLaD0sjH.mjs → spinner-progress-QqK2bvTQ.mjs} +0 -0
- /package/dist/{upgrade.handler-DsFeAFF4.mjs → upgrade.handler-COptE2fK.mjs} +0 -0
- /package/dist/{upload-CE4H5R1h.mjs → upload-XFKnNumW.mjs} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
4
|
+
import { a as createKyInstance, i as buildSearchParams, n as auth, o as getClientEnv, r as bundles, t as projects$1 } from "./projects-DOYjjoZ-.mjs";
|
|
4
5
|
//#region ../../packages/workflow-sdk/src/v1/admin.ts
|
|
5
6
|
const admin = (api) => ({
|
|
6
7
|
orgs: {
|
|
@@ -21,7 +22,13 @@ const admin = (api) => ({
|
|
|
21
22
|
},
|
|
22
23
|
get: (id) => api.get(`admin/users/${id}`).json(),
|
|
23
24
|
setRole: (id, params) => api.patch(`admin/users/${id}/system-role`, { json: params }).json()
|
|
24
|
-
}
|
|
25
|
+
},
|
|
26
|
+
providerApps: {
|
|
27
|
+
/**
|
|
28
|
+
* Upserts an org-scoped custom provider app registration.
|
|
29
|
+
* Wraps `POST /api/v1/admin/provider-apps`.
|
|
30
|
+
*/
|
|
31
|
+
upsert: (params) => api.post("admin/provider-apps", { json: params }).json() }
|
|
25
32
|
});
|
|
26
33
|
//#endregion
|
|
27
34
|
//#region ../../packages/workflow-sdk/src/v1/agents.ts
|
|
@@ -40,18 +47,50 @@ const apiKeys = (api) => ({
|
|
|
40
47
|
remove: (id) => api.delete(`api-keys/${id}`).json()
|
|
41
48
|
});
|
|
42
49
|
//#endregion
|
|
43
|
-
//#region ../../packages/workflow-sdk/src/v1/
|
|
44
|
-
const
|
|
50
|
+
//#region ../../packages/workflow-sdk/src/v1/cli.ts
|
|
51
|
+
const DEFAULT_TELEMETRY_TIMEOUT_MS = 2500;
|
|
52
|
+
const cli = (api) => ({
|
|
45
53
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* @param params Optional filters. See `ListConnectionsQuerySchema` in
|
|
49
|
-
* `@keystroke/shared-types/connections` for the authoritative schema.
|
|
54
|
+
* Records a completed CLI command for product telemetry.
|
|
55
|
+
* Wraps `POST /api/v1/cli/telemetry`.
|
|
50
56
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} });
|
|
57
|
+
telemetry: { send: (body, options) => api.post("cli/telemetry", {
|
|
58
|
+
json: body,
|
|
59
|
+
timeout: options?.timeoutMs ?? DEFAULT_TELEMETRY_TIMEOUT_MS
|
|
60
|
+
}).json() } });
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region ../../packages/workflow-sdk/src/v1/connections.ts
|
|
63
|
+
const connections = (api) => ({
|
|
64
|
+
/**
|
|
65
|
+
* Returns the caller's configured connections.
|
|
66
|
+
*
|
|
67
|
+
* @param params Optional filters. See `ListConnectionsQuerySchema` in
|
|
68
|
+
* `@keystroke/shared-types/connections` for the authoritative schema.
|
|
69
|
+
*/
|
|
70
|
+
list: (params) => {
|
|
71
|
+
const searchParams = buildSearchParams(params);
|
|
72
|
+
return api.get("connections", searchParams ? { searchParams } : {}).json();
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* Starts a platform OAuth connect flow for an official integration.
|
|
76
|
+
* Wraps `POST /api/v1/connections/:integrationId/initiate`.
|
|
77
|
+
*/
|
|
78
|
+
initiate: (integrationId, body) => {
|
|
79
|
+
const hasBody = body !== void 0 && Object.keys(body).length > 0;
|
|
80
|
+
return api.post(`connections/${integrationId}/initiate`, hasBody ? { json: body } : {}).json();
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* Polls OAuth completion for a connect attempt started with {@link initiate}.
|
|
84
|
+
* Wraps `GET /api/v1/connections/:integrationId/status`.
|
|
85
|
+
*/
|
|
86
|
+
getStatus: (integrationId, params) => {
|
|
87
|
+
const searchParams = buildSearchParams({
|
|
88
|
+
since: params.since,
|
|
89
|
+
...params.credentialConnectionId ? { credentialConnectionId: params.credentialConnectionId } : {}
|
|
90
|
+
});
|
|
91
|
+
return api.get(`connections/${integrationId}/status`, { searchParams }).json();
|
|
92
|
+
}
|
|
93
|
+
});
|
|
55
94
|
//#endregion
|
|
56
95
|
//#region ../../packages/workflow-sdk/src/v1/credential-definitions.ts
|
|
57
96
|
const credentialDefinitions = (api) => {
|
|
@@ -533,6 +572,7 @@ function createClient(config = {}) {
|
|
|
533
572
|
return {
|
|
534
573
|
agents: agents(v1),
|
|
535
574
|
admin: admin(v1),
|
|
575
|
+
cli: cli(v1),
|
|
536
576
|
apiKeys: apiKeys(v1),
|
|
537
577
|
public: publicApi(v1),
|
|
538
578
|
bundles: bundles(v1),
|
|
@@ -554,4 +594,10 @@ function createClient(config = {}) {
|
|
|
554
594
|
};
|
|
555
595
|
}
|
|
556
596
|
//#endregion
|
|
557
|
-
|
|
597
|
+
//#region ../../packages/workflow-sdk/src/index.ts
|
|
598
|
+
var src_exports = /* @__PURE__ */ __exportAll({
|
|
599
|
+
SDK_VERSION: () => SDK_VERSION,
|
|
600
|
+
createClient: () => createClient
|
|
601
|
+
});
|
|
602
|
+
//#endregion
|
|
603
|
+
export { createClient as n, src_exports as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { g as REAUTH_HINT, h as AUTH_HINT, p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { a as getApiKeyValidationStatus, c as resolveEffectiveOrganization, i as formatOrgSourceLabel, t as ORG_CONTEXT_HINT } from "./org-context-
|
|
4
|
+
import { a as getApiKeyValidationStatus, c as resolveEffectiveOrganization, i as formatOrgSourceLabel, t as ORG_CONTEXT_HINT } from "./org-context-BAbQ9nhH.mjs";
|
|
5
5
|
//#region src/commands/auth/status.handler.ts
|
|
6
6
|
async function getLiveUser(ctx, validation) {
|
|
7
7
|
if (!ctx.client || validation.kind !== "valid") return;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { P as throwReportedCliExit, p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { n as credentials } from "./dist-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
6
|
-
import { c as resolveEffectiveOrganization, n as ORG_STORED_KEYS_HINT, t as ORG_CONTEXT_HINT } from "./org-context-
|
|
4
|
+
import { n as credentials } from "./dist-rsDq3fTk.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-DaBLwEWi.mjs";
|
|
6
|
+
import { c as resolveEffectiveOrganization, n as ORG_STORED_KEYS_HINT, t as ORG_CONTEXT_HINT } from "./org-context-BAbQ9nhH.mjs";
|
|
7
7
|
import { select } from "@clack/prompts";
|
|
8
8
|
//#region src/commands/org/switch.handler.ts
|
|
9
9
|
async function handleOrgSwitch(_options, ctx) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { t as createTypedCommand } from "./commander-
|
|
3
|
+
import { t as createTypedCommand } from "./commander-DIOuj6NJ.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/sync/sync.command.ts
|
|
6
6
|
/**
|
|
@@ -32,7 +32,7 @@ function createSyncCommand() {
|
|
|
32
32
|
description: "Sync local workflows with Keystroke",
|
|
33
33
|
schema: SyncOptionsSchema,
|
|
34
34
|
optionsConfig: SYNC_OPTIONS_CONFIG,
|
|
35
|
-
loadHandler: async () => (await import("./sync.handler-
|
|
35
|
+
loadHandler: async () => (await import("./sync.handler-B6p_PFqf.mjs")).handleSync
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { L as logger, P as throwReportedCliExit, S as toErrorMessage, l as isLocalMode, p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { i as projects } from "./dist-
|
|
5
|
-
import { a as validateApiKey, i as requireClient } from "./context-
|
|
6
|
-
import { n as deployFromDir } from "./dist-
|
|
7
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
8
|
-
import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-
|
|
9
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
10
|
-
import { t as createDeployProgress } from "./deploy-progress-
|
|
4
|
+
import { i as projects } from "./dist-rsDq3fTk.mjs";
|
|
5
|
+
import { a as validateApiKey, i as requireClient } from "./context-DaBLwEWi.mjs";
|
|
6
|
+
import { n as deployFromDir } from "./dist-BpLSQDJX.mjs";
|
|
7
|
+
import { t as requireWorkflowsDir } from "./resolve-project-Cto7y-K3.mjs";
|
|
8
|
+
import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-BdjQ_VZx.mjs";
|
|
9
|
+
import { t as createBuildProgress } from "./build-progress-ClHW7cxW.mjs";
|
|
10
|
+
import { t as createDeployProgress } from "./deploy-progress-DccPUWfp.mjs";
|
|
11
11
|
//#region src/commands/sync/sync.handler.ts
|
|
12
12
|
async function handleSync(options, ctx) {
|
|
13
13
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
4
|
-
import { a as descriptionString, c as optionalDescriptionString, d as trimmedNonEmptyStringUnbounded, i as createStructuralSchema, n as credentialSetProxyConfigSchema, o as idNoSpacesString, s as jsonSchemaObject, t as CredentialSetManifestSchema, u as trimmedNonEmptyString } from "./schemas-
|
|
4
|
+
import { a as descriptionString, c as optionalDescriptionString, d as trimmedNonEmptyStringUnbounded, i as createStructuralSchema, n as credentialSetProxyConfigSchema, o as idNoSpacesString, s as jsonSchemaObject, t as CredentialSetManifestSchema, u as trimmedNonEmptyString } from "./schemas-COSVuCFH.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import "node:crypto";
|
|
7
7
|
const SHA256HashSchema = z.string().length(64, "Must be 64 characters").regex(/^[a-f0-9]{64}$/i, "Must be hexadecimal").transform((value) => value);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { r as getKeystrokeProjectPath } from "./paths-DpHfoaXN-CdPimpky.mjs";
|
|
4
|
-
import "./dist-
|
|
5
|
-
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-
|
|
4
|
+
import "./dist-rsDq3fTk.mjs";
|
|
5
|
+
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-C4dOpzvX.mjs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
8
8
|
import { pathToFileURL } from "node:url";
|
|
@@ -111,7 +111,7 @@ async function buildTaskTargetFile(options) {
|
|
|
111
111
|
return builtTasks;
|
|
112
112
|
}
|
|
113
113
|
async function bundleTaskTargetModule(options) {
|
|
114
|
-
const [{ rolldown }, { createEnvAccessPlugin, formatEnvAccessError }] = await Promise.all([import("rolldown"), import("./detect-env-access-CwkOYeYM-
|
|
114
|
+
const [{ rolldown }, { createEnvAccessPlugin, formatEnvAccessError }] = await Promise.all([import("rolldown"), import("./detect-env-access-CwkOYeYM-CetSMqeq.mjs").then((n) => n.n).then((n) => n.n)]);
|
|
115
115
|
const entryId = "\0virtual:task-target-entry";
|
|
116
116
|
const trackedDependencies = /* @__PURE__ */ new Set();
|
|
117
117
|
const envViolations = [];
|
|
@@ -218,7 +218,7 @@ async function attachTaskTargetTriggers(options) {
|
|
|
218
218
|
options.artifact.triggers.push(...buildTaskTriggerArtifactsWithoutBundles(options.entry.taskMetadata.triggers, options.artifact.task.taskId, options.artifact.task.taskName));
|
|
219
219
|
return [];
|
|
220
220
|
}
|
|
221
|
-
const { buildTriggerArtifacts } = await import("./trigger-artifacts-BcRScRSp-
|
|
221
|
+
const { buildTriggerArtifacts } = await import("./trigger-artifacts-BcRScRSp-CbuG4AfM.mjs").then((n) => n.n);
|
|
222
222
|
const triggerResult = await buildTriggerArtifacts(options.entry.taskMetadata.triggers, options.artifact.task.taskId, options.artifact.task.taskName, options.projectRoot, {
|
|
223
223
|
workflowExportName: options.entry.source.localExportName,
|
|
224
224
|
workflowFilePath: options.entry.runtimeBundlePath
|
|
@@ -319,7 +319,7 @@ function createPreparedTaskTarget(artifact, triggers) {
|
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
async function tryParseTaskBuildManifest(manifest) {
|
|
322
|
-
const { TaskBuildManifestSchema } = await import("./task-
|
|
322
|
+
const { TaskBuildManifestSchema } = await import("./task-DzwZiru5.mjs").then((n) => n.t);
|
|
323
323
|
const result = TaskBuildManifestSchema.safeParse(manifest);
|
|
324
324
|
return result.success ? result.data : null;
|
|
325
325
|
}
|
package/dist/{task-target-deploy-dQYnMO8n-d2vdeqXH.mjs → task-target-deploy-dQYnMO8n-Cx_r9Kzk.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { n as SHA256HashSchema } from "./common-
|
|
3
|
+
import { n as SHA256HashSchema } from "./common-BcLVOrEe.mjs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
//#region ../../packages/shared-types/src/deployments/api/snapshot-payload.ts
|
|
6
6
|
function sortObjectKeysDeep(value) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { r as getKeystrokeProjectPath } from "./paths-DpHfoaXN-CdPimpky.mjs";
|
|
4
|
-
import "./default-urls-
|
|
5
|
-
import "./dist-
|
|
6
|
-
import { n as findProjectRoot, t as assertWorkflowProjectRoot } from "./project-config-
|
|
7
|
-
import { t as resolveCliCredentials } from "./resolve-cli-credentials-
|
|
4
|
+
import "./default-urls-jMHepw2q.mjs";
|
|
5
|
+
import "./dist-rsDq3fTk.mjs";
|
|
6
|
+
import { n as findProjectRoot, t as assertWorkflowProjectRoot } from "./project-config-VloWJirJ.mjs";
|
|
7
|
+
import { t as resolveCliCredentials } from "./resolve-cli-credentials-BecTgRE7.mjs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
10
10
|
import { spawnSync } from "node:child_process";
|
|
@@ -119,7 +119,7 @@ function restartStage(options, projectRoot, stage) {
|
|
|
119
119
|
}
|
|
120
120
|
async function runBuildPhase(options, projectRoot) {
|
|
121
121
|
const projectConfig = await assertWorkflowProjectRoot(projectRoot);
|
|
122
|
-
const { buildTaskTargetEntries } = await import("./task-target-build-
|
|
122
|
+
const { buildTaskTargetEntries } = await import("./task-target-build-bIN-ngtL.mjs");
|
|
123
123
|
await writeBuildDescriptor(projectRoot, {
|
|
124
124
|
projectRoot,
|
|
125
125
|
projectConfig,
|
|
@@ -132,7 +132,7 @@ async function runBuildPhase(options, projectRoot) {
|
|
|
132
132
|
}
|
|
133
133
|
async function runPreparePhase(projectRoot) {
|
|
134
134
|
const buildDescriptor = await readBuildDescriptor(projectRoot);
|
|
135
|
-
const { prepareTaskTargetBuiltTasks } = await import("./task-target-build-
|
|
135
|
+
const { prepareTaskTargetBuiltTasks } = await import("./task-target-build-bIN-ngtL.mjs");
|
|
136
136
|
const prepareResult = await prepareTaskTargetBuiltTasks({
|
|
137
137
|
builtTasks: buildDescriptor.builtTasks,
|
|
138
138
|
projectRoot
|
|
@@ -163,11 +163,11 @@ async function resolveDeployAuthOptions(options) {
|
|
|
163
163
|
}
|
|
164
164
|
async function runDeployPhase(options, projectRoot) {
|
|
165
165
|
const descriptor = await readDescriptor(projectRoot);
|
|
166
|
-
const { createDeployClient } = await import("./deploy-
|
|
166
|
+
const { createDeployClient } = await import("./deploy-NSrCthrD.mjs");
|
|
167
167
|
const client = createDeployClient(await resolveDeployAuthOptions(options));
|
|
168
168
|
const auth = await client.public.auth.validate();
|
|
169
169
|
if (auth.organizationId !== descriptor.projectConfig.organizationId) throw new Error(`Project organization mismatch: config=${descriptor.projectConfig.organizationId} auth=${auth.organizationId}`);
|
|
170
|
-
const { deployTaskTargets } = await import("./task-target-deploy-
|
|
170
|
+
const { deployTaskTargets } = await import("./task-target-deploy-DhlZNykk.mjs");
|
|
171
171
|
const result = await deployTaskTargets({
|
|
172
172
|
preparedTasks: descriptor.preparedTasks,
|
|
173
173
|
client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-
|
|
5
|
-
import { t as createTypedCommand } from "./commander-
|
|
4
|
+
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-C0pbsv39.mjs";
|
|
5
|
+
import { t as createTypedCommand } from "./commander-DIOuj6NJ.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/commands/test/test.command.ts
|
|
8
8
|
const TestOptionsSchema = JsonOptionSchema;
|
|
@@ -63,7 +63,7 @@ function createTestCommand() {
|
|
|
63
63
|
description: "Agent tool name from the built manifest",
|
|
64
64
|
key: "toolName"
|
|
65
65
|
},
|
|
66
|
-
loadHandler: async () => (await import("./tool.handler-
|
|
66
|
+
loadHandler: async () => (await import("./tool.handler-wH-lWk7T.mjs")).handleTestTool
|
|
67
67
|
})]
|
|
68
68
|
});
|
|
69
69
|
cmd.enablePositionalOptions();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { a as validateApiKey, i as requireClient } from "./context-
|
|
4
|
+
import { a as validateApiKey, i as requireClient } from "./context-DaBLwEWi.mjs";
|
|
5
5
|
//#region src/commands/auth/test.handler.ts
|
|
6
6
|
async function handleAuthTest(_options, ctx) {
|
|
7
7
|
const result = await validateApiKey(requireClient(ctx));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { A as CliExitError, S as toErrorMessage, l as isLocalMode, p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { i as projects } from "./dist-
|
|
5
|
-
import { t as assertWorkflowProjectRoot } from "./project-config-
|
|
6
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
7
|
-
import { o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-
|
|
8
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
9
|
-
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-
|
|
10
|
-
import { a as isUnknownSchema } from "./schema-display-
|
|
11
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
12
|
-
import { t as withErrorBoundary } from "./error-boundary-
|
|
13
|
-
import { a as tryReadExistingInputSchema, n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-
|
|
14
|
-
import { n as assertAuthoredWorkflowId, t as WORKFLOW_ID_COMMANDS } from "./authored-workflow-ref-
|
|
4
|
+
import { i as projects } from "./dist-rsDq3fTk.mjs";
|
|
5
|
+
import { t as assertWorkflowProjectRoot } from "./project-config-VloWJirJ.mjs";
|
|
6
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DaBLwEWi.mjs";
|
|
7
|
+
import { o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-BpLSQDJX.mjs";
|
|
8
|
+
import { t as requireWorkflowsDir } from "./resolve-project-Cto7y-K3.mjs";
|
|
9
|
+
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-BdjQ_VZx.mjs";
|
|
10
|
+
import { a as isUnknownSchema } from "./schema-display-DKreWhh1.mjs";
|
|
11
|
+
import { t as createBuildProgress } from "./build-progress-ClHW7cxW.mjs";
|
|
12
|
+
import { t as withErrorBoundary } from "./error-boundary-IUSz7k4x.mjs";
|
|
13
|
+
import { a as tryReadExistingInputSchema, n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-DVis_pob.mjs";
|
|
14
|
+
import { n as assertAuthoredWorkflowId, t as WORKFLOW_ID_COMMANDS } from "./authored-workflow-ref-DpaMDcsV.mjs";
|
|
15
15
|
//#region src/lib/format.ts
|
|
16
16
|
function formatBytes(bytes) {
|
|
17
17
|
if (bytes < 1024) return `${bytes} B`;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { A as CliExitError, P as throwReportedCliExit, S as toErrorMessage, c as getProcessEnv, p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { t as Credentials } from "./dist-
|
|
5
|
-
import { t as assertWorkflowProjectRoot } from "./project-config-
|
|
6
|
-
import { i as writeJson } from "./output-
|
|
7
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
8
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
9
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
10
|
-
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-
|
|
4
|
+
import { t as Credentials } from "./dist-rsDq3fTk.mjs";
|
|
5
|
+
import { t as assertWorkflowProjectRoot } from "./project-config-VloWJirJ.mjs";
|
|
6
|
+
import { i as writeJson } from "./output-C0pbsv39.mjs";
|
|
7
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DaBLwEWi.mjs";
|
|
8
|
+
import { a as readManifestsFromOutDir } from "./dist-BpLSQDJX.mjs";
|
|
9
|
+
import { t as requireWorkflowsDir } from "./resolve-project-Cto7y-K3.mjs";
|
|
10
|
+
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-BdjQ_VZx.mjs";
|
|
11
11
|
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-CknsHF5T.mjs";
|
|
12
|
-
import { n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-
|
|
12
|
+
import { n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-DVis_pob.mjs";
|
|
13
13
|
import * as path$1 from "node:path";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import * as os from "node:os";
|
package/dist/{trigger-artifacts-BcRScRSp-BRpU-He5.mjs → trigger-artifacts-BcRScRSp-CbuG4AfM.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { n as readOptionalJsonSchemaKeys } from "./declared-credential-requirements-
|
|
4
|
-
import { t as __exportAll } from "./rolldown-runtime-twds-ZHy-
|
|
5
|
-
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-
|
|
6
|
-
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-
|
|
3
|
+
import { n as readOptionalJsonSchemaKeys } from "./declared-credential-requirements-D6KT-r-e.mjs";
|
|
4
|
+
import { t as __exportAll } from "./rolldown-runtime-twds-ZHy-BvwnxyIt.mjs";
|
|
5
|
+
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-C4dOpzvX.mjs";
|
|
6
|
+
import { r as formatEnvAccessError, t as createEnvAccessPlugin } from "./detect-env-access-CwkOYeYM-CetSMqeq.mjs";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
import { rolldown } from "rolldown";
|
|
9
9
|
//#region ../../packages/workflow-builder/dist/trigger-artifacts-BcRScRSp.mjs
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { t as JsonSchemaSchema } from "./common-
|
|
4
|
-
import { c as TriggerSourceSchema, i as IdempotencyKeyConfigSchema, l as TriggerTypeSchema, s as TriggerCredentialRequirementsSchema } from "./credential-requirements-B5Alhu1v-
|
|
3
|
+
import { t as JsonSchemaSchema } from "./common-BcLVOrEe.mjs";
|
|
4
|
+
import { c as TriggerSourceSchema, i as IdempotencyKeyConfigSchema, l as TriggerTypeSchema, s as TriggerCredentialRequirementsSchema } from "./credential-requirements-B5Alhu1v-C26qMgU_.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../../packages/shared-types/src/workflows/build-output/trigger-manifest.ts
|
|
7
7
|
const TriggerBuildFunctionSchema = z.object({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { t as createTypedCommand } from "./commander-
|
|
3
|
+
import { t as createTypedCommand } from "./commander-DIOuj6NJ.mjs";
|
|
4
4
|
import { t as PackageManagerValues } from "./package-manager-BwJ6muas.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/commands/upgrade/upgrade.command.ts
|
|
@@ -30,7 +30,7 @@ function createUpgradeCommand() {
|
|
|
30
30
|
description: "Upgrade the Keystroke CLI to the latest published version",
|
|
31
31
|
schema: UpgradeOptionsSchema,
|
|
32
32
|
optionsConfig: UPGRADE_OPTIONS_CONFIG,
|
|
33
|
-
loadHandler: async () => (await import("./upgrade.handler-
|
|
33
|
+
loadHandler: async () => (await import("./upgrade.handler-COptE2fK.mjs")).handleUpgrade
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { P as throwReportedCliExit, S as toErrorMessage, c as getProcessEnv, p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { t as assertWorkflowProjectRoot } from "./project-config-
|
|
5
|
-
import { a as writeJsonError, i as writeJson } from "./output-
|
|
6
|
-
import { i as requireClient } from "./context-
|
|
7
|
-
import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-
|
|
8
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
9
|
-
import { t as getIntegrationCatalog } from "./integration-catalog-
|
|
10
|
-
import { t as readCredentialEnvMap } from "./credential-env-map-
|
|
11
|
-
import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-
|
|
12
|
-
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-
|
|
4
|
+
import { t as assertWorkflowProjectRoot } from "./project-config-VloWJirJ.mjs";
|
|
5
|
+
import { a as writeJsonError, i as writeJson } from "./output-C0pbsv39.mjs";
|
|
6
|
+
import { i as requireClient } from "./context-DaBLwEWi.mjs";
|
|
7
|
+
import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-BpLSQDJX.mjs";
|
|
8
|
+
import { t as requireWorkflowsDir } from "./resolve-project-Cto7y-K3.mjs";
|
|
9
|
+
import { t as getIntegrationCatalog } from "./integration-catalog-DEHwWAO6.mjs";
|
|
10
|
+
import { t as readCredentialEnvMap } from "./credential-env-map-rXDibCDT.mjs";
|
|
11
|
+
import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-Bud9r1JE.mjs";
|
|
12
|
+
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-BvcO7KgE.mjs";
|
|
13
13
|
import * as path$1 from "node:path";
|
|
14
14
|
import { confirm, isCancel } from "@clack/prompts";
|
|
15
15
|
//#region src/commands/credentials/upload/upload.handler.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { i as writeJson } from "./output-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
6
|
-
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-
|
|
4
|
+
import { i as writeJson } from "./output-C0pbsv39.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-DaBLwEWi.mjs";
|
|
6
|
+
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CPkuyDrD.mjs";
|
|
7
7
|
//#region src/commands/admin/users.get.handler.ts
|
|
8
8
|
async function handleAdminUsersGet(options, ctx) {
|
|
9
9
|
const client = requireClient(ctx);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { i as writeJson } from "./output-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
6
|
-
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-
|
|
4
|
+
import { i as writeJson } from "./output-C0pbsv39.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-DaBLwEWi.mjs";
|
|
6
|
+
import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CPkuyDrD.mjs";
|
|
7
7
|
import Table from "cli-table3";
|
|
8
8
|
//#region src/commands/admin/users.list.handler.ts
|
|
9
9
|
async function handleAdminUsersList(options, ctx) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { i as writeJson } from "./output-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
6
|
-
import { n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-
|
|
4
|
+
import { i as writeJson } from "./output-C0pbsv39.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-DaBLwEWi.mjs";
|
|
6
|
+
import { n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-CPkuyDrD.mjs";
|
|
7
7
|
//#region src/commands/admin/users.set-role.handler.ts
|
|
8
8
|
async function handleAdminUsersSetRole(options, ctx) {
|
|
9
9
|
const client = requireClient(ctx);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { i as readProjectConfig } from "./project-config-
|
|
4
|
-
import { h as resolveBuildOutputDir } from "./layout-
|
|
3
|
+
import { i as readProjectConfig } from "./project-config-VloWJirJ.mjs";
|
|
4
|
+
import { h as resolveBuildOutputDir } from "./layout-CqQq4MmI.mjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
//#region ../../packages/project-config/src/utils.ts
|
|
7
7
|
function resolveConfiguredBuildOutputDir(projectRoot, buildConfig) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { P as throwReportedCliExit, S as toErrorMessage, p as ui } from "./keystroke.mjs";
|
|
4
|
-
import { i as projects } from "./dist-
|
|
5
|
-
import { i as writeJson } from "./output-
|
|
6
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
7
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
8
|
-
import { c as build, s as typecheckWorkflows, t as WorkflowNotFoundError } from "./workflow-build-
|
|
9
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
10
|
-
import { n as assertAuthoredWorkflowId, t as WORKFLOW_ID_COMMANDS } from "./authored-workflow-ref-
|
|
4
|
+
import { i as projects } from "./dist-rsDq3fTk.mjs";
|
|
5
|
+
import { i as writeJson } from "./output-C0pbsv39.mjs";
|
|
6
|
+
import { a as readManifestsFromOutDir } from "./dist-BpLSQDJX.mjs";
|
|
7
|
+
import { t as requireWorkflowsDir } from "./resolve-project-Cto7y-K3.mjs";
|
|
8
|
+
import { c as build, s as typecheckWorkflows, t as WorkflowNotFoundError } from "./workflow-build-BdjQ_VZx.mjs";
|
|
9
|
+
import { t as createBuildProgress } from "./build-progress-ClHW7cxW.mjs";
|
|
10
|
+
import { n as assertAuthoredWorkflowId, t as WORKFLOW_ID_COMMANDS } from "./authored-workflow-ref-DpaMDcsV.mjs";
|
|
11
11
|
import * as path$1 from "node:path";
|
|
12
12
|
import * as os from "node:os";
|
|
13
13
|
import { mkdtemp, readFile, readdir, rm } from "node:fs/promises";
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
import { i as __toESM, n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
4
4
|
import { L as logger, R as originalConsole, S as toErrorMessage, n as style, p as ui, t as ANSI } from "./keystroke.mjs";
|
|
5
|
-
import { r as getKeystrokeTmpDir } from "./dist-
|
|
6
|
-
import { t as assertWorkflowProjectRoot } from "./project-config-
|
|
7
|
-
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-
|
|
8
|
-
import { t as AgentVersionManifestSchema } from "./agent-manifest-
|
|
9
|
-
import { r as RelativeFilePathSchema } from "./file-metadata-
|
|
10
|
-
import { c as createArtifactOutputFiles, l as createMetadataOutputFile, o as METADATA_ROOT_DIR_NAME, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-
|
|
11
|
-
import { t as resolveConfiguredBuildOutputDir } from "./utils-
|
|
12
|
-
import { a as readAgentSandboxPackage, r as AGENT_VM_TOOLS_RUNTIME_RELATIVE_PATH } from "./agent-bundle-package-DWV6B_5q-
|
|
13
|
-
import { a as prewarmFileContentCache, c as typedEntries, i as createFileContentCache, l as require_out, n as computeBuilderFingerprint, o as resetFileContentCache, r as computeWorkflowFingerprint, s as sha256String } from "./metadata-layout-Bv-B0nHj-
|
|
14
|
-
import { a as getAgentArtifactPaths, c as hashWorkflowManifestForDisk, d as resolveOutputDir, i as createAgentOutputFiles, l as removeAgentArtifacts, n as BUILD_CACHE_FILE_NAME, o as hashAgentManifestForDisk, r as allOutputFilesExist, s as hashWorkflowFlowForDisk, t as AGENT_ARTIFACT_DIR_PREFIX, u as removeWorkflowArtifacts } from "./writer-BLg0RuZa-
|
|
15
|
-
import { a as createDiscoveryFailure, c as createNamespaceStarExportDiscoveryError, d as isWorkflowLoadResult, f as loadWorkflowMetadataBatch, i as createAmbiguousExportDiscoveryError, l as isAgentLoadResult, o as createDuplicateWorkflowIdFailure, t as DuplicateWorkflowIdError, u as isTaskLoadResult } from "./import-module-y0glInUe-
|
|
16
|
-
import { a as literalString, n as identifierName, o as parseSourceFile, r as isNode } from "./oxc-B3KI3rf_-
|
|
17
|
-
import { a as getLocalModuleSpecifier, c as removeAllMetadataArtifacts, d as resolveDefaultExportAssignment, f as resolveLocalModulePath, i as collectWorkflowImportNames, n as DISCOVERY_IGNORE, o as getVariableDeclarators, r as collectLocalWorkflowBindings, s as isExportedVariableStatement, t as DISCOVERY_GLOB, u as removeMetadataArtifacts } from "./source-analysis-BBg2E_6G-
|
|
18
|
-
import { n as parseRelativeFilePath } from "./normalize-path-CojS-CgQ-
|
|
5
|
+
import { r as getKeystrokeTmpDir } from "./dist-rsDq3fTk.mjs";
|
|
6
|
+
import { t as assertWorkflowProjectRoot } from "./project-config-VloWJirJ.mjs";
|
|
7
|
+
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-EnRP3HRK.mjs";
|
|
8
|
+
import { t as AgentVersionManifestSchema } from "./agent-manifest-IKErxq4q.mjs";
|
|
9
|
+
import { r as RelativeFilePathSchema } from "./file-metadata-bzAf3GqL.mjs";
|
|
10
|
+
import { c as createArtifactOutputFiles, l as createMetadataOutputFile, o as METADATA_ROOT_DIR_NAME, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-CqQq4MmI.mjs";
|
|
11
|
+
import { t as resolveConfiguredBuildOutputDir } from "./utils-DZkAd_Yh.mjs";
|
|
12
|
+
import { a as readAgentSandboxPackage, r as AGENT_VM_TOOLS_RUNTIME_RELATIVE_PATH } from "./agent-bundle-package-DWV6B_5q-DyuZcU-M.mjs";
|
|
13
|
+
import { a as prewarmFileContentCache, c as typedEntries, i as createFileContentCache, l as require_out, n as computeBuilderFingerprint, o as resetFileContentCache, r as computeWorkflowFingerprint, s as sha256String } from "./metadata-layout-Bv-B0nHj-qhsuNON1.mjs";
|
|
14
|
+
import { a as getAgentArtifactPaths, c as hashWorkflowManifestForDisk, d as resolveOutputDir, i as createAgentOutputFiles, l as removeAgentArtifacts, n as BUILD_CACHE_FILE_NAME, o as hashAgentManifestForDisk, r as allOutputFilesExist, s as hashWorkflowFlowForDisk, t as AGENT_ARTIFACT_DIR_PREFIX, u as removeWorkflowArtifacts } from "./writer-BLg0RuZa-ynLkRVCU.mjs";
|
|
15
|
+
import { a as createDiscoveryFailure, c as createNamespaceStarExportDiscoveryError, d as isWorkflowLoadResult, f as loadWorkflowMetadataBatch, i as createAmbiguousExportDiscoveryError, l as isAgentLoadResult, o as createDuplicateWorkflowIdFailure, t as DuplicateWorkflowIdError, u as isTaskLoadResult } from "./import-module-y0glInUe-CVKziY2H.mjs";
|
|
16
|
+
import { a as literalString, n as identifierName, o as parseSourceFile, r as isNode } from "./oxc-B3KI3rf_-ghZc3xZ5.mjs";
|
|
17
|
+
import { a as getLocalModuleSpecifier, c as removeAllMetadataArtifacts, d as resolveDefaultExportAssignment, f as resolveLocalModulePath, i as collectWorkflowImportNames, n as DISCOVERY_IGNORE, o as getVariableDeclarators, r as collectLocalWorkflowBindings, s as isExportedVariableStatement, t as DISCOVERY_GLOB, u as removeMetadataArtifacts } from "./source-analysis-BBg2E_6G-CS88X3nS.mjs";
|
|
18
|
+
import { n as parseRelativeFilePath } from "./normalize-path-CojS-CgQ-lQUBXXzi.mjs";
|
|
19
19
|
import { createRequire } from "node:module";
|
|
20
20
|
import * as path$1 from "node:path";
|
|
21
21
|
import path from "node:path";
|
|
22
22
|
import * as fs from "node:fs/promises";
|
|
23
23
|
import { access, mkdir, readFile, rm, stat, writeFile } from "node:fs/promises";
|
|
24
24
|
import { existsSync, realpathSync } from "node:fs";
|
|
25
|
-
import { fileURLToPath } from "node:url";
|
|
26
25
|
import { z } from "zod";
|
|
26
|
+
import { fileURLToPath } from "node:url";
|
|
27
27
|
import { execFile } from "node:child_process";
|
|
28
28
|
import { createHash } from "node:crypto";
|
|
29
29
|
import { promisify } from "node:util";
|
|
@@ -1001,7 +1001,7 @@ async function buildDiscoveredWorkflows(options) {
|
|
|
1001
1001
|
const failures = [...buildPlan.failures];
|
|
1002
1002
|
const warnings = [];
|
|
1003
1003
|
if (buildPlan.workflows.length > 0) {
|
|
1004
|
-
const { buildWorkflowArtifacts } = await import("./build-workflows-C-gQM3l5-
|
|
1004
|
+
const { buildWorkflowArtifacts } = await import("./build-workflows-C-gQM3l5-B1By02sw.mjs");
|
|
1005
1005
|
const result = await buildWorkflowArtifacts({
|
|
1006
1006
|
entries: buildPlan.workflows,
|
|
1007
1007
|
workflowsByKey,
|
|
@@ -1016,7 +1016,7 @@ async function buildDiscoveredWorkflows(options) {
|
|
|
1016
1016
|
warnings.push(...result.warnings);
|
|
1017
1017
|
}
|
|
1018
1018
|
if (buildPlan.agents.length > 0) {
|
|
1019
|
-
const { buildAgentArtifacts } = await import("./build-agents-CUzBnlAG-
|
|
1019
|
+
const { buildAgentArtifacts } = await import("./build-agents-CUzBnlAG-BlVdU8WI.mjs");
|
|
1020
1020
|
const result = await buildAgentArtifacts({
|
|
1021
1021
|
entries: buildPlan.agents,
|
|
1022
1022
|
projectRoot: options.projectRoot
|
|
@@ -1025,7 +1025,7 @@ async function buildDiscoveredWorkflows(options) {
|
|
|
1025
1025
|
failures.push(...result.failures);
|
|
1026
1026
|
}
|
|
1027
1027
|
if (buildPlan.tasks.length > 0) {
|
|
1028
|
-
const { buildTaskArtifacts } = await import("./build-tasks-5eOvI19S-
|
|
1028
|
+
const { buildTaskArtifacts } = await import("./build-tasks-5eOvI19S-DOJYTRNL.mjs");
|
|
1029
1029
|
const result = await buildTaskArtifacts({
|
|
1030
1030
|
entries: buildPlan.tasks,
|
|
1031
1031
|
projectRoot: options.projectRoot,
|
|
@@ -1133,7 +1133,7 @@ async function createBuildPlan(options) {
|
|
|
1133
1133
|
const currentWorkflowIndex = workflowProgressIndex;
|
|
1134
1134
|
workflowProgressIndex += 1;
|
|
1135
1135
|
if (!loadResult?.ok) {
|
|
1136
|
-
const { createWorkflowMetadataFailure } = await import("./build-workflows-C-gQM3l5-
|
|
1136
|
+
const { createWorkflowMetadataFailure } = await import("./build-workflows-C-gQM3l5-B1By02sw.mjs");
|
|
1137
1137
|
plan.failures.push(createWorkflowMetadataFailure(discoveredWorkflow, loadResult?.error));
|
|
1138
1138
|
continue;
|
|
1139
1139
|
}
|
|
@@ -1331,7 +1331,7 @@ async function runBuild(config, initialTargetBindingKeys, metadataRebuildDecisio
|
|
|
1331
1331
|
cacheResolvedBindingKeys,
|
|
1332
1332
|
releaseBundleMemory: config.releaseBundleMemory
|
|
1333
1333
|
};
|
|
1334
|
-
const { writeBuildOutput, writeTargetedBuildOutput } = await import("./writer-BLg0RuZa-
|
|
1334
|
+
const { writeBuildOutput, writeTargetedBuildOutput } = await import("./writer-BLg0RuZa-ynLkRVCU.mjs").then((n) => n.f).then((n) => n.t);
|
|
1335
1335
|
const writeResult = targetBindingKeys ? await writeTargetedBuildOutput({
|
|
1336
1336
|
artifacts: finalizedScopedArtifacts,
|
|
1337
1337
|
agentArtifacts,
|
|
@@ -1356,7 +1356,7 @@ async function runBuild(config, initialTargetBindingKeys, metadataRebuildDecisio
|
|
|
1356
1356
|
elapsedMs: performance.now() - writeStartedAt,
|
|
1357
1357
|
...writeResult.skippedWriteCount !== void 0 && writeResult.skippedWriteCount > 0 ? { skippedWriteCount: writeResult.skippedWriteCount } : {}
|
|
1358
1358
|
});
|
|
1359
|
-
const { buildMetadataArtifacts } = await import("./build-metadata-BB_L45ZS-
|
|
1359
|
+
const { buildMetadataArtifacts } = await import("./build-metadata-BB_L45ZS-DF9jjlo7.mjs");
|
|
1360
1360
|
const metadata = await buildMetadataArtifacts({
|
|
1361
1361
|
projectRoot: config.projectRoot,
|
|
1362
1362
|
outputDir,
|