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.
- ommlds/.omlish-manifests.json +1 -1
- ommlds/cli/main.py +2 -2
- ommlds/cli/secrets.py +1 -1
- ommlds/minichain/__init__.py +45 -9
- ommlds/minichain/_dataclasses.py +1229 -1071
- ommlds/minichain/_typedvalues.py +11 -4
- ommlds/minichain/chat/content.py +42 -0
- ommlds/minichain/chat/messages.py +21 -14
- ommlds/minichain/chat/stream/types.py +1 -1
- ommlds/minichain/chat/templating.py +3 -3
- ommlds/minichain/chat/transforms/metadata.py +3 -3
- ommlds/minichain/content/__init__.py +10 -1
- ommlds/minichain/content/_marshal.py +30 -17
- ommlds/minichain/content/code.py +11 -2
- ommlds/minichain/content/composite.py +28 -0
- ommlds/minichain/content/{types.py → content.py} +0 -4
- ommlds/minichain/content/emphasis.py +27 -0
- ommlds/minichain/content/images.py +1 -2
- ommlds/minichain/content/json.py +1 -2
- ommlds/minichain/content/link.py +13 -0
- ommlds/minichain/content/markdown.py +12 -0
- ommlds/minichain/content/metadata.py +10 -0
- ommlds/minichain/content/namespaces.py +2 -3
- ommlds/minichain/content/placeholders.py +2 -3
- ommlds/minichain/content/quote.py +12 -3
- ommlds/minichain/content/recursive.py +12 -0
- ommlds/minichain/content/section.py +16 -4
- ommlds/minichain/content/sequence.py +13 -4
- ommlds/minichain/content/standard.py +10 -15
- ommlds/minichain/content/tag.py +12 -3
- ommlds/minichain/content/templates.py +1 -2
- ommlds/minichain/content/text.py +1 -2
- ommlds/minichain/content/transform/json.py +55 -0
- ommlds/minichain/content/transform/markdown.py +8 -0
- ommlds/minichain/content/transform/materialize.py +19 -78
- ommlds/minichain/content/transform/metadata.py +16 -0
- ommlds/minichain/content/transform/prepare.py +1 -5
- ommlds/minichain/content/transform/recursive.py +97 -0
- ommlds/minichain/content/transform/standard.py +43 -0
- ommlds/minichain/content/transform/stringify.py +1 -1
- ommlds/minichain/content/transform/strings.py +16 -7
- ommlds/minichain/content/transform/templates.py +25 -0
- ommlds/minichain/content/visitors.py +231 -0
- ommlds/minichain/metadata.py +58 -1
- ommlds/minichain/tools/execution/catalog.py +1 -1
- ommlds/minichain/tools/execution/errorhandling.py +3 -2
- ommlds/minichain/tools/execution/errors.py +1 -1
- ommlds/minichain/tools/execution/executors.py +1 -1
- ommlds/minichain/tools/fns.py +1 -1
- ommlds/minichain/tools/reflect.py +1 -1
- ommlds/minichain/tools/types.py +1 -1
- ommlds/minichain/vectors/embeddings.py +1 -1
- ommlds/tools/git.py +74 -63
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/METADATA +4 -4
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/RECORD +59 -49
- ommlds/minichain/content/transform/base.py +0 -63
- ommlds/minichain/content/transform/interleave.py +0 -68
- ommlds/minichain/content/transform/squeeze.py +0 -59
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/WHEEL +0 -0
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/entry_points.txt +0 -0
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/licenses/LICENSE +0 -0
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/top_level.txt +0 -0
ommlds/.omlish-manifests.json
CHANGED
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
|
|
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
|
-
|
|
390
|
+
install_env_secrets()
|
|
391
391
|
|
|
392
392
|
profile_cls = PROFILE_TYPES[args.profile]
|
|
393
393
|
profile = profile_cls()
|
ommlds/cli/secrets.py
CHANGED
ommlds/minichain/__init__.py
CHANGED
|
@@ -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.
|
|
333
|
-
|
|
334
|
-
LeafContent,
|
|
364
|
+
from .content.visitors import ( # noqa
|
|
365
|
+
ContentVisitor,
|
|
335
366
|
|
|
336
|
-
|
|
337
|
-
|
|
367
|
+
StandardContentVisitorTypeError,
|
|
368
|
+
StandardContentVisitor,
|
|
369
|
+
|
|
370
|
+
StaticContentVisitorTypeError,
|
|
371
|
+
StaticContentVisitor,
|
|
372
|
+
|
|
373
|
+
ContentTransform,
|
|
338
374
|
)
|
|
339
375
|
|
|
340
376
|
##
|