artos 1.0.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 (77) hide show
  1. artos-1.0.0/LICENSE +21 -0
  2. artos-1.0.0/MANIFEST.in +6 -0
  3. artos-1.0.0/PKG-INFO +608 -0
  4. artos-1.0.0/README.md +581 -0
  5. artos-1.0.0/docs/ARCHITECTURE.md +145 -0
  6. artos-1.0.0/docs/COMMANDS.md +1810 -0
  7. artos-1.0.0/docs/GUIDE.md +142 -0
  8. artos-1.0.0/docs/RELEASE-1.0.0.md +68 -0
  9. artos-1.0.0/docs/ROOTOS-PARITY.md +71 -0
  10. artos-1.0.0/pyproject.toml +56 -0
  11. artos-1.0.0/setup.cfg +4 -0
  12. artos-1.0.0/src/artos/__init__.py +6 -0
  13. artos-1.0.0/src/artos/__main__.py +4 -0
  14. artos-1.0.0/src/artos/audio.py +201 -0
  15. artos-1.0.0/src/artos/cli.py +128 -0
  16. artos-1.0.0/src/artos/commands/__init__.py +1 -0
  17. artos-1.0.0/src/artos/commands/ai.py +231 -0
  18. artos-1.0.0/src/artos/commands/atlas.py +366 -0
  19. artos-1.0.0/src/artos/commands/common.py +160 -0
  20. artos-1.0.0/src/artos/commands/core.py +550 -0
  21. artos-1.0.0/src/artos/commands/craft.py +495 -0
  22. artos-1.0.0/src/artos/commands/effects.py +80 -0
  23. artos-1.0.0/src/artos/commands/files.py +508 -0
  24. artos-1.0.0/src/artos/commands/forge.py +170 -0
  25. artos-1.0.0/src/artos/commands/mind.py +303 -0
  26. artos-1.0.0/src/artos/commands/notes.py +195 -0
  27. artos-1.0.0/src/artos/commands/provenance.py +66 -0
  28. artos-1.0.0/src/artos/commands/runtime.py +290 -0
  29. artos-1.0.0/src/artos/commands/science.py +154 -0
  30. artos-1.0.0/src/artos/commands/social.py +258 -0
  31. artos-1.0.0/src/artos/commands/source.py +188 -0
  32. artos-1.0.0/src/artos/commands/synth.py +252 -0
  33. artos-1.0.0/src/artos/commands/transfer.py +128 -0
  34. artos-1.0.0/src/artos/commands/views.py +468 -0
  35. artos-1.0.0/src/artos/commands/workspace.py +238 -0
  36. artos-1.0.0/src/artos/completion.py +272 -0
  37. artos-1.0.0/src/artos/constants.py +454 -0
  38. artos-1.0.0/src/artos/deepseek.py +216 -0
  39. artos-1.0.0/src/artos/effects.py +100 -0
  40. artos-1.0.0/src/artos/exports.py +443 -0
  41. artos-1.0.0/src/artos/generator.py +1646 -0
  42. artos-1.0.0/src/artos/graphics.py +1101 -0
  43. artos-1.0.0/src/artos/intelligence.py +1183 -0
  44. artos-1.0.0/src/artos/parser.py +165 -0
  45. artos-1.0.0/src/artos/poetics.py +1900 -0
  46. artos-1.0.0/src/artos/py.typed +0 -0
  47. artos-1.0.0/src/artos/registry.py +170 -0
  48. artos-1.0.0/src/artos/runtime.py +476 -0
  49. artos-1.0.0/src/artos/session.py +581 -0
  50. artos-1.0.0/src/artos/shell.py +351 -0
  51. artos-1.0.0/src/artos/storage.py +211 -0
  52. artos-1.0.0/src/artos/theme.py +345 -0
  53. artos-1.0.0/src/artos/tui.py +257 -0
  54. artos-1.0.0/src/artos/universe.py +901 -0
  55. artos-1.0.0/src/artos/util.py +536 -0
  56. artos-1.0.0/src/artos/webfetch.py +97 -0
  57. artos-1.0.0/src/artos/webimages.py +333 -0
  58. artos-1.0.0/src/artos/webtext.py +201 -0
  59. artos-1.0.0/src/artos/workspace.py +373 -0
  60. artos-1.0.0/src/artos.egg-info/PKG-INFO +608 -0
  61. artos-1.0.0/src/artos.egg-info/SOURCES.txt +75 -0
  62. artos-1.0.0/src/artos.egg-info/dependency_links.txt +1 -0
  63. artos-1.0.0/src/artos.egg-info/entry_points.txt +3 -0
  64. artos-1.0.0/src/artos.egg-info/requires.txt +6 -0
  65. artos-1.0.0/src/artos.egg-info/top_level.txt +1 -0
  66. artos-1.0.0/tests/__init__.py +0 -0
  67. artos-1.0.0/tests/support.py +26 -0
  68. artos-1.0.0/tests/test_atlas.py +72 -0
  69. artos-1.0.0/tests/test_commands.py +109 -0
  70. artos-1.0.0/tests/test_completion.py +56 -0
  71. artos-1.0.0/tests/test_exports.py +65 -0
  72. artos-1.0.0/tests/test_generator.py +115 -0
  73. artos-1.0.0/tests/test_graphics.py +70 -0
  74. artos-1.0.0/tests/test_parser.py +56 -0
  75. artos-1.0.0/tests/test_poetics.py +97 -0
  76. artos-1.0.0/tests/test_runtime.py +77 -0
  77. artos-1.0.0/tests/test_workspace.py +81 -0
