zmos 0.0.1__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 (118) hide show
  1. zmos-0.0.1/LICENSE +21 -0
  2. zmos-0.0.1/MANIFEST.in +4 -0
  3. zmos-0.0.1/PKG-INFO +484 -0
  4. zmos-0.0.1/README.md +452 -0
  5. zmos-0.0.1/docs/ARCHITECTURE.md +219 -0
  6. zmos-0.0.1/docs/COMMANDS.md +299 -0
  7. zmos-0.0.1/docs/LOCAL-AI.md +115 -0
  8. zmos-0.0.1/docs/MEDIA.md +142 -0
  9. zmos-0.0.1/docs/MIGRATION.md +104 -0
  10. zmos-0.0.1/docs/OS-STANDARD.md +264 -0
  11. zmos-0.0.1/docs/RELEASE-NOTES-2.0.md +153 -0
  12. zmos-0.0.1/docs/ZMOS-Cheatsheet.html +191 -0
  13. zmos-0.0.1/docs/ZMOS-Guide.html +868 -0
  14. zmos-0.0.1/pyproject.toml +64 -0
  15. zmos-0.0.1/setup.cfg +4 -0
  16. zmos-0.0.1/src/zmos/__init__.py +6 -0
  17. zmos-0.0.1/src/zmos/__main__.py +6 -0
  18. zmos-0.0.1/src/zmos/analysis.py +364 -0
  19. zmos-0.0.1/src/zmos/casework.py +330 -0
  20. zmos-0.0.1/src/zmos/cli.py +168 -0
  21. zmos-0.0.1/src/zmos/commands/__init__.py +1 -0
  22. zmos-0.0.1/src/zmos/commands/ai.py +823 -0
  23. zmos-0.0.1/src/zmos/commands/casework.py +848 -0
  24. zmos-0.0.1/src/zmos/commands/common.py +153 -0
  25. zmos-0.0.1/src/zmos/commands/core.py +769 -0
  26. zmos-0.0.1/src/zmos/commands/craft.py +237 -0
  27. zmos-0.0.1/src/zmos/commands/crypto.py +173 -0
  28. zmos-0.0.1/src/zmos/commands/diction.py +56 -0
  29. zmos-0.0.1/src/zmos/commands/editor.py +57 -0
  30. zmos-0.0.1/src/zmos/commands/effects.py +110 -0
  31. zmos-0.0.1/src/zmos/commands/files.py +510 -0
  32. zmos-0.0.1/src/zmos/commands/mind.py +270 -0
  33. zmos-0.0.1/src/zmos/commands/mshesh.py +255 -0
  34. zmos-0.0.1/src/zmos/commands/net.py +844 -0
  35. zmos-0.0.1/src/zmos/commands/notes.py +178 -0
  36. zmos-0.0.1/src/zmos/commands/runtime.py +1021 -0
  37. zmos-0.0.1/src/zmos/commands/social.py +247 -0
  38. zmos-0.0.1/src/zmos/commands/synth.py +223 -0
  39. zmos-0.0.1/src/zmos/commands/transfer.py +200 -0
  40. zmos-0.0.1/src/zmos/commands/update.py +91 -0
  41. zmos-0.0.1/src/zmos/commands/views.py +505 -0
  42. zmos-0.0.1/src/zmos/commands/workspace.py +247 -0
  43. zmos-0.0.1/src/zmos/completion.py +283 -0
  44. zmos-0.0.1/src/zmos/constants.py +557 -0
  45. zmos-0.0.1/src/zmos/data/diction_code.txt +10000 -0
  46. zmos-0.0.1/src/zmos/data/english.txt +2048 -0
  47. zmos-0.0.1/src/zmos/deepseek.py +317 -0
  48. zmos-0.0.1/src/zmos/diction.py +133 -0
  49. zmos-0.0.1/src/zmos/editor.py +503 -0
  50. zmos-0.0.1/src/zmos/effects.py +297 -0
  51. zmos-0.0.1/src/zmos/exports.py +142 -0
  52. zmos-0.0.1/src/zmos/formats.py +990 -0
  53. zmos-0.0.1/src/zmos/generator.py +3933 -0
  54. zmos-0.0.1/src/zmos/graphics.py +1022 -0
  55. zmos-0.0.1/src/zmos/intelligence.py +1510 -0
  56. zmos-0.0.1/src/zmos/local_ai.py +1434 -0
  57. zmos-0.0.1/src/zmos/maintenance.py +142 -0
  58. zmos-0.0.1/src/zmos/media.py +1157 -0
  59. zmos-0.0.1/src/zmos/mshesh.py +325 -0
  60. zmos-0.0.1/src/zmos/parser.py +165 -0
  61. zmos-0.0.1/src/zmos/py.typed +0 -0
  62. zmos-0.0.1/src/zmos/registry.py +169 -0
  63. zmos-0.0.1/src/zmos/runtime.py +906 -0
  64. zmos-0.0.1/src/zmos/session.py +662 -0
  65. zmos-0.0.1/src/zmos/shell.py +360 -0
  66. zmos-0.0.1/src/zmos/splash.py +239 -0
  67. zmos-0.0.1/src/zmos/storage.py +231 -0
  68. zmos-0.0.1/src/zmos/synth.py +392 -0
  69. zmos-0.0.1/src/zmos/theme.py +559 -0
  70. zmos-0.0.1/src/zmos/tui.py +312 -0
  71. zmos-0.0.1/src/zmos/universe.py +949 -0
  72. zmos-0.0.1/src/zmos/updater.py +201 -0
  73. zmos-0.0.1/src/zmos/util.py +1579 -0
  74. zmos-0.0.1/src/zmos/webfetch.py +106 -0
  75. zmos-0.0.1/src/zmos/webimages.py +335 -0
  76. zmos-0.0.1/src/zmos/workspace.py +505 -0
  77. zmos-0.0.1/src/zmos.egg-info/PKG-INFO +484 -0
  78. zmos-0.0.1/src/zmos.egg-info/SOURCES.txt +116 -0
  79. zmos-0.0.1/src/zmos.egg-info/dependency_links.txt +1 -0
  80. zmos-0.0.1/src/zmos.egg-info/entry_points.txt +6 -0
  81. zmos-0.0.1/src/zmos.egg-info/requires.txt +6 -0
  82. zmos-0.0.1/src/zmos.egg-info/top_level.txt +1 -0
  83. zmos-0.0.1/tests/__init__.py +0 -0
  84. zmos-0.0.1/tests/support.py +22 -0
  85. zmos-0.0.1/tests/test_analysis.py +61 -0
  86. zmos-0.0.1/tests/test_casework.py +90 -0
  87. zmos-0.0.1/tests/test_completion.py +55 -0
  88. zmos-0.0.1/tests/test_controls.py +66 -0
  89. zmos-0.0.1/tests/test_deepseek_web.py +92 -0
  90. zmos-0.0.1/tests/test_diction.py +50 -0
  91. zmos-0.0.1/tests/test_editor.py +110 -0
  92. zmos-0.0.1/tests/test_effects.py +62 -0
  93. zmos-0.0.1/tests/test_files_runtime.py +84 -0
  94. zmos-0.0.1/tests/test_forge.py +93 -0
  95. zmos-0.0.1/tests/test_formats.py +98 -0
  96. zmos-0.0.1/tests/test_generative.py +60 -0
  97. zmos-0.0.1/tests/test_help_all.py +31 -0
  98. zmos-0.0.1/tests/test_local_ai.py +295 -0
  99. zmos-0.0.1/tests/test_local_ai_launcher.py +288 -0
  100. zmos-0.0.1/tests/test_media.py +120 -0
  101. zmos-0.0.1/tests/test_mind.py +64 -0
  102. zmos-0.0.1/tests/test_mobile.py +72 -0
  103. zmos-0.0.1/tests/test_mshesh_port.py +117 -0
  104. zmos-0.0.1/tests/test_reactions.py +60 -0
  105. zmos-0.0.1/tests/test_release_updates.py +84 -0
  106. zmos-0.0.1/tests/test_runtime.py +83 -0
  107. zmos-0.0.1/tests/test_say_actions.py +58 -0
  108. zmos-0.0.1/tests/test_seed.py +40 -0
  109. zmos-0.0.1/tests/test_smoke.py +112 -0
  110. zmos-0.0.1/tests/test_splash.py +70 -0
  111. zmos-0.0.1/tests/test_structured.py +106 -0
  112. zmos-0.0.1/tests/test_synth.py +140 -0
  113. zmos-0.0.1/tests/test_theme.py +100 -0
  114. zmos-0.0.1/tests/test_transfer.py +71 -0
  115. zmos-0.0.1/tests/test_tui.py +42 -0
  116. zmos-0.0.1/tests/test_universe.py +55 -0
  117. zmos-0.0.1/tests/test_updater.py +81 -0
  118. zmos-0.0.1/tests/test_workspace.py +106 -0
