agent-bios 0.19.2 → 0.19.4

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 (62) hide show
  1. package/DEPENDENCIES.md +76 -20
  2. package/INSTALL.md +1 -1
  3. package/README.md +55 -5
  4. package/claude/agents/sweep.md +2 -1
  5. package/claude/agents/workhorse.md +2 -2
  6. package/claude/guides/claude-prompting.md +101 -15
  7. package/claude/guides/cli-multi-model-workflow.md +5 -5
  8. package/claude/guides/coding-staged-workflow.md +17 -0
  9. package/claude/guides/gpt-prompting.md +40 -9
  10. package/claude/guides/llm-capability-boundary.md +7 -1
  11. package/claude/guides/tooling-gotchas.md +20 -1
  12. package/claude/guides/ui-design/visual-direction.md +88 -0
  13. package/claude/guides/ui-design.md +90 -0
  14. package/claude/guides/verification-discipline.md +10 -1
  15. package/claude/hooks/tooling-gotchas-hook.py +41 -0
  16. package/codex/agents/reviewer.toml +2 -2
  17. package/codex/agents/sweep.toml +1 -1
  18. package/codex/agents/workhorse.toml +2 -2
  19. package/codex/guides/claude-prompting.md +101 -15
  20. package/codex/guides/cli-multi-model-workflow.md +5 -5
  21. package/codex/guides/coding-staged-workflow.md +17 -0
  22. package/codex/guides/gpt-prompting.md +40 -9
  23. package/codex/guides/llm-capability-boundary.md +7 -1
  24. package/codex/guides/tooling-gotchas.md +20 -1
  25. package/codex/guides/ui-design/visual-direction.md +88 -0
  26. package/codex/guides/ui-design.md +90 -0
  27. package/codex/guides/verification-discipline.md +10 -1
  28. package/compose/app_bridge/scripts/bridge.py +23 -6
  29. package/compose/app_desktop/server.py +250 -0
  30. package/compose/domains.json +1 -0
  31. package/compose/host_platform.py +121 -0
  32. package/compose/instructions-state.py +5 -2
  33. package/compose/instructions_app.py +281 -48
  34. package/compose/instructions_catalog.py +2 -2
  35. package/compose/instructions_import.py +19 -11
  36. package/compose/instructions_install.py +77 -11
  37. package/compose/instructions_session.py +6 -6
  38. package/compose/instructions_setup.py +47 -10
  39. package/compose/instructions_setup_cli.py +31 -10
  40. package/compose/instructions_setup_i18n.py +6 -3
  41. package/compose/instructions_store.py +6 -6
  42. package/compose/instructions_transaction.py +8 -6
  43. package/compose/instructions_ui_runtime.py +4 -3
  44. package/compose/native_cli.py +52 -0
  45. package/compose/runtime_entry.py +58 -0
  46. package/compose/setup/START.md +1 -1
  47. package/compose/windows_deploy.py +719 -0
  48. package/docs/instructions.md +1 -0
  49. package/docs/releases/0.19.3.md +107 -0
  50. package/docs/releases/0.19.4.md +99 -0
  51. package/docs/session-model.md +8 -0
  52. package/docs/setup.md +39 -3
  53. package/docs/windows.md +99 -0
  54. package/install.sh +13 -6
  55. package/launch/agent-launch.py +31 -8
  56. package/launch/agent-launch.toml +49 -24
  57. package/launch/agent-launch.zsh +11 -1
  58. package/launch/provision-venv.sh +1 -1
  59. package/package.json +9 -4
  60. package/provenance.json +1 -1
  61. package/session-cost.py +61 -9
  62. package/wrappers/codex-helm.sh +6 -6
@@ -0,0 +1,58 @@
1
+ """Application dependency entry for ordinary and isolated embeddable Python."""
2
+ from __future__ import annotations
3
+ import argparse
4
+ import importlib
5
+ import importlib.metadata
6
+ import os
7
+ from pathlib import Path
8
+ import runpy
9
+ import sys
10
+
11
+
12
+ def main(argv=None):
13
+ # A Windows PowerShell 5.1 caller may prefix piped input with a UTF-8 BOM.
14
+ for stream, encoding in ((sys.stdin, "utf-8-sig"), (sys.stdout, "utf-8"), (sys.stderr, "utf-8")):
15
+ if hasattr(stream, "reconfigure"):
16
+ stream.reconfigure(encoding=encoding, errors="strict")
17
+ argv = list(sys.argv[1:] if argv is None else argv)
18
+ parser = argparse.ArgumentParser(description=__doc__)
19
+ parser.add_argument('--dependencies', required=True, type=Path)
20
+ parser.add_argument('--probe', choices=['jsonschema'])
21
+ if '--script' in argv:
22
+ index = argv.index('--script')
23
+ if len(argv) <= index + 1:
24
+ parser.error('--script requires a file')
25
+ args = parser.parse_args(argv[:index])
26
+ script, tail = Path(argv[index+1]), argv[index+2:]
27
+ else:
28
+ args = parser.parse_args(argv)
29
+ script, tail = None, []
30
+ dependencies = args.dependencies.resolve(strict=True)
31
+ if not dependencies.is_dir():
32
+ parser.error('dependencies must be a directory')
33
+ sys.dont_write_bytecode = True
34
+ sys.path.insert(0, str(dependencies))
35
+ os.environ['PYTHONDONTWRITEBYTECODE'] = '1'
36
+ os.environ['AGENT_BIOS_PYTHON_EXECUTABLE'] = str(Path(sys.executable).resolve())
37
+ os.environ['AGENT_BIOS_PYTHON_ENTRY'] = str(Path(__file__).resolve())
38
+ os.environ['AGENT_BIOS_PYTHON_DEPS'] = str(dependencies)
39
+ if args.probe:
40
+ module = importlib.import_module(args.probe)
41
+ getattr(module, 'Draft202012Validator')
42
+ print(importlib.metadata.version(args.probe))
43
+ return 0
44
+ if script is None:
45
+ parser.error('a script or probe is required')
46
+ script = script.resolve(strict=True)
47
+ if not script.is_file() or script.suffix != '.py':
48
+ parser.error('script must be a Python file')
49
+ # Isolated Python does not add the script directory to sys.path. Do this only
50
+ # for the explicitly selected application/helper, not a user's working directory.
51
+ sys.path.insert(0, str(script.parent))
52
+ sys.argv = [str(script), *tail]
53
+ runpy.run_path(str(script), run_name='__main__')
54
+ return 0
55
+
56
+
57
+ if __name__ == '__main__':
58
+ raise SystemExit(main())
@@ -3,7 +3,7 @@
3
3
  This guide uses the same installation controller as the terminal wizard. The
4
4
  conversation collects choices and presents effects; `setup` validates and executes
5
5
  them. It needs local command and file access on the intended machine, Bash, and
6
- Python 3.11 or newer. Codex CLI, an additional model login, and Textual are not
6
+ Python 3.12 or newer. Codex CLI, an additional model login, and Textual are not
7
7
  requirements for this route.
8
8
 
9
9
  ## Start without an installed skill