ommlds 0.0.0.dev496__py3-none-any.whl → 0.0.0.dev498__py3-none-any.whl

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. ommlds/.omlish-manifests.json +1 -1
  2. ommlds/cli/main.py +2 -2
  3. ommlds/cli/secrets.py +1 -1
  4. ommlds/minichain/__init__.py +45 -9
  5. ommlds/minichain/_dataclasses.py +1229 -1071
  6. ommlds/minichain/_typedvalues.py +11 -4
  7. ommlds/minichain/chat/content.py +42 -0
  8. ommlds/minichain/chat/messages.py +21 -14
  9. ommlds/minichain/chat/stream/types.py +1 -1
  10. ommlds/minichain/chat/templating.py +3 -3
  11. ommlds/minichain/chat/transforms/metadata.py +3 -3
  12. ommlds/minichain/content/__init__.py +10 -1
  13. ommlds/minichain/content/_marshal.py +30 -17
  14. ommlds/minichain/content/code.py +11 -2
  15. ommlds/minichain/content/composite.py +28 -0
  16. ommlds/minichain/content/{types.py → content.py} +0 -4
  17. ommlds/minichain/content/emphasis.py +27 -0
  18. ommlds/minichain/content/images.py +1 -2
  19. ommlds/minichain/content/json.py +1 -2
  20. ommlds/minichain/content/link.py +13 -0
  21. ommlds/minichain/content/markdown.py +12 -0
  22. ommlds/minichain/content/metadata.py +10 -0
  23. ommlds/minichain/content/namespaces.py +2 -3
  24. ommlds/minichain/content/placeholders.py +2 -3
  25. ommlds/minichain/content/quote.py +12 -3
  26. ommlds/minichain/content/recursive.py +12 -0
  27. ommlds/minichain/content/section.py +16 -4
  28. ommlds/minichain/content/sequence.py +13 -4
  29. ommlds/minichain/content/standard.py +10 -15
  30. ommlds/minichain/content/tag.py +12 -3
  31. ommlds/minichain/content/templates.py +1 -2
  32. ommlds/minichain/content/text.py +1 -2
  33. ommlds/minichain/content/transform/json.py +55 -0
  34. ommlds/minichain/content/transform/markdown.py +8 -0
  35. ommlds/minichain/content/transform/materialize.py +19 -78
  36. ommlds/minichain/content/transform/metadata.py +16 -0
  37. ommlds/minichain/content/transform/prepare.py +1 -5
  38. ommlds/minichain/content/transform/recursive.py +97 -0
  39. ommlds/minichain/content/transform/standard.py +43 -0
  40. ommlds/minichain/content/transform/stringify.py +1 -1
  41. ommlds/minichain/content/transform/strings.py +16 -7
  42. ommlds/minichain/content/transform/templates.py +25 -0
  43. ommlds/minichain/content/visitors.py +231 -0
  44. ommlds/minichain/metadata.py +58 -1
  45. ommlds/minichain/tools/execution/catalog.py +1 -1
  46. ommlds/minichain/tools/execution/errorhandling.py +3 -2
  47. ommlds/minichain/tools/execution/errors.py +1 -1
  48. ommlds/minichain/tools/execution/executors.py +1 -1
  49. ommlds/minichain/tools/fns.py +1 -1
  50. ommlds/minichain/tools/reflect.py +1 -1
  51. ommlds/minichain/tools/types.py +1 -1
  52. ommlds/minichain/vectors/embeddings.py +1 -1
  53. ommlds/tools/git.py +74 -63
  54. {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/METADATA +4 -4
  55. {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/RECORD +59 -49
  56. ommlds/minichain/content/transform/base.py +0 -63
  57. ommlds/minichain/content/transform/interleave.py +0 -68
  58. ommlds/minichain/content/transform/squeeze.py +0 -59
  59. {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/WHEEL +0 -0
  60. {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/entry_points.txt +0 -0
  61. {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/licenses/LICENSE +0 -0
  62. {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/top_level.txt +0 -0
@@ -929,7 +929,7 @@
929
929
  "module": ".tools.git",
930
930
  "attr": null,
931
931
  "file": "ommlds/tools/git.py",
932
- "line": 190,
932
+ "line": 196,
933
933
  "value": {
934
934
  "!omdev.tools.git.messages.GitMessageGeneratorManifest": {
935
935
  "module": "ommlds.tools.git",
ommlds/cli/main.py CHANGED
@@ -16,7 +16,7 @@ from omlish.argparse import all as ap
16
16
  from omlish.logs import all as logs
17
17
 
18
18
  from .inject import bind_main
19
- from .secrets import install_secrets
19
+ from .secrets import install_env_secrets
20
20
  from .sessions.base import Session
21
21
  from .sessions.chat.configs import ChatConfig
22
22
  from .sessions.chat.interfaces.bare.configs import BareInterfaceConfig
@@ -387,7 +387,7 @@ async def _a_main(argv: ta.Any = None) -> None:
387
387
 
388
388
  _process_main_extra_args(args)
389
389
 
390
- install_secrets()
390
+ install_env_secrets()
391
391
 
392
392
  profile_cls = PROFILE_TYPES[args.profile]
393
393
  profile = profile_cls()
ommlds/cli/secrets.py CHANGED
@@ -6,7 +6,7 @@ from omdev.home.secrets import load_secrets
6
6
  ##
7
7
 
8
8
 
9
- def install_secrets() -> None:
9
+ def install_env_secrets() -> None:
10
10
  # FIXME: lol garbage
11
11
  for key in [
12
12
  'ANTHROPIC_API_KEY',
@@ -227,11 +227,10 @@ with _lang.auto_proxy_init(
227
227
 
228
228
  ##
229
229
 
230
- from .content.transform.base import ( # noqa
231
- ContentTransform,
232
- )
233
-
234
230
  from .content.transform.materialize import ( # noqa
231
+ ContentMaterializer,
232
+
233
+ DefaultContentMaterializer,
235
234
  materialize_content,
236
235
  )
237
236
 
@@ -257,12 +256,31 @@ with _lang.auto_proxy_init(
257
256
 
258
257
  from .content.code import ( # noqa
259
258
  CodeContent,
259
+ InlineCodeContent,
260
+ BlockCodeContent,
261
+ )
262
+
263
+ from .content.composite import ( # noqa
264
+ CompositeContent,
265
+ )
266
+
267
+ from .content.content import ( # noqa
268
+ BaseContent,
269
+
270
+ Content,
271
+ CONTENT_TYPES,
260
272
  )
261
273
 
262
274
  from .content.dynamic import ( # noqa
263
275
  DynamicContent,
264
276
  )
265
277
 
278
+ from .content.emphasis import ( # noqa
279
+ BoldContent,
280
+ ItalicContent,
281
+ BoldItalicContent,
282
+ )
283
+
266
284
  from .content.images import ( # noqa
267
285
  ImageContent,
268
286
  )
@@ -271,9 +289,19 @@ with _lang.auto_proxy_init(
271
289
  JsonContent,
272
290
  )
273
291
 
292
+ from .content.link import ( # noqa
293
+ LinkContent,
294
+ )
295
+
296
+ from .content.markdown import ( # noqa
297
+ MarkdownContent,
298
+ )
299
+
274
300
  from .content.metadata import ( # noqa
275
301
  ContentMetadata,
276
302
  ContentMetadatas,
303
+
304
+ ContentOriginal,
277
305
  )
278
306
 
279
307
  from .content.namespaces import ( # noqa
@@ -302,6 +330,10 @@ with _lang.auto_proxy_init(
302
330
  RAW_CONTENT_TYPES,
303
331
  )
304
332
 
333
+ from .content.recursive import ( # noqa
334
+ RecursiveContent,
335
+ )
336
+
305
337
  from .content.section import ( # noqa
306
338
  SectionContent,
307
339
  )
@@ -329,12 +361,16 @@ with _lang.auto_proxy_init(
329
361
  TextContent,
330
362
  )
331
363
 
332
- from .content.types import ( # noqa
333
- BaseContent,
334
- LeafContent,
364
+ from .content.visitors import ( # noqa
365
+ ContentVisitor,
335
366
 
336
- Content,
337
- CONTENT_TYPES,
367
+ StandardContentVisitorTypeError,
368
+ StandardContentVisitor,
369
+
370
+ StaticContentVisitorTypeError,
371
+ StaticContentVisitor,
372
+
373
+ ContentTransform,
338
374
  )
339
375
 
340
376
  ##