@amerged/ohmyhost-cli 0.1.43 → 0.1.44
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/bin.js +1 -1
- package/dist/{chunk-5TO5I2HF.js → chunk-VJWPDFZ5.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/apps/product-cli/package.json +1 -1
- package/src/apps/product-cli/src/cli.ts +3 -3
- package/src/packages/contracts/src/operation-failure.ts +4 -4
- package/src/packages/sdk-ts/package.json +1 -1
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +3 -3
- package/src/packages/sdk-ts/src/generated/types.gen.ts +8 -0
package/README.md
CHANGED
package/dist/bin.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as __ohmyhostCreateRequire } from "node:module"; const require = __ohmyhostCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
runProductionCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VJWPDFZ5.js";
|
|
6
6
|
import "./chunk-7D2RFLWM.js";
|
|
7
7
|
|
|
8
8
|
// apps/product-cli/dist/bin.js
|
|
@@ -38879,12 +38879,12 @@ var failures = {
|
|
|
38879
38879
|
"Do not repeat the write with a new key. Inspect the target data with a read query and retain this operation ID. The same key only reads this receipt."
|
|
38880
38880
|
],
|
|
38881
38881
|
database_compute_failed: [
|
|
38882
|
-
"The database size change
|
|
38883
|
-
"Read the current database compute and report this operation ID through feedback.
|
|
38882
|
+
"The database provider refused the size change or had no room for it. The database keeps its previous size and keeps running, and no credits are charged for the failed change.",
|
|
38883
|
+
"Read the current size with 'ohmyhost database compute get --project PROJECT_ULID --environment dev|prod --json' or MCP database_compute_get, then repeat the change with a new idempotency key; the old key only returns this failure. If it fails again after a few minutes, start a new deployment of the project, repeat the change and report this operation ID through feedback. Never reset the database to change its size."
|
|
38884
38884
|
],
|
|
38885
38885
|
database_compute_plan_changed: [
|
|
38886
|
-
"Paid access ended before the database size change started.",
|
|
38887
|
-
"Read the organization's plan
|
|
38886
|
+
"Paid access ended before the database size change started, so it was not sent to the database provider. The database keeps its previous size and keeps running, and no credits are charged for the change.",
|
|
38887
|
+
"Read the organization's plan with 'ohmyhost credits account --organization ORGANIZATION_ULID --json' or MCP organization_account_get. Sizes above 256 MiB need active Paid: ask the organization Owner to activate Paid through billing checkout, then read the current size with database compute get and repeat the change with a new idempotency key."
|
|
38888
38888
|
],
|
|
38889
38889
|
database_compute_rejected: [
|
|
38890
38890
|
"The database size change could not be started.",
|
|
@@ -45317,7 +45317,7 @@ function exact4(v, keys) {
|
|
|
45317
45317
|
// apps/product-cli/package.json
|
|
45318
45318
|
var package_default = {
|
|
45319
45319
|
name: "@ohmyhost/product-cli",
|
|
45320
|
-
version: "0.1.
|
|
45320
|
+
version: "0.1.44",
|
|
45321
45321
|
private: true,
|
|
45322
45322
|
ohmyhost: {
|
|
45323
45323
|
deployment: "production",
|
|
@@ -45669,13 +45669,13 @@ var HELP_USAGE = Object.freeze({
|
|
|
45669
45669
|
"database webhook test": "ohmyhost database webhook test --project ULID --environment dev|prod --webhook ID --yes --json (sends one signed test request to the receiver; nothing is stored)",
|
|
45670
45670
|
"database webhook deliveries": "ohmyhost database webhook deliveries --project ULID [--environment dev|prod] [--webhook ID] [--limit 1..100] [--cursor CURSOR] --json",
|
|
45671
45671
|
"database webhook replay": "ohmyhost database webhook replay --project ULID --environment dev|prod --delivery ID --yes --json",
|
|
45672
|
-
"database schedule set": "ohmyhost database schedule set --project ULID --environment dev|prod --name NAME (--cron EXPR | --every-seconds N) --statements-file PATH [--timeout-ms N] [--enabled true|false] --yes --json (runs the statements in the file, a UTF-8 JSON array of 1 to 20 SQL strings, as the runtime role of the application; cron has five fields in UTC; every-seconds is 60 to 2678400; timeout-ms is 1000 to 30000, default 10000)",
|
|
45672
|
+
"database schedule set": "ohmyhost database schedule set --project ULID --environment dev|prod --name NAME (--cron EXPR | --every-seconds N) --statements-file PATH [--timeout-ms N] [--enabled true|false] --yes --json (runs the statements in the file, a UTF-8 JSON array of 1 to 20 SQL strings, as the runtime role of the application; cron has five fields in UTC; every-seconds is 60 to 2678400; timeout-ms is 1000 to 30000, default 10000). A project whose Stop budget is reached has its schedules disabled automatically, within about an hour of the billed usage reaching the budget: the credit service does this after its hourly pgcf pass, and Continue budgets are never touched. While the budget is reached, schedule set with enabled true and schedule run are refused with project_budget_exceeded (HTTP 402). Re-enabling is manual: raise the budget (or wait for the next UTC month) and run database schedule set --enabled true again with the schedule body (read it with schedule get).",
|
|
45673
45673
|
"database schedule list": "ohmyhost database schedule list --project ULID [--environment dev|prod] --json (dev when omitted)",
|
|
45674
45674
|
"database schedule get": "ohmyhost database schedule get --project ULID [--environment dev|prod] --name NAME --json",
|
|
45675
45675
|
"database schedule delete": "ohmyhost database schedule delete --project ULID --environment dev|prod --name NAME --yes --json",
|
|
45676
45676
|
"database schedule runs": "ohmyhost database schedule runs --project ULID [--environment dev|prod] --name NAME [--limit 1..50] --json",
|
|
45677
|
-
"database schedule run": "ohmyhost database schedule run --project ULID --environment dev|prod --name NAME --yes --json (queues one run now, in addition to the timer)",
|
|
45678
|
-
"database executions": "ohmyhost database executions --project ULID [--environment dev|prod] --from ISO --to ISO --granularity hour|day [--limit 1..100] [--cursor CURSOR] --json (UTC timestamps like 2026-10-30T00:00:00.000Z aligned to the granularity, at most 31 days; counts schedule runs, webhook attempts and events per hour or day;
|
|
45677
|
+
"database schedule run": "ohmyhost database schedule run --project ULID --environment dev|prod --name NAME --yes --json (queues one run now, in addition to the timer; refused with project_budget_exceeded (HTTP 402) while the project's Stop budget is reached)",
|
|
45678
|
+
"database executions": "ohmyhost database executions --project ULID [--environment dev|prod] --from ISO --to ISO --granularity hour|day [--limit 1..100] [--cursor CURSOR] --json (UTC timestamps like 2026-10-30T00:00:00.000Z aligned to the granularity, at most 31 days; counts schedule runs, webhook attempts and events per hour or day; these are counters only, executions have no price of their own and the awake compute time of the database is what is billed)",
|
|
45679
45679
|
"database psql": "ohmyhost database psql --project ULID --environment dev|prod [--mode read|write] [--ttl 5m|1h|24h|SECONDS] [--json] (starts local psql with a temporary credential and revokes it on exit)",
|
|
45680
45680
|
link: "ohmyhost link --project ULID --repository-owner OWNER --repository-name REPOSITORY --idempotency-key KEY --json (uses the workspace GitHub connection and waits for the source-link operation)",
|
|
45681
45681
|
"source auto-deploy set": "ohmyhost source auto-deploy set --project ULID --branch BRANCH --enabled true|false --idempotency-key KEY --json",
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -434,7 +434,7 @@ const HELP_USAGE = Object.freeze({
|
|
|
434
434
|
"database webhook replay":
|
|
435
435
|
"ohmyhost database webhook replay --project ULID --environment dev|prod --delivery ID --yes --json",
|
|
436
436
|
"database schedule set":
|
|
437
|
-
"ohmyhost database schedule set --project ULID --environment dev|prod --name NAME (--cron EXPR | --every-seconds N) --statements-file PATH [--timeout-ms N] [--enabled true|false] --yes --json (runs the statements in the file, a UTF-8 JSON array of 1 to 20 SQL strings, as the runtime role of the application; cron has five fields in UTC; every-seconds is 60 to 2678400; timeout-ms is 1000 to 30000, default 10000)",
|
|
437
|
+
"ohmyhost database schedule set --project ULID --environment dev|prod --name NAME (--cron EXPR | --every-seconds N) --statements-file PATH [--timeout-ms N] [--enabled true|false] --yes --json (runs the statements in the file, a UTF-8 JSON array of 1 to 20 SQL strings, as the runtime role of the application; cron has five fields in UTC; every-seconds is 60 to 2678400; timeout-ms is 1000 to 30000, default 10000). A project whose Stop budget is reached has its schedules disabled automatically, within about an hour of the billed usage reaching the budget: the credit service does this after its hourly pgcf pass, and Continue budgets are never touched. While the budget is reached, schedule set with enabled true and schedule run are refused with project_budget_exceeded (HTTP 402). Re-enabling is manual: raise the budget (or wait for the next UTC month) and run database schedule set --enabled true again with the schedule body (read it with schedule get).",
|
|
438
438
|
"database schedule list":
|
|
439
439
|
"ohmyhost database schedule list --project ULID [--environment dev|prod] --json (dev when omitted)",
|
|
440
440
|
"database schedule get":
|
|
@@ -444,9 +444,9 @@ const HELP_USAGE = Object.freeze({
|
|
|
444
444
|
"database schedule runs":
|
|
445
445
|
"ohmyhost database schedule runs --project ULID [--environment dev|prod] --name NAME [--limit 1..50] --json",
|
|
446
446
|
"database schedule run":
|
|
447
|
-
"ohmyhost database schedule run --project ULID --environment dev|prod --name NAME --yes --json (queues one run now, in addition to the timer)",
|
|
447
|
+
"ohmyhost database schedule run --project ULID --environment dev|prod --name NAME --yes --json (queues one run now, in addition to the timer; refused with project_budget_exceeded (HTTP 402) while the project's Stop budget is reached)",
|
|
448
448
|
"database executions":
|
|
449
|
-
"ohmyhost database executions --project ULID [--environment dev|prod] --from ISO --to ISO --granularity hour|day [--limit 1..100] [--cursor CURSOR] --json (UTC timestamps like 2026-10-30T00:00:00.000Z aligned to the granularity, at most 31 days; counts schedule runs, webhook attempts and events per hour or day;
|
|
449
|
+
"ohmyhost database executions --project ULID [--environment dev|prod] --from ISO --to ISO --granularity hour|day [--limit 1..100] [--cursor CURSOR] --json (UTC timestamps like 2026-10-30T00:00:00.000Z aligned to the granularity, at most 31 days; counts schedule runs, webhook attempts and events per hour or day; these are counters only, executions have no price of their own and the awake compute time of the database is what is billed)",
|
|
450
450
|
"database psql":
|
|
451
451
|
"ohmyhost database psql --project ULID --environment dev|prod [--mode read|write] [--ttl 5m|1h|24h|SECONDS] [--json] (starts local psql with a temporary credential and revokes it on exit)",
|
|
452
452
|
link: "ohmyhost link --project ULID --repository-owner OWNER --repository-name REPOSITORY --idempotency-key KEY --json (uses the workspace GitHub connection and waits for the source-link operation)",
|
|
@@ -34,12 +34,12 @@ const failures = {
|
|
|
34
34
|
"Do not repeat the write with a new key. Inspect the target data with a read query and retain this operation ID. The same key only reads this receipt.",
|
|
35
35
|
],
|
|
36
36
|
database_compute_failed: [
|
|
37
|
-
"The database size change
|
|
38
|
-
"Read the current database compute and report this operation ID through feedback.
|
|
37
|
+
"The database provider refused the size change or had no room for it. The database keeps its previous size and keeps running, and no credits are charged for the failed change.",
|
|
38
|
+
"Read the current size with 'ohmyhost database compute get --project PROJECT_ULID --environment dev|prod --json' or MCP database_compute_get, then repeat the change with a new idempotency key; the old key only returns this failure. If it fails again after a few minutes, start a new deployment of the project, repeat the change and report this operation ID through feedback. Never reset the database to change its size.",
|
|
39
39
|
],
|
|
40
40
|
database_compute_plan_changed: [
|
|
41
|
-
"Paid access ended before the database size change started.",
|
|
42
|
-
"Read the organization's plan
|
|
41
|
+
"Paid access ended before the database size change started, so it was not sent to the database provider. The database keeps its previous size and keeps running, and no credits are charged for the change.",
|
|
42
|
+
"Read the organization's plan with 'ohmyhost credits account --organization ORGANIZATION_ULID --json' or MCP organization_account_get. Sizes above 256 MiB need active Paid: ask the organization Owner to activate Paid through billing checkout, then read the current size with database compute get and repeat the change with a new idempotency key.",
|
|
43
43
|
],
|
|
44
44
|
database_compute_rejected: [
|
|
45
45
|
"The database size change could not be started.",
|
|
@@ -5227,7 +5227,7 @@ export const getProjectDatabaseSchedule = <ThrowOnError extends boolean = true>(
|
|
|
5227
5227
|
/**
|
|
5228
5228
|
* Create or replace one database schedule
|
|
5229
5229
|
*
|
|
5230
|
-
* Creates the named schedule or replaces it. Each run executes the statements as the application's own runtime role, so row-level security applies as for the application. A run that does not finish within timeout_ms is cancelled.
|
|
5230
|
+
* Creates the named schedule or replaces it. Each run executes the statements as the application's own runtime role, so row-level security applies as for the application. A run that does not finish within timeout_ms is cancelled. A reached Stop budget (or exhausted credit past its grace) refuses an enabled schedule with project_budget_exceeded (402); disabling the schedule is never refused.
|
|
5231
5231
|
*/
|
|
5232
5232
|
export const setProjectDatabaseSchedule = <ThrowOnError extends boolean = true>(
|
|
5233
5233
|
parameters: {
|
|
@@ -5328,7 +5328,7 @@ export const listProjectDatabaseScheduleRuns = <ThrowOnError extends boolean = t
|
|
|
5328
5328
|
/**
|
|
5329
5329
|
* Queue one immediate run of a database schedule
|
|
5330
5330
|
*
|
|
5331
|
-
* Queues one manual run. The run is refused while the schedule is disabled or while a run is already queued.
|
|
5331
|
+
* Queues one manual run. The run is refused while the schedule is disabled or while a run is already queued. A reached Stop budget (or exhausted credit past its grace) refuses the run with project_budget_exceeded (402).
|
|
5332
5332
|
*/
|
|
5333
5333
|
export const runProjectDatabaseSchedule = <ThrowOnError extends boolean = true>(
|
|
5334
5334
|
parameters: {
|
|
@@ -5374,7 +5374,7 @@ export const runProjectDatabaseSchedule = <ThrowOnError extends boolean = true>(
|
|
|
5374
5374
|
/**
|
|
5375
5375
|
* Read metered database execution usage
|
|
5376
5376
|
*
|
|
5377
|
-
* Returns schedule runs and webhook attempts per time window. Only completed windows are final; the current window may still change. Windows are UTC and at most 31 days long.
|
|
5377
|
+
* Returns schedule runs and webhook attempts per time window. Only completed windows are final; the current window may still change. Windows are UTC and at most 31 days long. The counts are counters only; executions have no price of their own, and the awake compute time of the database is what is billed.
|
|
5378
5378
|
*/
|
|
5379
5379
|
export const getProjectDatabaseExecutionUsage = <ThrowOnError extends boolean = true>(
|
|
5380
5380
|
parameters: {
|
|
@@ -8790,6 +8790,10 @@ export type SetProjectDatabaseScheduleErrors = {
|
|
|
8790
8790
|
* The request failed.
|
|
8791
8791
|
*/
|
|
8792
8792
|
401: ProblemDetails;
|
|
8793
|
+
/**
|
|
8794
|
+
* The request failed.
|
|
8795
|
+
*/
|
|
8796
|
+
402: ProblemDetails;
|
|
8793
8797
|
/**
|
|
8794
8798
|
* The resource does not exist or is not visible to the authenticated principal.
|
|
8795
8799
|
*/
|
|
@@ -8924,6 +8928,10 @@ export type RunProjectDatabaseScheduleErrors = {
|
|
|
8924
8928
|
* The request failed.
|
|
8925
8929
|
*/
|
|
8926
8930
|
401: ProblemDetails;
|
|
8931
|
+
/**
|
|
8932
|
+
* The request failed.
|
|
8933
|
+
*/
|
|
8934
|
+
402: ProblemDetails;
|
|
8927
8935
|
/**
|
|
8928
8936
|
* The resource does not exist or is not visible to the authenticated principal.
|
|
8929
8937
|
*/
|