@amerged/ohmyhost-cli 0.1.68 → 0.1.70

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/index.js CHANGED
@@ -107,7 +107,7 @@ import {
107
107
  selectWorkspace,
108
108
  verifiedUserId,
109
109
  workspaceOf
110
- } from "./chunk-IHGPMLZF.js";
110
+ } from "./chunk-DCMSPT2W.js";
111
111
  import {
112
112
  CredentialStoreIntegrityError,
113
113
  CredentialStoreUnavailableError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amerged/ohmyhost-cli",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmyhost/product-cli",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "private": true,
5
5
  "ohmyhost": {
6
6
  "deployment": "production",
@@ -290,6 +290,9 @@ function admitStatement(tokens: readonly MigrationSqlToken[], sql: string): void
290
290
  /^create\s+extension\s+if\s+not\s+exists\s+(?:pgcrypto|btree_gist|unaccent)(?:\s+with\s+schema\s+extensions)?$/u.test(
291
291
  normalized,
292
292
  ) ||
293
+ /^create\s+extension\s+if\s+not\s+exists\s+(?:pg_trgm|citext|ltree)\s+with\s+schema\s+extensions$/u.test(
294
+ normalized,
295
+ ) ||
293
296
  /^create\s+(?:table|type|domain|sequence|view|materialized\s+view|(?:constraint\s+)?trigger)\b/u.test(
294
297
  normalized,
295
298
  ) ||
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmyhost/sdk-ts",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -22,6 +22,7 @@ export {
22
22
  createBillingPortal,
23
23
  createCloudflareDnsAuthorization,
24
24
  createDeployment,
25
+ createMakeActionBinding,
25
26
  createManagedSourceUpload,
26
27
  createNativeAuthUser,
27
28
  createOrganization,
@@ -158,6 +159,7 @@ export {
158
159
  rotateManagedMailWebhookSecret,
159
160
  rotateProjectDevShareLink,
160
161
  rotateProjectPreviewToken,
162
+ runMakeAction,
161
163
  runProjectDatabaseSchedule,
162
164
  setProjectCreditBudget,
163
165
  setProjectDatabaseSchedule,
@@ -317,6 +319,11 @@ export type {
317
319
  CreateDeploymentRequest,
318
320
  CreateDeploymentResponse,
319
321
  CreateDeploymentResponses,
322
+ CreateMakeActionBindingData,
323
+ CreateMakeActionBindingError,
324
+ CreateMakeActionBindingErrors,
325
+ CreateMakeActionBindingResponse,
326
+ CreateMakeActionBindingResponses,
320
327
  CreateManagedSourceUploadData,
321
328
  CreateManagedSourceUploadError,
322
329
  CreateManagedSourceUploadErrors,
@@ -903,6 +910,16 @@ export type {
903
910
  ListWorkspaceMailDomainsResponse,
904
911
  ListWorkspaceMailDomainsResponses,
905
912
  MailRevisionRequest,
913
+ MakeActionBinding,
914
+ MakeActionBindingRequest,
915
+ MakeActionConflict,
916
+ MakeActionDenied,
917
+ MakeActionInvalidRequest,
918
+ MakeActionRateLimited,
919
+ MakeActionRunRequest,
920
+ MakeActionRunSuccess,
921
+ MakeActionUnavailable,
922
+ MakeActionUncertain,
906
923
  ManagedMailContent,
907
924
  ManagedMailContentResult,
908
925
  ManagedMailDisabled,
@@ -1179,6 +1196,11 @@ export type {
1179
1196
  RotateProjectPreviewTokenErrors,
1180
1197
  RotateProjectPreviewTokenResponse,
1181
1198
  RotateProjectPreviewTokenResponses,
1199
+ RunMakeActionData,
1200
+ RunMakeActionError,
1201
+ RunMakeActionErrors,
1202
+ RunMakeActionResponse,
1203
+ RunMakeActionResponses,
1182
1204
  RunProjectDatabaseScheduleData,
1183
1205
  RunProjectDatabaseScheduleError,
1184
1206
  RunProjectDatabaseScheduleErrors,
@@ -72,9 +72,9 @@ import {
72
72
  writeProjectDatabase,
73
73
  } from "./sdk.gen.js";
74
74
  export const remoteMcpContractSha256 =
75
- "169544a84c5bf8e63c5261d2aa895adccfd1a34807db4e57d7e94fdd8817ba09";
75
+ "16c2ec672b854abcb397067464e93b6e38c85e00d0b6ba806dc0037d60499d3a";
76
76
  export const remoteMcpContractVersion = "0.0.0";
77
- export const remoteMcpReleaseVersion = "0.1.68";
77
+ export const remoteMcpReleaseVersion = "0.1.70";
78
78
  export interface RemoteMcpOperation {
79
79
  operationId: string;
80
80
  method: string;
@@ -807,6 +807,226 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
807
807
  },
808
808
  },
809
809
  },
810
+ {
811
+ inputSchema: {
812
+ type: "object",
813
+ additionalProperties: false,
814
+ required: [
815
+ "organization_id",
816
+ "idempotency_key",
817
+ "project_id",
818
+ "environment_id",
819
+ "import_id",
820
+ "action",
821
+ ],
822
+ properties: {
823
+ organization_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
824
+ idempotency_key: {
825
+ type: "string",
826
+ minLength: 1,
827
+ maxLength: 128,
828
+ pattern: "^[A-Za-z0-9._:-]+$",
829
+ description:
830
+ "Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.",
831
+ },
832
+ project_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
833
+ environment_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
834
+ import_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
835
+ action: {
836
+ oneOf: [
837
+ {
838
+ type: "object",
839
+ additionalProperties: false,
840
+ required: ["kind", "app_name", "app_version", "endpoint_name"],
841
+ properties: {
842
+ kind: { const: "endpoint" },
843
+ app_name: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" },
844
+ app_version: { type: "integer", minimum: 1, maximum: 9007199254740991 },
845
+ endpoint_name: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" },
846
+ },
847
+ },
848
+ {
849
+ type: "object",
850
+ additionalProperties: false,
851
+ required: ["kind", "scenario_id", "method", "path_prefix"],
852
+ properties: {
853
+ kind: { const: "scenario" },
854
+ scenario_id: { type: "integer", minimum: 1, maximum: 9007199254740991 },
855
+ method: { type: "string", enum: ["GET", "POST", "PUT", "PATCH", "DELETE"] },
856
+ path_prefix: {
857
+ type: "string",
858
+ minLength: 1,
859
+ maxLength: 2048,
860
+ description:
861
+ "Origin-relative path prefix the owner permits on the bound Make API Shell.",
862
+ },
863
+ },
864
+ },
865
+ ],
866
+ },
867
+ },
868
+ },
869
+ operationId: "createMakeActionBinding",
870
+ method: "POST",
871
+ path: "/v1/organizations/{organization_id}/connections/action-bindings",
872
+ summary: "Bind one Make action to an imported connection",
873
+ description:
874
+ "Requires an authenticated human with permission to manage integrations. Give the returned execution key to the owner or agent through a secure setup flow. It grants access to this one action and must be kept secret; it is not a Make token or a generic process capability.",
875
+ disposition: "excluded",
876
+ toolNames: [],
877
+ reason:
878
+ "The response contains an action capability secret and must not be exposed through MCP.",
879
+ requestBody: {
880
+ required: true,
881
+ content: {
882
+ "application/json": {
883
+ schema: {
884
+ type: "object",
885
+ additionalProperties: false,
886
+ required: ["project_id", "environment_id", "import_id", "action"],
887
+ properties: {
888
+ project_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
889
+ environment_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
890
+ import_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
891
+ action: {
892
+ oneOf: [
893
+ {
894
+ type: "object",
895
+ additionalProperties: false,
896
+ required: ["kind", "app_name", "app_version", "endpoint_name"],
897
+ properties: {
898
+ kind: { const: "endpoint" },
899
+ app_name: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" },
900
+ app_version: { type: "integer", minimum: 1, maximum: 9007199254740991 },
901
+ endpoint_name: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" },
902
+ },
903
+ },
904
+ {
905
+ type: "object",
906
+ additionalProperties: false,
907
+ required: ["kind", "scenario_id", "method", "path_prefix"],
908
+ properties: {
909
+ kind: { const: "scenario" },
910
+ scenario_id: { type: "integer", minimum: 1, maximum: 9007199254740991 },
911
+ method: { type: "string", enum: ["GET", "POST", "PUT", "PATCH", "DELETE"] },
912
+ path_prefix: {
913
+ type: "string",
914
+ minLength: 1,
915
+ maxLength: 2048,
916
+ description:
917
+ "Origin-relative path prefix the owner permits on the bound Make API Shell.",
918
+ },
919
+ },
920
+ },
921
+ ],
922
+ },
923
+ },
924
+ },
925
+ },
926
+ },
927
+ },
928
+ parameters: [
929
+ {
930
+ name: "X-Request-Id",
931
+ in: "header",
932
+ description: "Optional caller-provided correlation identifier.",
933
+ required: false,
934
+ schema: { type: "string", minLength: 1, maxLength: 128 },
935
+ },
936
+ {
937
+ name: "organization_id",
938
+ in: "path",
939
+ required: true,
940
+ schema: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
941
+ },
942
+ {
943
+ name: "Idempotency-Key",
944
+ in: "header",
945
+ description:
946
+ "Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.",
947
+ required: true,
948
+ schema: { type: "string", minLength: 1, maxLength: 128, pattern: "^[A-Za-z0-9._:-]+$" },
949
+ },
950
+ ],
951
+ outputSchema: {
952
+ type: "object",
953
+ additionalProperties: false,
954
+ required: ["binding_id", "execution_key"],
955
+ properties: {
956
+ binding_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
957
+ execution_key: { type: "string", description: "Secret capability for this action." },
958
+ },
959
+ },
960
+ },
961
+ {
962
+ inputSchema: {
963
+ type: "object",
964
+ additionalProperties: false,
965
+ required: ["idempotency_key", "input"],
966
+ properties: {
967
+ idempotency_key: {
968
+ type: "string",
969
+ minLength: 1,
970
+ maxLength: 128,
971
+ pattern: "^[A-Za-z0-9._:-]+$",
972
+ description:
973
+ "Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.",
974
+ },
975
+ input: { type: "object", additionalProperties: true },
976
+ },
977
+ },
978
+ operationId: "runMakeAction",
979
+ method: "POST",
980
+ path: "/v1/make/actions/run",
981
+ summary: "Run a bound Make action",
982
+ description:
983
+ "Uses the action execution key as its bearer credential. Supply a stable idempotency key for each logical invocation. An uncertain result may mean that the action was dispatched; do not create a new invocation solely to retry it.",
984
+ disposition: "excluded",
985
+ toolNames: [],
986
+ reason: "The operation uses an action capability secret that must not be exposed through MCP.",
987
+ requestBody: {
988
+ required: true,
989
+ content: {
990
+ "application/json": {
991
+ schema: {
992
+ type: "object",
993
+ additionalProperties: false,
994
+ required: ["input"],
995
+ properties: { input: { type: "object", additionalProperties: true } },
996
+ },
997
+ },
998
+ },
999
+ },
1000
+ parameters: [
1001
+ {
1002
+ name: "Idempotency-Key",
1003
+ in: "header",
1004
+ description:
1005
+ "Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.",
1006
+ required: true,
1007
+ schema: { type: "string", minLength: 1, maxLength: 128, pattern: "^[A-Za-z0-9._:-]+$" },
1008
+ },
1009
+ ],
1010
+ outputSchema: {
1011
+ oneOf: [
1012
+ {
1013
+ type: "object",
1014
+ additionalProperties: false,
1015
+ required: ["state", "output"],
1016
+ properties: {
1017
+ state: { const: "completed" },
1018
+ output: { description: "Bounded JSON response envelope returned by Make." },
1019
+ },
1020
+ },
1021
+ {
1022
+ type: "object",
1023
+ additionalProperties: false,
1024
+ required: ["state"],
1025
+ properties: { state: { const: "already_completed" } },
1026
+ },
1027
+ ],
1028
+ },
1029
+ },
810
1030
  {
811
1031
  inputSchema: {
812
1032
  type: "object",
@@ -6868,7 +7088,7 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
6868
7088
  operationId: "getProjectExport",
6869
7089
  method: "GET",
6870
7090
  path: "/v1/projects/{project_id}/exports/{export_id}",
6871
- summary: "Read export progress and its verified 24-hour download capability",
7091
+ summary: "Read encrypted database export status",
6872
7092
  description:
6873
7093
  "Owner-only, including at zero credits. Poll queued/running jobs after next_poll_after_seconds. A verified SQL ZIP is retained seven days. This read never signs a download URL, so download_url and download_expires_at are always null here. Request a link with POST download-links. Neither the password nor any permanent storage credential can be retrieved. Generic operation reads never contain a download capability.",
6874
7094
  disposition: "named",
@@ -23341,7 +23561,7 @@ export const remoteMcpToolDefinitions: readonly RemoteMcpToolDefinition[] = [
23341
23561
  },
23342
23562
  {
23343
23563
  name: "project_export_get",
23344
- title: "Read export progress and its verified 24-hour download capability",
23564
+ title: "Read encrypted database export status",
23345
23565
  description:
23346
23566
  "Owner-only: read the original encrypted SQL ZIP export's progress and error, never its password or a download URL. While queued or running, follow next_poll_after_seconds and poll this same project_id and export_id; do not create another export to poll. Once succeeded, obtaining a private download link requires the authorized direct CLI/REST export workflow outside this remote catalog. Available at zero credits.",
23347
23567
  annotations: {
@@ -24150,12 +24370,12 @@ export const remoteMcpToolDefinitions: readonly RemoteMcpToolDefinition[] = [
24150
24370
  name: "project_dev_access_mode_set",
24151
24371
  title: "Select public or protected Dev access",
24152
24372
  description:
24153
- "Owner only: choose public Dev (no platform token) or protected Dev (share link required). A switch takes effect on the next request; switching back creates a new link.",
24373
+ "Owner only: anyone with the URL can reach public Dev without platform authentication. Switching Dev back to protected issues a fresh share link and invalidates earlier sessions. The change takes effect on the next request.",
24154
24374
  annotations: {
24155
24375
  readOnlyHint: false,
24156
24376
  destructiveHint: true,
24157
24377
  idempotentHint: true,
24158
- openWorldHint: false,
24378
+ openWorldHint: true,
24159
24379
  },
24160
24380
  operationId: "setProjectDevAccessMode",
24161
24381
  inputSchema: {
@@ -24621,7 +24841,7 @@ export const remoteMcpToolDefinitions: readonly RemoteMcpToolDefinition[] = [
24621
24841
  readOnlyHint: false,
24622
24842
  destructiveHint: true,
24623
24843
  idempotentHint: true,
24624
- openWorldHint: false,
24844
+ openWorldHint: true,
24625
24845
  },
24626
24846
  operationId: "changeProjectHandle",
24627
24847
  inputSchema: {