keri-ts 0.5.0 → 0.6.0
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.
- package/README.md +7 -70
- package/esm/cesr/src/annotate/render.js +4 -1
- package/esm/cesr/src/core/parser-frame-parser.js +3 -2
- package/esm/cesr/src/version.js +2 -2
- package/esm/deps/jsr.io/@std/internal/1.0.14/_os.js +14 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.5/_common/env.js +11 -0
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/basename.js +6 -3
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/dirname.js +6 -3
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/extname.js +6 -3
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/basename.js +6 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/dirname.js +6 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/extname.js +6 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/resolve.js +4 -9
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.js +2 -2
- package/esm/deps/jsr.io/@std/path/1.1.5/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/basename.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/dirname.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/extname.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/resolve.js +5 -14
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.js +1 -1
- package/esm/keri/src/app/agent-runtime.js +160 -6
- package/esm/keri/src/app/authenticating.js +8 -23
- package/esm/keri/src/app/cesr-http.js +273 -0
- package/esm/keri/src/app/cli/challenge.js +59 -16
- package/esm/keri/src/app/cli/common/displaying.js +43 -0
- package/esm/keri/src/app/cli/common/existing.js +88 -1
- package/esm/keri/src/app/cli/common/parsing.js +178 -10
- package/esm/keri/src/app/cli/db-dump.js +266 -44
- package/esm/keri/src/app/cli/delegate.js +232 -0
- package/esm/keri/src/app/cli/ends.js +2 -2
- package/esm/keri/src/app/cli/exchange.js +34 -40
- package/esm/keri/src/app/cli/export.js +14 -0
- package/esm/keri/src/app/cli/incept.js +38 -6
- package/esm/keri/src/app/cli/index.js +15 -3
- package/esm/keri/src/app/cli/init.js +13 -2
- package/esm/keri/src/app/cli/interact.js +116 -0
- package/esm/keri/src/app/cli/loc.js +2 -2
- package/esm/keri/src/app/cli/notifications.js +106 -0
- package/esm/keri/src/app/cli/oobi.js +77 -4
- package/esm/keri/src/app/cli/query.js +156 -0
- package/esm/keri/src/app/cli/rotate.js +221 -0
- package/esm/keri/src/app/cli/sign.js +67 -0
- package/esm/keri/src/app/cli/verify.js +83 -0
- package/esm/keri/src/app/configing.js +1 -1
- package/esm/keri/src/app/delegating.js +625 -0
- package/esm/keri/src/app/exchanging.js +29 -32
- package/esm/keri/src/app/forwarding.js +895 -0
- package/esm/keri/src/app/habbing.js +656 -245
- package/esm/keri/src/app/httping.js +83 -0
- package/esm/keri/src/app/keeping.js +10 -8
- package/esm/keri/src/app/mailbox-director.js +232 -102
- package/esm/keri/src/app/mailbox-sse.js +115 -0
- package/esm/keri/src/app/mailboxing.js +344 -0
- package/esm/keri/src/app/notifying.js +125 -0
- package/esm/keri/src/app/oobiery.js +146 -39
- package/esm/keri/src/app/organizing.js +108 -0
- package/esm/keri/src/app/parsering.js +363 -0
- package/esm/keri/src/app/query-transport.js +118 -0
- package/esm/keri/src/app/querying.js +13 -1
- package/esm/keri/src/app/reactor.js +18 -400
- package/esm/keri/src/app/respondant.js +132 -0
- package/esm/keri/src/app/signaling.js +168 -0
- package/esm/keri/src/app/version.js +2 -2
- package/esm/keri/src/app/witnessing.js +779 -0
- package/esm/keri/src/core/errors.js +0 -3
- package/esm/keri/src/core/eventing.js +172 -20
- package/esm/keri/src/core/kever.js +29 -16
- package/esm/keri/src/core/mailbox-topics.js +17 -0
- package/esm/keri/src/core/protocol-eventing.js +450 -0
- package/esm/keri/src/core/protocol-exchanging.js +124 -0
- package/esm/keri/src/core/protocol-serialization.js +215 -0
- package/esm/keri/src/core/records.js +46 -0
- package/esm/keri/src/core/routing.js +46 -24
- package/esm/keri/src/db/basing.js +68 -12
- package/esm/keri/src/db/core/lmdber.js +32 -7
- package/esm/keri/src/db/core/path-manager.js +1 -1
- package/esm/keri/src/db/index.js +3 -0
- package/esm/keri/src/db/mailboxing.js +178 -0
- package/esm/keri/src/db/noting.js +274 -0
- package/esm/keri/src/db/outboxing.js +322 -0
- package/esm/keri/src/library/index.js +13 -0
- package/esm/keri/src/npm/cli.js +3 -0
- package/esm/keri/src/npm/db.js +3 -0
- package/esm/keri/src/npm/index.js +5 -5
- package/esm/keri/src/npm/runtime.js +3 -0
- package/esm/keri/src/runtime/index.js +43 -0
- package/package.json +16 -14
- package/types/_dnt.shims.d.ts +1 -2
- package/types/_dnt.shims.d.ts.map +1 -1
- package/types/cesr/src/annotate/render.d.ts.map +1 -1
- package/types/cesr/src/core/parser-frame-parser.d.ts.map +1 -1
- package/types/cesr/src/primitives/matter.d.ts.map +1 -1
- package/types/cesr/src/version.d.ts +2 -2
- package/types/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.5/_common/env.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.5/_common/env.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/basename.d.ts +4 -1
- package/types/deps/jsr.io/@std/path/1.1.5/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/dirname.d.ts +4 -1
- package/types/deps/jsr.io/@std/path/1.1.5/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/extname.d.ts +4 -1
- package/types/deps/jsr.io/@std/path/1.1.5/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/basename.d.ts +5 -0
- package/types/deps/jsr.io/@std/path/1.1.5/posix/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/dirname.d.ts +5 -0
- package/types/deps/jsr.io/@std/path/1.1.5/posix/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/extname.d.ts +5 -0
- package/types/deps/jsr.io/@std/path/1.1.5/posix/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.5/posix/resolve.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/basename.d.ts +1 -0
- package/types/deps/jsr.io/@std/path/1.1.5/windows/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/dirname.d.ts +1 -0
- package/types/deps/jsr.io/@std/path/1.1.5/windows/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/extname.d.ts +1 -0
- package/types/deps/jsr.io/@std/path/1.1.5/windows/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.5/windows/resolve.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.d.ts.map +1 -1
- package/types/keri/src/app/agent-runtime.d.ts +67 -1
- package/types/keri/src/app/agent-runtime.d.ts.map +1 -1
- package/types/keri/src/app/authenticating.d.ts.map +1 -1
- package/types/keri/src/app/cesr-http.d.ts +117 -0
- package/types/keri/src/app/cesr-http.d.ts.map +1 -0
- package/types/keri/src/app/cli/challenge.d.ts.map +1 -1
- package/types/keri/src/app/cli/common/displaying.d.ts +12 -0
- package/types/keri/src/app/cli/common/displaying.d.ts.map +1 -0
- package/types/keri/src/app/cli/common/existing.d.ts +25 -6
- package/types/keri/src/app/cli/common/existing.d.ts.map +1 -1
- package/types/keri/src/app/cli/common/parsing.d.ts +69 -4
- package/types/keri/src/app/cli/common/parsing.d.ts.map +1 -1
- package/types/keri/src/app/cli/db-dump.d.ts +16 -4
- package/types/keri/src/app/cli/db-dump.d.ts.map +1 -1
- package/types/keri/src/app/cli/delegate.d.ts +3 -0
- package/types/keri/src/app/cli/delegate.d.ts.map +1 -0
- package/types/keri/src/app/cli/ends.d.ts.map +1 -1
- package/types/keri/src/app/cli/exchange.d.ts +6 -6
- package/types/keri/src/app/cli/exchange.d.ts.map +1 -1
- package/types/keri/src/app/cli/export.d.ts.map +1 -1
- package/types/keri/src/app/cli/incept.d.ts.map +1 -1
- package/types/keri/src/app/cli/index.d.ts +15 -3
- package/types/keri/src/app/cli/index.d.ts.map +1 -1
- package/types/keri/src/app/cli/init.d.ts.map +1 -1
- package/types/keri/src/app/cli/interact.d.ts +20 -0
- package/types/keri/src/app/cli/interact.d.ts.map +1 -0
- package/types/keri/src/app/cli/loc.d.ts.map +1 -1
- package/types/keri/src/app/cli/notifications.d.ts +5 -0
- package/types/keri/src/app/cli/notifications.d.ts.map +1 -0
- package/types/keri/src/app/cli/oobi.d.ts +7 -0
- package/types/keri/src/app/cli/oobi.d.ts.map +1 -1
- package/types/keri/src/app/cli/query.d.ts +12 -0
- package/types/keri/src/app/cli/query.d.ts.map +1 -0
- package/types/keri/src/app/cli/rotate.d.ts +23 -0
- package/types/keri/src/app/cli/rotate.d.ts.map +1 -0
- package/types/keri/src/app/cli/sign.d.ts +24 -0
- package/types/keri/src/app/cli/sign.d.ts.map +1 -0
- package/types/keri/src/app/cli/verify.d.ts +24 -0
- package/types/keri/src/app/cli/verify.d.ts.map +1 -0
- package/types/keri/src/app/delegating.d.ts +140 -0
- package/types/keri/src/app/delegating.d.ts.map +1 -0
- package/types/keri/src/app/exchanging.d.ts.map +1 -1
- package/types/keri/src/app/forwarding.d.ts +304 -0
- package/types/keri/src/app/forwarding.d.ts.map +1 -0
- package/types/keri/src/app/habbing.d.ts +178 -7
- package/types/keri/src/app/habbing.d.ts.map +1 -1
- package/types/keri/src/app/httping.d.ts +34 -0
- package/types/keri/src/app/httping.d.ts.map +1 -0
- package/types/keri/src/app/keeping.d.ts.map +1 -1
- package/types/keri/src/app/mailbox-director.d.ts +99 -34
- package/types/keri/src/app/mailbox-director.d.ts.map +1 -1
- package/types/keri/src/app/mailbox-sse.d.ts +21 -0
- package/types/keri/src/app/mailbox-sse.d.ts.map +1 -0
- package/types/keri/src/app/mailboxing.d.ts +208 -0
- package/types/keri/src/app/mailboxing.d.ts.map +1 -0
- package/types/keri/src/app/notifying.d.ts +32 -0
- package/types/keri/src/app/notifying.d.ts.map +1 -0
- package/types/keri/src/app/oobiery.d.ts +42 -1
- package/types/keri/src/app/oobiery.d.ts.map +1 -1
- package/types/keri/src/app/organizing.d.ts +36 -0
- package/types/keri/src/app/organizing.d.ts.map +1 -0
- package/types/keri/src/app/parsering.d.ts +29 -0
- package/types/keri/src/app/parsering.d.ts.map +1 -0
- package/types/keri/src/app/protocol-host-policy.d.ts +27 -0
- package/types/keri/src/app/protocol-host-policy.d.ts.map +1 -0
- package/types/keri/src/app/query-transport.d.ts +13 -0
- package/types/keri/src/app/query-transport.d.ts.map +1 -0
- package/types/keri/src/app/querying.d.ts +7 -0
- package/types/keri/src/app/querying.d.ts.map +1 -1
- package/types/keri/src/app/reactor.d.ts +12 -15
- package/types/keri/src/app/reactor.d.ts.map +1 -1
- package/types/keri/src/app/respondant.d.ts +43 -0
- package/types/keri/src/app/respondant.d.ts.map +1 -0
- package/types/keri/src/app/signaling.d.ts +64 -0
- package/types/keri/src/app/signaling.d.ts.map +1 -0
- package/types/keri/src/app/version.d.ts +2 -2
- package/types/keri/src/app/witnessing.d.ts +148 -0
- package/types/keri/src/app/witnessing.d.ts.map +1 -0
- package/types/keri/src/core/errors.d.ts +0 -3
- package/types/keri/src/core/errors.d.ts.map +1 -1
- package/types/keri/src/core/eventing.d.ts +13 -5
- package/types/keri/src/core/eventing.d.ts.map +1 -1
- package/types/keri/src/core/kever.d.ts.map +1 -1
- package/types/keri/src/core/mailbox-topics.d.ts +17 -0
- package/types/keri/src/core/mailbox-topics.d.ts.map +1 -1
- package/types/keri/src/core/protocol-eventing.d.ts +118 -0
- package/types/keri/src/core/protocol-eventing.d.ts.map +1 -0
- package/types/keri/src/core/protocol-exchanging.d.ts +36 -0
- package/types/keri/src/core/protocol-exchanging.d.ts.map +1 -0
- package/types/keri/src/core/protocol-serialization.d.ts +29 -0
- package/types/keri/src/core/protocol-serialization.d.ts.map +1 -0
- package/types/keri/src/core/records.d.ts +105 -0
- package/types/keri/src/core/records.d.ts.map +1 -1
- package/types/keri/src/core/routing.d.ts +25 -9
- package/types/keri/src/core/routing.d.ts.map +1 -1
- package/types/keri/src/db/basing.d.ts +20 -5
- package/types/keri/src/db/basing.d.ts.map +1 -1
- package/types/keri/src/db/core/lmdber.d.ts +11 -11
- package/types/keri/src/db/core/lmdber.d.ts.map +1 -1
- package/types/keri/src/db/index.d.ts +3 -0
- package/types/keri/src/db/index.d.ts.map +1 -1
- package/types/keri/src/db/mailboxing.d.ts +111 -0
- package/types/keri/src/db/mailboxing.d.ts.map +1 -0
- package/types/keri/src/db/noting.d.ts +106 -0
- package/types/keri/src/db/noting.d.ts.map +1 -0
- package/types/keri/src/db/outboxing.d.ts +160 -0
- package/types/keri/src/db/outboxing.d.ts.map +1 -0
- package/types/keri/src/library/index.d.ts +14 -0
- package/types/keri/src/library/index.d.ts.map +1 -0
- package/types/keri/src/npm/cli.d.ts +4 -0
- package/types/keri/src/npm/cli.d.ts.map +1 -0
- package/types/keri/src/npm/db.d.ts +4 -0
- package/types/keri/src/npm/db.d.ts.map +1 -0
- package/types/keri/src/npm/index.d.ts +5 -5
- package/types/keri/src/npm/index.d.ts.map +1 -1
- package/types/keri/src/npm/runtime.d.ts +4 -0
- package/types/keri/src/npm/runtime.d.ts.map +1 -0
- package/types/keri/src/runtime/index.d.ts +44 -0
- package/types/keri/src/runtime/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -12
- package/esm/deps/jsr.io/@std/path/1.1.4/types.js +0 -3
- package/esm/keri/src/app/cli/agent.js +0 -77
- package/esm/keri/src/app/cli/cli-node.js +0 -9
- package/esm/keri/src/app/cli/cli.js +0 -83
- package/esm/keri/src/app/cli/command-definitions.js +0 -762
- package/esm/keri/src/app/index.js +0 -17
- package/esm/keri/src/app/server.js +0 -380
- package/esm/keri/src/core/index.js +0 -19
- package/esm/keri/src/core/messages.js +0 -81
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +0 -1
- package/types/keri/src/app/cli/agent.d.ts +0 -16
- package/types/keri/src/app/cli/agent.d.ts.map +0 -1
- package/types/keri/src/app/cli/cli-node.d.ts +0 -2
- package/types/keri/src/app/cli/cli-node.d.ts.map +0 -1
- package/types/keri/src/app/cli/cli.d.ts +0 -7
- package/types/keri/src/app/cli/cli.d.ts.map +0 -1
- package/types/keri/src/app/cli/command-definitions.d.ts +0 -17
- package/types/keri/src/app/cli/command-definitions.d.ts.map +0 -1
- package/types/keri/src/app/cli/command-types.d.ts +0 -21
- package/types/keri/src/app/cli/command-types.d.ts.map +0 -1
- package/types/keri/src/app/index.d.ts +0 -18
- package/types/keri/src/app/index.d.ts.map +0 -1
- package/types/keri/src/app/server.d.ts +0 -24
- package/types/keri/src/app/server.d.ts.map +0 -1
- package/types/keri/src/core/index.d.ts +0 -20
- package/types/keri/src/core/index.d.ts.map +0 -1
- package/types/keri/src/core/messages.d.ts +0 -41
- package/types/keri/src/core/messages.d.ts.map +0 -1
- /package/esm/keri/src/app/{cli/command-types.js → protocol-host-policy.js} +0 -0
- /package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/_os.d.ts +0 -0
- /package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import * as dntShim from "../../../../../../_dnt.shims.js";
|
|
4
3
|
import { normalizeString } from "../_common/normalize_string.js";
|
|
5
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
5
|
+
import { cwd } from "../_common/env.js";
|
|
6
6
|
import { isPosixPathSeparator } from "./_util.js";
|
|
7
7
|
/**
|
|
8
8
|
* Resolves path segments into a `path`.
|
|
@@ -27,12 +27,7 @@ export function resolve(...pathSegments) {
|
|
|
27
27
|
if (i >= 0)
|
|
28
28
|
path = pathSegments[i];
|
|
29
29
|
else {
|
|
30
|
-
|
|
31
|
-
const { Deno } = dntShim.dntGlobalThis;
|
|
32
|
-
if (typeof Deno?.cwd !== "function") {
|
|
33
|
-
throw new TypeError("Resolved a relative path without a current working directory (CWD)");
|
|
34
|
-
}
|
|
35
|
-
path = Deno.cwd();
|
|
30
|
+
path = cwd("Resolved a relative path without a current working directory (CWD)");
|
|
36
31
|
}
|
|
37
32
|
assertPath(path);
|
|
38
33
|
// Skip empty entries
|
|
@@ -43,7 +38,7 @@ export function resolve(...pathSegments) {
|
|
|
43
38
|
resolvedAbsolute = isPosixPathSeparator(path.charCodeAt(0));
|
|
44
39
|
}
|
|
45
40
|
// At this point the path should be resolved to a full absolute path, but
|
|
46
|
-
// handle relative paths to be safe (might happen when
|
|
41
|
+
// handle relative paths to be safe (might happen when cwd() fails)
|
|
47
42
|
// Normalize the path
|
|
48
43
|
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, "/", isPosixPathSeparator);
|
|
49
44
|
if (resolvedAbsolute) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "../../internal/1.0.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
4
|
import { relative as posixRelative } from "./posix/relative.js";
|
|
5
5
|
import { relative as windowsRelative } from "./windows/relative.js";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "../../internal/1.0.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
4
|
import { resolve as posixResolve } from "./posix/resolve.js";
|
|
5
5
|
import { resolve as windowsResolve } from "./windows/resolve.js";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "../../internal/1.0.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
4
|
import { toFileUrl as posixToFileUrl } from "./posix/to_file_url.js";
|
|
5
5
|
import { toFileUrl as windowsToFileUrl } from "./windows/to_file_url.js";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "../../internal/1.0.
|
|
3
|
+
import { isWindows } from "../../internal/1.0.14/os.js";
|
|
4
4
|
import { toNamespacedPath as posixToNamespacedPath } from "./posix/to_namespaced_path.js";
|
|
5
5
|
import { toNamespacedPath as windowsToNamespacedPath } from "./windows/to_namespaced_path.js";
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
|
|
4
4
|
import { CHAR_COLON } from "../_common/constants.js";
|
|
@@ -24,6 +24,7 @@ import { fromFileUrl } from "./from_file_url.js";
|
|
|
24
24
|
* @param path The path to extract the name from.
|
|
25
25
|
* @param suffix The suffix to remove from extracted name.
|
|
26
26
|
* @returns The extracted name.
|
|
27
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
27
28
|
*/
|
|
28
29
|
export function basename(path, suffix = "") {
|
|
29
30
|
if (path instanceof URL) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
/**
|
|
4
4
|
* The character used to separate entries in the PATH environment variable.
|
|
@@ -11,4 +11,5 @@ export const SEPARATOR = "\\";
|
|
|
11
11
|
/**
|
|
12
12
|
* A regular expression that matches one or more path separators.
|
|
13
13
|
*/
|
|
14
|
+
// deno-lint-ignore deno-style-guide/naming-convention
|
|
14
15
|
export const SEPARATOR_PATTERN = /[\\/]+/;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArg } from "../_common/dirname.js";
|
|
4
4
|
import { CHAR_COLON } from "../_common/constants.js";
|
|
@@ -19,6 +19,7 @@ import { fromFileUrl } from "./from_file_url.js";
|
|
|
19
19
|
*
|
|
20
20
|
* @param path The path to get the directory from.
|
|
21
21
|
* @returns The directory path.
|
|
22
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
22
23
|
*/
|
|
23
24
|
export function dirname(path) {
|
|
24
25
|
if (path instanceof URL) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_COLON, CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
@@ -18,6 +18,7 @@ import { fromFileUrl } from "./from_file_url.js";
|
|
|
18
18
|
*
|
|
19
19
|
* @param path The path to get the extension from.
|
|
20
20
|
* @returns The extension of the `path`.
|
|
21
|
+
* @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
|
|
21
22
|
*/
|
|
22
23
|
export function extname(path) {
|
|
23
24
|
if (path instanceof URL) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_COLON, CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import * as dntShim from "../../../../../../_dnt.shims.js";
|
|
4
3
|
import { CHAR_COLON } from "../_common/constants.js";
|
|
5
4
|
import { normalizeString } from "../_common/normalize_string.js";
|
|
6
5
|
import { assertPath } from "../_common/assert_path.js";
|
|
6
|
+
import { cwd } from "../_common/env.js";
|
|
7
7
|
import { isPathSeparator, isWindowsDeviceRoot } from "./_util.js";
|
|
8
8
|
/**
|
|
9
9
|
* Resolves path segments into a `path`.
|
|
@@ -26,22 +26,14 @@ export function resolve(...pathSegments) {
|
|
|
26
26
|
let resolvedAbsolute = false;
|
|
27
27
|
for (let i = pathSegments.length - 1; i >= -1; i--) {
|
|
28
28
|
let path;
|
|
29
|
-
// deno-lint-ignore no-explicit-any
|
|
30
|
-
const { Deno } = dntShim.dntGlobalThis;
|
|
31
29
|
if (i >= 0) {
|
|
32
30
|
path = pathSegments[i];
|
|
33
31
|
}
|
|
34
32
|
else if (!resolvedDevice) {
|
|
35
|
-
|
|
36
|
-
throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");
|
|
37
|
-
}
|
|
38
|
-
path = Deno.cwd();
|
|
33
|
+
path = cwd("Resolved a drive-letter-less path without a current working directory (CWD)");
|
|
39
34
|
}
|
|
40
35
|
else {
|
|
41
|
-
|
|
42
|
-
throw new TypeError("Resolved a relative path without a current working directory (CWD)");
|
|
43
|
-
}
|
|
44
|
-
path = Deno.cwd();
|
|
36
|
+
path = cwd("Resolved a relative path without a current working directory (CWD)");
|
|
45
37
|
// Verify that a cwd was found and that it actually points
|
|
46
38
|
// to our drive. If not, default to the drive's root.
|
|
47
39
|
if (path === undefined ||
|
|
@@ -146,8 +138,7 @@ export function resolve(...pathSegments) {
|
|
|
146
138
|
break;
|
|
147
139
|
}
|
|
148
140
|
// At this point the path should be resolved to a full absolute path,
|
|
149
|
-
// but handle relative paths to be safe (might happen when
|
|
150
|
-
// fails)
|
|
141
|
+
// but handle relative paths to be safe (might happen when cwd() fails)
|
|
151
142
|
// Normalize the tail path
|
|
152
143
|
resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator);
|
|
153
144
|
return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || ".";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_BACKWARD_SLASH, CHAR_COLON, CHAR_DOT, CHAR_QUESTION_MARK, } from "../_common/constants.js";
|
|
4
4
|
import { isWindowsDeviceRoot } from "./_util.js";
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { spawn } from "effection";
|
|
2
2
|
import { Deck } from "../core/deck.js";
|
|
3
|
+
import { DELEGATE_MAILBOX_TOPIC, RECEIPT_MAILBOX_TOPIC, REPLAY_MAILBOX_TOPIC, REPLY_MAILBOX_TOPIC, } from "../core/mailbox-topics.js";
|
|
3
4
|
import { Authenticator } from "./authenticating.js";
|
|
4
5
|
import { loadChallengeHandlers } from "./challenging.js";
|
|
5
6
|
import { cueDo, processCuesOnce } from "./cue-runtime.js";
|
|
7
|
+
import { Anchorer, loadDelegationHandlers } from "./delegating.js";
|
|
8
|
+
import { ForwardHandler, MailboxPoller, mailboxTopicForRoute, Poster } from "./forwarding.js";
|
|
6
9
|
import { MailboxDirector } from "./mailbox-director.js";
|
|
7
|
-
import {
|
|
10
|
+
import { openMailboxerForHabery } from "./mailboxing.js";
|
|
11
|
+
import { Notifier, openNoterForHabery } from "./notifying.js";
|
|
12
|
+
import { isWellKnownOobiUrl, loadOobiHandlers, Oobiery, parseOobiUrl } from "./oobiery.js";
|
|
8
13
|
import { QueryCoordinator } from "./querying.js";
|
|
9
14
|
import { Reactor } from "./reactor.js";
|
|
15
|
+
import { Respondant } from "./respondant.js";
|
|
10
16
|
import { runtimeTurn } from "./runtime-turn.js";
|
|
17
|
+
import { Signaler } from "./signaling.js";
|
|
11
18
|
/**
|
|
12
19
|
* Create the shared runtime composition root used by CLI commands and
|
|
13
20
|
* `tufa agent`.
|
|
@@ -17,24 +24,82 @@ import { runtimeTurn } from "./runtime-turn.js";
|
|
|
17
24
|
* classes
|
|
18
25
|
* - hosting style changes where the runtime is run, not what it is
|
|
19
26
|
*/
|
|
20
|
-
export function createAgentRuntime(hby, options = {}) {
|
|
27
|
+
export function* createAgentRuntime(hby, options = {}) {
|
|
28
|
+
const mode = options.mode ?? "local";
|
|
29
|
+
const enableMailboxStore = options.enableMailboxStore ?? mode === "indirect";
|
|
30
|
+
const mailboxer = options.mailboxer
|
|
31
|
+
?? (enableMailboxStore ? (yield* openMailboxerForHabery(hby)) : null);
|
|
32
|
+
const ownsMailboxer = options.mailboxer === undefined && mailboxer !== null;
|
|
33
|
+
const signaler = options.signaler
|
|
34
|
+
?? options.notifier?.signaler
|
|
35
|
+
?? (hby.signator ? new Signaler() : null);
|
|
36
|
+
const noter = options.noter
|
|
37
|
+
?? options.notifier?.noter
|
|
38
|
+
?? (!hby.readonly && hby.signator ? (yield* openNoterForHabery(hby)) : null);
|
|
39
|
+
const ownsNoter = options.noter === undefined
|
|
40
|
+
&& options.notifier === undefined
|
|
41
|
+
&& noter !== null;
|
|
42
|
+
const notifier = options.notifier
|
|
43
|
+
?? (noter && signaler ? new Notifier(hby, { noter, signaler }) : null);
|
|
21
44
|
const cues = new Deck();
|
|
22
45
|
const reactor = new Reactor(hby, { cues });
|
|
23
46
|
loadChallengeHandlers(hby.db, reactor.exchanger);
|
|
47
|
+
loadDelegationHandlers(hby, reactor.exchanger, notifier);
|
|
48
|
+
loadOobiHandlers(hby, reactor.exchanger, notifier);
|
|
49
|
+
const mailboxDirector = new MailboxDirector(hby, mailboxer ? { mailboxer } : {});
|
|
50
|
+
const poster = new Poster(hby, { mailboxer });
|
|
51
|
+
const respondant = new Respondant(hby, { poster, mailboxDirector });
|
|
52
|
+
if (mailboxer) {
|
|
53
|
+
reactor.exchanger.addHandler(new ForwardHandler(mailboxDirector));
|
|
54
|
+
}
|
|
55
|
+
for (const route of reactor.exchanger.routes.keys()) {
|
|
56
|
+
if (route === ForwardHandler.resource) {
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
const topic = mailboxTopicForRoute(route);
|
|
60
|
+
if (topic.length > 0) {
|
|
61
|
+
mailboxDirector.registerTopic(topic);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const mailboxPoller = new MailboxPoller(hby, mailboxDirector);
|
|
65
|
+
for (const topic of [
|
|
66
|
+
DELEGATE_MAILBOX_TOPIC,
|
|
67
|
+
RECEIPT_MAILBOX_TOPIC,
|
|
68
|
+
REPLAY_MAILBOX_TOPIC,
|
|
69
|
+
REPLY_MAILBOX_TOPIC,
|
|
70
|
+
]) {
|
|
71
|
+
mailboxDirector.registerTopic(topic);
|
|
72
|
+
}
|
|
73
|
+
const querying = new QueryCoordinator(hby);
|
|
74
|
+
const delegating = new Anchorer(hby, { poster, querying });
|
|
24
75
|
const oobiery = new Oobiery(hby, reactor, { cues });
|
|
25
76
|
oobiery.registerReplyRoutes(reactor.router);
|
|
26
77
|
const authenticator = new Authenticator(hby);
|
|
27
|
-
const mailboxDirector = new MailboxDirector(hby.db);
|
|
28
|
-
const querying = new QueryCoordinator(hby);
|
|
29
78
|
return {
|
|
30
79
|
hby,
|
|
31
|
-
mode
|
|
80
|
+
mode,
|
|
81
|
+
mailboxer,
|
|
82
|
+
noter,
|
|
83
|
+
notifier,
|
|
84
|
+
signaler,
|
|
32
85
|
cues,
|
|
33
86
|
reactor,
|
|
34
87
|
oobiery,
|
|
35
88
|
authenticator,
|
|
36
89
|
mailboxDirector,
|
|
90
|
+
respondant,
|
|
91
|
+
mailboxPoller,
|
|
92
|
+
poster,
|
|
93
|
+
delegating,
|
|
37
94
|
querying,
|
|
95
|
+
*close() {
|
|
96
|
+
if (ownsNoter && noter?.opened) {
|
|
97
|
+
yield* noter.close();
|
|
98
|
+
}
|
|
99
|
+
if (ownsMailboxer && mailboxer?.opened) {
|
|
100
|
+
yield* mailboxer.close();
|
|
101
|
+
}
|
|
102
|
+
},
|
|
38
103
|
};
|
|
39
104
|
}
|
|
40
105
|
/**
|
|
@@ -55,6 +120,57 @@ export function ingestKeriBytes(runtime, bytes) {
|
|
|
55
120
|
export function enqueueOobi(runtime, job) {
|
|
56
121
|
runtime.oobiery.resolve(job.url, job.alias);
|
|
57
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Parse and settle one or more newly arrived KERI/CESR messages immediately.
|
|
125
|
+
*
|
|
126
|
+
* This is the shared ingress-settlement seam for mailbox-delivered batches and
|
|
127
|
+
* HTTP request payloads that should advance parser and escrow state together.
|
|
128
|
+
*
|
|
129
|
+
* Maintainer mental model:
|
|
130
|
+
* - this helper is intentionally route-policy-free
|
|
131
|
+
* - callers decide whether a message should be treated as `local` or ordinary
|
|
132
|
+
* remote ingress before calling it
|
|
133
|
+
* - once called, it always does the same two things: feed the parser and run
|
|
134
|
+
* one escrow replay turn
|
|
135
|
+
*
|
|
136
|
+
* Why `local` matters:
|
|
137
|
+
* - `local` is not an HTTP transport detail
|
|
138
|
+
* - it is a parser/runtime semantic switch used when the host is acting as the
|
|
139
|
+
* local controller or local witness for the received message
|
|
140
|
+
* - witness hosting relies on that distinction so accepted witness-targeted
|
|
141
|
+
* events emit witness cues rather than ordinary remote receipt cues
|
|
142
|
+
*/
|
|
143
|
+
export function settleRuntimeIngress(runtime, messages, { local, } = {}) {
|
|
144
|
+
for (const message of messages) {
|
|
145
|
+
runtime.reactor.processChunk(message, { local });
|
|
146
|
+
}
|
|
147
|
+
runtime.reactor.processEscrowsOnce();
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Settle one mailbox retrieval batch while preserving per-source boundaries.
|
|
151
|
+
*
|
|
152
|
+
* Local and remote poll results are intentionally processed batch-by-batch so
|
|
153
|
+
* follow-on escrow progress can occur before the next source is consumed.
|
|
154
|
+
*/
|
|
155
|
+
export function settleMailboxPollBatch(runtime, batch) {
|
|
156
|
+
settleRuntimeIngress(runtime, batch.messages);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Drain one bounded mailbox polling turn and settle each returned batch.
|
|
160
|
+
*
|
|
161
|
+
* This keeps mailbox polling ownership inside the shared runtime surface so
|
|
162
|
+
* commands do not need to know how mailbox ingress is parsed and escrowed.
|
|
163
|
+
*/
|
|
164
|
+
export function* processMailboxTurn(runtime, options = {}) {
|
|
165
|
+
runtime.mailboxPoller.configure({ hab: options.hab });
|
|
166
|
+
const batches = yield* runtime.mailboxPoller.processOnce({
|
|
167
|
+
budgetMs: options.budgetMs,
|
|
168
|
+
});
|
|
169
|
+
for (const batch of batches) {
|
|
170
|
+
settleMailboxPollBatch(runtime, batch);
|
|
171
|
+
}
|
|
172
|
+
return batches;
|
|
173
|
+
}
|
|
58
174
|
/**
|
|
59
175
|
* Drain one bounded runtime turn by delegating to component-owned flows.
|
|
60
176
|
*
|
|
@@ -78,9 +194,16 @@ export function* processRuntimeTurn(runtime, options = {}) {
|
|
|
78
194
|
runtime.reactor.processOnce();
|
|
79
195
|
yield* runtime.oobiery.processOnce();
|
|
80
196
|
yield* runtime.authenticator.processOnce();
|
|
197
|
+
yield* runtime.poster.processPending();
|
|
198
|
+
yield* runtime.delegating.processAllOnce();
|
|
199
|
+
runtime.signaler?.processOnce();
|
|
200
|
+
if (options.pollMailbox ?? true) {
|
|
201
|
+
yield* processMailboxTurn(runtime, { hab: options.hab });
|
|
202
|
+
}
|
|
81
203
|
yield* processCuesOnce(runtime, { ...options, sink: runtime.querying });
|
|
82
204
|
yield* runtime.querying.processPending();
|
|
83
205
|
runtime.reactor.processEscrowsOnce();
|
|
206
|
+
yield* runtime.delegating.processAllOnce();
|
|
84
207
|
yield* processCuesOnce(runtime, { ...options, sink: runtime.querying });
|
|
85
208
|
yield* runtime.querying.processPending();
|
|
86
209
|
}
|
|
@@ -101,6 +224,10 @@ export function runtimePendingState(runtime) {
|
|
|
101
224
|
multiPending: runtime.hby.db.moobi.cnt() > 0,
|
|
102
225
|
authQueued: runtime.hby.db.woobi.cnt() > 0,
|
|
103
226
|
authInFlight: runtime.hby.db.mfa.cnt() > 0,
|
|
227
|
+
outboxPending: runtime.poster.hasPendingWork(),
|
|
228
|
+
delegationPending: runtime.hby.db.dpwe.cnt() > 0
|
|
229
|
+
|| runtime.hby.db.dune.cnt() > 0
|
|
230
|
+
|| runtime.hby.db.dpub.cnt() > 0,
|
|
104
231
|
queriesPending: runtime.querying.hasPendingWork(),
|
|
105
232
|
};
|
|
106
233
|
}
|
|
@@ -109,7 +236,9 @@ export function runtimeHasPendingWork(runtime) {
|
|
|
109
236
|
const state = runtimePendingState(runtime);
|
|
110
237
|
return state.ingress || state.cues || state.replyEscrow
|
|
111
238
|
|| state.oobiQueued || state.oobiInFlight || state.multiPending
|
|
112
|
-
|| state.authQueued || state.authInFlight || state.
|
|
239
|
+
|| state.authQueued || state.authInFlight || state.outboxPending
|
|
240
|
+
|| state.delegationPending
|
|
241
|
+
|| state.queriesPending;
|
|
113
242
|
}
|
|
114
243
|
/** Return true when a well-known URL has been authorized into `wkas.`. */
|
|
115
244
|
export function runtimeHasWellKnownAuth(runtime, url) {
|
|
@@ -193,6 +322,7 @@ export { runtimeTurn } from "./runtime-turn.js";
|
|
|
193
322
|
*/
|
|
194
323
|
export function* runAgentRuntime(runtime, options = {}) {
|
|
195
324
|
runtime.querying.configure({ hab: options.hab, sink: options.sink });
|
|
325
|
+
runtime.mailboxPoller.configure({ hab: options.hab });
|
|
196
326
|
const tasks = [
|
|
197
327
|
yield* spawn(function* () {
|
|
198
328
|
yield* runtime.reactor.msgDo();
|
|
@@ -209,6 +339,30 @@ export function* runAgentRuntime(runtime, options = {}) {
|
|
|
209
339
|
yield* spawn(function* () {
|
|
210
340
|
yield* runtime.authenticator.authDo();
|
|
211
341
|
}),
|
|
342
|
+
...(runtime.signaler
|
|
343
|
+
? [
|
|
344
|
+
yield* spawn(function* () {
|
|
345
|
+
yield* runtime.signaler.signalDo();
|
|
346
|
+
}),
|
|
347
|
+
]
|
|
348
|
+
: []),
|
|
349
|
+
yield* spawn(function* () {
|
|
350
|
+
while (true) {
|
|
351
|
+
yield* runtime.poster.processPending();
|
|
352
|
+
yield* runtimeTurn();
|
|
353
|
+
}
|
|
354
|
+
}),
|
|
355
|
+
yield* spawn(function* () {
|
|
356
|
+
yield* runtime.mailboxPoller.pollDo((batch) => {
|
|
357
|
+
settleMailboxPollBatch(runtime, batch);
|
|
358
|
+
});
|
|
359
|
+
}),
|
|
360
|
+
yield* spawn(function* () {
|
|
361
|
+
while (true) {
|
|
362
|
+
yield* runtime.delegating.processAllOnce();
|
|
363
|
+
yield* runtimeTurn();
|
|
364
|
+
}
|
|
365
|
+
}),
|
|
212
366
|
yield* spawn(function* () {
|
|
213
367
|
yield* runtime.querying.queryDo();
|
|
214
368
|
}),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { closeResponseBody, fetchResponseHandle } from "./httping.js";
|
|
2
2
|
import { isWellKnownOobiUrl, parseOobiUrl } from "./oobiery.js";
|
|
3
|
+
import { persistResolvedContact } from "./organizing.js";
|
|
3
4
|
import { runtimeTurn } from "./runtime-turn.js";
|
|
4
5
|
/**
|
|
5
6
|
* Well-known OOBI authenticator for one `Habery`.
|
|
@@ -106,30 +107,14 @@ export class Authenticator {
|
|
|
106
107
|
});
|
|
107
108
|
if (response.ok && cid) {
|
|
108
109
|
this.hby.db.wkas.add(cid, { url, dt: date });
|
|
110
|
+
persistResolvedContact(this.hby, cid, {
|
|
111
|
+
alias: record.oobialias,
|
|
112
|
+
oobi: url,
|
|
113
|
+
});
|
|
109
114
|
}
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
117
|
function* fetchAuthResponse(url) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
let settled = false;
|
|
116
|
-
fetch(url, { signal: controller.signal }).then((response) => {
|
|
117
|
-
settled = true;
|
|
118
|
-
resolve(response);
|
|
119
|
-
}).catch(reject);
|
|
120
|
-
return () => {
|
|
121
|
-
if (!settled) {
|
|
122
|
-
controller.abort();
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
function* closeResponseBody(response) {
|
|
128
|
-
if (!response.body) {
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
yield* action((resolve, reject) => {
|
|
132
|
-
response.body.cancel().then(() => resolve(undefined)).catch(reject);
|
|
133
|
-
return () => { };
|
|
134
|
-
});
|
|
118
|
+
const { response } = yield* fetchResponseHandle(url);
|
|
119
|
+
return response;
|
|
135
120
|
}
|