Commit Graph
26 Commits
Author SHA1 Message Date
semantic-release-bot 5f2a1018a4 chore(release): 0.4.0
# [0.4.0](https://github.com/floci-io/floci-cli/compare/0.3.0...0.4.0) (2026-10-12)

### Bug Fixes

* **cli:** end every error message with what to do next ([#58](https://github.com/floci-io/floci-cli/issues/58)) ([bd4fa0f](https://github.com/floci-io/floci-cli/commit/bd4fa0f1343c38eac3a1e5ef551a724816dd022d))
* **cli:** exit 2 for every rejected value, not 1 in some commands ([#66](https://github.com/floci-io/floci-cli/issues/66)) ([c65987a](https://github.com/floci-io/floci-cli/commit/c65987abbac07c666fd21ab81cc88d20feebce96))
* **cli:** keep the next step when an error's cause has several lines ([#67](https://github.com/floci-io/floci-cli/issues/67)) ([188aa23](https://github.com/floci-io/floci-cli/commit/188aa23edcf68ad3b53c83abbbc4598b2678bfe7))
* **cli:** keep wait's spinner out of -o json, reject bad durations and make --verbose work ([#48](https://github.com/floci-io/floci-cli/issues/48)) ([52ebdee](https://github.com/floci-io/floci-cli/commit/52ebdee98d46e26ab9b4739326c0dc92764f87fe))
* **cli:** remove doctor --fix and services --mode, which did nothing ([#53](https://github.com/floci-io/floci-cli/issues/53)) ([1a7e84c](https://github.com/floci-io/floci-cli/commit/1a7e84cd2308b8225cf3b3680a9061479794c8bb))
* **completion:** offer only bash and zsh, the shells a script is generated for ([#59](https://github.com/floci-io/floci-cli/issues/59)) ([804e355](https://github.com/floci-io/floci-cli/commit/804e3559362daf37f8f3f8011df4f0824a7045fd))
* **config:** accept Compose files that use YAML anchors and merge keys in config validate ([#65](https://github.com/floci-io/floci-cli/issues/65)) ([68d28d4](https://github.com/floci-io/floci-cli/commit/68d28d49ef410b07c31b067f4d465958c730986d))
* **config:** write profiles and config atomically and report files that cannot be read ([#45](https://github.com/floci-io/floci-cli/issues/45)) ([522e54e](https://github.com/floci-io/floci-cli/commit/522e54ef3c92208a1ca98e9737804353cecc3c0a))
* **docker:** time-limit docker calls and pass names after -- ([#47](https://github.com/floci-io/floci-cli/issues/47)) ([7ecc895](https://github.com/floci-io/floci-cli/commit/7ecc895baaaf1c61f38bc1d1bde7ce2ab6699ee6))
* **doctor:** fail -o json on a failed check and name each product in its hints ([#52](https://github.com/floci-io/floci-cli/issues/52)) ([771b353](https://github.com/floci-io/floci-cli/commit/771b3537331bbe78f6d241814750f12b2143a972))
* **env:** show how to load the variables in the chosen shell and reject unknown shells ([#46](https://github.com/floci-io/floci-cli/issues/46)) ([fbdc3ef](https://github.com/floci-io/floci-cli/commit/fbdc3ef713c4790d197d0bcaaf835dc5f93425db))
* **http:** keep snapshot names in one path segment and report odd server responses clearly ([#54](https://github.com/floci-io/floci-cli/issues/54)) ([24b4280](https://github.com/floci-io/floci-cli/commit/24b4280f696fec07db1c538204ac7765523346e8))
* **reset:** reset the server a profile or FLOCI_ENDPOINT names, not a local container of the default name ([#64](https://github.com/floci-io/floci-cli/issues/64)) ([885e49f](https://github.com/floci-io/floci-cli/commit/885e49f81ac6bdcfed4f2a9e814f7c2ba7062783))
* **restart:** keep the instance's port, image, data directory and services ([#49](https://github.com/floci-io/floci-cli/issues/49)) ([f6cec79](https://github.com/floci-io/floci-cli/commit/f6cec794d71973efebc7991dabe99c723e1541cd))
* **start:** mount a relative --persist path as a directory and validate --port and --pull ([#50](https://github.com/floci-io/floci-cli/issues/50)) ([3ca4108](https://github.com/floci-io/floci-cli/commit/3ca4108498a04b1b52766a42ceea78d259373c21))
* **update:** follow symlinked installs, pick arm64 under Rosetta and tell a failed check from a pending update ([#56](https://github.com/floci-io/floci-cli/issues/56)) ([a9edb57](https://github.com/floci-io/floci-cli/commit/a9edb57aa6d720aae1dddcd4e3987e231b37b47d))

### Features

* **cli:** add --json, --no-emoji, config profile edit and a warning for servers too old for the CLI ([#62](https://github.com/floci-io/floci-cli/issues/62)) ([de3ca7f](https://github.com/floci-io/floci-cli/commit/de3ca7f1716c3ca6eb4f357d35b44cb15592b23c))
* **cli:** honour --json and -o json in config profile, config default-product and the snapshot commands ([#68](https://github.com/floci-io/floci-cli/issues/68)) ([5bcbc09](https://github.com/floci-io/floci-cli/commit/5bcbc0988e12979b61e30137abe72b2271f1238d))
* **cli:** structured output for start, stop and restart, and a status exit code scripts can use ([#60](https://github.com/floci-io/floci-cli/issues/60)) ([4a9a9b5](https://github.com/floci-io/floci-cli/commit/4a9a9b5a4a22cb1ea84133812fe2dec7f3c6eb81))
* **config:** validate Compose files by their structure, with -o json and three more checks ([#61](https://github.com/floci-io/floci-cli/issues/61)) ([6b06382](https://github.com/floci-io/floci-cli/commit/6b063825161dfbb5030972d62439e9af4f389632))
* **reset:** add floci reset to delete every resource in a running emulator ([#55](https://github.com/floci-io/floci-cli/issues/55)) ([fa306b3](https://github.com/floci-io/floci-cli/commit/fa306b38a65559020a9fba490773f51342874da3))
* **start:** check the host port before starting and explain a missing Docker socket ([#51](https://github.com/floci-io/floci-cli/issues/51)) ([4cd39a9](https://github.com/floci-io/floci-cli/commit/4cd39a957a88a185b2983cdbb7fee14031839f24))
2026-10-12 02:54:30 +00:00
semantic-release-bot 0746e1a61c chore(release): 0.3.0
# [0.3.0](https://github.com/floci-io/floci-cli/compare/0.2.3...0.3.0) (2026-10-09)

### Bug Fixes

* **cli:** honour --no-color on parse errors and show profile defaults in --help ([#35](https://github.com/floci-io/floci-cli/issues/35)) ([fc67e72](https://github.com/floci-io/floci-cli/commit/fc67e72a625df8156cc69fc2068e6923ae36f2f6))
* **profile:** make profile names, files and exit codes consistent ([#33](https://github.com/floci-io/floci-cli/issues/33)) ([5c0cc33](https://github.com/floci-io/floci-cli/commit/5c0cc339bf0be5937ae3fb561b4cb2103d5325fb))
* **update:** save the update-check cache in the native binary ([#41](https://github.com/floci-io/floci-cli/issues/41)) ([a40c7be](https://github.com/floci-io/floci-cli/commit/a40c7be73242f22edd3f6a93544a63c6c147621e))

### Features

* **az:** configure the az CLI against floci-az with floci az setup ([#29](https://github.com/floci-io/floci-cli/issues/29)) ([7b58a38](https://github.com/floci-io/floci-cli/commit/7b58a38c5a5bf4e2e84991c5400ec3abbab90264))
* **config:** create profiles for instances that run side by side ([#30](https://github.com/floci-io/floci-cli/issues/30)) ([788eb47](https://github.com/floci-io/floci-cli/commit/788eb470fb2d51b0d2b6743a060e709d9970c34d))
* **profile:** warn when a profile sets a key floci does not read ([#37](https://github.com/floci-io/floci-cli/issues/37)) ([22668a1](https://github.com/floci-io/floci-cli/commit/22668a1200c4835ac369cb9ebea355b0d4f9feb4))
* **start:** give each instance its own Docker resource namespace and base URL ([#31](https://github.com/floci-io/floci-cli/issues/31)) ([bf9ee40](https://github.com/floci-io/floci-cli/commit/bf9ee4037bb22628ad7f470bca7c551a8f6e65e2))

### Performance Improvements

* **doctor:** run checks concurrently and share docker lookups ([#32](https://github.com/floci-io/floci-cli/issues/32)) ([dd38f6d](https://github.com/floci-io/floci-cli/commit/dd38f6dc27307d7297d5fcc5c1a02897f8bb9f03))
* **native:** build smaller binaries with -Os and enforce a size budget ([#28](https://github.com/floci-io/floci-cli/issues/28)) ([3c4118f](https://github.com/floci-io/floci-cli/commit/3c4118ff1a5521ade1b7e788f45dbaca9069f648))
* restart without a fixed pause and wait no longer than --timeout ([#36](https://github.com/floci-io/floci-cli/issues/36)) ([01d6133](https://github.com/floci-io/floci-cli/commit/01d61335489121757612a5b7062d13f9a593b20b))
2026-10-09 04:42:47 +00:00
semantic-release-bot f11ce0597a chore(release): 0.2.3
## [0.2.3](https://github.com/floci-io/floci-cli/compare/0.2.2...0.2.3) (2026-09-15)

### Bug Fixes

* **profile:** keep legacy profile names usable and expand values consistently ([#25](https://github.com/floci-io/floci-cli/issues/25)) ([7343a53](https://github.com/floci-io/floci-cli/commit/7343a539c20a57856a793a498053ebb469f49c1c)), closes [#23](https://github.com/floci-io/floci-cli/issues/23) [#23](https://github.com/floci-io/floci-cli/issues/23)
2026-09-15 04:32:15 +00:00
Hector Ventura 3159a653b4 docs: stop telling contributors to hand-edit CHANGELOG.md (#24)
* docs: stop telling contributors to hand-edit CHANGELOG.md

AGENTS.md and the PR template both asked for an entry under [Unreleased],
which changelog-guard.yml hard-fails and CONTRIBUTING.md forbids. Both lines
predate the semantic-release cutover in #20.

AGENTS.md now states the generated-file rule and points at the changelog-edit
escape hatch; the template drops the checkbox and says on the Conventional
Commits line why no hand edit is needed.

* docs: say which commit types actually produce a changelog entry

The previous wording claimed every Conventional Commit message is the changelog
entry. The commit gate accepts eleven types, but .releaserc.json runs
commit-analyzer with no releaseRules and no preset, so only feat, fix, perf and
breaking changes release. Two commits landed between 0.2.1 and 0.2.2, a fix and
a docs, and only the fix appears in the 0.2.2 section.

Corrected in all four places the claim lived: AGENTS.md, the PR template,
CONTRIBUTING.md, and the changelogTitle in .releaserc.json.

CHANGELOG.md changes with .releaserc.json on purpose and must stay byte
identical to it. @semantic-release/changelog strips the configured title from
the existing file only when the file starts with it, so changing one without
the other would leave the old header in the body and prepend the new one,
shipping a duplicated header on the next release. That is what the
changelog-edit label exists for.

Reported by Greptile on #24 and verified before acting.

* docs(ci): correct the same changelog claim in the guard's own error message

My first pass grepped only *.md and *.json, so it missed the two copies inside
changelog-guard.yml: the header comment and the ::error:: text a contributor
actually sees when the guard fires. A repo-wide grep now returns nothing.
2026-09-13 19:54:49 -05:00
semantic-release-bot eb92df71c6 chore(release): 0.2.2
## [0.2.2](https://github.com/floci-io/floci-cli/compare/0.2.1...0.2.2) (2026-09-13)

### Bug Fixes

* **profile:** apply --profile to every command, not just config show ([#23](https://github.com/floci-io/floci-cli/issues/23)) ([52c08ec](https://github.com/floci-io/floci-cli/commit/52c08ecec56e163a034d21e5cf6cefcdef6c39cd)), closes [#22](https://github.com/floci-io/floci-cli/issues/22)
2026-09-13 23:39:51 +00:00
semantic-release-bot c437bf0bb3 chore(release): 0.2.1
## [0.2.1](https://github.com/floci-io/floci-cli/compare/0.2.0...0.2.1) (2026-08-27)

### Bug Fixes

* **env:** single-quote exported values in every product tree ([#19](https://github.com/floci-io/floci-cli/issues/19)) ([6496795](https://github.com/floci-io/floci-cli/commit/6496795708fe7a12141e3640a0e74435892a8c57)), closes [#18](https://github.com/floci-io/floci-cli/issues/18)
2026-08-27 03:42:57 +00:00
Hector Ventura 7cef52bc50 ci(release): add one-button release cut from main (#20)
Releases were tag-driven: a maintainer hand-bumped pom.xml, hand-moved the
CHANGELOG [Unreleased] entries under a new heading, committed, then pushed a
SemVer tag. Three manual steps, each able to disagree with the others.

Add a manually-dispatched Release Cut workflow that runs semantic-release
against main: it analyzes the Conventional Commits since the last tag, bumps
pom.xml via `mvn versions:set`, regenerates CHANGELOG.md, commits both, tags
(tagFormat ${version}), and creates the GitHub Release. The tag push then
fires release.yml exactly as a manual tag push did, so the binary build and
homebrew-bump chain is untouched. A dry-run input previews the next version
and notes without releasing.

The cut needs a fine-grained PAT (GH_TOKEN, contents:write) rather than the
default GITHUB_TOKEN, whose tag pushes do not trigger other workflows — with
it, release.yml would never run. The semantic-release toolchain is pinned by
its own package-lock.json and installed with `npm ci --ignore-scripts`, so
the job holding that PAT never resolves mutable versions.

CHANGELOG.md becomes generated output. The hand-maintained [Unreleased]
section and its compare link are removed, the header explains the new
contract, and historic sections stay as they were. Changelog Guard fails any
PR that edits the file by hand unless a maintainer applies the
`changelog-edit` label.

Since commit messages are now the changelog, add a Conventional Commits
workflow that lints every non-merge commit in a PR against the types
semantic-release recognizes.

Also drop the hand-written installation body from release.yml — the release
now carries just the attachments, and semantic-release writes the notes.
2026-08-26 22:41:01 -05:00
Hector Ventura 6496795708 fix(env): single-quote exported values in every product tree (#19)
`floci az env` printed the semicolon-separated Azure connection string
unquoted, so `eval $(floci az env)` set only
AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=http and ran the
remaining segments as commands — `az` then reported "Invalid connection
string".

`floci env` and `floci gcp env` carried a byte-identical copy of the same
unquoted emitter (their values are `;`-free URLs today, so nobody hit it),
and the aws.cli.endpoint / az.cli.connection-string doctor checks suggested
export lines with the same flaw.

Extract the correct emitter that `floci oci env` already had into
io.floci.cli.output.ShellExport and use it everywhere: values are single
quoted with per-shell escaping for bash, fish, and PowerShell, so `;`, `$`,
backticks, and quotes can neither break nor inject through `eval`.

OciEnvFormatTest becomes ShellExportTest, keeping its four assertions and
adding the connection-string regression from the issue.

Closes #18
2026-08-26 22:12:29 -05:00
Hector Ventura 980904e55a chore: release 0.2.0 2026-07-28 21:50:27 -05:00
Hector Ventura 6dc8fc9df4 refactor!: unify the four product command trees behind ProductProfile (#16)
* refactor!: unify the four product command trees behind ProductProfile

Every shared command now has ONE implementation in commands/,
parameterized by ProductProfile (the single source of per-product
config: endpoint, container, image, env prefix, control prefix,
display name). The gcp/az/oci command classes become ~8-line shims
(GcpStartCommand extends StartCommand { super(ProductProfile.GCP); })
that carry only their per-product help description; the three
near-identical *GlobalOptions clones are deleted. Each product tree
drops from ~1,360 to ~530 lines and copy-drift becomes impossible.

Mechanics: per-product option defaults are constructor-set field
values rendered in help via ${DEFAULT-VALUE} (annotation defaults are
compile-time constants); commands pre-initialize their GlobalOptions
mixin with the profile (picocli uses a non-null mixin field instance
as-is). Verified against a captured baseline of 480 CLI outputs
(every --help x 5 trees, env/status/doctor JSON, exit codes, routing)
plus new pinning tests: ProductProfileTest, ProductTreesParsingTest,
DoctorCheckListTest, GlobalOptionsTest.

Behavior changes, all deliberate:
- snapshot commands in gcp/az/oci trees now perform the real
  /snapshots API calls with graceful degradation and exit 1 while the
  server lacks the endpoints (previously: note + exit 0)
- product logs/services gained --service/--mode, and services now
  resolves the endpoint from the container port mapping in all trees
- the AWS tree brands itself 'Floci AWS' in banners and help,
  matching the other products
- snapshot errors link the product issue tracker instead of TODO.md
- completion generates from spec.root() instead of a hardcoded
  FlociCli instance (output unchanged)

BREAKING CHANGE: 'floci gcp|az|oci snapshot export/import' (and bare
'floci snapshot ...' with a non-AWS default product) now exit 1
instead of 0 while server-side snapshot support is pending; CI
scripts relying on the silent success of stubbed snapshot commands
will fail.

* fix: snapshot save/load/list/delete resolve the container host port

Same port auto-detection status/services/wait use — a container started
with --port <n> is now reachable by the snapshot commands without an
explicit --endpoint. Applies to all four trees via the unified base
commands.
2026-07-28 21:45:52 -05:00
Hector Ventura 0a65de2303 feat(oci): add floci oci command group for the Floci OCI emulator (#15)
* feat(oci): add floci oci command group for the Floci OCI emulator

Adds the fourth product tree targeting floci-oci (port 4599, container
floci-oci, control prefix /_floci-oci, FLOCI_OCI_* env overrides):
start/stop/restart/status/logs/wait/version/services/doctor/env/config
plus stub snapshot commands, mirroring the GCP/Azure trees.

- 'floci oci env' exports OCI_CLI_ENDPOINT, FLOCI_OCI_ENDPOINT, and
  TF_VAR_CLIENT_HOST_OVERRIDES for the OCI CLI, the ocilocal wrapper,
  and the oracle/oci Terraform provider; also OCI_CLI_PROFILE=FLOCI
  when that profile exists.
- 'floci oci setup' generates an RSA-2048 API signing key with a real
  computed fingerprint and writes a throwaway [FLOCI] profile to
  ~/.oci/config (idempotent, never touches existing profiles) — the
  OCI CLI/SDKs refuse to run without them.
- FlociHttpClient now accepts both health 'services' shapes: the array
  reported by AWS/GCP/Azure servers and the {name: status} object
  reported by floci-oci.
- 'floci config default-product oci' routes bare commands to the tree.

* fix(oci): address review findings on env, services, and setup profile

- Single-quote 'oci env' exports with per-shell escaping (bash/fish/
  PowerShell) so endpoint values containing shell metacharacters cannot
  inject commands through the documented 'eval $(floci oci env)' flow.
- 'oci services' resolves the endpoint from the container port mapping
  like status/wait/env, so a container started with --port <n> is found
  without passing --endpoint.
- 'oci env' exports OCI_CLI_PROFILE for whichever profile 'oci setup'
  wrote (detected via its key_file marker) instead of only the
  hardcoded FLOCI name; DEFAULT is skipped as the CLI uses it
  implicitly.
2026-07-28 21:15:42 -05:00
Hector Ventura 2ff3181198 chore: release 0.1.9 2026-07-24 11:57:39 -04:00
Hector Ventura a2f97ae820 docs: add AGENTS.md, CONTRIBUTING.md, PR template; document GCP and self-update (#14)
* docs: add AGENTS.md, CONTRIBUTING.md, PR template; document GCP and self-update

- AGENTS.md (tracked): canonical agent guidance — architecture incl. the
  three product trees table, doctor check structure per tree, native-image
  constraints, code style rules, updated scope rules (self-update now in
  scope, must never auto-run)
- CONTRIBUTING.md: build/test setup, Conventional Commits, hand-maintained
  Keep-a-Changelog policy, PR guidelines, tag-driven release process
- .github/pull_request_template.md: adapted from the server repo with a
  'product trees affected' checklist
- README: document the floci gcp command group (quick start, command
  reference, global flags, gcp env variables, CI usage), floci update,
  Java 25+ fat-JAR requirement; drop the unwired snapshot --message flag
  from examples
- CHANGELOG: backfill [Unreleased] with #12 (self-update) and #11
  (ContainerInfo field alignment); document these docs changes
- release.yml: release notes said the fat JAR needs Java 21+, but it is
  built with --release 25 — corrected to Java 25+

* docs(changelog): use standard Keep a Changelog headings for Unreleased

The Documentation section is not one of the six types defined by Keep a
Changelog 1.1.0. New docs (AGENTS.md, CONTRIBUTING.md, README GCP section)
move under Added; the incorrect Java 21+ runtime claim moves under Fixed.
2026-07-06 20:15:32 -05:00
Hector Ventura 96e28c1b11 chore: release 0.1.8 2026-06-21 09:53:22 -05:00
Hector Ventura 529d8578fb chore: release 0.1.7 2026-06-20 11:43:16 -05:00
Hector Ventura 53753f1816 chore: release 0.1.6 2026-06-11 00:50:48 -05:00
Hector Ventura 97ab1d527b fix(doctor): make docker.daemon check work under Podman (#7)
isDaemonReachable() probed the daemon with 'docker info --format
{{.ServerVersion}}', a Docker-only template field. Under the podman-docker shim
'podman info' has no .ServerVersion, so the template errors and exits non-zero —
a false 'Docker daemon not reachable' even while containers run fine via the
DOCKER_HOST socket. Probe by exit code instead (docker/podman info exit 0 when
reachable) and discard output to avoid a pipe-buffer deadlock on waitFor().
2026-06-11 00:33:21 -05:00
Hector Ventura 35173645d0 chore: release 0.1.5 2026-06-10 17:32:56 -05:00
Hector Ventura 6862c0dd81 feat: honor DOCKER_HOST for Docker daemon resolution (#4)
Resolve the Docker endpoint from DOCKER_HOST (with the legacy DOCKER_SOCK
override and an OS default fallback) so Podman, rootless setups, and remote
Docker contexts work without assuming /var/run/docker.sock.

start/az start/gcp start bind-mount the resolved unix socket or pass a remote
tcp:// daemon through via DOCKER_HOST; doctor's docker.socket check reports the
resolved endpoint. Adds DockerHostResolveTest and README documentation.

Closes #3
2026-06-10 17:19:44 -05:00
Hector Ventura 67468966ce ci: build and ship darwin/amd64 native binary via Rosetta (#5)
GraalVM native-image can't cross-compile architectures, and GitHub's Intel
macos-13 runners queue for hours and are being deprecated, so darwin/amd64 was
dropped — leaving 'brew install' and the install script with no Intel binary to
fetch (404). Add a release job that runs an x86_64 GraalVM under Rosetta 2 on
the Apple Silicon runner to produce a genuine x86_64 binary, re-wire the
Homebrew bump to fill the darwin/amd64 SHA, and add a manually-triggered
workflow to smoke-test the Rosetta build without cutting a release.

Closes #2
2026-06-10 17:18:59 -05:00
Hector Ventura d29c472004 fix(installer): retry transient downloads and stop false checksum errors (#6)
A 504 while fetching sha256sums.txt was swallowed inside a command-
substitution pipeline (set -e can't see it), leaving the expected checksum
empty so the installer reported 'Checksum mismatch! Expected:  Got: ...' on a
perfectly valid binary. Add a download() helper with explicit retry-and-backoff
(treating HTTP errors and 0-byte responses as retryable), fetch checksums to a
file so failures are caught, and emit distinct errors for a failed checksum
fetch vs. an actual mismatch. Add FLOCI_SKIP_CHECKSUM and FLOCI_DOWNLOAD_RETRIES
escape hatches.

Fixes floci-io/floci#1236
2026-06-10 17:16:06 -05:00
Hector Ventura e9931123aa fix: gcp health check fix 2026-06-03 20:55:06 -05:00
Hector Ventura 4383369a7a chore: release 0.1.3 2026-06-02 20:34:17 -05:00
Hector Ventura 04dd72611b chore: release 0.1.2 2026-05-15 23:17:13 -05:00
Hector Ventura 11883f5b67 fix: adding floci aws/az commands 2026-05-15 18:08:45 -05:00
Hector Ventura aef1df595f chore: first commit 2026-05-12 17:10:46 -05:00