zmos-0.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Z-Mall Incorporated
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
zmos-0.0.1/MANIFEST.in ADDED
@@ -0,0 +1,4 @@
1
+ include README.md LICENSE
2
+ recursive-include docs *.md *.html
3
+ recursive-include tests *.py
4
+ recursive-include src/zmos/data *.txt
zmos-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,484 @@
1
+ Metadata-Version: 2.4
2
+ Name: zmos
3
+ Version: 0.0.1
4
+ Summary: ZMOS 2.0 — the Z-Mall Operating System · an offline, generative terminal OS
5
+ Author: Z-Mall Incorporated
6
+ License: MIT
7
+ Project-URL: Homepage, https://pypi.org/project/zmos/
8
+ Project-URL: Documentation, https://pypi.org/project/zmos/
9
+ Keywords: terminal,tui,operating-system,z-mall,offline,generative,worldbuilding,simulation,sandbox,images,formats,filesystem,local-ai,llama.cpp
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Information Technology
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: POSIX
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Desktop Environment
21
+ Classifier: Topic :: Terminals
22
+ Classifier: Topic :: Education
23
+ Classifier: Topic :: Multimedia :: Graphics
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ Provides-Extra: dev
28
+ Requires-Dist: build>=1.2; extra == "dev"
29
+ Provides-Extra: images
30
+ Requires-Dist: Pillow>=10.0; extra == "images"
31
+ Dynamic: license-file
32
+
33
+ # ZMOS · Aurora · 0.0.1
34
+
35
+ **Z-Mall Operating System** — an offline, generative terminal operating system
36
+ published by **Z-Mall Incorporated**, Offline Systems Division.
37
+
38
+ ZMOS is the official 2.0 edition successor to the RootOS starting study. This
39
+ PyPI package is version **0.0.1**. It keeps the same closed, seeded engine and
40
+ grows it into a complete operating-system standard: a formal shell vocabulary,
41
+ a 500+ extension file-format catalogue, a much larger procedural image engine,
42
+ real media codecs, complete office and archive formats, and a calm,
43
+ Macintosh-inspired interface.
44
+
45
+ ```text
46
+ ▛Z▟ ZMOS · AURORA · 0.0.1
47
+ an offline operating system · Z-Mall Incorporated
48
+ ```
49
+
50
+ ---
51
+
52
+ ## Install
53
+
54
+ ZMOS is dependency-free. Python 3.10+ is the only requirement.
55
+
56
+ ```bash
57
+ python3 -m pip install --user zmos
58
+ zmos
59
+ ```
60
+
61
+ From a checkout:
62
+
63
+ ```bash
64
+ git clone <your-repository> ZMOS
65
+ cd ZMOS
66
+ python3 -m pip install -e .
67
+ zmos
68
+ ```
69
+
70
+ Optional extras:
71
+
72
+ ```bash
73
+ python3 -m pip install "zmos[images]" # Pillow for extra web-image handling
74
+ python3 -m pip install "zmos[dev]" # build tooling
75
+ ```
76
+
77
+ Entry points: `zmos`, `zm`, `zmall`, `zs`, and `zmos-local-ai`.
78
+
79
+ ---
80
+
81
+ ## First run
82
+
83
+ ```
84
+ zmos # interactive desktop shell, with the Z-Mall intro splash
85
+ zmos splash # print the intro page and exit
86
+ zmos --no-splash # skip the intro
87
+ zmos world # list the generated networks
88
+ zmos scan all --fast # live-scan every network
89
+ zmos enter oracle-01 # inhabit a machine
90
+ zmos gen all --count 4
91
+ zmos formats --all
92
+ ```
93
+
94
+ The first run creates `$ZMOS_HOME` (default `~/.local/share/zmos`) with a
95
+ sandboxed `workspace/`, `state.json`, `secret.json` (mode 0600) and an
96
+ `exports/` directory. Set `ZMOS_HOME` to use another root. Legacy RootOS
97
+ directories are not used by default.
98
+
99
+ ---
100
+
101
+ ## The intro splash
102
+
103
+ The splash is the Z-Mall Incorporated identity screen. It is Macintosh-quiet:
104
+ traffic-light dots, a large rounded mark, the wordmark, the release name and a
105
+ short boot sequence.
106
+
107
+ - `splash` — print it
108
+ - `splash --save /drop/splash.txt` — save a copy
109
+ - `settings splash false` — disable it
110
+ - `zmos --splash-only` — print it and exit
111
+
112
+ The splash names **Z-Mall Incorporated** explicitly and never depends on a
113
+ network connection.
114
+
115
+ ---
116
+
117
+ ## Empty Enter · Diction: code
118
+
119
+ Press **Enter on an empty prompt** and ZMOS prints a quiet Diction: code line
120
+ in the style of MProcs' `diction: code`:
121
+
122
+ ```text
123
+ & アカネ Locations Quiet Ember 2026-11-29 18:07:56
124
+ ```
125
+
126
+ The code vocabulary contains **10,000 words** from the bundled
127
+ `diction_code.txt`; `diction theme` uses the Z-Mall generative vocabulary
128
+ instead. The generator is theme-aware and stays inside the active palette.
129
+
130
+ ```bash
131
+ diction # one line
132
+ diction code # 10,000-word code vocabulary
133
+ diction theme # Z-Mall theme vocabulary
134
+ diction count # vocabulary sizes and empty-input state
135
+ diction list # sample words
136
+ diction off # disable empty-Enter generation
137
+ diction on
138
+ ```
139
+
140
+ `settings empty_input off` does the same as `diction off`.
141
+
142
+ ---
143
+
144
+ ## nano
145
+
146
+ ZMOS includes a small full-screen nano-style editor:
147
+
148
+ ```bash
149
+ nano /notes/todo.md
150
+ nano /net/willow-row/pocket-aster/etc/motd --read-only
151
+ nano --help
152
+ ```
153
+
154
+ Keys: `Ctrl-O` write, `Ctrl-X` exit, `Ctrl-W` search, `Ctrl-K` cut,
155
+ `Ctrl-U` uncut, `Ctrl-G` help, `Ctrl-C` position, `Ctrl-L` refresh, arrows /
156
+ Home / End / PgUp / PgDn to move. On a pipe or non-interactive terminal,
157
+ `nano` points you at `edit`, `write` or `append` instead of hanging.
158
+
159
+ ---
160
+
161
+ ## Updates
162
+
163
+ ZMOS checks PyPI once per day in interactive sessions. Disable with
164
+ `settings update_check false` or `ZMOS_NO_UPDATE_CHECK=1`.
165
+
166
+ ```bash
167
+ zmos update --check
168
+ zmos update --yes
169
+ zmos update --yes --restart
170
+ zmos update --yes --break-system-packages # PEP 668 / permission fallback
171
+ zmos restart
172
+ ```
173
+
174
+ The updater first runs a normal `pip install --upgrade zmos`. If pip reports
175
+ an externally managed environment or a permission failure, it retries with
176
+ `--user --break-system-packages`. `--restart` replaces the process with a
177
+ fresh `python -m zmos`.
178
+
179
+ ---
180
+
181
+ ## The interface
182
+
183
+ The visual language is inspired by classic and modern Macintosh:
184
+
185
+ - quiet neutral space with one strong accent;
186
+ - glass panels and rounded **windows** with traffic-light controls;
187
+ - a top **menu bar** and a bottom **dock**;
188
+ - a flat, direct command vocabulary;
189
+ - graceful degradation to ASCII and `NO_COLOR`.
190
+
191
+ Themes: `aqua` (default), `graphite`, `midnight`, `starlight`, `rose`, `mint`,
192
+ `sky`, `sunset`, plus the original RootOS palettes `phosphor`, `amber`, `ice`,
193
+ `violet`, `red` and `mono`. Use `theme <name>` or `zmos --theme <name>`.
194
+
195
+ ---
196
+
197
+ ## The world
198
+
199
+ The world is deterministic from a seed:
200
+
201
+ - networks use RFC 5737 / RFC 3849 documentation space and private ranges;
202
+ - hosts are fictional "glass" computers with services, users, shares and
203
+ synthetic signals;
204
+ - ordinary people and their personal devices are generated alongside
205
+ infrastructure;
206
+ - scanning and access are live simulations; no socket is opened.
207
+
208
+ Nothing generated is real. Only `scour`, `fetch` and a configured AI provider
209
+ open network connections, and each of those is an explicit opt-in.
210
+
211
+ ---
212
+
213
+ ## Generation
214
+
215
+ `gen` writes a complete, unique file. The catalogue is deliberately broad:
216
+
217
+ ```bash
218
+ gen doc --count 3
219
+ gen python --size large
220
+ gen image --size large --style macwall
221
+ gen wallpaper --size wallpaper --style aurora
222
+ gen poster --size poster --style mesh
223
+ gen gif --size small --frames 18
224
+ gen audio --size small
225
+ gen model --size tiny
226
+ gen font --size tiny
227
+ gen diagram --size tiny
228
+ gen map --size tiny
229
+ gen office --size small
230
+ gen pcap --size small
231
+ gen all --count 6
232
+ ```
233
+
234
+ Useful flags:
235
+
236
+ | flag | meaning |
237
+ | --- | --- |
238
+ | `--count N` | generate up to 24 files |
239
+ | `--size BAND` | `tiny small medium large huge epic colossal` |
240
+ | `--size PRESET` | `thumb tiny small medium large huge epic poster portrait square panorama banner wallpaper ultrawide retina billboard mural` |
241
+ | `--style NAME` | a procedural image style |
242
+ | `--quality Q` | `draft standard high ultra` |
243
+ | `--frames N` | animated GIF frames (2–48) |
244
+ | `--host HOST` | write into a generated machine |
245
+ | `--dir DIR` | choose the destination directory |
246
+ | `--online` | optional AI text (never images) |
247
+ | `--format NAME` | choose an HTML page format |
248
+ | `--json` | machine-readable result |
249
+
250
+ `gen types` lists every family. `formats --all` lists every extension.
251
+
252
+ ---
253
+
254
+ ## Complete format catalogue
255
+
256
+ ZMOS recognises 500+ file extensions and ships generators for more than 130
257
+ families. Highlights:
258
+
259
+ ### Images and media
260
+
261
+ PNG · PPM · BMP · GIF (animated) · JPEG (baseline) · TIFF · TGA · QOI ·
262
+ farbfeld · PAM · PGM · PBM · XPM · XBM · ICO · ICNS · SVG · WAV · AIFF · MIDI
263
+
264
+ All image writers are pure Python. GIF uses a median-cut palette and a real
265
+ LZW stream. JPEG uses standard tables and a baseline encoder. TIFF, TGA, QOI,
266
+ farbfeld, PNM, XPM/XBM and ICO/ICNS are complete and open with ordinary tools.
267
+
268
+ ### Documents and office
269
+
270
+ PDF · DOCX · XLSX · PPTX · ODT · ODS · ODP · EPUB · RTF · LaTeX · Markdown ·
271
+ reStructuredText · AsciiDoc · Org · Typst · Jupyter notebook
272
+
273
+ ### Data, configuration and databases
274
+
275
+ JSON · JSONL/NDJSON · YAML · TOML · CSV · TSV · XML · RSS · Atom · SQLite ·
276
+ INI · properties · systemd units · Terraform · HCL · Nix · KDL · desktop entries
277
+
278
+ ### Code
279
+
280
+ Python · JavaScript/TypeScript · Go · Rust · C/C++ · Java · Ruby · Lua · PHP ·
281
+ Kotlin · Swift · shell · PowerShell · batch · SQL · GraphQL · Protocol Buffers ·
282
+ Vue · Svelte · notebooks and more.
283
+
284
+ ### Security and operations
285
+
286
+ YARA/Sigma-style rules · PEM/key/certificate material · real libpcap captures ·
287
+ HAR archives · incident reports · postmortems · threat models · runbooks ·
288
+ forensics timelines · chain-of-custody records · compliance maps.
289
+
290
+ ### Structured extras
291
+
292
+ OBJ · STL · glTF · BDF bitmap fonts · SRT/VTT subtitles · LRC lyrics ·
293
+ GPX · KML · GeoJSON · BibTeX · RIS · Mermaid · PlantUML · draw.io ·
294
+ Excalidraw · Makefile · CMake · Dockerfile · Nix expressions.
295
+
296
+ ---
297
+
298
+ ## The image engine
299
+
300
+ 40 procedural styles, 17 size presets, four quality levels and 17 codecs.
301
+
302
+ Styles include:
303
+
304
+ ```text
305
+ signal glitch circuit bloom topography void dream pressure lattice weather
306
+ aurora dunes ocean forest skyline nebula coral glacier blossom rain snow
307
+ desert sunset monochrome blueprint macwall mesh glass ribbon tide ember
308
+ minimal gradient halftone stainedglass paper fractal rings waves horizon
309
+ ```
310
+
311
+ Large images render at a detail-capped internal resolution and are smoothly
312
+ upscaled, so 4K/5K wallpapers and billboards remain practical on CPU-only
313
+ machines.
314
+
315
+ ```bash
316
+ media # engine summary
317
+ media styles # every style
318
+ media presets # every size preset
319
+ gallery # visual index
320
+ image /gallery/x.png # render in the terminal
321
+ ```
322
+
323
+ ---
324
+
325
+ ## Local AI (optional, offline)
326
+
327
+ ZMOS can download and run a small llama.cpp model locally. No key is needed
328
+ and local tokens are free. The chosen model is the default: ZMOS no longer
329
+ silently switches models based on RAM unless you explicitly ask for `auto`.
330
+
331
+ ```bash
332
+ ai local models # catalogue, selected model, server + installed models
333
+ ai local choose llama-3.2-1b-instruct
334
+ ai local start # uses the selected model
335
+ ai local wait 300 # wait for download/load
336
+ ai test # confirm it replies
337
+ ai local status
338
+ ai local stop
339
+ ```
340
+
341
+ Catalogue:
342
+
343
+ | model | size | min RAM | note |
344
+ | --- | --- | --- | --- |
345
+ | `llama-3.2-1b-instruct` | ~850 MB | ~1.2 GB | default · balanced CPU model |
346
+ | `qwen2.5-0.5b-instruct` | ~420 MB | ~800 MB | smallest · phones |
347
+ | `qwen2.5-1.5b-instruct` | ~1.1 GB | ~1.6 GB | stronger writing |
348
+ | `deepseek-r1-distill-qwen-1.5b` | ~1.1 GB | ~1.8 GB | reasoning |
349
+ | `llama-3.2-3b-instruct` | ~2.1 GB | ~3 GB | larger |
350
+ | `phi-3.5-mini-instruct` | ~2.4 GB | ~3.4 GB | technical prose |
351
+ | `mistral-7b-instruct` | ~4.4 GB | ~6 GB | workstation class |
352
+
353
+ `ai local choose auto` restores RAM-based selection. `ai local models` shows
354
+ both the curated catalogue and the models the running server reports, plus any
355
+ GGUF files already installed. Model downloads now land in
356
+ `~/.local/share/zmos/models/` by default; llama.cpp's `-hf`/Hugging Face cache
357
+ is only a fallback if that pre-download fails. The endpoint defaults to
358
+ `http://127.0.0.1:8080/v1`; `ai local` detects Ollama, llama.cpp, LM Studio
359
+ and vLLM as well.
360
+
361
+ While a GGUF is downloading or loading, llama.cpp answers `503 Loading model`.
362
+ ZMOS now treats that as “alive and loading” rather than “no server found”:
363
+
364
+ ```text
365
+ ai local status
366
+ local AI running (pid 7308) · downloading 216.8 MiB
367
+ ai local wait 300
368
+ ai test
369
+ ```
370
+
371
+ ---
372
+
373
+ ## The standard
374
+
375
+ `standard` prints the official operating-system standard. Topics:
376
+
377
+ ```bash
378
+ standard identity
379
+ standard filesystem
380
+ standard formats
381
+ standard images
382
+ standard vocabulary
383
+ standard security
384
+ standard conformance
385
+ standard releases
386
+ standard splash
387
+ standard theme
388
+ ```
389
+
390
+ A conformant ZMOS artifact is **complete**, **labelled**, **reproducible** and
391
+ **contained** in the workspace.
392
+
393
+ ---
394
+
395
+ ## Commands at a glance
396
+
397
+ | area | commands |
398
+ | --- | --- |
399
+ | system | `help` `about` `version` `settings` `theme` `splash` `standard` `selftest` `seed` `script` `update` `restart` |
400
+ | files | `ls` `cd` `cat` `head` `tail` `write` `append` `add` `edit` `nano` `rm` `cp` `mv` `find` `grep` `stat` `zip` `unzip` |
401
+ | views | `view` `image` `hex` `code` `tree` `map` `graph` `topology` `dash` `gallery` `timeline` |
402
+ | network | `world` `network` `scan` `hosts` `host` `enter` `leave` `access` `services` `civilians` `devices` `persona` `ping` `traceroute` `dns` |
403
+ | forge | `gen` `types` `formats` `media` `wallpaper` `poster` `ai` `scour` `pack` |
404
+ | standard | `formats` `media` `standard` |
405
+ | notes | `remember` `recall` `forget` `things` `mantra` `cheat` `journal` `stats` `diction` |
406
+ | mind | `ask` `brief` `recommend` `anomalies` `dossier` `plan` `agent` `do` `dream` `compose` |
407
+ | casework | `findings` `finding` `incidents` `incident` `evidence` `objectives` `artifacts` `provenance` `curate` `commission` `salon` `scope` `casepack` `metrics` |
408
+
409
+ Run `help --all` for the complete live index and `help <command>` for usage.
410
+
411
+ ---
412
+
413
+ ## Sandbox and ethics
414
+
415
+ ZMOS is a closed, synthetic sandbox.
416
+
417
+ - Networks, computers, users, addresses, files and images are generated on this
418
+ machine from a seed.
419
+ - Scanning and access are performances over generated data. No socket is
420
+ opened.
421
+ - Addresses use documentation and private space; names use fictional TLDs.
422
+ - Only `scour`, `fetch` and a configured AI provider open network connections,
423
+ and each is explicit.
424
+ - Synthetic keys, certificates and credentials are decorative. Never use them
425
+ outside the sandbox.
426
+
427
+ For real systems: written permission, a defined scope, a stop condition, and
428
+ respect for other people's data.
429
+
430
+ ---
431
+
432
+ ## Project layout
433
+
434
+ ```text
435
+ ZMOS/
436
+ ├── pyproject.toml
437
+ ├── README.md
438
+ ├── docs/
439
+ │ ├── OS-STANDARD.md
440
+ │ ├── ARCHITECTURE.md
441
+ │ ├── COMMANDS.md
442
+ │ ├── MEDIA.md
443
+ │ └── RELEASE-NOTES-2.0.md
444
+ ├── src/zmos/
445
+ │ ├── cli.py entry point and splash/boot flags
446
+ │ ├── splash.py Z-Mall Incorporated intro page
447
+ │ ├── theme.py Macintosh-inspired ANSI theme engine
448
+ │ ├── graphics.py procedural pixel engine and PNG/PPM/SVG
449
+ │ ├── media.py complete image codecs (GIF/JPEG/TIFF/TGA/QOI/...)
450
+ │ ├── formats.py structured formats (PCAP/PPTX/ODT/OBJ/BDF/...)
451
+ │ ├── generator.py the forge: context, naming, dispatch, prose
452
+ │ ├── universe.py networks, hosts, people, services
453
+ │ ├── workspace.py sandboxed filesystem and seed files
454
+ │ ├── shell.py pipelines, prompt, banner
455
+ │ ├── tui.py interactive loop and desktop dashboard
456
+ │ └── commands/ registry-driven command modules
457
+ ├── tests/
458
+ └── tools/
459
+ ```
460
+
461
+ See `docs/OS-STANDARD.md` for the formal standard and
462
+ `docs/RELEASE-NOTES-2.0.md` for the 2.0 changelog.
463
+
464
+ ---
465
+
466
+ ## Development
467
+
468
+ ```bash
469
+ python3 -m pip install -e .
470
+ python3 -m unittest discover -s tests -v
471
+ python3 -m build
472
+ ```
473
+
474
+ The test suite covers the world, workspace, shell, theme, formats, all media
475
+ codecs, splash identity, casework and the local mind. No test opens a socket.
476
+
477
+ ---
478
+
479
+ ## License
480
+
481
+ MIT. ZMOS, the Z-Mall name and the generated worlds are works of fiction.
482
+ Z-Mall Incorporated is a fictional publisher inside the sandbox.
483
+
484
+ > A format is a contract; honour the whole contract.