hopple 0.1.0-rc.13 → 0.1.0-rc.14
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 +21 -0
- package/config.schema.json +1 -1
- package/hopple.js +109 -94
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,6 +102,7 @@ hopple unpublish [project] [--server <url>]
|
|
|
102
102
|
hopple rollback [project] [--server <url>]
|
|
103
103
|
hopple listing [project] [listed | unlisted] [--server <url>]
|
|
104
104
|
hopple list [--server <url>]
|
|
105
|
+
hopple share <link | id> [--data] [--json] [--server <url>]
|
|
105
106
|
hopple collaborators [add <handle> | remove <handle>] [project] [--server <url>]
|
|
106
107
|
hopple login [--server <url>]
|
|
107
108
|
hopple logout [--server <url>]
|
|
@@ -570,6 +571,26 @@ To publish a game you collaborate on, set the manifest's `owner` to the
|
|
|
570
571
|
owner's handle. Without it, `publish` makes a game of your own instead. Your
|
|
571
572
|
requests move its tags or wait for review by your own trust, not the owner's.
|
|
572
573
|
|
|
574
|
+
### `hopple share`
|
|
575
|
+
|
|
576
|
+
```bash
|
|
577
|
+
npx hopple share 'https://hopple.app/ada/pocket?share=…' # the record behind a link
|
|
578
|
+
npx hopple share <link> --data > state.txt # the game's data alone, byte for byte
|
|
579
|
+
npx hopple share <link> --json
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
The record behind a link a player shared: the game's `data` and `meta`, when
|
|
583
|
+
it was made and on which build of the game, where it was made and how it
|
|
584
|
+
left the page, and how many people opened it. It takes the link as the player
|
|
585
|
+
sent it, or its id. To get debug data from a player, have the game put it in a
|
|
586
|
+
link (`hopple.share.offer({ data, meta })`) and ask them to send you the link.
|
|
587
|
+
Data a game handed over as bytes (a `Uint8Array`) is written by `--data` as
|
|
588
|
+
those bytes, and shown in base64 otherwise.
|
|
589
|
+
|
|
590
|
+
For the game's owner, collaborators and admins. Reading a record does not
|
|
591
|
+
count as opening the link. Links made in the dev shell are kept in its browser,
|
|
592
|
+
not on a server, and are read in its log.
|
|
593
|
+
|
|
573
594
|
## The dev shell
|
|
574
595
|
|
|
575
596
|
The dev shell runs the game the way real hosts do (same sandbox, same bridge),
|
package/config.schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$comment": "Generated from sdk/cli/src/types.ts by hopple 0.1.0-rc.
|
|
3
|
+
"$comment": "Generated from sdk/cli/src/types.ts by hopple 0.1.0-rc.14's build. Do not edit.",
|
|
4
4
|
"title": "Hopple project config",
|
|
5
5
|
"$ref": "#/definitions/HoppleConfig",
|
|
6
6
|
"definitions": {
|