artos-1.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 kredt
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.
@@ -0,0 +1,6 @@
1
+ include README.md
2
+ include LICENSE
3
+ include pyproject.toml
4
+ recursive-include src/artos/data *.txt
5
+ recursive-include docs *.md
6
+ recursive-include tests *.py
artos-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,608 @@
1
+ Metadata-Version: 2.4
2
+ Name: artos
3
+ Version: 1.0.0
4
+ Summary: ARTOS // a sandboxed personal operating system, root of all art
5
+ Author: kredt
6
+ License: MIT
7
+ Project-URL: Homepage, https://pypi.org/project/artos/
8
+ Project-URL: Documentation, https://pypi.org/project/artos/
9
+ Keywords: terminal,tui,art,poetry,literature,generative-art,creative-writing,operating-system,sandbox,offline,worldbuilding,science,media,generator
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: End Users/Desktop
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: POSIX
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Artistic Software
17
+ Classifier: Topic :: Terminals
18
+ Classifier: Topic :: Education
19
+ Requires-Python: >=3.10
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Provides-Extra: dev
23
+ Requires-Dist: build>=1.2; extra == "dev"
24
+ Provides-Extra: images
25
+ Requires-Dist: Pillow>=10.0; extra == "images"
26
+ Dynamic: license-file
27
+
28
+ # ARTOS //
29
+
30
+ **A sandboxed personal operating system. Root of all art.**
31
+
32
+ Codename `POIESIS` · version `1.0.0` · commands `artos` / `at`.
33
+
34
+ ```text
35
+ ╔══════════════════════════════════════════════════════════════════════╗
36
+ ║ A R T / / root of all art ║
37
+ ║ a personal operating system · root of all art ║
38
+ ║ v1.0.0 · POIESIS · synthetic culture ║
39
+ ╚══════════════════════════════════════════════════════════════════════╝
40
+ ```
41
+
42
+ ARTOS is the sibling of ROOT. Where ROOT generates a synthetic network, ARTOS
43
+ generates a synthetic **culture**: regions, studios, artists, works, movements,
44
+ presses, laboratories, tensions and archives. It gives you one workspace, one
45
+ flat interface, and the most direct commands possible to read, edit, make,
46
+ transform and publish anything.
47
+
48
+ ```text
49
+ $ artos
50
+ art@atelier:/// # world
51
+ art@atelier:/// # collect all --fast
52
+ art@atelier:/// # artists
53
+ art@atelier:/// # enter quiet-press
54
+ art@quiet-press:///atlas/quiet-press/quiet-press # ls
55
+ art@quiet-press:///atlas/quiet-press/quiet-press # gen poem --size large
56
+ art@atelier:/// # muse "a city of margins"
57
+ art@atelier:/// # critique /library/poem.md
58
+ art@atelier:/// # gen poster --size large
59
+ art@atelier:/// # dash
60
+ ```
61
+
62
+ ---
63
+
64
+ ## Quick start
65
+
66
+ Install from this directory:
67
+
68
+ ```bash
69
+ python3 -m pip install .
70
+ artos
71
+ # or
72
+ at
73
+ ```
74
+
75
+ Offline install from a wheel (no index, no dependencies):
76
+
77
+ ```bash
78
+ python3 -m pip wheel . --no-deps --no-build-isolation -w dist
79
+ python3 -m pip install --no-index dist/artos-1.0.0-py3-none-any.whl
80
+ ```
81
+
82
+ On a distribution that marks Python as externally managed (PEP 668), add
83
+ `--user --break-system-packages`, or install inside a virtual environment.
84
+
85
+ Requires **Python 3.10+**. There are **no runtime dependencies**: the standard
86
+ library is enough for text, PNG, PPM, SVG, WAV, MIDI, PDF, EPUB, DOCX, ZIP and
87
+ tar output. Pillow is optional and only used to preview JPEG/WebP images.
88
+
89
+ Run one command without entering the shell:
90
+
91
+ ```bash
92
+ artos world
93
+ artos collect ink-garden --fast
94
+ artos studios --tension
95
+ artos artists --region river-salon
96
+ artos enter quiet-press
97
+ artos gen all --count 4
98
+ artos gen poster --size large
99
+ artos gen paper --size large
100
+ artos muse "an archive that forgets"
101
+ artos critique /notes/creed.md
102
+ artos plan "a small exhibition"
103
+ artos source "botanical illustration" --count 3 # opt-in network
104
+ artos library "poetry" # opt-in network
105
+ artos selftest
106
+ ```
107
+
108
+ Flags:
109
+
110
+ | flag | meaning |
111
+ | --- | --- |
112
+ | `--home DIR` | data directory (default `$ARTOS_HOME` or `~/.local/share/artos`) |
113
+ | `--seed N` | atlas seed for this run |
114
+ | `--theme NAME` | `riso`, `ultramarine`, `vermilion`, `celadon`, `nocturne`, `paper`, `neon`, `solar`, `ash`, `orchid`, `mono` |
115
+ | `--ascii` | ASCII glyphs only |
116
+ | `--no-color` | disable ANSI colour |
117
+ | `--no-boot` | skip the boot banner |
118
+ | `--no-live` | disable streaming survey output |
119
+ | `--script PATH` | execute a `.art` workspace script |
120
+ | `--stop-on-error` | stop a script at the first error |
121
+
122
+ ---
123
+
124
+ ## The sandbox promise
125
+
126
+ ARTOS is a closed, synthetic atelier.
127
+
128
+ - Regions, studios, artists, works, presses and laboratories are generated on
129
+ this machine from a seed. The people and institutions are invented.
130
+ - Everything you make is yours. Generated writing is original combinatorial
131
+ work, not a quotation from a real author.
132
+ - Images, scores, books and datasets are produced by local algorithms. No
133
+ socket is opened by `collect`, `enter`, `gen` or `compose`.
134
+ - `source`, `library`, `fetch` and DeepSeek are explicit opt-ins. They are the
135
+ only commands that open a network connection.
136
+ - Public-domain material is always stored with a `.source.txt` attribution
137
+ sidecar next to it.
138
+ - The science in ARTOS is plausible fiction. Do not cite it as fact.
139
+
140
+ If you use real sources: check the licence, credit the creator, keep the
141
+ original, and do not present a generated work as somebody else's.
142
+
143
+ ---
144
+
145
+ ## The design rule
146
+
147
+ > The atlas is deep; the interface is flat. The most direct path wins.
148
+
149
+ A small set of verbs does everything:
150
+
151
+ | verb | direct meaning |
152
+ | --- | --- |
153
+ | `world` | see every region |
154
+ | `collect` | survey a region; write its studios and works |
155
+ | `studios` | list every studio, including institutions |
156
+ | `artists` | meet the people |
157
+ | `enter` | inhabit a studio; you are the author |
158
+ | `ls`, `cat`, `view` | read anything |
159
+ | `edit`, `add`, `write` | change or create anything |
160
+ | `gen` | generate a complete unique work of any kind |
161
+ | `muse` | expand a prompt into a working brief |
162
+ | `read`, `critique` | close read anything |
163
+ | `cutup`, `erase`, `constrain`, `remix` | transform an existing text |
164
+ | `source`, `library` | opt-in public-domain material with attribution |
165
+ | `leave` | return to `/` |
166
+
167
+ Everything else is a natural extension: `tree`, `graph`, `map`, `hex`,
168
+ `image`, `gallery`, `dash`, `timeline`, `grep`, `find`, `stat`, `palette`,
169
+ `curate`, `commission`.
170
+
171
+ ### Reseeding the atlas
172
+
173
+ ```bash
174
+ seed show
175
+ seed new
176
+ seed new --fresh
177
+ seed new --collect
178
+ seed 12345 --fresh
179
+ ```
180
+
181
+ By default the 12 base regions keep their familiar blueprint names
182
+ (`ink-garden`, `paper-cathedral`, …) while studios, artists, works and tensions
183
+ are regenerated from the new seed. `--fresh` generates new region names and
184
+ slugs too. `--stable` returns to the base names. Reseeding clears surveys,
185
+ dreamed regions and runtime state, but leaves workspace files in place.
186
+
187
+ `seed new` does **not** run the forge. Add `--collect` to survey immediately,
188
+ or use `collect all` / `dream` / `pack` afterward.
189
+
190
+ ---
191
+
192
+ ## The Atlas
193
+
194
+ Twelve base regions, each a different kind of art world:
195
+
196
+ | region | kind | what it generates |
197
+ | --- | --- | --- |
198
+ | `ink-garden` | poetry quarter | poets, translators, letterpress, reading rooms |
199
+ | `paper-cathedral` | fiction district | novelists, story writers, binders, editors |
200
+ | `glass-stage` | performance district | playwrights, directors, dramaturgs, designers |
201
+ | `ember-atelier` | visual arts quarter | painters, sculptors, printmakers, photographers |
202
+ | `hollow-conservatory` | sound district | composers, performers, sound artists, listening rooms |
203
+ | `salt-observatory` | research quarter | physicists, biologists, data scientists, field stations |
204
+ | `quiet-press` | publishing quarter | publishers, typesetters, zine makers, catalogues |
205
+ | `neon-lapidary` | new media lab | generative artists, creative coders, net and glitch artists |
206
+ | `moss-theatre` | oral tradition quarter | storytellers, singers, mask makers, oral historians |
207
+ | `cobalt-foundry` | design foundry | typographers, graphic designers, type founders, poster artists |
208
+ | `lunar-archive` | critical quarter | critics, curators, art historians, essayists |
209
+ | `river-salon` | correspondence quarter | letter writers, correspondents, diarists, salon hosts |
210
+
211
+ `collect` writes each studio as a real directory with `STUDIO.md`,
212
+ `WORKS.md`, `_meta.json`, generated works, notes and publications. `enter`
213
+ inhabits one studio and generates fresh work at its desk.
214
+
215
+ Every studio has a **practice runtime**: algorithm, pulse, mood, ink,
216
+ attention, open work and disciplines. Use `monitor`, `pulse`, `power`,
217
+ `kernel`, `proc`, `svc`, `events`, `ctl`.
218
+
219
+ ---
220
+
221
+ ## Generation: the complete catalogue
222
+
223
+ `gen` accepts a family name or a literal extension. `gen types` prints the
224
+ current catalogue (115 families).
225
+
226
+ ### Poetry and fixed forms
227
+
228
+ `poem`, `sonnet`, `haiku`, `tanka`, `cinquain`, `acrostic`, `limerick`,
229
+ `villanelle`, `ghazal`, `ode`, `elegy`, `epigram`, `lyric`, `hymn`,
230
+ `prosepoem`, `concrete`, `blackout`, `poetry`.
231
+
232
+ ### Fiction, essay and drama
233
+
234
+ `prose`, `story`, `fable`, `myth`, `tale`, `novella`, `book`, `essay`,
235
+ `manifesto`, `critique`, `review`, `letter`, `dialogue`, `play`, `screenplay`,
236
+ `memoir`, `biography`, `travel`, `fieldnote`, `journal`, `aphorism`, `proverb`,
237
+ `riddle`, `recipe`, `lecture`.
238
+
239
+ ### Publishing
240
+
241
+ `zine`, `magazine`, `newspaper`, `anthology`, `catalogue`, `exhibition`,
242
+ `library`, `index`, `booklet`, `epub`, `pdf`, `docx`, `rtf`, `tex`.
243
+
244
+ ### Science
245
+
246
+ `abstract`, `paper`, `labreport`, `hypothesis`, `protocol`, `dataset`,
247
+ `citation`, `peerreview`, `grant`, `scienposter`, `specimen`, `notebook`,
248
+ `plot`.
249
+
250
+ ### Visual, music and media
251
+
252
+ `image`, `art`, `svg`, `poster`, `palette`, `gallery`, `cssart`, `generative`,
253
+ `mandala`, `field`, `glitch`, `fractal`, `type`, `comic`, `storyboard`,
254
+ `music`, `score`, `audio`, `playlist`, `podcast`.
255
+
256
+ ### Code and data
257
+
258
+ `python`, `js`, `web`, `html`, `css`, `glsl`, `processing`, `sql`, `shell`,
259
+ `data`, `json`, `csv`, `yaml`, `toml`, `xml`, `feed`, `calendar`, `contact`,
260
+ `mail`, `chat`, `archive`, `dot`, `manifest`, `life`, `all`.
261
+
262
+ Sizes: `tiny` 4–12 lines · `small` 10–28 · `medium` 34–90 · `large` 120–320 ·
263
+ `huge` 500–1200 · `epic` 1600–4000. Images have their own dimensions per band.
264
+
265
+ ### Examples
266
+
267
+ ```bash
268
+ gen poem --prompt "a city of margins" --size large
269
+ gen sonnet --host ink-garden
270
+ gen story --size huge
271
+ gen manifest --size epic
272
+ gen play --size large
273
+ gen catalogue --format exhibition
274
+ gen paper --size large
275
+ gen dataset --size medium
276
+ gen image --size large --prompt "cold harbour"
277
+ gen poster --size large
278
+ gen music --size small
279
+ gen generative --prompt "flow field"
280
+ gen epub --size large
281
+ gen life --count 4
282
+ gen all --count 8
283
+ ```
284
+
285
+ Files are written to the right place: works to `/atlas/.../works`, books to
286
+ `publications`, science to `lab`, web to `web`, code to `code`, images to
287
+ `/gallery`, and so on. `--host` chooses a studio; without one, the active studio
288
+ is used, then the root layout.
289
+
290
+ ---
291
+
292
+ ## The wired mind
293
+
294
+ The mind is local and deterministic. It reads the atlas, your files and the
295
+ current runtime. DeepSeek is an optional second source, never silent.
296
+
297
+ ```bash
298
+ ask "what should I make next?"
299
+ ask "why is quiet-press tense?"
300
+ ask "tell me about Orin Fable"
301
+ brief
302
+ recommend
303
+ tensions
304
+ critique /notes/creed.md
305
+ critique quiet-press
306
+ dossier quiet-press --write
307
+ plan "a small exhibition"
308
+ agent "a small exhibition" --run
309
+ do "make a sonnet about weather"
310
+ analyze /library/poem.md
311
+ council "what is this studio avoiding?"
312
+ mind
313
+ mind context
314
+ muse "a city of margins"
315
+ ```
316
+
317
+ The mind can:
318
+
319
+ - interpret natural language against the atlas;
320
+ - write a situation brief and a list of next moves;
321
+ - find productive tensions and structural anomalies;
322
+ - close-read a file (syllables, rhyme, readability, mood, motifs, scores);
323
+ - critique a studio's practice;
324
+ - write a durable dossier;
325
+ - plan and optionally run safe, workspace-local steps;
326
+ - dream a new region and furnish it;
327
+ - compose a coherent pack for a studio, artist or region;
328
+ - expand a prompt into a working brief with form, constraint, material,
329
+ three doors and an anti-prompt.
330
+
331
+ It never plans a network command automatically.
332
+
333
+ ---
334
+
335
+ ## Human input as programming
336
+
337
+ ARTOS treats user input as part of the generation. The transformation commands
338
+ read an existing text, apply a visible rule, and write a new file while leaving
339
+ the original untouched.
340
+
341
+ ```bash
342
+ read /notes/creed.md
343
+ meter /library/poem.md
344
+ rhyme rain
345
+ syllables "the lamp left burning"
346
+ readability /library/essay.md
347
+ sentiment /library/letter.md
348
+ motif /library/story.md
349
+
350
+ cutup /library/poem.md --count 2
351
+ erase /library/poem.md --keep 2 --svg
352
+ constrain /library/essay.md --mode lipogram --letter e
353
+ constrain /notes/creed.md --mode n+7
354
+ constrain /library/poem.md --mode monosyllabic
355
+ remix /library/story.md --style "colder, more public"
356
+ annotate /library/poem.md
357
+ plain /library/essay.md
358
+ palette riso
359
+ curate /gallery --limit 6
360
+ provenance /library/poem.md --write
361
+ ```
362
+
363
+ `provenance` writes a small certificate: sha256, bytes, entropy, edition and
364
+ studio. It proves the bytes, not the authorship in law.
365
+
366
+ Programming cues are first-class. `cheat` prints the full sheet, including:
367
+
368
+ - every file is text until it is an image; every image is numbers until it is
369
+ meaning;
370
+ - a seed plus a rule is a style; a seed plus a mistake is a signature;
371
+ - write the loop first; the composition is what happens between iterations;
372
+ - keep the original; work on the copy;
373
+ - if the output is not reproducible, keep the notebook;
374
+ - a generative work is a score; the exhibition is a performance;
375
+ - comments are letters to the person who will debug the poem;
376
+ - print the intermediate state; meaning hides in the middle.
377
+
378
+ Scripts are plain lines. Save `/scripts/mine.art`:
379
+
380
+ ```text
381
+ # a small studio session
382
+ collect ink-garden --fast
383
+ enter ink-garden --count 2 --size small
384
+ gen poem --size large
385
+ critique /notes/creed.md
386
+ remember "The work is not the intention; the work is the evidence."
387
+ dash
388
+ ```
389
+
390
+ Run it:
391
+
392
+ ```bash
393
+ script /scripts/mine.art
394
+ script /scripts/mine.art --stop-on-error
395
+ ```
396
+
397
+ Pipes, variables, aliases and redirection all work:
398
+
399
+ ```text
400
+ grep "door" /library | wc
401
+ gen poem --prompt "rain" > /library/rain.md
402
+ alias m "muse"
403
+ alias c "collect"
404
+ ```
405
+
406
+ ---
407
+
408
+ ## Science as a studio
409
+
410
+ ```bash
411
+ science
412
+ hypothesis "attention in small rooms"
413
+ method "attention in small rooms"
414
+ dataset "attention" --size medium
415
+ experiment "attention" --size small
416
+ paper "attention" --size large
417
+ cite
418
+ peer "attention"
419
+ lab
420
+ ```
421
+
422
+ `experiment` writes a hypothesis, a protocol, a dataset and a lab report. The
423
+ science is plausible fiction: references are invented, results are simulated,
424
+ and the interface says so.
425
+
426
+ ---
427
+
428
+ ## Public-domain sources and the online switch
429
+
430
+ ARTOS is offline by default. Four commands can open a socket:
431
+
432
+ ```bash
433
+ source "botanical illustration" --count 3
434
+ source --kind portrait --type png
435
+ library "poetry" --count 2
436
+ fetch https://example.com/file.pdf --max 8M
437
+ ai key sk-... # DeepSeek, optional
438
+ ai mode auto
439
+ ai test
440
+ ```
441
+
442
+ - `source` searches Wikimedia Commons and Openverse, downloads bounded images,
443
+ and writes `.meta.json` + `.source.txt` attribution.
444
+ - `library` searches Project Gutenberg via Gutendex, downloads public-domain
445
+ text, strips the Gutenberg boilerplate, and writes attribution.
446
+ - `fetch` is the only general web download. It refuses private/loopback
447
+ addresses, re-checks redirects, and enforces a byte limit.
448
+ - DeepSeek is metered in tokens and approximate USD. `ai budget 1.00` caps
449
+ spend; `0` means unlimited. The key is stored in `secret.json` (0600) or read
450
+ from `DEEPSEEK_API_KEY`.
451
+
452
+ Images, WAV, MIDI, PDF, EPUB, DOCX and all mechanical state are always local.
453
+ `effects` can turn a small mechanical consequence into one or two sentences of
454
+ in-world narration; it is off without a key and never changes the atlas.
455
+
456
+ ---
457
+
458
+ ## Studio runtime
459
+
460
+ The atlas is alive in a small way. Each studio has a practice with a pulse.
461
+
462
+ ```bash
463
+ monitor
464
+ monitor quiet-press
465
+ monitor ink-garden
466
+ pulse --steps 3
467
+ power on
468
+ power off
469
+ heartbeat off
470
+ kernel algorithm "slow revision"
471
+ kernel ink 80
472
+ proc list
473
+ proc start "a new poem"
474
+ proc advance "a new poem"
475
+ proc finish "a new poem"
476
+ svc list
477
+ svc restart letterpress
478
+ events --limit 20
479
+ ctl power off
480
+ ```
481
+
482
+ Writing inside a studio changes its ink, attention and open work. Writing
483
+ outside a studio does not.
484
+
485
+ ---
486
+
487
+ ## Workspace layout
488
+
489
+ The workspace is a real directory under `$ARTOS_HOME` (default
490
+ `~/.local/share/artos`).
491
+
492
+ | path | meaning |
493
+ | --- | --- |
494
+ | `/atlas` | regions, studios, works, metadata |
495
+ | `/gallery` | images, posters, SVG, terminal art, palettes |
496
+ | `/library` | poems, books, essays, public-domain sources |
497
+ | `/press` | zines, magazines, catalogues, exhibitions, HTML editions |
498
+ | `/lab` | hypotheses, protocols, datasets, papers |
499
+ | `/drop` | loose files, packs, deliveries, experiments |
500
+ | `/notes` | creeds, memory, dossiers, critiques, conversations |
501
+ | `/scripts` | `.art` scripts |
502
+ | `/root` | the author's home |
503
+ | `/vault` | reserved for future sealed material |
504
+
505
+ Everything is inspectable with ordinary tools. `workspace` shows the layout;
506
+ `mount`, `df`, `du`, `tree`, `find`, `grep` work as expected.
507
+
508
+ ---
509
+
510
+ ## Themes and settings
511
+
512
+ ```bash
513
+ theme riso
514
+ theme ultramarine
515
+ ascii on
516
+ settings form "free verse"
517
+ settings palette riso
518
+ settings constraint none
519
+ settings ai_mode auto
520
+ settings natural_language on
521
+ ```
522
+
523
+ Themes: `riso` (default), `ultramarine`, `vermilion`, `celadon`, `nocturne`,
524
+ `paper`, `neon`, `solar`, `ash`, `orchid`, `mono`. Colour degrades to plain
525
+ text on pipes, under `NO_COLOR`, or with `--ascii`.
526
+
527
+ ---
528
+
529
+ ## Tab completion
530
+
531
+ Completion is context-aware. It covers every command and alias, flags,
532
+ regions, studios, artists, file and directory paths, generation kinds,
533
+ extensions, sizes, HTML formats, themes, settings, AI modes and subcommands,
534
+ source kinds, constraints, and runtime actions.
535
+
536
+ ```text
537
+ gen po<TAB> → poem / poetry / poster
538
+ enter qu<TAB> → quiet-press ...
539
+ collect ink<TAB> → ink-garden
540
+ gen poem --size <TAB> → tiny / small / medium / large ...
541
+ source --kind b<TAB> → botanical
542
+ constrain x --mode <TAB> → lipogram / n+7 / monosyllabic ...
543
+ ```
544
+
545
+ ---
546
+
547
+ ## Tests
548
+
549
+ ```bash
550
+ python3 -m unittest discover -s tests -v
551
+ ```
552
+
553
+ The suite covers the parser, workspace sandbox, atlas determinism, graphics,
554
+ poetics, exports, runtime, completion, the full generation catalogue, and the
555
+ command surface. It does not use the network or a DeepSeek key.
556
+
557
+ Build a release:
558
+
559
+ ```bash
560
+ python3 -m build # if `build` is installed
561
+ # or, offline:
562
+ python3 -m pip wheel . --no-deps --no-build-isolation -w dist
563
+ ```
564
+
565
+ ---
566
+
567
+ ## Architecture
568
+
569
+ ```text
570
+ src/artos/
571
+ cli.py argparse entry point (`artos` / `at`)
572
+ shell.py pipelines, natural-language fallback, prompt, banner
573
+ parser.py quotes, variables, pipes, redirection
574
+ registry.py command registry and shared argument parsing
575
+ session.py identity, seed, atlas, workspace, notes, AI config
576
+ storage.py state.json, secret.json, exports
577
+ workspace.py sandboxed VFS and seeded starter files
578
+ universe.py the Atlas: regions, studios, artists, works, tensions
579
+ runtime.py living studios: pulse, ink, attention, processes
580
+ generator.py the forge: 115 families, 20+ real formats
581
+ poetics.py poetry/prose/science generation and close reading
582
+ graphics.py 20 procedural styles, PNG/PPM/SVG/ANSI
583
+ audio.py WAV synthesis and Standard MIDI Files
584
+ exports.py PDF, EPUB 3, DOCX, RTF, gzip
585
+ intelligence.py the local mind + optional DeepSeek
586
+ deepseek.py metered API bridge
587
+ webimages.py opt-in Wikimedia/Openverse images
588
+ webtext.py opt-in Project Gutenberg texts
589
+ webfetch.py explicit bounded fetch
590
+ completion.py context-aware Tab completion
591
+ tui.py interactive loop and dashboard
592
+ theme.py ANSI palettes and renderers
593
+ commands/ system, workspace, files, views, atlas, studio,
594
+ craft, science, forge, mind, source, notes, transfer,
595
+ social, synth
596
+ ```
597
+
598
+ The design is deliberately dependency-free and deterministic. Everything that
599
+ can be a file is a file; everything that can be read is text; everything that
600
+ is generated is seeded.
601
+
602
+ ---
603
+
604
+ ## License
605
+
606
+ MIT. See `LICENSE`.
607
+
608
+ The root of all art is attention.