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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ommlds/.omlish-manifests.json,sha256=
|
|
1
|
+
ommlds/.omlish-manifests.json,sha256=4oWvJPTzSD23kh5mTOn9Re8mSPVsnGcbwa_K6vIytq0,27872
|
|
2
2
|
ommlds/README.md,sha256=xhbl2n19GznXrIzAGdlX8PAYJYsOo_Zu63I7G1UFRZE,398
|
|
3
3
|
ommlds/__about__.py,sha256=WdimIvmwSVnOcBFSsy_exjgKdKAgkDQfg0aF5Qmd0Eo,1901
|
|
4
4
|
ommlds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -104,8 +104,8 @@ ommlds/cli/__main__.py,sha256=1ffCb0fcUOJMzxROJmJRXQ8PSOVYv7KrcuBtT95cf0c,140
|
|
|
104
104
|
ommlds/cli/_dataclasses.py,sha256=bvMEFRUiIrRvWhlvxbEYCkmwA5yu-SKgfVuDoSfYORo,166944
|
|
105
105
|
ommlds/cli/asyncs.py,sha256=NAMzzaZq7ORjlbbBB_Y9vcM9qoBpGf4VJNtl_3p_8G4,629
|
|
106
106
|
ommlds/cli/inject.py,sha256=Bt-T-vQIbp8vh6q21Tt3wDztFZ9FPxNhH2ocrAfjArE,815
|
|
107
|
-
ommlds/cli/main.py,sha256=
|
|
108
|
-
ommlds/cli/secrets.py,sha256=
|
|
107
|
+
ommlds/cli/main.py,sha256=n_13EimSCt2x9wkn4tULk9gNOvuCHuHeDcuEYtrcUgQ,11172
|
|
108
|
+
ommlds/cli/secrets.py,sha256=wwtcKjDH34wywfs5zixx3TMbWXCvlZj-PwQoLMM7Fqs,473
|
|
109
109
|
ommlds/cli/backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
110
110
|
ommlds/cli/backends/catalog.py,sha256=snQSdUyFiNJhvzVRShBqqp1bZpZlmoKvonypNMZz3HI,3002
|
|
111
111
|
ommlds/cli/backends/configs.py,sha256=RvNWxsJDSsHc0eWA6hI1_3n__HU7rXAUmzS06ykMPh0,137
|
|
@@ -236,15 +236,15 @@ ommlds/cli/state/storage.py,sha256=Wr8DVuEGUxfFJn0tMWNTVdint6NBDdLKstNWSjx8sKw,3
|
|
|
236
236
|
ommlds/datasets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
237
237
|
ommlds/datasets/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
238
238
|
ommlds/datasets/lib/movies.py,sha256=LmdfoXsZU9XMM_r-sxCLv_s06BFzwWO4xUj6sc9XVcI,1961
|
|
239
|
-
ommlds/minichain/__init__.py,sha256=
|
|
240
|
-
ommlds/minichain/_dataclasses.py,sha256=
|
|
239
|
+
ommlds/minichain/__init__.py,sha256=QrVg3CYm-g2zkMYWfS-v5XqiLQLAxhNLi-Fok0RgcT8,13022
|
|
240
|
+
ommlds/minichain/_dataclasses.py,sha256=fGfDbbBfLJsQ8IpNcOgodhELktDz7pLG7Rzv2YnZoPQ,920381
|
|
241
241
|
ommlds/minichain/_marshal.py,sha256=n9PGWrHhvAmGIc7KDOYt3IF9Z6G0ncXskyICTp3Ji6k,1923
|
|
242
|
-
ommlds/minichain/_typedvalues.py,sha256=
|
|
242
|
+
ommlds/minichain/_typedvalues.py,sha256=NEQ7YCD7YtYJoEKHRwBksHFv-CULvyXniju_IeVfD5s,2349
|
|
243
243
|
ommlds/minichain/completion.py,sha256=lQ0LfCIYZsvDqteHhhDIv16D2_gn_xMfEL0ouywE5Yo,1033
|
|
244
244
|
ommlds/minichain/configs.py,sha256=WwrHxfkDAfo_RtuCqUgySthj-2W26lZbpuQoghUyGNw,167
|
|
245
245
|
ommlds/minichain/envs.py,sha256=vE2CSeT6KYxOpPY72VbFLzGUnBERYdhfiEUlvSRHkXE,225
|
|
246
246
|
ommlds/minichain/json.py,sha256=0_5rV5Zi2qPOvXi2CLAc5DF7FN3jK3ABbjoKdjtTuVo,360
|
|
247
|
-
ommlds/minichain/metadata.py,sha256
|
|
247
|
+
ommlds/minichain/metadata.py,sha256=-YqKhleNrAXp1M9b6EHZuCYC8oX57ohy_3RaZJ6mgSk,2378
|
|
248
248
|
ommlds/minichain/resources.py,sha256=CcFIUrxPGuxUabG74zL0yByZsyGJISxLVK1nULSZPyo,5488
|
|
249
249
|
ommlds/minichain/search.py,sha256=YOMJKkTLLSfGKaxltk9bf5OdPq7MpCtLOC3NZ_4iq-E,1269
|
|
250
250
|
ommlds/minichain/standard.py,sha256=l7C6EXE4FgfJOphl0vHMwCq4FvMNViloz7pPfMsRnGU,2637
|
|
@@ -320,12 +320,13 @@ ommlds/minichain/backends/strings/parsing.py,sha256=Etmk04BnKvCMtGg4AgbvxsPGvfRc
|
|
|
320
320
|
ommlds/minichain/backends/strings/resolving.py,sha256=b2Ivt6Xi50Jv8U7ef6CkMWzJDTBF28pqyNN4_9z39TY,5861
|
|
321
321
|
ommlds/minichain/chat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
322
322
|
ommlds/minichain/chat/_marshal.py,sha256=M3p093nxzxITbznc--P-tyCXuWDHrq4JFKTZAx6XWdk,740
|
|
323
|
+
ommlds/minichain/chat/content.py,sha256=NpxeYxP7WOWq94UR9AY0THVRIzWAcgP1w7r_srgntOk,1098
|
|
323
324
|
ommlds/minichain/chat/formats.py,sha256=LmlU7iu8PMJuroFTmyWfP4tXvLjj5VNxdAp1Us9MSAA,562
|
|
324
325
|
ommlds/minichain/chat/history.py,sha256=GI10mTCr8yv0mxJRK-YVtYqOuUjBvX5Su5FYYmLpPxU,1566
|
|
325
|
-
ommlds/minichain/chat/messages.py,sha256=
|
|
326
|
+
ommlds/minichain/chat/messages.py,sha256=xoFJXHl8SjoxzOw9AHxMgUK-UR6OlH3HKNCKb1Wg5hw,3492
|
|
326
327
|
ommlds/minichain/chat/metadata.py,sha256=V8EUqUsiAITtIae8SC_4YyyBBvciG34jRuSylql4AvU,248
|
|
327
328
|
ommlds/minichain/chat/services.py,sha256=HzP35CLOz-vCptUUpuehI5yNJorTtY64gwrb6ZWNfwI,919
|
|
328
|
-
ommlds/minichain/chat/templating.py,sha256=
|
|
329
|
+
ommlds/minichain/chat/templating.py,sha256=0JwWOL6gsZmtmQddAIBOP2J_Rz47DAYSg_1f_C_roC0,3152
|
|
329
330
|
ommlds/minichain/chat/types.py,sha256=tHYR1jRGEStNbcDebMrEuHQBNpYh8id2MS0-1Fzxwgs,430
|
|
330
331
|
ommlds/minichain/chat/choices/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
331
332
|
ommlds/minichain/chat/choices/adapters.py,sha256=Keroaj0B5YEYPF3k0fOQK6JUZnM1XVFThGB5Uv689Sc,629
|
|
@@ -340,7 +341,7 @@ ommlds/minichain/chat/stream/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
340
341
|
ommlds/minichain/chat/stream/_marshal.py,sha256=eUdDrjPKYKwgaNrntZsuquB121pcDcW9lyNRy8bqVsw,382
|
|
341
342
|
ommlds/minichain/chat/stream/joining.py,sha256=U-z1MJTIuw0LIJCUQ80RcGROpPgbqG6FHVjuTe7j57s,2416
|
|
342
343
|
ommlds/minichain/chat/stream/services.py,sha256=Ikaf8fofoPW6UM3MajAGgdc0U6VU8jhn0F6r-FX5XFc,1102
|
|
343
|
-
ommlds/minichain/chat/stream/types.py,sha256=
|
|
344
|
+
ommlds/minichain/chat/stream/types.py,sha256=AG5yMSRBo2ynoJTF0zBgYVjJbrafsptIo7Ex1QtBbdQ,1310
|
|
344
345
|
ommlds/minichain/chat/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
345
346
|
ommlds/minichain/chat/tools/execution.py,sha256=tCPsz1kCt5RcoRX7dwfaJRvObniJJv_D2hCwz1Slo_A,573
|
|
346
347
|
ommlds/minichain/chat/tools/ids.py,sha256=DFBKrpeDTCnMcU-P38VbPWX0YBDaz_HzMgx3yXWjFWQ,759
|
|
@@ -348,34 +349,43 @@ ommlds/minichain/chat/tools/parsing.py,sha256=p0WRBpFahTiv_3v5lxoO1qTmpAlv_BiaGg
|
|
|
348
349
|
ommlds/minichain/chat/tools/types.py,sha256=kjXK3Dwe-YpWmJCpgNAeoOw3ZjLKy3JhmbNxeoF6PRA,218
|
|
349
350
|
ommlds/minichain/chat/transforms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
350
351
|
ommlds/minichain/chat/transforms/base.py,sha256=V22SasLdnzvmSO7C19gigi8LKeWVtBHmhaSJbkj6b4Y,2923
|
|
351
|
-
ommlds/minichain/chat/transforms/metadata.py,sha256=
|
|
352
|
+
ommlds/minichain/chat/transforms/metadata.py,sha256=DC-2Ff1u8WBfBn2O-okJ_avqww8SEql5KKZDIUF9dJ4,1569
|
|
352
353
|
ommlds/minichain/chat/transforms/services.py,sha256=wJw2eu-TU1sVXUYvg7rc7QNn93cCXhtEI_q-KZ5Dz0I,1016
|
|
353
|
-
ommlds/minichain/content/__init__.py,sha256=
|
|
354
|
-
ommlds/minichain/content/_marshal.py,sha256=
|
|
355
|
-
ommlds/minichain/content/code.py,sha256
|
|
354
|
+
ommlds/minichain/content/__init__.py,sha256=3ONXFV3bDiZDko9SI3Hij60bFiYLuR-Emfoh1K6AgXc,748
|
|
355
|
+
ommlds/minichain/content/_marshal.py,sha256=BUhSC3nAXtXJlRK1Btbx1iqoWxBi5fKiIHLuJ0tcfOY,9547
|
|
356
|
+
ommlds/minichain/content/code.py,sha256=-hrz9HomUCo1wicfq-Ix5fDvK-UsAMgQGUfWKnT5kFk,419
|
|
357
|
+
ommlds/minichain/content/composite.py,sha256=nfpZNNydILhfuZv9nLK7jUi4sLgirSlTcvn-sXyV33U,761
|
|
358
|
+
ommlds/minichain/content/content.py,sha256=EKpGNinfc4sXriozCdqrQ9A72-Wf8XVrJzCsTzOU4W4,303
|
|
356
359
|
ommlds/minichain/content/dynamic.py,sha256=vXOdc7roBoL7C9DXPo9K4KZFeehJAH-Woq_YN3v13wU,197
|
|
357
|
-
ommlds/minichain/content/
|
|
358
|
-
ommlds/minichain/content/
|
|
359
|
-
ommlds/minichain/content/
|
|
360
|
-
ommlds/minichain/content/
|
|
361
|
-
ommlds/minichain/content/
|
|
362
|
-
ommlds/minichain/content/
|
|
360
|
+
ommlds/minichain/content/emphasis.py,sha256=4ke9n2Tkc3Eg-CTnc0irjJvQiWSDQoPieIIQxD19AmY,466
|
|
361
|
+
ommlds/minichain/content/images.py,sha256=uePjix8KMFQLjqkPmfO7LpjxcRkUi-tdzWQQy4H4HM4,404
|
|
362
|
+
ommlds/minichain/content/json.py,sha256=Umbd7haqRu40trdpN7KRfeYaeOQ91mJjLumrd2GG5XM,228
|
|
363
|
+
ommlds/minichain/content/link.py,sha256=xG9JInJSCxgyklOiTm-TwHQfs-dOlnegTLJay-P1CSo,224
|
|
364
|
+
ommlds/minichain/content/markdown.py,sha256=s56_UCNfgYZgOajz_D5WDeicfLHC45Ppa-UAAdwn0cc,197
|
|
365
|
+
ommlds/minichain/content/metadata.py,sha256=yf4iTOOKE123bKTr7Fw8mZESdS_-waKLAXA4azShsg4,415
|
|
366
|
+
ommlds/minichain/content/namespaces.py,sha256=dAaa5XHzDG1By5ebRIKg3dTG6TNpH_Nl4EoPzkSPuxE,287
|
|
367
|
+
ommlds/minichain/content/placeholders.py,sha256=esznE8u_bLuxpmRv7tl0-AkUlfY9TpZaiwE1nMl-I9M,378
|
|
368
|
+
ommlds/minichain/content/quote.py,sha256=44cBNPO8oYvQcWRvdZhR6wxLXPz7Q6VnPf81USfHcJk,546
|
|
363
369
|
ommlds/minichain/content/raw.py,sha256=evB4Vv7Tk42tQrVf5-f78wdjeXEqwcdWEz0pt7z58WQ,676
|
|
364
|
-
ommlds/minichain/content/
|
|
365
|
-
ommlds/minichain/content/
|
|
366
|
-
ommlds/minichain/content/
|
|
367
|
-
ommlds/minichain/content/
|
|
368
|
-
ommlds/minichain/content/
|
|
369
|
-
ommlds/minichain/content/
|
|
370
|
-
ommlds/minichain/content/
|
|
370
|
+
ommlds/minichain/content/recursive.py,sha256=httCiaHWyAitsHgneHhkTd1yuDT22x465c6Hk-7g9-E,196
|
|
371
|
+
ommlds/minichain/content/section.py,sha256=C1CWGgAtZf4p38fD5OJ0aFLt2ZLGQEp_oz-NHB14cx4,562
|
|
372
|
+
ommlds/minichain/content/sequence.py,sha256=xYcz7WK3wsfa431dgMPhp7z5z643W_-n0-Uv9HnMwr0,1004
|
|
373
|
+
ommlds/minichain/content/standard.py,sha256=sh4l2zIPCAH4KYRx1ySzY5EuMNBjlIV7bx0tI5fej7E,853
|
|
374
|
+
ommlds/minichain/content/tag.py,sha256=CTRpoFosCo9swfaqlRxhT0Vzak6rZccdmyHHGj_5Krg,647
|
|
375
|
+
ommlds/minichain/content/templates.py,sha256=a94NUJD_s1C1byovWNNLpqlN_is2pmOE0TkSjT1HzH4,246
|
|
376
|
+
ommlds/minichain/content/text.py,sha256=GVdyc3ZWH2xvhtDlVeJK_vl9aqYKxb5BOil5J5KegqI,193
|
|
377
|
+
ommlds/minichain/content/visitors.py,sha256=EL7fFf5MG27NPswOybL0VoYOIk7wGVatuem_5Frk2ns,6844
|
|
371
378
|
ommlds/minichain/content/transform/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
372
|
-
ommlds/minichain/content/transform/
|
|
373
|
-
ommlds/minichain/content/transform/
|
|
374
|
-
ommlds/minichain/content/transform/materialize.py,sha256=
|
|
375
|
-
ommlds/minichain/content/transform/
|
|
376
|
-
ommlds/minichain/content/transform/
|
|
377
|
-
ommlds/minichain/content/transform/
|
|
378
|
-
ommlds/minichain/content/transform/
|
|
379
|
+
ommlds/minichain/content/transform/json.py,sha256=G4d_Uwrlvh9PM-kiXIUB5N7QS0waW-paLlRLoAhqalg,1599
|
|
380
|
+
ommlds/minichain/content/transform/markdown.py,sha256=GG67VqYTgo5wcY11GSDq9ecHjXSubWbmwR2kXNW_z4o,127
|
|
381
|
+
ommlds/minichain/content/transform/materialize.py,sha256=IpI4fL5-RblKsbslxhs225pvBUBb4Rov4FzAj0TMrtA,1386
|
|
382
|
+
ommlds/minichain/content/transform/metadata.py,sha256=WeXCde8yFo2nzmaVZUDIWfHg0SVsB4eGyAu1j2l4LUY,499
|
|
383
|
+
ommlds/minichain/content/transform/prepare.py,sha256=DzLdjn7c38ICDX1YP2Qdc6a87nCNDKgtLb2e11tlRfE,1603
|
|
384
|
+
ommlds/minichain/content/transform/recursive.py,sha256=0fPoX2iu-hF99pnB_GglpsbDiy86d-YppVHZAqNASY8,2737
|
|
385
|
+
ommlds/minichain/content/transform/standard.py,sha256=0DKc_yJvuwcwLNBihJaq7qWEJhsH6pM1ijZTQ7f7HeM,1208
|
|
386
|
+
ommlds/minichain/content/transform/stringify.py,sha256=8MhrcfAmPwZyTf7Nubhe5luRXilI2xHN8JveVHJgHbM,1065
|
|
387
|
+
ommlds/minichain/content/transform/strings.py,sha256=sA_K_mUZQTXg8tJvxkC5YmiNdSt0T6KXXrINFh7FbXU,905
|
|
388
|
+
ommlds/minichain/content/transform/templates.py,sha256=-Vk_sZsVSQFTDZelo2bLUGsYb5Pu-Mtsr7RzF9DlU3k,724
|
|
379
389
|
ommlds/minichain/docs/__init__.py,sha256=vNpT6sA5YDalFqsCFn0DjUvarxRtRl3w2V9liEU0CQk,364
|
|
380
390
|
ommlds/minichain/docs/docs.py,sha256=Ex7hiqaiYDB9hQhUjuzot8MFktl3LIGG41YBFaNoC80,1340
|
|
381
391
|
ommlds/minichain/docs/dtypes.py,sha256=BRZmLK9NfQwITBYmDOmRPDlFg1RP5BYWT0Xw04AinF8,499
|
|
@@ -447,20 +457,20 @@ ommlds/minichain/tokens/types.py,sha256=VEzBA6ZrpA0dweWkwkvNK0dMhlrKm7z9J2b4zij4
|
|
|
447
457
|
ommlds/minichain/tokens/vocabs.py,sha256=-4WSCbeeoELLiAaRSzbi-z6Cv-hyTRK1T9HMm_iqToE,3681
|
|
448
458
|
ommlds/minichain/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
449
459
|
ommlds/minichain/tools/_marshal.py,sha256=9np2tuzGfRwL5BMCd6QYChzimtTBUfHxT4IoEA6v3Eg,410
|
|
450
|
-
ommlds/minichain/tools/fns.py,sha256=
|
|
460
|
+
ommlds/minichain/tools/fns.py,sha256=zNDLV2ZlMk9no0YJpTXlZ6sgYCpD6oGcUpsgc65tQhQ,3932
|
|
451
461
|
ommlds/minichain/tools/jsonschema.py,sha256=gipEyit6OmVAa02Azhk8xbFHlolWXd0Jp5x_fvAzdHg,4253
|
|
452
|
-
ommlds/minichain/tools/reflect.py,sha256=
|
|
453
|
-
ommlds/minichain/tools/types.py,sha256=
|
|
462
|
+
ommlds/minichain/tools/reflect.py,sha256=yfTW_6qMwEP2RYoN514cmfbvOpGlAJktWXNeKiObsg8,8699
|
|
463
|
+
ommlds/minichain/tools/types.py,sha256=77O0ufX6YSdijYXSSxHhamBC9MEIdcL2Cq3ihLJOPzI,4769
|
|
454
464
|
ommlds/minichain/tools/execution/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
455
|
-
ommlds/minichain/tools/execution/catalog.py,sha256=
|
|
465
|
+
ommlds/minichain/tools/execution/catalog.py,sha256=4BjQFdDnpO7pJ74VTl0Pv7qDjFuz2maZvPUi5KmHfFg,2004
|
|
456
466
|
ommlds/minichain/tools/execution/context.py,sha256=Gdl1UNjzLQTeIc7m2BlNyLtNsdqCookQv12_WwDDkAI,1872
|
|
457
|
-
ommlds/minichain/tools/execution/errorhandling.py,sha256=
|
|
458
|
-
ommlds/minichain/tools/execution/errors.py,sha256=
|
|
459
|
-
ommlds/minichain/tools/execution/executors.py,sha256=
|
|
467
|
+
ommlds/minichain/tools/execution/errorhandling.py,sha256=Tx5h8SJQ297IHfTxFSZjjsoemMWAJYkeeCnh3cKWPmU,1015
|
|
468
|
+
ommlds/minichain/tools/execution/errors.py,sha256=DhpwW-rp0_4O9azWXzjNFcKkTAtG-vvLXxtplaPVXkw,241
|
|
469
|
+
ommlds/minichain/tools/execution/executors.py,sha256=zE4l9AQ6EyJ7L6opuAt1p-cv1SeLukGjqSsKqq2KDU8,1367
|
|
460
470
|
ommlds/minichain/tools/execution/reflect.py,sha256=Oklzx5jlMyNj6ivecEQfP6Zt_ICxc-nk-x9xSsxswlg,1817
|
|
461
471
|
ommlds/minichain/vectors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
462
472
|
ommlds/minichain/vectors/_marshal.py,sha256=scmavC2AOjIPi3kccHl6ZGRT9E5r5CENIC1Gv4DbYoM,1575
|
|
463
|
-
ommlds/minichain/vectors/embeddings.py,sha256=
|
|
473
|
+
ommlds/minichain/vectors/embeddings.py,sha256=U7TKhICa3jNWqnqMGbFnw6OIn2RZ53qSad1DVYFqScM,1002
|
|
464
474
|
ommlds/minichain/vectors/index.py,sha256=NFUeVffjQZd6HILpLEd8tKBLmVKl-2ZTjtsr91ah6VA,1135
|
|
465
475
|
ommlds/minichain/vectors/search.py,sha256=27MTUiVT2xmSnmgJTAR09oQaiNRh1ixj0mGZVuSTVEg,1508
|
|
466
476
|
ommlds/minichain/vectors/similarity.py,sha256=etqSswPH7ERThueqnCUHULsM3rpsVslRFua0m_ps_F4,1308
|
|
@@ -483,7 +493,7 @@ ommlds/specs/mcp/_marshal.py,sha256=EGw9ZIIkH8CaOguKGl7xgMFOXh-UmbTH0VKTbLf6-jY,
|
|
|
483
493
|
ommlds/specs/mcp/clients.py,sha256=l-QX7KQtsSn40Hb3cATVUqmycGQm4FDTGyljUmpGyCY,4209
|
|
484
494
|
ommlds/specs/mcp/protocol.py,sha256=Q3GQmNCn-fVEvivkROljeeddP1SPDI8v7o3BcxD-Roc,8993
|
|
485
495
|
ommlds/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
486
|
-
ommlds/tools/git.py,sha256=
|
|
496
|
+
ommlds/tools/git.py,sha256=He5CQOyC_xx1TP5UfqiKUKYMxP8O6Klez7vIfKINAas,8873
|
|
487
497
|
ommlds/tools/ocr.py,sha256=UP2XK4-ELyhK2BnuBr7-DwUbkDIcX9xdvfXVimM19Y8,1839
|
|
488
498
|
ommlds/wiki/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
489
499
|
ommlds/wiki/analyze.py,sha256=lRzqxHjguc5WA0tasnbTSiCYCJiYWDU_q27rJn67HHU,9552
|
|
@@ -497,9 +507,9 @@ ommlds/wiki/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
497
507
|
ommlds/wiki/utils/io.py,sha256=UKgDJGtmpnWvIqVd2mJc2QNPOqlToEY1GEveNp6_pMo,7088
|
|
498
508
|
ommlds/wiki/utils/progress.py,sha256=EhvKcMFYtsarCQhIahlO6f0SboyAKP3UwUyrnVnP-Vk,3222
|
|
499
509
|
ommlds/wiki/utils/xml.py,sha256=sNJNkZ9rT8B-kJMO6bRz8J1USy4fyPx0m2PwTX7vxYY,3846
|
|
500
|
-
ommlds-0.0.0.
|
|
501
|
-
ommlds-0.0.0.
|
|
502
|
-
ommlds-0.0.0.
|
|
503
|
-
ommlds-0.0.0.
|
|
504
|
-
ommlds-0.0.0.
|
|
505
|
-
ommlds-0.0.0.
|
|
510
|
+
ommlds-0.0.0.dev498.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
|
511
|
+
ommlds-0.0.0.dev498.dist-info/METADATA,sha256=Dd7rc54ZPGDTPefacZxN66EgdVBtKxIq3-F5A9yEIEo,3495
|
|
512
|
+
ommlds-0.0.0.dev498.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
513
|
+
ommlds-0.0.0.dev498.dist-info/entry_points.txt,sha256=Z5YWtX7ClfiCKdW-dd_CSVvM0h4yQpJPi-2G3q6gNFo,35
|
|
514
|
+
ommlds-0.0.0.dev498.dist-info/top_level.txt,sha256=Rbnk5d5wi58vnAXx13WFZqdQ4VX8hBCS2hEL3WeXOhY,7
|
|
515
|
+
ommlds-0.0.0.dev498.dist-info/RECORD,,
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import collections.abc
|
|
2
|
-
|
|
3
|
-
from omlish import dataclasses as dc
|
|
4
|
-
from omlish import dispatch
|
|
5
|
-
from omlish import lang
|
|
6
|
-
|
|
7
|
-
from ..quote import QuoteContent
|
|
8
|
-
from ..section import SectionContent
|
|
9
|
-
from ..sequence import SequenceContent
|
|
10
|
-
from ..tag import TagContent
|
|
11
|
-
from ..text import TextContent
|
|
12
|
-
from ..types import Content
|
|
13
|
-
from ..types import LeafContent
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
##
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class ContentTransform(lang.Abstract):
|
|
20
|
-
@dispatch.method()
|
|
21
|
-
def apply(self, o: Content) -> Content:
|
|
22
|
-
raise TypeError(o)
|
|
23
|
-
|
|
24
|
-
#
|
|
25
|
-
|
|
26
|
-
@apply.register # noqa
|
|
27
|
-
def apply_str(self, s: str) -> str:
|
|
28
|
-
return s
|
|
29
|
-
|
|
30
|
-
@apply.register # noqa
|
|
31
|
-
def apply_sequence(self, l: collections.abc.Sequence) -> collections.abc.Sequence:
|
|
32
|
-
# FIXME: this should be `Sequence[Content] -> Sequence[Content]` but omlish.reflect can't handle recursive
|
|
33
|
-
# ForwardRef's yet
|
|
34
|
-
r = [self.apply(e) for e in l]
|
|
35
|
-
if len(r) == len(l) and all(le is re for le, re in zip(l, r)):
|
|
36
|
-
return l
|
|
37
|
-
return r
|
|
38
|
-
|
|
39
|
-
#
|
|
40
|
-
|
|
41
|
-
@apply.register
|
|
42
|
-
def apply_leaf_content(self, c: LeafContent) -> LeafContent:
|
|
43
|
-
return c
|
|
44
|
-
|
|
45
|
-
@apply.register
|
|
46
|
-
def apply_quote_content(self, c: QuoteContent) -> QuoteContent:
|
|
47
|
-
return dc.replace_is_not(c, l=self.apply(c.body))
|
|
48
|
-
|
|
49
|
-
@apply.register
|
|
50
|
-
def apply_section_content(self, c: SectionContent) -> SectionContent:
|
|
51
|
-
return dc.replace_is_not(c, l=self.apply(c.body))
|
|
52
|
-
|
|
53
|
-
@apply.register
|
|
54
|
-
def apply_sequence_content(self, c: SequenceContent) -> SequenceContent:
|
|
55
|
-
return dc.replace_is_not(c, l=self.apply(c.l))
|
|
56
|
-
|
|
57
|
-
@apply.register
|
|
58
|
-
def apply_tag_content(self, c: TagContent) -> TagContent:
|
|
59
|
-
return dc.replace_is_not(c, c=self.apply(c.body))
|
|
60
|
-
|
|
61
|
-
@apply.register
|
|
62
|
-
def apply_text_content(self, c: TextContent) -> TextContent:
|
|
63
|
-
return dc.replace_is_not(c, s=self.apply(c.s))
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
from ..types import Content
|
|
2
|
-
from .base import ContentTransform
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ContentInterleaver(ContentTransform):
|
|
9
|
-
def __init__(
|
|
10
|
-
self,
|
|
11
|
-
*,
|
|
12
|
-
separator: Content | None = None,
|
|
13
|
-
sequence_separator: Content | None = None,
|
|
14
|
-
inline_separator: Content | None = None,
|
|
15
|
-
block_separator: Content | None = None,
|
|
16
|
-
) -> None:
|
|
17
|
-
super().__init__()
|
|
18
|
-
|
|
19
|
-
self._sequence_separator = sequence_separator if sequence_separator is not None else separator
|
|
20
|
-
self._inline_separator = inline_separator if inline_separator is not None else separator
|
|
21
|
-
self._block_separator = block_separator if block_separator is not None else separator
|
|
22
|
-
|
|
23
|
-
# def _interleave(self, l: ta.Iterable[Content], separator: Content | None) -> ta.Sequence[Content]:
|
|
24
|
-
# cs: ta.Iterable[Content] = map(self.interleave, l)
|
|
25
|
-
# if separator is not None:
|
|
26
|
-
# cs = lang.interleave(cs, separator)
|
|
27
|
-
# return list(cs)
|
|
28
|
-
|
|
29
|
-
# @dispatch.method()
|
|
30
|
-
# def interleave(self, c: Content) -> Content:
|
|
31
|
-
# raise TypeError(c)
|
|
32
|
-
|
|
33
|
-
# @interleave.register
|
|
34
|
-
# def interleave_str(self, c: str) -> Content:
|
|
35
|
-
# return c
|
|
36
|
-
|
|
37
|
-
# @interleave.register
|
|
38
|
-
# def interleave_sequence(self, c: ta.Sequence) -> Content:
|
|
39
|
-
# return self._interleave(c, self._sequence_separator)
|
|
40
|
-
|
|
41
|
-
# @interleave.register
|
|
42
|
-
# def interleave_extended_content(self, c: BaseContent) -> Content:
|
|
43
|
-
# # FIXME:
|
|
44
|
-
# return c
|
|
45
|
-
|
|
46
|
-
# @interleave.register
|
|
47
|
-
# def interleave_inline_content(self, c: InlineContent) -> Content:
|
|
48
|
-
# return dc.replace(c, l=self._interleave(c.l, self._inline_separator))
|
|
49
|
-
|
|
50
|
-
# @interleave.register
|
|
51
|
-
# def interleave_block_content(self, c: BlockContent) -> Content:
|
|
52
|
-
# return dc.replace(c, l=self._interleave(c.l, self._block_separator))
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
def interleave_content(
|
|
56
|
-
c: Content,
|
|
57
|
-
*,
|
|
58
|
-
separator: Content | None = None,
|
|
59
|
-
sequence_separator: Content | None = None,
|
|
60
|
-
inline_separator: Content | None = None,
|
|
61
|
-
block_separator: Content | None = None,
|
|
62
|
-
) -> Content:
|
|
63
|
-
return ContentInterleaver(
|
|
64
|
-
separator=separator,
|
|
65
|
-
sequence_separator=sequence_separator,
|
|
66
|
-
inline_separator=inline_separator,
|
|
67
|
-
block_separator=block_separator,
|
|
68
|
-
).apply(c)
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import typing as ta
|
|
2
|
-
|
|
3
|
-
from ..types import Content
|
|
4
|
-
from .base import ContentTransform
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class ContentSqueezer(ContentTransform):
|
|
11
|
-
def __init__(
|
|
12
|
-
self,
|
|
13
|
-
*,
|
|
14
|
-
strip_strings: bool = False,
|
|
15
|
-
) -> None:
|
|
16
|
-
super().__init__()
|
|
17
|
-
|
|
18
|
-
self._strip_strings = strip_strings
|
|
19
|
-
|
|
20
|
-
@ContentTransform.apply.register
|
|
21
|
-
def squeeze_str(self, c: str) -> ta.Iterable[Content]:
|
|
22
|
-
if self._strip_strings:
|
|
23
|
-
c = c.strip()
|
|
24
|
-
return c
|
|
25
|
-
|
|
26
|
-
# @squeeze.register
|
|
27
|
-
# def squeeze_sequence(self, c: ta.Sequence) -> ta.Iterable[Content]:
|
|
28
|
-
# for e in c:
|
|
29
|
-
# yield from self.squeeze(e)
|
|
30
|
-
|
|
31
|
-
# #
|
|
32
|
-
|
|
33
|
-
# # @squeeze.register
|
|
34
|
-
# # def squeeze_single_content(self, c: Content) -> ta.Iterable[Content]:
|
|
35
|
-
# # return [c]
|
|
36
|
-
|
|
37
|
-
# @squeeze.register
|
|
38
|
-
# def squeeze_text_content(self, c: TextContent) -> ta.Iterable[Content]:
|
|
39
|
-
# if self._strip_strings:
|
|
40
|
-
# if (ss := c.s.strip()) != c.s:
|
|
41
|
-
# c = dc.replace(c, s=ss)
|
|
42
|
-
#
|
|
43
|
-
# if c.s:
|
|
44
|
-
# yield c.s
|
|
45
|
-
|
|
46
|
-
# @squeeze.register
|
|
47
|
-
# def squeeze_sequence_content(self, c: SequenceContent) -> ta.Iterable[Content]:
|
|
48
|
-
# for e in c.l:
|
|
49
|
-
# yield from self.squeeze(e)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
def squeeze_content(
|
|
53
|
-
c: Content,
|
|
54
|
-
*,
|
|
55
|
-
strip_strings: bool = False,
|
|
56
|
-
) -> Content:
|
|
57
|
-
return ContentSqueezer(
|
|
58
|
-
strip_strings=strip_strings,
|
|
59
|
-
).apply(c)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|