divinatory 0.1.0__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.
- divinatory/__init__.py +3 -0
- divinatory/__main__.py +6 -0
- divinatory/cli.py +134 -0
- divinatory/draws.py +294 -0
- divinatory/engine.py +345 -0
- divinatory/errors.py +75 -0
- divinatory/install.py +605 -0
- divinatory/messages.py +69 -0
- divinatory/server.py +269 -0
- divinatory-0.1.0.dist-info/METADATA +87 -0
- divinatory-0.1.0.dist-info/RECORD +14 -0
- divinatory-0.1.0.dist-info/WHEEL +4 -0
- divinatory-0.1.0.dist-info/entry_points.txt +3 -0
- divinatory-0.1.0.dist-info/licenses/LICENSE +9 -0
divinatory/__init__.py
ADDED
divinatory/__main__.py
ADDED
divinatory/cli.py
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"""The ``divinatory`` command line: setting a project up for the server.
|
|
2
|
+
|
|
3
|
+
Argument shaping and printing only; everything it does is in
|
|
4
|
+
:mod:`divinatory.install`.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import argparse
|
|
10
|
+
import sys
|
|
11
|
+
from collections.abc import Sequence
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
from typing import TextIO
|
|
14
|
+
|
|
15
|
+
from . import __version__, install, messages
|
|
16
|
+
from .errors import DivinationError, Refusal
|
|
17
|
+
|
|
18
|
+
_PAST = {"created": "created", "updated": "updated", "removed": "removed"}
|
|
19
|
+
_WOULD = {"created": "would create", "updated": "would update", "removed": "would remove"}
|
|
20
|
+
_STILL = {
|
|
21
|
+
"unchanged": "unchanged",
|
|
22
|
+
"absent": "not present",
|
|
23
|
+
"refused": "refused",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
28
|
+
parser = argparse.ArgumentParser(
|
|
29
|
+
prog="divinatory", description="Set a project up to use the divinatory server."
|
|
30
|
+
)
|
|
31
|
+
parser.add_argument("--version", action="version", version=f"divinatory {__version__}")
|
|
32
|
+
subcommands = parser.add_subparsers(dest="command", required=True)
|
|
33
|
+
|
|
34
|
+
init = subcommands.add_parser(
|
|
35
|
+
"init",
|
|
36
|
+
help="register the MCP server with the project's coding harnesses",
|
|
37
|
+
description=(
|
|
38
|
+
"Register the server in .mcp.json (Claude Code and Copilot CLI), "
|
|
39
|
+
".codex/config.toml (Codex) and .cursor/mcp.json (Cursor), with an "
|
|
40
|
+
"absolute path into this environment. Only the server's own entry is "
|
|
41
|
+
"written; the rest of each file is left as it was. Safe to re-run, "
|
|
42
|
+
"which is how a project is repaired after the environment moves."
|
|
43
|
+
),
|
|
44
|
+
)
|
|
45
|
+
init.add_argument(
|
|
46
|
+
"--project-dir", metavar="PATH", help="Project to set up. Defaults to the cwd."
|
|
47
|
+
)
|
|
48
|
+
init.add_argument(
|
|
49
|
+
"--dry-run", action="store_true", help="Report what would change without writing."
|
|
50
|
+
)
|
|
51
|
+
init.set_defaults(handler=_init_command)
|
|
52
|
+
|
|
53
|
+
uninit = subcommands.add_parser(
|
|
54
|
+
"uninit",
|
|
55
|
+
help="remove the MCP server from the project's coding harnesses",
|
|
56
|
+
description=(
|
|
57
|
+
"Remove the server entries 'init' writes. Refuses, writing nothing, "
|
|
58
|
+
"when an entry holds something init did not write; every reason is "
|
|
59
|
+
"reported at once, and --force removes them anyway. Files left empty "
|
|
60
|
+
"are not deleted."
|
|
61
|
+
),
|
|
62
|
+
)
|
|
63
|
+
uninit.add_argument("--project-dir", metavar="PATH", help="Project to remove the server from.")
|
|
64
|
+
uninit.add_argument(
|
|
65
|
+
"--dry-run", action="store_true", help="Report what would change without writing."
|
|
66
|
+
)
|
|
67
|
+
uninit.add_argument(
|
|
68
|
+
"--force",
|
|
69
|
+
action="store_true",
|
|
70
|
+
help=(
|
|
71
|
+
"Remove entries holding hand-added fields, arguments or Codex keys. "
|
|
72
|
+
"Does not reach a file that cannot be read."
|
|
73
|
+
),
|
|
74
|
+
)
|
|
75
|
+
uninit.set_defaults(handler=_uninit_command)
|
|
76
|
+
return parser
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def _project(args: argparse.Namespace) -> Path:
|
|
80
|
+
return Path(args.project_dir).expanduser() if args.project_dir else Path.cwd()
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def _report(plan: install.Plan, out: TextIO, *, dry_run: bool) -> None:
|
|
84
|
+
for change in plan.changes:
|
|
85
|
+
said = (_WOULD if dry_run else _PAST).get(change.action) or _STILL[change.action]
|
|
86
|
+
print(f"{change.label}: {change.path}", file=out)
|
|
87
|
+
print(f" {said}", file=out)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _report_refusals(refusals: Sequence[Refusal], *, forced: bool) -> None:
|
|
91
|
+
standing = [r for r in refusals if not (forced and r.overridable)]
|
|
92
|
+
for refusal in standing:
|
|
93
|
+
print(f"divinatory: {messages.render(refusal)}", file=sys.stderr)
|
|
94
|
+
if not standing:
|
|
95
|
+
return
|
|
96
|
+
if all(r.overridable for r in standing):
|
|
97
|
+
print("divinatory: nothing written. --force removes these anyway.", file=sys.stderr)
|
|
98
|
+
else:
|
|
99
|
+
print(
|
|
100
|
+
"divinatory: nothing written. --force cannot reach a file that cannot be "
|
|
101
|
+
"read, so repair or remove that one first.",
|
|
102
|
+
file=sys.stderr,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def _init_command(args: argparse.Namespace, out: TextIO) -> int:
|
|
107
|
+
plan = install.init(_project(args), dry_run=args.dry_run)
|
|
108
|
+
_report(plan, out, dry_run=args.dry_run)
|
|
109
|
+
if args.dry_run and plan.writes:
|
|
110
|
+
print("divinatory: dry run, nothing changed", file=sys.stderr)
|
|
111
|
+
return 0
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def _uninit_command(args: argparse.Namespace, out: TextIO) -> int:
|
|
115
|
+
plan = install.uninit(_project(args), dry_run=args.dry_run, force=args.force)
|
|
116
|
+
_report(plan, out, dry_run=args.dry_run or bool(plan.blocking))
|
|
117
|
+
if plan.blocking:
|
|
118
|
+
_report_refusals(plan.refusals, forced=plan.forced)
|
|
119
|
+
return 1
|
|
120
|
+
if args.dry_run and plan.writes:
|
|
121
|
+
print("divinatory: dry run, nothing changed", file=sys.stderr)
|
|
122
|
+
return 0
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def main(argv: Sequence[str] | None = None, out: TextIO | None = None) -> int:
|
|
126
|
+
args = build_parser().parse_args(argv)
|
|
127
|
+
try:
|
|
128
|
+
return args.handler(args, out or sys.stdout)
|
|
129
|
+
except DivinationError as exc:
|
|
130
|
+
print(f"divinatory: {messages.render(exc)}", file=sys.stderr)
|
|
131
|
+
return 1
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
__all__ = ["build_parser", "main"]
|
divinatory/draws.py
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
"""The requests the tools answer, checked and drawn, with JSON-ready results.
|
|
2
|
+
|
|
3
|
+
Between the MCP server and :mod:`divinatory.engine`, with no MCP in it, so
|
|
4
|
+
that what a tool does can be tested without a server. The server's job is only
|
|
5
|
+
to declare the arguments and render a :class:`DivinationError` as a sentence.
|
|
6
|
+
|
|
7
|
+
A request names a *kind* of draw and the arguments that kind takes:
|
|
8
|
+
|
|
9
|
+
* ``integer``: ``low`` and ``high``, both included.
|
|
10
|
+
* ``float``: nothing; a float in ``[0, 1)``.
|
|
11
|
+
* ``choice``: ``items``, and optionally integer ``weights``, one per item.
|
|
12
|
+
* ``deal``: a deck, either ``items`` or the integers ``low`` to ``high``, dealt
|
|
13
|
+
without repeats. Seeded deals are their own tool, so this kind is only for
|
|
14
|
+
the secure source.
|
|
15
|
+
|
|
16
|
+
An argument that does not belong to the kind is refused rather than ignored: a
|
|
17
|
+
caller who sent one meant something by it, and silently dropping it would
|
|
18
|
+
answer a different question from the one asked.
|
|
19
|
+
|
|
20
|
+
Integers in JSON lose precision above 2**53 in some clients, so a bound or an
|
|
21
|
+
offset may be given as a string of decimal digits, and one given as a JSON
|
|
22
|
+
integer beyond 2**53 - 1 is refused: it may already have been rounded on the
|
|
23
|
+
way, and nothing here could tell. When a range reaches
|
|
24
|
+
beyond that a result gives *every* value in it as a string, along with a
|
|
25
|
+
deck's size, remaining count and offsets: the type of a result depends on the
|
|
26
|
+
request, never on the luck of the draw. Bounds are limited to
|
|
27
|
+
:data:`BOUND_LIMIT`, which keeps every value writable as a string.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
from __future__ import annotations
|
|
31
|
+
|
|
32
|
+
import re
|
|
33
|
+
from collections.abc import Callable, Sequence
|
|
34
|
+
from random import Random
|
|
35
|
+
from typing import Any, Literal
|
|
36
|
+
|
|
37
|
+
from . import engine
|
|
38
|
+
from .errors import DivinationError
|
|
39
|
+
|
|
40
|
+
Kind = Literal["integer", "float", "choice", "deal"]
|
|
41
|
+
StreamKind = Literal["integer", "float", "choice"]
|
|
42
|
+
|
|
43
|
+
#: The kinds a random stream draws; a seeded deal is the ``deal`` tool instead.
|
|
44
|
+
STREAM_KINDS: tuple[Kind, ...] = ("integer", "float", "choice")
|
|
45
|
+
SECURE_KINDS: tuple[Kind, ...] = (*STREAM_KINDS, "deal")
|
|
46
|
+
|
|
47
|
+
MAX_COUNT = 1000
|
|
48
|
+
"""The most values one call returns: a result lands in a context window."""
|
|
49
|
+
|
|
50
|
+
SAFE_INTEGER = 2**53 - 1
|
|
51
|
+
"""The largest integer every JSON client reads exactly."""
|
|
52
|
+
|
|
53
|
+
BOUND_LIMIT = 2**1024
|
|
54
|
+
"""The largest magnitude of a bound. Far beyond any real use, and well inside
|
|
55
|
+
the digits Python will convert to and from a string."""
|
|
56
|
+
|
|
57
|
+
_DECIMAL = re.compile(r"-?[0-9]+")
|
|
58
|
+
|
|
59
|
+
#: Which arguments each kind takes, for refusing the rest.
|
|
60
|
+
_TAKES: dict[Kind, frozenset[str]] = {
|
|
61
|
+
"integer": frozenset({"low", "high"}),
|
|
62
|
+
"float": frozenset(),
|
|
63
|
+
"choice": frozenset({"items", "weights"}),
|
|
64
|
+
"deal": frozenset({"items", "low", "high"}),
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# --- Tools -----------------------------------------------------------------
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def secure_seed() -> dict[str, Any]:
|
|
72
|
+
"""A new seed for the seeded tools."""
|
|
73
|
+
return {"seed": engine.secure_seed()}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def secure_random(
|
|
77
|
+
kind: Kind,
|
|
78
|
+
*,
|
|
79
|
+
count: int = 1,
|
|
80
|
+
low: int | str | None = None,
|
|
81
|
+
high: int | str | None = None,
|
|
82
|
+
items: Sequence[Any] | None = None,
|
|
83
|
+
weights: Sequence[int] | None = None,
|
|
84
|
+
) -> dict[str, Any]:
|
|
85
|
+
"""``count`` one-off values of ``kind`` from the secure source."""
|
|
86
|
+
_check_kind(kind, SECURE_KINDS)
|
|
87
|
+
_check_count(count)
|
|
88
|
+
arguments = {"low": low, "high": high, "items": items, "weights": weights}
|
|
89
|
+
_check_arguments(kind, arguments)
|
|
90
|
+
if kind == "deal":
|
|
91
|
+
size, value_at = _deck(items, low, high)
|
|
92
|
+
return {"values": [value_at(index) for index in engine.secure_deal(size, count)]}
|
|
93
|
+
draw = _drawer(kind, low, high, items, weights)
|
|
94
|
+
rng = engine.secure_source()
|
|
95
|
+
return {"values": [draw(rng) for _ in range(count)]}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def seeded_random(
|
|
99
|
+
seed: str,
|
|
100
|
+
kind: Kind,
|
|
101
|
+
*,
|
|
102
|
+
offset: int | str = 0,
|
|
103
|
+
count: int = 1,
|
|
104
|
+
low: int | str | None = None,
|
|
105
|
+
high: int | str | None = None,
|
|
106
|
+
items: Sequence[Any] | None = None,
|
|
107
|
+
weights: Sequence[int] | None = None,
|
|
108
|
+
) -> dict[str, Any]:
|
|
109
|
+
"""Positions ``offset`` onwards of the random stream of ``seed``, with replacement."""
|
|
110
|
+
_check_kind(kind, STREAM_KINDS)
|
|
111
|
+
_check_count(count)
|
|
112
|
+
arguments = {"low": low, "high": high, "items": items, "weights": weights}
|
|
113
|
+
_check_arguments(kind, arguments)
|
|
114
|
+
offset = _offset(offset)
|
|
115
|
+
draw = _drawer(kind, low, high, items, weights)
|
|
116
|
+
values = engine.random_stream(seed, offset, count, draw)
|
|
117
|
+
return _seeded_result(seed, offset, count, values, _integer_encoder(offset + count))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def deal(
|
|
121
|
+
seed: str,
|
|
122
|
+
*,
|
|
123
|
+
offset: int | str = 0,
|
|
124
|
+
count: int = 1,
|
|
125
|
+
items: Sequence[Any] | None = None,
|
|
126
|
+
low: int | str | None = None,
|
|
127
|
+
high: int | str | None = None,
|
|
128
|
+
) -> dict[str, Any]:
|
|
129
|
+
"""Positions ``offset`` onwards of the deck shuffled by ``seed``, without repeats."""
|
|
130
|
+
_check_count(count)
|
|
131
|
+
offset = _offset(offset)
|
|
132
|
+
size, value_at = _deck(items, low, high)
|
|
133
|
+
indices = engine.deal(seed, size, offset, count)
|
|
134
|
+
encode = _integer_encoder(size)
|
|
135
|
+
result = _seeded_result(seed, offset, count, [value_at(index) for index in indices], encode)
|
|
136
|
+
result["size"] = encode(size)
|
|
137
|
+
result["remaining"] = encode(size - offset - count)
|
|
138
|
+
return result
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
# --- Building a draw -------------------------------------------------------
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def _drawer(
|
|
145
|
+
kind: Kind,
|
|
146
|
+
low: int | str | None,
|
|
147
|
+
high: int | str | None,
|
|
148
|
+
items: Sequence[Any] | None,
|
|
149
|
+
weights: Sequence[int] | None,
|
|
150
|
+
) -> Callable[[Random], Any]:
|
|
151
|
+
"""The draw for one position, with every argument checked before any is made."""
|
|
152
|
+
if kind == "integer":
|
|
153
|
+
lowest, highest = _range(kind, low, high)
|
|
154
|
+
encode = _integer_encoder(lowest, highest)
|
|
155
|
+
return lambda rng: encode(engine.integer(rng, lowest, highest))
|
|
156
|
+
if kind == "float":
|
|
157
|
+
return engine.unit_float
|
|
158
|
+
items = _items(kind, items)
|
|
159
|
+
if weights is None:
|
|
160
|
+
return lambda rng: engine.choice(rng, items)
|
|
161
|
+
weights = list(weights)
|
|
162
|
+
if len(weights) != len(items):
|
|
163
|
+
raise DivinationError("weights-mismatch", weights=len(weights), items=len(items))
|
|
164
|
+
chooser = engine.weighted_chooser(weights)
|
|
165
|
+
return lambda rng: items[chooser(rng)]
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
def _deck(
|
|
169
|
+
items: Sequence[Any] | None, low: int | str | None, high: int | str | None
|
|
170
|
+
) -> tuple[int, Callable[[int], Any]]:
|
|
171
|
+
"""A deck's size and the value at each index: the items, or the integers low to high."""
|
|
172
|
+
if items is not None:
|
|
173
|
+
if low is not None or high is not None:
|
|
174
|
+
raise DivinationError("deck-ambiguous")
|
|
175
|
+
items = _items("deal", items)
|
|
176
|
+
return len(items), items.__getitem__
|
|
177
|
+
if low is None or high is None:
|
|
178
|
+
raise DivinationError("deck-missing")
|
|
179
|
+
lowest, highest = _range("deal", low, high)
|
|
180
|
+
encode = _integer_encoder(lowest, highest)
|
|
181
|
+
return highest - lowest + 1, lambda index: encode(lowest + index)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
def _range(kind: Kind, low: int | str | None, high: int | str | None) -> tuple[int, int]:
|
|
185
|
+
lowest = _bound("low", low, kind)
|
|
186
|
+
highest = _bound("high", high, kind)
|
|
187
|
+
if lowest > highest:
|
|
188
|
+
raise DivinationError("range-empty", low=lowest, high=highest)
|
|
189
|
+
return lowest, highest
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
def _bound(name: str, value: int | str | None, kind: Kind) -> int:
|
|
193
|
+
"""An integer bound, given as a JSON integer or as a string of decimal digits."""
|
|
194
|
+
if value is None:
|
|
195
|
+
raise DivinationError("argument-required", name=name, kind=kind)
|
|
196
|
+
bound = _integer(name, value)
|
|
197
|
+
if abs(bound) > BOUND_LIMIT:
|
|
198
|
+
raise DivinationError("bound-too-large", name=name)
|
|
199
|
+
return bound
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
def _offset(value: int | str) -> int:
|
|
203
|
+
"""An offset, which the engine checks once it is an integer."""
|
|
204
|
+
if isinstance(value, str):
|
|
205
|
+
return _integer("offset", value)
|
|
206
|
+
if isinstance(value, int) and not isinstance(value, bool):
|
|
207
|
+
_refuse_unsafe("offset", value)
|
|
208
|
+
return value
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
def _integer(name: str, value: object) -> int:
|
|
212
|
+
"""A JSON integer, or one written as a string of decimal digits."""
|
|
213
|
+
if isinstance(value, str):
|
|
214
|
+
if _DECIMAL.fullmatch(value):
|
|
215
|
+
try:
|
|
216
|
+
return int(value)
|
|
217
|
+
except ValueError: # past Python's limit on digits converted
|
|
218
|
+
pass
|
|
219
|
+
raise DivinationError("not-an-integer", name=name, value=value)
|
|
220
|
+
if not isinstance(value, int) or isinstance(value, bool):
|
|
221
|
+
raise DivinationError("not-an-integer", name=name, value=value)
|
|
222
|
+
_refuse_unsafe(name, value)
|
|
223
|
+
return value
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def _refuse_unsafe(name: str, value: int) -> None:
|
|
227
|
+
"""Refuse a JSON integer that a client may have rounded before sending it."""
|
|
228
|
+
if abs(value) > SAFE_INTEGER:
|
|
229
|
+
raise DivinationError("integer-unsafe", name=name, value=value)
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
def _integer_encoder(*bounds: int) -> Callable[[int], int | str]:
|
|
233
|
+
"""How integers drawn within ``bounds`` are written: all as numbers, or all as strings."""
|
|
234
|
+
if max(abs(bound) for bound in bounds) > SAFE_INTEGER:
|
|
235
|
+
return str
|
|
236
|
+
return int
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
def _items(kind: Kind, items: Sequence[Any] | None) -> list[Any]:
|
|
240
|
+
if items is None:
|
|
241
|
+
raise DivinationError("argument-required", name="items", kind=kind)
|
|
242
|
+
if not items:
|
|
243
|
+
raise DivinationError("items-empty")
|
|
244
|
+
return list(items)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
def _seeded_result(
|
|
248
|
+
seed: str, offset: int, count: int, values: list[Any], encode: Callable[[int], int | str]
|
|
249
|
+
) -> dict[str, Any]:
|
|
250
|
+
return {
|
|
251
|
+
"values": values,
|
|
252
|
+
"seed": seed,
|
|
253
|
+
"offset": encode(offset),
|
|
254
|
+
"next_offset": encode(offset + count),
|
|
255
|
+
"algorithm": engine.ALGORITHM,
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
# --- Checks ----------------------------------------------------------------
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
def _check_kind(kind: str, allowed: tuple[Kind, ...]) -> None:
|
|
263
|
+
if kind not in allowed:
|
|
264
|
+
raise DivinationError("kind-unknown", kind=kind, kinds=", ".join(allowed))
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
def _check_count(count: int) -> None:
|
|
268
|
+
if not isinstance(count, int) or isinstance(count, bool):
|
|
269
|
+
raise DivinationError("not-an-integer", name="count", value=count)
|
|
270
|
+
if count < 1:
|
|
271
|
+
raise DivinationError("not-positive", name="count", value=count)
|
|
272
|
+
if count > MAX_COUNT:
|
|
273
|
+
raise DivinationError("count-too-large", count=count, limit=MAX_COUNT)
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
def _check_arguments(kind: Kind, arguments: dict[str, object]) -> None:
|
|
277
|
+
for name, value in arguments.items():
|
|
278
|
+
if value is not None and name not in _TAKES[kind]:
|
|
279
|
+
raise DivinationError("argument-not-for-kind", name=name, kind=kind)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
__all__ = [
|
|
283
|
+
"BOUND_LIMIT",
|
|
284
|
+
"MAX_COUNT",
|
|
285
|
+
"SAFE_INTEGER",
|
|
286
|
+
"SECURE_KINDS",
|
|
287
|
+
"STREAM_KINDS",
|
|
288
|
+
"Kind",
|
|
289
|
+
"StreamKind",
|
|
290
|
+
"deal",
|
|
291
|
+
"secure_random",
|
|
292
|
+
"secure_seed",
|
|
293
|
+
"seeded_random",
|
|
294
|
+
]
|