@dxos/cli 0.5.8-main.f69e6e4 → 0.5.8
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/bin/agent_entrypoint +0 -1
- package/dist/src/base.d.ts +124 -9
- package/dist/src/base.d.ts.map +1 -1
- package/dist/src/base.js +524 -17
- package/dist/src/base.js.map +1 -1
- package/dist/src/commands/agent/agent.test.js +25 -25
- package/dist/src/commands/agent/agent.test.js.map +1 -1
- package/dist/src/commands/agent/invitations.d.ts +5 -4
- package/dist/src/commands/agent/invitations.d.ts.map +1 -1
- package/dist/src/commands/agent/invitations.js +22 -24
- package/dist/src/commands/agent/invitations.js.map +1 -1
- package/dist/src/commands/agent/list.d.ts +11 -3
- package/dist/src/commands/agent/list.d.ts.map +1 -1
- package/dist/src/commands/agent/list.js +4 -4
- package/dist/src/commands/agent/list.js.map +1 -1
- package/dist/src/commands/agent/restart.d.ts +4 -3
- package/dist/src/commands/agent/restart.d.ts.map +1 -1
- package/dist/src/commands/agent/start.d.ts +4 -3
- package/dist/src/commands/agent/start.d.ts.map +1 -1
- package/dist/src/commands/agent/start.js +2 -2
- package/dist/src/commands/agent/start.js.map +1 -1
- package/dist/src/commands/agent/status.d.ts +4 -3
- package/dist/src/commands/agent/status.d.ts.map +1 -1
- package/dist/src/commands/agent/status.js +1 -1
- package/dist/src/commands/agent/status.js.map +1 -1
- package/dist/src/commands/agent/stop.d.ts +4 -3
- package/dist/src/commands/agent/stop.d.ts.map +1 -1
- package/dist/src/commands/app/app.test.js +2 -2
- package/dist/src/commands/app/app.test.js.map +1 -1
- package/dist/src/commands/app/create.d.ts +4 -3
- package/dist/src/commands/app/create.d.ts.map +1 -1
- package/dist/src/commands/app/list.d.ts +0 -13
- package/dist/src/commands/app/list.d.ts.map +1 -1
- package/dist/src/commands/app/list.js +0 -5
- package/dist/src/commands/app/list.js.map +1 -1
- package/dist/src/commands/app/open.d.ts +4 -3
- package/dist/src/commands/app/open.d.ts.map +1 -1
- package/dist/src/commands/app/open.js +3 -3
- package/dist/src/commands/app/open.js.map +1 -1
- package/dist/src/commands/app/publish.d.ts +4 -3
- package/dist/src/commands/app/publish.d.ts.map +1 -1
- package/dist/src/commands/app/publish.js +1 -2
- package/dist/src/commands/app/publish.js.map +1 -1
- package/dist/src/commands/composer/base.d.ts +18 -0
- package/dist/src/commands/composer/base.d.ts.map +1 -0
- package/dist/src/commands/composer/base.js +109 -0
- package/dist/src/commands/composer/base.js.map +1 -0
- package/dist/src/commands/composer/import.d.ts +30 -0
- package/dist/src/commands/composer/import.d.ts.map +1 -0
- package/dist/src/commands/composer/import.js +71 -0
- package/dist/src/commands/composer/import.js.map +1 -0
- package/dist/src/commands/{space/schema/list.d.ts → composer/query.d.ts} +10 -8
- package/dist/src/commands/composer/query.d.ts.map +1 -0
- package/dist/src/commands/composer/query.js +82 -0
- package/dist/src/commands/composer/query.js.map +1 -0
- package/dist/src/commands/{info.d.ts → composer/upload.d.ts} +13 -8
- package/dist/src/commands/composer/upload.d.ts.map +1 -0
- package/dist/src/commands/composer/upload.js +42 -0
- package/dist/src/commands/composer/upload.js.map +1 -0
- package/dist/src/commands/config/index.test.js +7 -7
- package/dist/src/commands/config/index.test.js.map +1 -1
- package/dist/src/commands/debug/diagnostics.d.ts +4 -3
- package/dist/src/commands/debug/diagnostics.d.ts.map +1 -1
- package/dist/src/commands/debug/diagnostics.js +1 -1
- package/dist/src/commands/debug/diagnostics.js.map +1 -1
- package/dist/src/commands/debug/error.d.ts.map +1 -1
- package/dist/src/commands/debug/error.js +2 -2
- package/dist/src/commands/debug/error.js.map +1 -1
- package/dist/src/commands/debug/generate.d.ts +4 -3
- package/dist/src/commands/debug/generate.d.ts.map +1 -1
- package/dist/src/commands/debug/generate.js +2 -3
- package/dist/src/commands/debug/generate.js.map +1 -1
- package/dist/src/commands/debug/metrics.d.ts.map +1 -1
- package/dist/src/commands/debug/metrics.js +1 -1
- package/dist/src/commands/debug/metrics.js.map +1 -1
- package/dist/src/commands/debug/status.d.ts +4 -3
- package/dist/src/commands/debug/status.d.ts.map +1 -1
- package/dist/src/commands/debug/status.js +1 -1
- package/dist/src/commands/debug/status.js.map +1 -1
- package/dist/src/commands/device/info.d.ts.map +1 -1
- package/dist/src/commands/device/info.js +4 -3
- package/dist/src/commands/device/info.js.map +1 -1
- package/dist/src/commands/device/list.d.ts +11 -3
- package/dist/src/commands/device/list.d.ts.map +1 -1
- package/dist/src/commands/device/list.js +8 -5
- package/dist/src/commands/device/list.js.map +1 -1
- package/dist/src/commands/device/update.d.ts +4 -3
- package/dist/src/commands/device/update.d.ts.map +1 -1
- package/dist/src/commands/device/update.js +4 -3
- package/dist/src/commands/device/update.js.map +1 -1
- package/dist/src/commands/function/dev.d.ts +4 -3
- package/dist/src/commands/function/dev.d.ts.map +1 -1
- package/dist/src/commands/function/dev.js +4 -4
- package/dist/src/commands/function/dev.js.map +1 -1
- package/dist/src/commands/function/list.d.ts +1 -1
- package/dist/src/commands/function/list.d.ts.map +1 -1
- package/dist/src/commands/function/list.js +21 -11
- package/dist/src/commands/function/list.js.map +1 -1
- package/dist/src/commands/function/{trigger/list.d.ts → trigger.d.ts} +9 -8
- package/dist/src/commands/function/trigger.d.ts.map +1 -0
- package/dist/src/commands/function/{trigger/list.js → trigger.js} +34 -16
- package/dist/src/commands/function/trigger.js.map +1 -0
- package/dist/src/commands/halo/create.d.ts +5 -4
- package/dist/src/commands/halo/create.d.ts.map +1 -1
- package/dist/src/commands/halo/create.js +12 -12
- package/dist/src/commands/halo/create.js.map +1 -1
- package/dist/src/commands/halo/credential/add.d.ts.map +1 -1
- package/dist/src/commands/halo/credential/add.js +1 -1
- package/dist/src/commands/halo/credential/add.js.map +1 -1
- package/dist/src/commands/halo/credential/list.d.ts +10 -2
- package/dist/src/commands/halo/credential/list.d.ts.map +1 -1
- package/dist/src/commands/halo/credential/list.js +5 -5
- package/dist/src/commands/halo/credential/list.js.map +1 -1
- package/dist/src/commands/halo/identity.d.ts +0 -1
- package/dist/src/commands/halo/identity.d.ts.map +1 -1
- package/dist/src/commands/halo/identity.js +1 -2
- package/dist/src/commands/halo/identity.js.map +1 -1
- package/dist/src/commands/halo/join.d.ts +3 -2
- package/dist/src/commands/halo/join.d.ts.map +1 -1
- package/dist/src/commands/halo/join.js +9 -23
- package/dist/src/commands/halo/join.js.map +1 -1
- package/dist/src/commands/halo/keys.d.ts.map +1 -1
- package/dist/src/commands/halo/keys.js +1 -1
- package/dist/src/commands/halo/keys.js.map +1 -1
- package/dist/src/commands/halo/share.d.ts +5 -4
- package/dist/src/commands/halo/share.d.ts.map +1 -1
- package/dist/src/commands/halo/share.js +22 -10
- package/dist/src/commands/halo/share.js.map +1 -1
- package/dist/src/commands/halo/update.d.ts +4 -3
- package/dist/src/commands/halo/update.d.ts.map +1 -1
- package/dist/src/commands/halo/update.js +4 -3
- package/dist/src/commands/halo/update.js.map +1 -1
- package/dist/src/commands/reset/index.d.ts +4 -3
- package/dist/src/commands/reset/index.d.ts.map +1 -1
- package/dist/src/commands/reset/index.js +2 -11
- package/dist/src/commands/reset/index.js.map +1 -1
- package/dist/src/commands/shell/index.d.ts.map +1 -1
- package/dist/src/commands/shell/index.js +1 -5
- package/dist/src/commands/shell/index.js.map +1 -1
- package/dist/src/commands/space/close.d.ts.map +1 -1
- package/dist/src/commands/space/close.js +2 -3
- package/dist/src/commands/space/close.js.map +1 -1
- package/dist/src/commands/space/create.d.ts.map +1 -1
- package/dist/src/commands/space/create.js +5 -5
- package/dist/src/commands/space/create.js.map +1 -1
- package/dist/src/commands/space/epoch.d.ts.map +1 -1
- package/dist/src/commands/space/epoch.js +2 -3
- package/dist/src/commands/space/epoch.js.map +1 -1
- package/dist/src/commands/space/info.d.ts.map +1 -1
- package/dist/src/commands/space/info.js +2 -3
- package/dist/src/commands/space/info.js.map +1 -1
- package/dist/src/commands/space/join.d.ts +4 -3
- package/dist/src/commands/space/join.d.ts.map +1 -1
- package/dist/src/commands/space/join.js +8 -20
- package/dist/src/commands/space/join.js.map +1 -1
- package/dist/src/commands/space/list.d.ts +10 -2
- package/dist/src/commands/space/list.d.ts.map +1 -1
- package/dist/src/commands/space/list.js +6 -6
- package/dist/src/commands/space/list.js.map +1 -1
- package/dist/src/commands/space/members.d.ts +11 -3
- package/dist/src/commands/space/members.d.ts.map +1 -1
- package/dist/src/commands/space/members.js +7 -6
- package/dist/src/commands/space/members.js.map +1 -1
- package/dist/src/commands/space/open.d.ts.map +1 -1
- package/dist/src/commands/space/open.js +2 -3
- package/dist/src/commands/space/open.js.map +1 -1
- package/dist/src/commands/space/query.d.ts +5 -4
- package/dist/src/commands/space/query.d.ts.map +1 -1
- package/dist/src/commands/space/query.js +11 -14
- package/dist/src/commands/space/query.js.map +1 -1
- package/dist/src/commands/space/share.d.ts +5 -4
- package/dist/src/commands/space/share.d.ts.map +1 -1
- package/dist/src/commands/space/share.js +24 -12
- package/dist/src/commands/space/share.js.map +1 -1
- package/dist/src/commands/tunnel/index.d.ts +4 -4
- package/dist/src/commands/tunnel/index.d.ts.map +1 -1
- package/dist/src/commands/tunnel/index.js +0 -2
- package/dist/src/commands/tunnel/index.js.map +1 -1
- package/dist/src/commands/tunnel/list.d.ts +0 -13
- package/dist/src/commands/tunnel/list.d.ts.map +1 -1
- package/dist/src/commands/tunnel/list.js +0 -5
- package/dist/src/commands/tunnel/list.js.map +1 -1
- package/dist/src/components/SpaceTable.d.ts.map +1 -1
- package/dist/src/components/SpaceTable.js +2 -2
- package/dist/src/components/SpaceTable.js.map +1 -1
- package/dist/src/errors.d.ts +21 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/errors.js +49 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -15
- package/dist/src/index.js.map +1 -1
- package/dist/src/timeouts.d.ts +3 -0
- package/dist/src/timeouts.d.ts.map +1 -0
- package/dist/src/timeouts.js +10 -0
- package/dist/src/timeouts.js.map +1 -0
- package/dist/src/util/agents.d.ts +3 -0
- package/dist/src/util/agents.d.ts.map +1 -0
- package/dist/src/util/agents.js +47 -0
- package/dist/src/util/agents.js.map +1 -0
- package/dist/src/util/credentials.d.ts +9 -0
- package/dist/src/util/credentials.d.ts.map +1 -0
- package/dist/src/util/credentials.js +37 -0
- package/dist/src/util/credentials.js.map +1 -0
- package/dist/src/util/devices.d.ts +15 -0
- package/dist/src/util/devices.d.ts.map +1 -0
- package/dist/src/util/devices.js +45 -0
- package/dist/src/util/devices.js.map +1 -0
- package/dist/src/util/index.d.ts +8 -1
- package/dist/src/util/index.d.ts.map +1 -1
- package/dist/src/util/index.js +8 -1
- package/dist/src/util/index.js.map +1 -1
- package/dist/src/util/invitations.d.ts +19 -0
- package/dist/src/util/invitations.d.ts.map +1 -0
- package/dist/src/util/invitations.js +79 -0
- package/dist/src/util/invitations.js.map +1 -0
- package/dist/src/util/json.d.ts +2 -0
- package/dist/src/util/json.d.ts.map +1 -0
- package/dist/src/util/json.js +42 -0
- package/dist/src/util/json.js.map +1 -0
- package/dist/src/util/json.test.d.ts +2 -0
- package/dist/src/util/json.test.d.ts.map +1 -0
- package/dist/src/util/json.test.js +14 -0
- package/dist/src/util/json.test.js.map +1 -0
- package/dist/src/util/keys.d.ts +4 -0
- package/dist/src/util/keys.d.ts.map +1 -0
- package/dist/src/util/keys.js +12 -0
- package/dist/src/util/keys.js.map +1 -0
- package/dist/src/util/provider/index.d.ts +1 -1
- package/dist/src/util/provider/index.d.ts.map +1 -1
- package/dist/src/util/provider/index.js +1 -1
- package/dist/src/util/provider/index.js.map +1 -1
- package/dist/src/util/provider/provider.d.ts +1 -2
- package/dist/src/util/provider/provider.d.ts.map +1 -1
- package/dist/src/util/provider/provider.js +4 -3
- package/dist/src/util/provider/provider.js.map +1 -1
- package/dist/src/util/publish/common.d.ts +1 -2
- package/dist/src/util/publish/common.d.ts.map +1 -1
- package/dist/src/util/publish/common.js +4 -3
- package/dist/src/util/publish/common.js.map +1 -1
- package/dist/src/util/publish/ipfs-upload.d.ts +1 -0
- package/dist/src/util/publish/ipfs-upload.d.ts.map +1 -1
- package/dist/src/util/publish/ipfs-upload.js +4 -4
- package/dist/src/util/publish/ipfs-upload.js.map +1 -1
- package/dist/src/util/publish/publish.d.ts +1 -0
- package/dist/src/util/publish/publish.d.ts.map +1 -1
- package/dist/src/util/publish/publish.js +36 -6
- package/dist/src/util/publish/publish.js.map +1 -1
- package/dist/src/util/spaces.d.ts +29 -0
- package/dist/src/util/spaces.d.ts.map +1 -0
- package/dist/src/util/spaces.js +174 -0
- package/dist/src/util/spaces.js.map +1 -0
- package/dist/src/util/testing.d.ts +3 -0
- package/dist/src/util/testing.d.ts.map +1 -0
- package/dist/src/util/testing.js +28 -0
- package/dist/src/util/testing.js.map +1 -0
- package/dist/src/util/tree.d.ts +10 -0
- package/dist/src/util/tree.d.ts.map +1 -0
- package/dist/src/util/tree.js +54 -0
- package/dist/src/util/tree.js.map +1 -0
- package/dist/src/util/tree.test.d.ts +2 -0
- package/dist/src/util/tree.test.d.ts.map +1 -0
- package/dist/src/util/tree.test.js +47 -0
- package/dist/src/util/tree.test.js.map +1 -0
- package/dist/src/util/tunnel/common.d.ts +1 -2
- package/dist/src/util/tunnel/common.d.ts.map +1 -1
- package/dist/src/util/tunnel/common.js +4 -3
- package/dist/src/util/tunnel/common.js.map +1 -1
- package/oclif.manifest.json +2346 -1471
- package/package.json +37 -37
- package/dist/src/commands/function/trigger/list.d.ts.map +0 -1
- package/dist/src/commands/function/trigger/list.js.map +0 -1
- package/dist/src/commands/info.d.ts.map +0 -1
- package/dist/src/commands/info.js +0 -29
- package/dist/src/commands/info.js.map +0 -1
- package/dist/src/commands/space/schema/list.d.ts.map +0 -1
- package/dist/src/commands/space/schema/list.js +0 -51
- package/dist/src/commands/space/schema/list.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.5.8
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "DXOS CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dxos",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"/oclif.manifest.json"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@oclif/core": "^
|
|
27
|
-
"@oclif/plugin-autocomplete": "^3.
|
|
28
|
-
"@oclif/plugin-help": "^6.
|
|
29
|
-
"@oclif/plugin-plugins": "^5.2
|
|
30
|
-
"@oclif/plugin-update": "^4.
|
|
26
|
+
"@oclif/core": "^3.26.6",
|
|
27
|
+
"@oclif/plugin-autocomplete": "^3.0.18",
|
|
28
|
+
"@oclif/plugin-help": "^6.0.22",
|
|
29
|
+
"@oclif/plugin-plugins": "^5.1.2",
|
|
30
|
+
"@oclif/plugin-update": "^4.2.13",
|
|
31
31
|
"@octokit/core": "^4.0.4",
|
|
32
32
|
"chalk": "^4.1.0",
|
|
33
33
|
"cli-progress": "^3.11.2",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"git-rev-sync": "^3.0.2",
|
|
39
39
|
"ink": "^3.2.0",
|
|
40
40
|
"ink-table": "~3.0.0",
|
|
41
|
-
"inquirer": "^8.2.
|
|
41
|
+
"inquirer": "^8.2.0",
|
|
42
42
|
"isomorphic-ws": "^5.0.0",
|
|
43
43
|
"js-yaml": "^4.1.0",
|
|
44
44
|
"kubo-rpc-client": "^4.1.1",
|
|
@@ -52,40 +52,37 @@
|
|
|
52
52
|
"uuid": "^8.3.2",
|
|
53
53
|
"ws": "^8.14.2",
|
|
54
54
|
"wtfnode": "^0.9.1",
|
|
55
|
-
"@
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/client-
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/invariant": "0.5.8
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/tasks-template": "0.5.8-main.f69e6e4",
|
|
80
|
-
"@dxos/util": "0.5.8-main.f69e6e4"
|
|
55
|
+
"@braneframe/types": "0.5.8",
|
|
56
|
+
"@dxos/async": "0.5.8",
|
|
57
|
+
"@dxos/agent": "0.5.8",
|
|
58
|
+
"@dxos/client-protocol": "0.5.8",
|
|
59
|
+
"@dxos/client": "0.5.8",
|
|
60
|
+
"@dxos/client-services": "0.5.8",
|
|
61
|
+
"@dxos/bare-template": "0.5.8",
|
|
62
|
+
"@dxos/config": "0.5.8",
|
|
63
|
+
"@dxos/context": "0.5.8",
|
|
64
|
+
"@dxos/echo-schema": "0.5.8",
|
|
65
|
+
"@dxos/functions": "0.5.8",
|
|
66
|
+
"@dxos/debug": "0.5.8",
|
|
67
|
+
"@dxos/hello-template": "0.5.8",
|
|
68
|
+
"@dxos/log": "0.5.8",
|
|
69
|
+
"@dxos/invariant": "0.5.8",
|
|
70
|
+
"@dxos/network-manager": "0.5.8",
|
|
71
|
+
"@dxos/plate": "0.5.8",
|
|
72
|
+
"@dxos/process": "0.5.8",
|
|
73
|
+
"@dxos/protocols": "0.5.8",
|
|
74
|
+
"@dxos/random": "0.5.8",
|
|
75
|
+
"@dxos/observability": "0.5.8",
|
|
76
|
+
"@dxos/rpc": "0.5.8",
|
|
77
|
+
"@dxos/tasks-template": "0.5.8",
|
|
78
|
+
"@dxos/util": "0.5.8"
|
|
81
79
|
},
|
|
82
80
|
"devDependencies": {
|
|
83
81
|
"@effect/schema": "^0.67.16",
|
|
84
|
-
"@oclif/test": "^
|
|
82
|
+
"@oclif/test": "^3.2.15",
|
|
85
83
|
"@phosphor-icons/react": "^2.1.5",
|
|
86
84
|
"@types/cli-progress": "^3.11.0",
|
|
87
85
|
"@types/fs-extra": "^9.0.4",
|
|
88
|
-
"@types/inquirer": "^8.2.10",
|
|
89
86
|
"@types/js-yaml": "^4.0.5",
|
|
90
87
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
91
88
|
"@types/node": "^18.11.9",
|
|
@@ -94,11 +91,15 @@
|
|
|
94
91
|
"@types/react-dom": "^18.0.6",
|
|
95
92
|
"effect": "^3.2.7",
|
|
96
93
|
"fast-check": "^3.19.0",
|
|
97
|
-
"oclif": "^4.
|
|
94
|
+
"oclif": "^4.10.11",
|
|
98
95
|
"prettier": "^3.2.4",
|
|
99
96
|
"shx": "^0.3.3",
|
|
100
97
|
"typescript": "^5.4.5"
|
|
101
98
|
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"@phosphor-icons/react": "^2.0.5",
|
|
101
|
+
"@types/react-dom": "^18.0.6"
|
|
102
|
+
},
|
|
102
103
|
"engines": {
|
|
103
104
|
"node": ">=18.0.0"
|
|
104
105
|
},
|
|
@@ -113,7 +114,6 @@
|
|
|
113
114
|
"command_not_found": "./dist/src/hooks/command-not-found"
|
|
114
115
|
},
|
|
115
116
|
"plugins": [
|
|
116
|
-
"@dxos/cli-composer",
|
|
117
117
|
"@oclif/plugin-autocomplete",
|
|
118
118
|
"@oclif/plugin-help",
|
|
119
119
|
"@oclif/plugin-plugins",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/commands/function/trigger/list.ts"],"names":[],"mappings":"AAOA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EAAE,WAA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,IAAA,gBAAK,EACH,SAAS,EACT;QACE,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;QACrC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,eAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;QACrE,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;QACrC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,oBAAS,EAAC,IAAA,UAAI,EAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE;KAC1D,EACD,OAAO,CACR,CACF,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,aAAa,iBAcxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../src/commands/info.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,OAAO,IAAI,CAAC;IACxD,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAkB;IAC7C,OAAgB,KAAK;;;;;;;;;;;MAEnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAQ1B"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// Copyright 2022 DXOS.org
|
|
4
|
-
//
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
10
|
-
const inquirer_1 = __importDefault(require("inquirer"));
|
|
11
|
-
const base_1 = require("../base");
|
|
12
|
-
// TODO(burdon): Basic info.
|
|
13
|
-
class Info extends base_1.BaseCommand {
|
|
14
|
-
async run() {
|
|
15
|
-
const { input } = await inquirer_1.default.prompt({
|
|
16
|
-
prefix: chalk_1.default.green('>'),
|
|
17
|
-
name: 'input',
|
|
18
|
-
});
|
|
19
|
-
console.log(input);
|
|
20
|
-
return {};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
Info.enableJsonFlag = true;
|
|
24
|
-
Info.description = 'System info.';
|
|
25
|
-
Info.flags = {
|
|
26
|
-
...base_1.BaseCommand.flags,
|
|
27
|
-
};
|
|
28
|
-
exports.default = Info;
|
|
29
|
-
//# sourceMappingURL=info.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../src/commands/info.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,kDAA0B;AAC1B,wDAAgC;AAEhC,kCAAsC;AAEtC,4BAA4B;AAC5B,MAAqB,IAAK,SAAQ,kBAAwB;IAOxD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAoB;YACzD,MAAM,EAAE,eAAK,CAAC,KAAK,CAAC,GAAG,CAAC;YACxB,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;;AAbe,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,cAAc,CAAC;AAC7B,UAAK,GAAG;IACtB,GAAG,kBAAW,CAAC,KAAK;CACrB,CAAC;kBALiB,IAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/commands/space/schema/list.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,OAAO,IAAI,CAAC;IACxD,OAAgB,cAAc,UAAQ;IAMtC,OAAgB,KAAK;;;;;;;;;;;;;;MAKnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAS1B"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// Copyright 2022 DXOS.org
|
|
4
|
-
//
|
|
5
|
-
var _a;
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
const core_1 = require("@oclif/core");
|
|
8
|
-
const cli_base_1 = require("@dxos/cli-base");
|
|
9
|
-
const cli_base_2 = require("@dxos/cli-base");
|
|
10
|
-
const base_1 = require("../../../base");
|
|
11
|
-
// TODO(burdon): Option to output JSON schema.
|
|
12
|
-
class List extends base_1.BaseCommand {
|
|
13
|
-
async run() {
|
|
14
|
-
const { key } = this.args;
|
|
15
|
-
return await this.execWithClient(async ({ client }) => {
|
|
16
|
-
const space = await this.getSpace(client, key);
|
|
17
|
-
const typenameFilter = createTypenameFilter(this.flags.typename);
|
|
18
|
-
const schemas = (await space.db.schema.listAll()).filter(typenameFilter);
|
|
19
|
-
printSchema(schemas, this.flags);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
_a = List;
|
|
24
|
-
List.enableJsonFlag = true;
|
|
25
|
-
(() => {
|
|
26
|
-
_a.description = 'List schema.';
|
|
27
|
-
})();
|
|
28
|
-
List.flags = {
|
|
29
|
-
...base_1.BaseCommand.flags,
|
|
30
|
-
...cli_base_2.TABLE_FLAGS,
|
|
31
|
-
...cli_base_1.FLAG_SPACE_KEYS,
|
|
32
|
-
typename: core_1.Flags.string({ default: undefined, description: 'Filter objects by typename.' }),
|
|
33
|
-
};
|
|
34
|
-
exports.default = List;
|
|
35
|
-
const createTypenameFilter = (typenameFilter) => {
|
|
36
|
-
if (!typenameFilter) {
|
|
37
|
-
return () => true;
|
|
38
|
-
}
|
|
39
|
-
return (schema) => schema.typename.toLowerCase().includes(typenameFilter.toLowerCase());
|
|
40
|
-
};
|
|
41
|
-
// TODO(burdon): Static vs. dynamic.
|
|
42
|
-
const printSchema = (schemas, flags = {}) => {
|
|
43
|
-
core_1.ux.stdout((0, cli_base_2.table)(schemas, {
|
|
44
|
-
id: {
|
|
45
|
-
truncate: true,
|
|
46
|
-
},
|
|
47
|
-
typename: {},
|
|
48
|
-
version: {},
|
|
49
|
-
}, flags));
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/space/schema/list.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,sCAAwC;AAExC,6CAAiD;AACjD,6CAAqE;AAGrE,wCAA4C;AAE5C,8CAA8C;AAE9C,MAAqB,IAAK,SAAQ,kBAAwB;IAcxD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC1B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;YACpD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC/C,MAAM,cAAc,GAAG,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACjE,MAAM,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,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