fcloud-sdk 0.3.0__tar.gz → 0.4.0__tar.gz

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.
Files changed (172) hide show
  1. fcloud_sdk-0.4.0/PKG-INFO +13 -0
  2. fcloud_sdk-0.4.0/README.md +4 -0
  3. fcloud_sdk-0.4.0/fcloud_sdk.egg-info/PKG-INFO +13 -0
  4. fcloud_sdk-0.4.0/fcloud_sdk.egg-info/SOURCES.txt +7 -0
  5. fcloud_sdk-0.4.0/fcloud_sdk.egg-info/requires.txt +1 -0
  6. fcloud_sdk-0.4.0/fcloud_sdk.egg-info/top_level.txt +1 -0
  7. fcloud_sdk-0.4.0/pyproject.toml +17 -0
  8. fcloud_sdk-0.3.0/CHANGELOG.md +0 -277
  9. fcloud_sdk-0.3.0/CONTRIBUTING.md +0 -37
  10. fcloud_sdk-0.3.0/LICENSE +0 -202
  11. fcloud_sdk-0.3.0/MANIFEST.in +0 -8
  12. fcloud_sdk-0.3.0/NOTICE +0 -4
  13. fcloud_sdk-0.3.0/PKG-INFO +0 -309
  14. fcloud_sdk-0.3.0/README.md +0 -273
  15. fcloud_sdk-0.3.0/SKILL.md +0 -1316
  16. fcloud_sdk-0.3.0/pyproject.toml +0 -78
  17. fcloud_sdk-0.3.0/src/fcloud/SKILL.md +0 -1316
  18. fcloud_sdk-0.3.0/src/fcloud/__init__.py +0 -110
  19. fcloud_sdk-0.3.0/src/fcloud/__main__.py +0 -153
  20. fcloud_sdk-0.3.0/src/fcloud/_direct_bridge.py +0 -1735
  21. fcloud_sdk-0.3.0/src/fcloud/_legacy_env.py +0 -19
  22. fcloud_sdk-0.3.0/src/fcloud/_modal_runner.py +0 -101
  23. fcloud_sdk-0.3.0/src/fcloud/autoresearch/SETUP.md +0 -67
  24. fcloud_sdk-0.3.0/src/fcloud/autoresearch/program.template.md +0 -159
  25. fcloud_sdk-0.3.0/src/fcloud/billing_types.py +0 -241
  26. fcloud_sdk-0.3.0/src/fcloud/cli/__init__.py +0 -27
  27. fcloud_sdk-0.3.0/src/fcloud/cli/attach.py +0 -251
  28. fcloud_sdk-0.3.0/src/fcloud/cli/autoresearch.py +0 -36
  29. fcloud_sdk-0.3.0/src/fcloud/cli/common.py +0 -440
  30. fcloud_sdk-0.3.0/src/fcloud/cli/config_cmd.py +0 -130
  31. fcloud_sdk-0.3.0/src/fcloud/cli/console.py +0 -229
  32. fcloud_sdk-0.3.0/src/fcloud/cli/context.py +0 -251
  33. fcloud_sdk-0.3.0/src/fcloud/cli/credits.py +0 -215
  34. fcloud_sdk-0.3.0/src/fcloud/cli/credits_buy.py +0 -97
  35. fcloud_sdk-0.3.0/src/fcloud/cli/credits_render.py +0 -129
  36. fcloud_sdk-0.3.0/src/fcloud/cli/exec_cmd.py +0 -238
  37. fcloud_sdk-0.3.0/src/fcloud/cli/files.py +0 -293
  38. fcloud_sdk-0.3.0/src/fcloud/cli/hardware.py +0 -83
  39. fcloud_sdk-0.3.0/src/fcloud/cli/help.py +0 -160
  40. fcloud_sdk-0.3.0/src/fcloud/cli/interactive.py +0 -133
  41. fcloud_sdk-0.3.0/src/fcloud/cli/job.py +0 -382
  42. fcloud_sdk-0.3.0/src/fcloud/cli/main.py +0 -206
  43. fcloud_sdk-0.3.0/src/fcloud/cli/migration.py +0 -289
  44. fcloud_sdk-0.3.0/src/fcloud/cli/mount.py +0 -150
  45. fcloud_sdk-0.3.0/src/fcloud/cli/output.py +0 -45
  46. fcloud_sdk-0.3.0/src/fcloud/cli/processes.py +0 -564
  47. fcloud_sdk-0.3.0/src/fcloud/cli/registry.py +0 -28
  48. fcloud_sdk-0.3.0/src/fcloud/cli/run.py +0 -365
  49. fcloud_sdk-0.3.0/src/fcloud/cli/sessions.py +0 -803
  50. fcloud_sdk-0.3.0/src/fcloud/cli/setup.py +0 -100
  51. fcloud_sdk-0.3.0/src/fcloud/cli/ssh.py +0 -257
  52. fcloud_sdk-0.3.0/src/fcloud/cli/sweep.py +0 -1022
  53. fcloud_sdk-0.3.0/src/fcloud/cli/sweep_harvest.py +0 -197
  54. fcloud_sdk-0.3.0/src/fcloud/cli/sweep_watch.py +0 -175
  55. fcloud_sdk-0.3.0/src/fcloud/cli/usage.py +0 -69
  56. fcloud_sdk-0.3.0/src/fcloud/cli/volume.py +0 -323
  57. fcloud_sdk-0.3.0/src/fcloud/cli/wait.py +0 -323
  58. fcloud_sdk-0.3.0/src/fcloud/cli_args.py +0 -369
  59. fcloud_sdk-0.3.0/src/fcloud/client.py +0 -699
  60. fcloud_sdk-0.3.0/src/fcloud/client_billing.py +0 -105
  61. fcloud_sdk-0.3.0/src/fcloud/client_projects.py +0 -52
  62. fcloud_sdk-0.3.0/src/fcloud/client_sessions.py +0 -111
  63. fcloud_sdk-0.3.0/src/fcloud/client_volumes.py +0 -80
  64. fcloud_sdk-0.3.0/src/fcloud/config.py +0 -518
  65. fcloud_sdk-0.3.0/src/fcloud/direct.py +0 -543
  66. fcloud_sdk-0.3.0/src/fcloud/errors.py +0 -152
  67. fcloud_sdk-0.3.0/src/fcloud/fileset.py +0 -155
  68. fcloud_sdk-0.3.0/src/fcloud/image.py +0 -531
  69. fcloud_sdk-0.3.0/src/fcloud/job.py +0 -249
  70. fcloud_sdk-0.3.0/src/fcloud/login.py +0 -236
  71. fcloud_sdk-0.3.0/src/fcloud/modal_compat.py +0 -306
  72. fcloud_sdk-0.3.0/src/fcloud/modal_objects.py +0 -137
  73. fcloud_sdk-0.3.0/src/fcloud/modal_run.py +0 -93
  74. fcloud_sdk-0.3.0/src/fcloud/providers/__init__.py +0 -5
  75. fcloud_sdk-0.3.0/src/fcloud/providers/requests_http.py +0 -68
  76. fcloud_sdk-0.3.0/src/fcloud/py.typed +0 -0
  77. fcloud_sdk-0.3.0/src/fcloud/session.py +0 -454
  78. fcloud_sdk-0.3.0/src/fcloud/setup_cmd.py +0 -231
  79. fcloud_sdk-0.3.0/src/fcloud/shell.py +0 -567
  80. fcloud_sdk-0.3.0/src/fcloud/sweeps.py +0 -608
  81. fcloud_sdk-0.3.0/src/fcloud/tunnel.py +0 -251
  82. fcloud_sdk-0.3.0/src/fcloud/types.py +0 -309
  83. fcloud_sdk-0.3.0/src/fcloud/v2_connect.py +0 -1020
  84. fcloud_sdk-0.3.0/src/fcloud/version.py +0 -33
  85. fcloud_sdk-0.3.0/src/fcloud/volume_wait.py +0 -131
  86. fcloud_sdk-0.3.0/src/fcloud/volumes.py +0 -224
  87. fcloud_sdk-0.3.0/src/fcloud_sdk.egg-info/PKG-INFO +0 -309
  88. fcloud_sdk-0.3.0/src/fcloud_sdk.egg-info/SOURCES.txt +0 -163
  89. fcloud_sdk-0.3.0/src/fcloud_sdk.egg-info/entry_points.txt +0 -3
  90. fcloud_sdk-0.3.0/src/fcloud_sdk.egg-info/requires.txt +0 -9
  91. fcloud_sdk-0.3.0/src/fcloud_sdk.egg-info/top_level.txt +0 -2
  92. fcloud_sdk-0.3.0/src/foom/__init__.py +0 -36
  93. fcloud_sdk-0.3.0/tests/conftest.py +0 -86
  94. fcloud_sdk-0.3.0/tests/test_autoresearch.py +0 -21
  95. fcloud_sdk-0.3.0/tests/test_checkpoint_option.py +0 -208
  96. fcloud_sdk-0.3.0/tests/test_cli_args.py +0 -237
  97. fcloud_sdk-0.3.0/tests/test_cli_dispatch.py +0 -131
  98. fcloud_sdk-0.3.0/tests/test_cli_guards.py +0 -60
  99. fcloud_sdk-0.3.0/tests/test_cli_help.py +0 -149
  100. fcloud_sdk-0.3.0/tests/test_client.py +0 -806
  101. fcloud_sdk-0.3.0/tests/test_client_contracts_c.py +0 -289
  102. fcloud_sdk-0.3.0/tests/test_client_host_frames_contract.py +0 -46
  103. fcloud_sdk-0.3.0/tests/test_client_http_contract.py +0 -89
  104. fcloud_sdk-0.3.0/tests/test_client_telemetry.py +0 -150
  105. fcloud_sdk-0.3.0/tests/test_config.py +0 -192
  106. fcloud_sdk-0.3.0/tests/test_config_cmd.py +0 -75
  107. fcloud_sdk-0.3.0/tests/test_credit_preflight.py +0 -103
  108. fcloud_sdk-0.3.0/tests/test_credits_cli.py +0 -237
  109. fcloud_sdk-0.3.0/tests/test_credits_errors.py +0 -106
  110. fcloud_sdk-0.3.0/tests/test_default_image.py +0 -260
  111. fcloud_sdk-0.3.0/tests/test_direct_bridge.py +0 -1252
  112. fcloud_sdk-0.3.0/tests/test_direct_fake_host.py +0 -332
  113. fcloud_sdk-0.3.0/tests/test_dotenv_precedence.py +0 -341
  114. fcloud_sdk-0.3.0/tests/test_download_promotion_retry.py +0 -92
  115. fcloud_sdk-0.3.0/tests/test_download_volume_hint.py +0 -59
  116. fcloud_sdk-0.3.0/tests/test_emit_pid.py +0 -44
  117. fcloud_sdk-0.3.0/tests/test_exec_attach_retry.py +0 -204
  118. fcloud_sdk-0.3.0/tests/test_fileset.py +0 -109
  119. fcloud_sdk-0.3.0/tests/test_first_run_login.py +0 -80
  120. fcloud_sdk-0.3.0/tests/test_job.py +0 -247
  121. fcloud_sdk-0.3.0/tests/test_job_ls.py +0 -99
  122. fcloud_sdk-0.3.0/tests/test_kill_records_first.py +0 -236
  123. fcloud_sdk-0.3.0/tests/test_legacy_shim.py +0 -35
  124. fcloud_sdk-0.3.0/tests/test_login.py +0 -202
  125. fcloud_sdk-0.3.0/tests/test_logs_unknown_pid.py +0 -84
  126. fcloud_sdk-0.3.0/tests/test_map_bake_flag.py +0 -26
  127. fcloud_sdk-0.3.0/tests/test_map_dag.py +0 -40
  128. fcloud_sdk-0.3.0/tests/test_map_default_image.py +0 -52
  129. fcloud_sdk-0.3.0/tests/test_map_window_flags.py +0 -40
  130. fcloud_sdk-0.3.0/tests/test_modal_compat.py +0 -171
  131. fcloud_sdk-0.3.0/tests/test_no_resume_gate.py +0 -51
  132. fcloud_sdk-0.3.0/tests/test_progress_narration.py +0 -252
  133. fcloud_sdk-0.3.0/tests/test_provider_env_default.py +0 -116
  134. fcloud_sdk-0.3.0/tests/test_queued_reason_render.py +0 -146
  135. fcloud_sdk-0.3.0/tests/test_rate_limit_ride.py +0 -88
  136. fcloud_sdk-0.3.0/tests/test_rebuild_respawn.py +0 -75
  137. fcloud_sdk-0.3.0/tests/test_resume_volume_validation.py +0 -86
  138. fcloud_sdk-0.3.0/tests/test_ride_cap.py +0 -94
  139. fcloud_sdk-0.3.0/tests/test_run_migration.py +0 -237
  140. fcloud_sdk-0.3.0/tests/test_run_volume_collision.py +0 -74
  141. fcloud_sdk-0.3.0/tests/test_run_wait_flags.py +0 -77
  142. fcloud_sdk-0.3.0/tests/test_secret_resolution.py +0 -99
  143. fcloud_sdk-0.3.0/tests/test_session_truth.py +0 -242
  144. fcloud_sdk-0.3.0/tests/test_sessions_live_statuses.py +0 -178
  145. fcloud_sdk-0.3.0/tests/test_sessions_point_lookup.py +0 -74
  146. fcloud_sdk-0.3.0/tests/test_setup_cmd.py +0 -63
  147. fcloud_sdk-0.3.0/tests/test_shell_env.py +0 -15
  148. fcloud_sdk-0.3.0/tests/test_shell_interrupt.py +0 -33
  149. fcloud_sdk-0.3.0/tests/test_shell_volumes.py +0 -147
  150. fcloud_sdk-0.3.0/tests/test_skus.py +0 -174
  151. fcloud_sdk-0.3.0/tests/test_spend.py +0 -203
  152. fcloud_sdk-0.3.0/tests/test_stop_refused_classification.py +0 -95
  153. fcloud_sdk-0.3.0/tests/test_sweep_boost.py +0 -53
  154. fcloud_sdk-0.3.0/tests/test_sweep_cost_optin.py +0 -39
  155. fcloud_sdk-0.3.0/tests/test_sweep_harvest.py +0 -211
  156. fcloud_sdk-0.3.0/tests/test_sweep_lifecycle_ux.py +0 -523
  157. fcloud_sdk-0.3.0/tests/test_sweep_retry_and_kill_truth.py +0 -90
  158. fcloud_sdk-0.3.0/tests/test_sweep_status_view.py +0 -70
  159. fcloud_sdk-0.3.0/tests/test_sweeps_binding.py +0 -133
  160. fcloud_sdk-0.3.0/tests/test_tunnel.py +0 -132
  161. fcloud_sdk-0.3.0/tests/test_types.py +0 -168
  162. fcloud_sdk-0.3.0/tests/test_upload_s3_path.py +0 -197
  163. fcloud_sdk-0.3.0/tests/test_v2_connect.py +0 -627
  164. fcloud_sdk-0.3.0/tests/test_v2_connect_billing.py +0 -52
  165. fcloud_sdk-0.3.0/tests/test_volume_cli_hardening.py +0 -240
  166. fcloud_sdk-0.3.0/tests/test_volume_download_delete.py +0 -212
  167. fcloud_sdk-0.3.0/tests/test_volume_preflight.py +0 -61
  168. fcloud_sdk-0.3.0/tests/test_volume_resolution.py +0 -51
  169. fcloud_sdk-0.3.0/tests/test_volume_wait.py +0 -138
  170. fcloud_sdk-0.3.0/tests/test_wait.py +0 -418
  171. {fcloud_sdk-0.3.0/src → fcloud_sdk-0.4.0}/fcloud_sdk.egg-info/dependency_links.txt +0 -0
  172. {fcloud_sdk-0.3.0 → fcloud_sdk-0.4.0}/setup.cfg +0 -0
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.4
2
+ Name: fcloud-sdk
3
+ Version: 0.4.0
4
+ Summary: Renamed to `supercomputer`; this package only depends on it
5
+ License-Expression: Apache-2.0
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: supercomputer>=0.4.0
9
+
10
+ # fcloud-sdk
11
+
12
+ Renamed to [`supercomputer`](https://pypi.org/project/supercomputer/). `pip install supercomputer`.
13
+ `import fcloud` and the `fcloud` CLI keep working as aliases.
@@ -0,0 +1,4 @@
1
+ # fcloud-sdk
2
+
3
+ Renamed to [`supercomputer`](https://pypi.org/project/supercomputer/). `pip install supercomputer`.
4
+ `import fcloud` and the `fcloud` CLI keep working as aliases.
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.4
2
+ Name: fcloud-sdk
3
+ Version: 0.4.0
4
+ Summary: Renamed to `supercomputer`; this package only depends on it
5
+ License-Expression: Apache-2.0
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: supercomputer>=0.4.0
9
+
10
+ # fcloud-sdk
11
+
12
+ Renamed to [`supercomputer`](https://pypi.org/project/supercomputer/). `pip install supercomputer`.
13
+ `import fcloud` and the `fcloud` CLI keep working as aliases.
@@ -0,0 +1,7 @@
1
+ README.md
2
+ pyproject.toml
3
+ fcloud_sdk.egg-info/PKG-INFO
4
+ fcloud_sdk.egg-info/SOURCES.txt
5
+ fcloud_sdk.egg-info/dependency_links.txt
6
+ fcloud_sdk.egg-info/requires.txt
7
+ fcloud_sdk.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ supercomputer>=0.4.0
@@ -0,0 +1,17 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ # `pip install fcloud-sdk` keeps working: this ships no code and depends on
6
+ # the renamed package. Publish once per rename, then leave alone.
7
+ [project]
8
+ name = "fcloud-sdk"
9
+ version = "0.4.0"
10
+ description = "Renamed to `supercomputer`; this package only depends on it"
11
+ readme = "README.md"
12
+ license = "Apache-2.0"
13
+ requires-python = ">=3.9"
14
+ dependencies = ["supercomputer>=0.4.0"]
15
+
16
+ [tool.setuptools]
17
+ packages = []
@@ -1,277 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to the `fcloud` Python SDK and CLI are recorded here.
4
- The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
5
- versions follow [Semantic Versioning](https://semver.org/).
6
-
7
- ## [Unreleased]
8
-
9
- ## [0.3.0] - 2026-09-16
10
-
11
- ### Fixed
12
- - `exec` no longer returns empty output for a command whose last write lands
13
- at process exit. The host mirrors a process's durable log on a background
14
- goroutine, so a read issued the instant the process reports "exited" can
15
- beat that write and come back empty; the client was answering with that
16
- empty read even though it had already drained the output off the live
17
- stream. It now keeps whichever of the two saw more bytes. The symptom was
18
- `stdout: ""` alongside `returncode: 0` — most often for a block-buffered
19
- program, which flushes everything during interpreter teardown
20
- microseconds before it dies. A training run's final `print(metrics)` is
21
- exactly that shape.
22
-
23
- ### Added
24
- - `fcloud map --no-bake` opts a sweep out of canary auto-bake. By default,
25
- packages the canary pip-installs are baked into the sweep's image before
26
- the fan-out; the canary pass line now names them and points at
27
- `image.pip` in `fcloud.json` as the permanent home.
28
- - `fcloud credits`: the prepaid wallet from the terminal. `fcloud credits`
29
- shows the posted balance, what is available after unbilled usage,
30
- auto-refill state and the saved card; `fcloud credits buy <usd>` opens a
31
- hosted checkout and waits for the purchase to post; `fcloud credits
32
- autorefill on|off|set` changes the top-up rule (turning it off warns that
33
- work stops at $0 and needs a confirmation); `fcloud credits statement`
34
- lists ledger rows with a running balance.
35
- - `InsufficientCreditError` (HTTP 402, `code: insufficient_credit`) — raised
36
- when the prepaid balance is exhausted, and mapped to **exit code 4** in
37
- the CLI with the top-up command named. It is a sibling of `FcloudError`,
38
- not of `PaymentOverdueError`: nothing is owed, so the remedy is to add
39
- credit, not to settle a bill. Code that catches `PaymentOverdueError`
40
- alone will not catch it.
41
- - `Client.credit_balance()`, `credit_ledger()`, `set_autorefill()` and
42
- `start_credit_checkout()`, with typed payloads in `fcloud.billing_types`.
43
- - A low-balance warning before `exec`/`run`/`shell`/`create`/`job run`/`map`
44
- provision anything, shown once per process and only when nothing will top
45
- the account up. Best-effort: a failed billing read never blocks a run.
46
-
47
- ### Changed
48
- - An out-of-credit refusal is no longer reported as a missed payment. Both
49
- error paths now branch on the dispatcher's `code` before falling back on
50
- the bare 402 status, so `payment_overdue`, `insufficient_credit` and an
51
- older dispatcher's codeless 402 are told apart.
52
- - A session closed for want of credit says so ("stopped: out of credits")
53
- and exits 4, instead of exiting 75 as if it were briefly unreachable.
54
- - `fcloud sweep` offers the fast lane only for waits more capacity can fix.
55
- Tasks blocked on billing get a top-up hint — boosting past that block
56
- buys nothing.
57
- - Python 3.9 is now supported (`requires-python >= 3.9`), and 3.14 is
58
- tested. The README has a support grid; CI runs the suite on 3.9 through
59
- 3.14. The installer script falls back to `uv` instead of `pipx`/`pip`
60
- when the system Python is older than 3.9.
61
- - The CLI no longer prints urllib3's LibreSSL warning on macOS's bundled
62
- Python.
63
-
64
- ## [0.2.1] - 2026-09-14
65
-
66
- ### Added
67
- - `fcloud login`: sign in through the browser (device authorization). Shows a
68
- short code, opens the approval page, and saves a key minted for this
69
- machine (named `cli:<hostname>`); then installs the fcloud skill for the
70
- coding agents present on the machine (`--agents auto`, the default; also
71
- `all`, a list, or `none`). `--no-browser` prints the URL and code instead
72
- of opening a browser. A fresh install's first command starts the same
73
- login, and `fcloud setup` with no key delegates to it.
74
- - Spend visibility: `fcloud sessions` shows `$/HR` (the rate billed on the
75
- session's open usage interval while a host is held, 0 when cold), `SPENT`
76
- (compute charged so far) and `AGE` (time on its current host) per row plus
77
- a "Spending now" footer; `--json` rows carry `usd_per_hour`, `spent_usd`
78
- and `host_age_seconds` (SDK: `Client.session_cost`). New `fcloud usage [--since DUR|TS] [--until TS]`
79
- reports what the account was charged over a window (default 30 days) by
80
- resource and session (SDK: `Client.billing_usage`).
81
-
82
- ### Changed
83
- - `fcloud job ls` shows each job's COMMAND and EXIT code (from its process
84
- index; `--json` rows carry `command` and `exit_code`), so rows are
85
- tellable apart and failures visible without opening each job.
86
-
87
- ### Fixed
88
- - `fcloud logs <sid> <pid>` with a pid the dispatcher has no record of now
89
- exits 1 (`process_not_found`) like `wait` and `kill`, instead of printing
90
- an empty stream with exit 0 (and `status: ""` in `--json`) that a poller
91
- read as a finished, silent process. A just-spawned pid gets a few seconds
92
- to reach the durable index before it is called unknown.
93
- - `fcloud wait` with a `--timeout` shorter than the unknown-pid grace window
94
- exits 1 for an unknown pid, not 75 (retry), so scripted callers stop
95
- retrying a typo forever.
96
- - Cold starts of `run`/`exec`/`job run` no longer dump every host status
97
- frame (`⟵ session_status: building (phase_change) setup_timing ...`);
98
- the fresh-allocation and reconnect paths now use the same quiet printer
99
- as warm attaches.
100
- - `fcloud sweep harvest` no longer pulls the session's virtual `_logs/`
101
- directory (`_logs/processes.json`) for a results glob like `*.json`; name
102
- `_logs/` in the glob to fetch logs.
103
- - `fcloud sessions` sizes the HOST and SKU columns to the data (27-char AWS
104
- host ids overflowed the fixed width on every row).
105
- - `fcloud volume list` shows each volume's last update time.
106
- - SKILL.md documents `fcloud sessions --limit N`.
107
-
108
- ## [0.2.0] - 2026-09-08
109
-
110
- ### Added
111
- - Per-session checkpoint/restore opt-out: `--no-checkpoint` on
112
- `create`/`exec`/`run`/`shell` (SDK: `checkpoint=False` on
113
- `Project.session`/`cold_session`, `Client.create_session`/
114
- `create_cold_session`). A preempted opt-out session is rebuilt cold on any
115
- available host (`/workspace` kept, running processes lost) instead of being
116
- checkpointed and restored pinned to the region its checkpoint lives in.
117
- Defaults resolve `--checkpoint`/`--no-checkpoint` → `FCLOUD_CHECKPOINT` →
118
- `fcloud.json` `"checkpoint"` → the new `fcloud config set checkpoint on|off`
119
- user default (`~/.fcloud/config.json`) → server default (on).
120
- `SessionInfo.checkpoint` and `fcloud sessions --json` expose the policy; the
121
- create fails loudly against a dispatcher too old to honour the opt-out.
122
- - `--no-resume` on `exec`/`run`/`shell`: refuse to wake a cold (stopped)
123
- session instead of transparently re-provisioning its hardware. The refusal
124
- exits 1 with a typed `session_cold` error naming the session and the SKU a
125
- resume would have provisioned. SDK: `Client.attach_session(...,
126
- resume=False)` raises the new `fcloud.SessionColdError`.
127
- - Pipelines: `fcloud map --after SWEEP[,SWEEP]` (SDK: `client.map(...,
128
- after=handle_or_name, after_strict=…)`) holds a sweep in the new
129
- `waiting` state until the named sweeps finish, then launches it — the
130
- barrier is durable server-side, so a generate → train → eval chain
131
- submits up front and the client can disconnect. An upstream failure
132
- fails the downstream sweep (`upstream_failed:<name>`; re-arm with
133
- `fcloud sweep retry <name> --all`); a partially-succeeded upstream
134
- counts as finished unless `--after-strict`.
135
- - `--volume NAME[:MOUNT][:ro]` (also fcloud.json `"read_only": true` or
136
- the `name:/mount:ro` string form) attaches a volume read-only: the
137
- session sees it, but its writes are discarded at close (no commit).
138
- - `fcloud autoresearch init`: scaffolds a karpathy/autoresearch-style keep/discard
139
- research loop (agent setup guide + `program.md` template) that runs experiments
140
- on a persistent fcloud session.
141
- The loop uploads `results.tsv` to the session each experiment; the dashboard's
142
- session page then shows an Autoresearch tab (metric chart + results table).
143
- - Skip-the-line boost: `fcloud sweep boost <name>` / pressing `s` in
144
- `fcloud sweep status --watch` (offered while blocked on capacity) moves a
145
- sweep to the fast claim lane; queued tasks re-lane immediately
146
- (`SweepHandle.boost()` in the SDK). Freed machines alternate fast/free.
147
- - `fcloud sweep status` explains WHY a sweep is waiting: a `why:` line under
148
- `blocked on capacity` names the line (`3 session(s) ahead in the gpu_1x_l4
149
- queue (1 fast-lane)`) and/or the platform (`a new machine is being
150
- provisioned`, `no capacity ... (stockout)`, `cloud quota exhausted`, ...),
151
- from the new `blocked.sku/queued_reason/queued_ahead/fast_ahead` status
152
- fields; a `state: waiting` (pipeline) sweep names the upstream sweeps it
153
- holds for. Older dispatchers omit the fields and status reads as before.
154
- - Async sweep scheduling: `fcloud map --not-before WHEN` (park until), `--by WHEN`
155
- (deadline; opportunistic idle-fill until `deadline - --runtime - pad`, then
156
- normal launch) and `--runtime DUR` (per-task estimate, default 1h).
157
- `fcloud sweep status` shows the window phase; a missed deadline marks the
158
- sweep `deadline_missed` (webhook `job.deadline_missed`) but never cancels it.
159
- - First-run login prompt: with no API key configured, the CLI offers to open
160
- the dashboard login and store the key instead of failing with a bare error.
161
- - CLI errors carry typed error codes and the request id; the client never
162
- provisions hardware for a request the server would reject.
163
-
164
- ### Changed
165
- - Resuming a cold session now always prints one stderr line (`session <sid>
166
- is cold — resuming (provisions <sku>); pass --no-resume to refuse`), even
167
- when stderr is not a TTY or `FCLOUD_QUIET` is set — waking billed hardware
168
- is a spend event, and non-TTY runs used to do it silently.
169
- - Failed map task attempts now retry with a growing delay (45s × attempt,
170
- capped at 10m) instead of relaunching immediately; preemption requeues
171
- remain immediate and still don't consume the retry budget.
172
-
173
- ### Fixed
174
- - `fcloud map --volume name:/path` sent the custom mount path under a key
175
- the server ignores, silently mounting the volume at its default path.
176
- Custom mount paths now apply to sweep task sessions.
177
-
178
- ## [0.1.3] - 2026-08-27
179
-
180
- ### Changed
181
- - `fcloud setup` installs the agent skill for all agents by default (Enter or
182
- non-interactive stdin = `all`); `--agents none` opts out.
183
-
184
- ## [0.1.2] - 2026-08-27
185
-
186
- ### Changed
187
- - README wording.
188
-
189
- ## [0.1.1] - 2026-08-27
190
-
191
- ### Changed
192
- - README: sign up on the website and paste your API key; the editable
193
- checkout install instructions are gone.
194
-
195
- ## [0.1.0] - 2026-08-27
196
-
197
- ### Changed
198
- - Renamed: the package is `fcloud-sdk`, the import is `fcloud`, the CLI is
199
- `fcloud`, env vars are `FCLOUD_*`, config lives in `~/.fcloud`, project
200
- files are `fcloud.json`, new keys are `fcloud_sk_…`, and the client sends
201
- `X-Fcloud-Client*` headers. Everything old keeps working: `import foom`,
202
- the `foom` command, `FOOM_*`, `~/.foom`, `foom.json`, `foom_sk_` keys and
203
- `foom.FoomError`. Map tasks now receive `FCLOUD_TASK_ID` /
204
- `FCLOUD_WORLD_SIZE` / `FCLOUD_JOB` (the `FOOM_*` names are gone).
205
-
206
- ### Added
207
- - `foom sweep harvest <name> <remote-glob> <local-dir>` — download every
208
- task's matching outputs in one command. Sessions are resolved from the
209
- sweep and local paths are task-keyed (`<local-dir>/task-<index>/<path>`,
210
- or `--flat`), replacing the per-sweep script that parsed status JSON for
211
- session ids and ran N `foom download` calls. `--all-states` includes
212
- failed and canceled tasks.
213
- - `foom sweep status --watch [--interval S]` — the human live view,
214
- repainted in place until the sweep is terminal. Appends instead of
215
- repainting when stdout is not a terminal.
216
- - `foom stop --wait [--timeout SECONDS]` — block until the workspace
217
- manifest is durable, instead of polling `foom sessions` for `state=cold`.
218
- `foom map --from <sid>` needs that manifest; the default timeout is 300s
219
- and the command exits 1 if the wait expires (the stop itself stands).
220
- - The `foom sweep status --json` document is now a documented, versioned
221
- contract (`schema_version: 1`) — see `docs/sweep-status-schema.md`.
222
- Additive changes keep the version; a removal or rename bumps it.
223
- - Every request now carries `X-Foom-Client` / `X-Foom-Client-Version`, and a
224
- client below the deployment's supported floor is rejected with HTTP 426 and
225
- the new `foom.ClientTooOldError`, which names the upgrade command. This
226
- replaces the previous failure mode for a stale client, an S3
227
- `SignatureDoesNotMatch` on every >5 MiB upload that read as a credential
228
- problem.
229
-
230
- ### Changed
231
- - `foom upload` now names the files that take the pre-signed cloud-storage
232
- path (>5 MiB) rather than only the total, and names them again in the error
233
- when that path fails — so a broken large-file upload is attributable to a
234
- file, not to the command. `Session.upload()` returns them as `s3_files`
235
- alongside `inline_files` and `s3_threshold_bytes`.
236
-
237
- ## [0.1.0] — first public release
238
-
239
- ### Added
240
- - `foom` CLI: sessions, exec/run/shell/ssh/tunnel, background processes
241
- (spawn/wait/logs/kill), file transfer (upload/download/ls/mount), volumes,
242
- run-to-completion jobs, and `foom map` sweeps.
243
- - Python SDK: `Client`, `Project`, `Session`, `Job`, `SweepHandle`, `Image`.
244
- - `foom setup` installs the agent skill (`SKILL.md`) for Cursor, Claude Code
245
- and Codex.
246
- - `foom --version` and `foom.__version__`.
247
- - Directory uploads skip hidden entries, dependency/cache directories and
248
- symlinked files by default; `--include-hidden` / `--follow-symlinks` (CLI)
249
- and `include_hidden=` / `follow_symlinks=` (SDK) opt back in.
250
- - `FOOM_TELEMETRY=0` disables the best-effort CLI crash report.
251
-
252
- ### Removed
253
- Relative to the pre-release internal SDK (nothing here was ever on PyPI):
254
- - Public names `MigrationInfo`, `MigrationStatus`, `SyncProgress`, the
255
- `FcloudError` and `JobHandle` aliases (`FoomError` / `SweepHandle` remain),
256
- and the `Session.migrate()` / `Client.watch()` / `Client.list_session_files()`
257
- / `Client.download_file()` helpers — the operator-initiated migration
258
- surface is not part of the public client.
259
- - `Image.add_local_file()`, `Image.add_local_dir()`, `Image.copy()`,
260
- `Image.workdir()` — use `Session.upload()` / `foom upload` for local files
261
- and the `workdir=` argument on exec.
262
- - Legacy `~/.fcloud/token`, `~/.fcloud/url` and `fcloud.json` lookups
263
- (`~/.foom/*` and `foom.json` are the supported forms). `FCLOUD_API_KEY` /
264
- `FCLOUD_URL` are still accepted as aliases of `FOOM_API_KEY` / `FOOM_URL`.
265
- - Internal modules `foom.upload`, `foom.stream`, `foom.jobs`, `foom.client_ext`
266
- and the `s3_uploader` / `websockets_transport` providers, with the
267
- `websockets` dependency they pulled in.
268
- - `DirectClient.run_streaming()` (no callers). `DirectClient.execute()` is
269
- kept — internal harnesses use it.
270
-
271
- ### Security
272
- - Only `FOOM_*` keys from a project `.env` are imported into the process
273
- environment; other keys stay reachable by name via `--secret KEY`.
274
- - A plaintext (`ws://`) host address is refused when the API was reached over
275
- `https://`; a plaintext API URL to a non-local host warns.
276
- - `foom ssh` quotes its ProxyCommand and validates the session id before using
277
- it in filesystem paths.
@@ -1,37 +0,0 @@
1
- # Contributing
2
-
3
- Thanks for your interest in `fcloud`.
4
-
5
- ## Development setup
6
-
7
- ```bash
8
- cd packages/fcloud-sdk
9
- python3 -m venv .venv && source .venv/bin/activate
10
- pip install -e ".[dev]"
11
- ```
12
-
13
- ## Before you open a pull request
14
-
15
- ```bash
16
- ruff check src tests # lint (rule set in pyproject.toml)
17
- mypy # type-check src/fcloud (config in pyproject.toml)
18
- pytest # ~640 hermetic tests, no network or credentials needed
19
- ```
20
-
21
- - Keep changes focused; one topic per PR.
22
- - New behaviour comes with a test — the tests are the spec.
23
- - Comments explain *why*, not *what*. Please don't reference internal ticket
24
- numbers, incidents or environments in code comments.
25
- - Public functions and classes have docstrings.
26
- - Line length is 100.
27
-
28
- ## Reporting bugs
29
-
30
- Open a GitHub issue with the `fcloud --version` output, the command or code you
31
- ran, and what you expected. For anything security-related, see
32
- [SECURITY.md](SECURITY.md) instead.
33
-
34
- ## License
35
-
36
- By contributing you agree that your contributions are licensed under the
37
- Apache License 2.0 (see [LICENSE](LICENSE)).
fcloud_sdk-0.3.0/LICENSE DELETED
@@ -1,202 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. We also recommend that a
186
- file or class name and description of purpose be included on the
187
- same "printed page" as the copyright notice for easier
188
- identification within third-party archives.
189
-
190
- Copyright [yyyy] [name of copyright owner]
191
-
192
- Licensed under the Apache License, Version 2.0 (the "License");
193
- you may not use this file except in compliance with the License.
194
- You may obtain a copy of the License at
195
-
196
- http://www.apache.org/licenses/LICENSE-2.0
197
-
198
- Unless required by applicable law or agreed to in writing, software
199
- distributed under the License is distributed on an "AS IS" BASIS,
200
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
- See the License for the specific language governing permissions and
202
- limitations under the License.
@@ -1,8 +0,0 @@
1
- include README.md
2
- include LICENSE
3
- include NOTICE
4
- include CHANGELOG.md
5
- include CONTRIBUTING.md
6
- include SKILL.md
7
- graft tests
8
- global-exclude __pycache__ *.py[cod] .DS_Store
fcloud_sdk-0.3.0/NOTICE DELETED
@@ -1,4 +0,0 @@
1
- fcloud
2
- Copyright 2026 fcloud
3
-
4
- This product includes software developed for the fcloud compute platform.