@mostra/cli 0.1.0 → 0.2.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/dist/bin.js +1 -1
- package/dist/index.js +1 -1
- package/dist/reference/cli.md +1 -1
- package/dist/reference/diagnostics.json +9 -0
- package/dist/reference/errors/MOSTRA_HOST_IDENTITY_UNAVAILABLE.md +23 -0
- package/dist/{run-Du266XjI.js → run-BJaRnz-Q.js} +2 -2
- package/dist/run-BJaRnz-Q.js.map +1 -0
- package/dist/run-CMyjOm0Q.js +2 -0
- package/package.json +4 -4
- package/src/commands/admin.ts +1 -1
- package/dist/run-D1gRM6Bm.js +0 -2
- package/dist/run-Du266XjI.js.map +0 -1
package/dist/bin.js
CHANGED
|
@@ -54,7 +54,7 @@ async function start() {
|
|
|
54
54
|
},
|
|
55
55
|
stderrTty: process.stderr.isTTY === true,
|
|
56
56
|
terminal: process.stdin.isTTY === true || process.stdout.isTTY === true || process.stderr.isTTY === true
|
|
57
|
-
}) ?? await (await import("./run-
|
|
57
|
+
}) ?? await (await import("./run-CMyjOm0Q.js")).run({
|
|
58
58
|
argv: process.argv.slice(2),
|
|
59
59
|
env: process.env,
|
|
60
60
|
cwd: process.cwd(),
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as COMMANDS, i as referenceMarkdown, n as commandDefinition, r as commandHelp, t as run } from "./run-
|
|
1
|
+
import { a as COMMANDS, i as referenceMarkdown, n as commandDefinition, r as commandHelp, t as run } from "./run-BJaRnz-Q.js";
|
|
2
2
|
import { n as exitCodeFor, t as EXIT } from "./exit-CBIf8nAU.js";
|
|
3
3
|
export { COMMANDS, EXIT, commandDefinition, commandHelp, exitCodeFor, referenceMarkdown, run };
|
package/dist/reference/cli.md
CHANGED
|
@@ -621,6 +621,15 @@
|
|
|
621
621
|
"explanation": "Events before a cursor were compacted on request (`mostra gc --compact-events`, DATA_MODEL §4): an artifact's old events were replaced by one `artifact.compacted` event that summarizes them. A reader asking for events after an earlier cursor would miss some, and Mostra never leaves a silent gap.",
|
|
622
622
|
"fix": "Read again with `after` set to the cursor the message names: the next event is the `artifact.compacted` summary. Rebuild what you track from it and continue as usual."
|
|
623
623
|
},
|
|
624
|
+
{
|
|
625
|
+
"code": "MOSTRA_HOST_IDENTITY_UNAVAILABLE",
|
|
626
|
+
"severity": "error",
|
|
627
|
+
"phase": "host",
|
|
628
|
+
"title": "The host that identifies viewers didn't answer",
|
|
629
|
+
"hint": "Start the host that serves this home's identity port, then open the link again.",
|
|
630
|
+
"explanation": "A host registered the `identity` port, so it decides who opens this home's links. When a link minted without a viewer was opened, that host failed, didn't answer within 5 seconds, gave an answer its schema refuses, or is expected (it lists `identity` in `HomeConfig.ports`) but not connected. Mostra refuses the link rather than let the session act as someone else.",
|
|
631
|
+
"fix": "Start or reconnect the host, then open the link again. A link minted with `view/url`'s `viewer` names its person itself and never needs the port. To return the home to Mostra's own identity, have the host register without the port and clear its expected ports (`HomeConfig.ports: []`)."
|
|
632
|
+
},
|
|
624
633
|
{
|
|
625
634
|
"code": "MOSTRA_HOST_INITIALIZE_ORDER",
|
|
626
635
|
"severity": "error",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: MOSTRA_HOST_IDENTITY_UNAVAILABLE
|
|
3
|
+
severity: error
|
|
4
|
+
phase: host
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<!-- Generated from packages/protocol/src/diagnostics/codes by `node tools/docs/diagnostics.ts write`. Edit the area file, not this page. -->
|
|
8
|
+
|
|
9
|
+
# MOSTRA_HOST_IDENTITY_UNAVAILABLE
|
|
10
|
+
|
|
11
|
+
The host that identifies viewers didn't answer. Severity: error. Phase: host.
|
|
12
|
+
|
|
13
|
+
## What it means
|
|
14
|
+
|
|
15
|
+
A host registered the `identity` port, so it decides who opens this home's links. When a link minted without a viewer was opened, that host failed, didn't answer within 5 seconds, gave an answer its schema refuses, or is expected (it lists `identity` in `HomeConfig.ports`) but not connected. Mostra refuses the link rather than let the session act as someone else.
|
|
16
|
+
|
|
17
|
+
## How to fix it
|
|
18
|
+
|
|
19
|
+
Start or reconnect the host, then open the link again. A link minted with `view/url`'s `viewer` names its person itself and never needs the port. To return the home to Mostra's own identity, have the host register without the port and clear its expected ports (`HomeConfig.ports: []`).
|
|
20
|
+
|
|
21
|
+
## Hint
|
|
22
|
+
|
|
23
|
+
Start the host that serves this home's identity port, then open the link again.
|
|
@@ -1802,7 +1802,7 @@ const hostCommand = defineCommand({
|
|
|
1802
1802
|
topic: "cli"
|
|
1803
1803
|
},
|
|
1804
1804
|
exits: [],
|
|
1805
|
-
example: "host --home ~/.
|
|
1805
|
+
example: "host --home ~/.my-host/mostra",
|
|
1806
1806
|
local: true,
|
|
1807
1807
|
quiet: true,
|
|
1808
1808
|
readsStdin: true,
|
|
@@ -3821,4 +3821,4 @@ async function runRuntime(io, args, stdio) {
|
|
|
3821
3821
|
//#endregion
|
|
3822
3822
|
export { COMMANDS as a, referenceMarkdown as i, commandDefinition as n, commandHelp as r, run as t };
|
|
3823
3823
|
|
|
3824
|
-
//# sourceMappingURL=run-
|
|
3824
|
+
//# sourceMappingURL=run-BJaRnz-Q.js.map
|