oorja 1.7.5 → 1.7.6
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 +5 -3
- package/bin/dev +17 -0
- package/bin/oorja +3 -3
- package/bin/teletype +3 -3
- package/{lib → dist}/commands/signout.d.ts +1 -1
- package/{lib → dist}/commands/signout.js +2 -2
- package/dist/commands/teletype/index.d.ts +19 -0
- package/{lib → dist}/commands/teletype/index.js +11 -9
- package/dist/index.d.ts +1 -0
- package/{lib/lib → dist}/index.js +2 -2
- package/{lib → dist}/lib/config.d.ts +1 -1
- package/{lib → dist}/lib/config.js +2 -1
- package/{lib → dist}/lib/oorja/index.js +5 -1
- package/{lib → dist}/lib/surya/vendor/phoenix/constants.d.ts +3 -3
- package/{lib → dist}/lib/surya/vendor/phoenix/socket.d.ts +1 -1
- package/{lib → dist}/lib/teletype/index.js +3 -3
- package/oclif.manifest.json +68 -1
- package/package.json +38 -42
- package/NOTICE.txt +0 -5
- package/bin/run +0 -5
- package/lib/commands/teletype/index.d.ts +0 -19
- package/lib/lib/index.d.ts +0 -1
- /package/bin/{run.cmd → oorja.cmd} +0 -0
- /package/{lib → dist}/lib/encryption.d.ts +0 -0
- /package/{lib → dist}/lib/encryption.js +0 -0
- /package/{lib → dist}/lib/oorja/index.d.ts +0 -0
- /package/{lib → dist}/lib/oorja/preflight.d.ts +0 -0
- /package/{lib → dist}/lib/oorja/preflight.js +0 -0
- /package/{lib → dist}/lib/surya/errors.d.ts +0 -0
- /package/{lib → dist}/lib/surya/errors.js +0 -0
- /package/{lib → dist}/lib/surya/index.d.ts +0 -0
- /package/{lib → dist}/lib/surya/index.js +0 -0
- /package/{lib → dist}/lib/surya/resources.d.ts +0 -0
- /package/{lib → dist}/lib/surya/resources.js +0 -0
- /package/{lib → dist}/lib/surya/types.d.ts +0 -0
- /package/{lib → dist}/lib/surya/types.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/ajax.d.ts +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/ajax.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/channel.d.ts +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/channel.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/constants.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/index.d.ts +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/index.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/longpoll.d.ts +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/longpoll.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/presence.d.ts +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/presence.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/push.d.ts +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/push.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/serializer.d.ts +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/serializer.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/socket.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/timer.d.ts +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/timer.js +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/utils.d.ts +0 -0
- /package/{lib → dist}/lib/surya/vendor/phoenix/utils.js +0 -0
- /package/{lib → dist}/lib/teletype/auxiliary.d.ts +0 -0
- /package/{lib → dist}/lib/teletype/auxiliary.js +0 -0
- /package/{lib → dist}/lib/teletype/index.d.ts +0 -0
- /package/{lib → dist}/lib/utils.d.ts +0 -0
- /package/{lib → dist}/lib/utils.js +0 -0
package/README.md
CHANGED
|
@@ -24,11 +24,13 @@ Your stream can be view-only or collaboration enabled (command-line flag).
|
|
|
24
24
|
|
|
25
25
|
# Install and stream!
|
|
26
26
|
|
|
27
|
-
- You'll need Node
|
|
27
|
+
- You'll need Node 18.17.1 >. CLI is available via npm. <br />
|
|
28
28
|
<a href="https://nodejs.org/en/download/" target="_blank">
|
|
29
29
|
You can setup node/npm from here.
|
|
30
|
-
</a>
|
|
31
|
-
-
|
|
30
|
+
</a>
|
|
31
|
+
- Package does fail on some systems because of node-pty compilation failures. I'm thinking it's better to package the whole thing
|
|
32
|
+
as a binary in future releases (i.e. not available via npm but via a script or manual install).
|
|
33
|
+
|
|
32
34
|
- `npm install -g oorja`
|
|
33
35
|
- `teletype`
|
|
34
36
|
- `teletype -m` (for collaboration mode)
|
package/bin/dev
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node --trace-warnings
|
|
2
|
+
|
|
3
|
+
const oclif = require('@oclif/core')
|
|
4
|
+
|
|
5
|
+
const path = require('path')
|
|
6
|
+
const project = path.join(__dirname, '..', 'tsconfig.json')
|
|
7
|
+
|
|
8
|
+
// In dev mode -> use ts-node and dev plugins
|
|
9
|
+
process.env.NODE_ENV = 'development'
|
|
10
|
+
|
|
11
|
+
require('ts-node').register({project})
|
|
12
|
+
|
|
13
|
+
// In dev mode, always show stack traces
|
|
14
|
+
oclif.settings.debug = true;
|
|
15
|
+
|
|
16
|
+
// Start the CLI
|
|
17
|
+
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
|
package/bin/oorja
CHANGED
package/bin/teletype
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
process.argv.splice(2, 0, 'teletype')
|
|
4
4
|
|
|
5
|
-
require('@oclif/
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const oclif = require('@oclif/core')
|
|
6
|
+
|
|
7
|
+
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SignOut = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
5
|
const config_1 = require("../lib/config");
|
|
6
|
-
class SignOut extends
|
|
6
|
+
class SignOut extends core_1.Command {
|
|
7
7
|
async run() {
|
|
8
8
|
const env = (0, config_1.determineENV)();
|
|
9
9
|
(0, config_1.setENVAccessToken)(env, "");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
export default class TeleTypeCommand extends Command {
|
|
3
|
+
static aliases: string[];
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
6
|
+
static flags: {
|
|
7
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
8
|
+
shell: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
9
|
+
multiplex: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
new_room: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
};
|
|
12
|
+
static args: {
|
|
13
|
+
room: import("@oclif/core/lib/interfaces/parser").Arg<string | undefined, Record<string, unknown>>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
private streamToLink;
|
|
17
|
+
private createRoomAndStream;
|
|
18
|
+
private clearstdin;
|
|
19
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const { Select } = require("enquirer");
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
5
|
const ora = require("ora");
|
|
6
6
|
const os = require("os");
|
|
7
7
|
const chalk = require("chalk");
|
|
@@ -9,9 +9,9 @@ const config_1 = require("../../lib/config");
|
|
|
9
9
|
const oorja_1 = require("../../lib/oorja");
|
|
10
10
|
const utils_1 = require("../../lib/utils");
|
|
11
11
|
const DEFAULT_SHELL = os.platform() === "win32" ? "powershell.exe" : process.env.SHELL || "bash";
|
|
12
|
-
class TeleTypeCommand extends
|
|
12
|
+
class TeleTypeCommand extends core_1.Command {
|
|
13
13
|
async run() {
|
|
14
|
-
const { args, flags: { shell, multiplex, new_room }, } = this.parse(TeleTypeCommand);
|
|
14
|
+
const { args, flags: { shell, multiplex, new_room }, } = await this.parse(TeleTypeCommand);
|
|
15
15
|
if (args.room) {
|
|
16
16
|
await this.streamToLink({ shell, multiplex, roomLink: args.room });
|
|
17
17
|
process.exit(0);
|
|
@@ -48,7 +48,7 @@ class TeleTypeCommand extends command_1.Command {
|
|
|
48
48
|
const app = await (0, oorja_1.getApp)({ roomLink });
|
|
49
49
|
const roomKey = app.getRoomKey(roomLink);
|
|
50
50
|
this.clearstdin();
|
|
51
|
-
await app.teletype(
|
|
51
|
+
await app.teletype({ roomKey, ...options, process });
|
|
52
52
|
}
|
|
53
53
|
async createRoomAndStream({ shell, multiplex, }) {
|
|
54
54
|
const app = await (0, oorja_1.getApp)();
|
|
@@ -105,21 +105,23 @@ Will also allow room participants to write to your terminal!
|
|
|
105
105
|
`,
|
|
106
106
|
];
|
|
107
107
|
TeleTypeCommand.flags = {
|
|
108
|
-
help:
|
|
109
|
-
shell:
|
|
108
|
+
help: core_1.Flags.help({ char: "h" }),
|
|
109
|
+
shell: core_1.Flags.string({
|
|
110
110
|
char: "s",
|
|
111
111
|
description: "shell to use. e.g. bash, fish",
|
|
112
112
|
default: DEFAULT_SHELL,
|
|
113
113
|
}),
|
|
114
|
-
multiplex:
|
|
114
|
+
multiplex: core_1.Flags.boolean({
|
|
115
115
|
char: "m",
|
|
116
116
|
description: "Allows room users to WRITE TO YOUR SHELL i.e enables collaboration mode. Make sure you trust room participants. Off by default",
|
|
117
117
|
default: false,
|
|
118
118
|
}),
|
|
119
|
-
new_room:
|
|
119
|
+
new_room: core_1.Flags.boolean({
|
|
120
120
|
char: "n",
|
|
121
121
|
description: "Create new room",
|
|
122
122
|
default: false,
|
|
123
123
|
}),
|
|
124
124
|
};
|
|
125
|
-
TeleTypeCommand.args =
|
|
125
|
+
TeleTypeCommand.args = {
|
|
126
|
+
room: core_1.Args.string({})
|
|
127
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { run } from '@oclif/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.run = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "run", { enumerable: true, get: function () { return
|
|
4
|
+
var core_1 = require("@oclif/core");
|
|
5
|
+
Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getoorjaConfig = exports.setENVAccessToken = exports.getENVAccessToken = exports.determineENV = exports.INVALID_ROOM_LINK_MESSAGE = exports.ROOM_LINK_SAMPLE = exports.getSuryaConfig = exports.config = exports.CLI_VERSION = void 0;
|
|
4
4
|
const chalk = require("chalk");
|
|
5
|
-
exports.CLI_VERSION = 1.
|
|
5
|
+
exports.CLI_VERSION = 1.76;
|
|
6
6
|
const Conf = require("conf");
|
|
7
7
|
exports.config = new Conf({
|
|
8
8
|
projectName: "oorja",
|
|
@@ -14,6 +14,7 @@ const getSuryaConfig = (env) => {
|
|
|
14
14
|
case "local":
|
|
15
15
|
return "localhost:4000";
|
|
16
16
|
case "staging":
|
|
17
|
+
return "surya-staging.oorja.io";
|
|
17
18
|
case "prod":
|
|
18
19
|
case "prod-teletype":
|
|
19
20
|
return "surya.oorja.io";
|
|
@@ -28,7 +28,11 @@ class OORJA {
|
|
|
28
28
|
return `${oorjaURL(this.config)}/rooms?id=${roomKey.roomId}#${(0, encryption_1.exportKey)(roomKey.key)}`;
|
|
29
29
|
};
|
|
30
30
|
this.teletype = (options) => {
|
|
31
|
-
return (0, teletype_1.teletypeApp)(
|
|
31
|
+
return (0, teletype_1.teletypeApp)({
|
|
32
|
+
userId: this.user.id,
|
|
33
|
+
joinChannel: this.suryaClient.joinChannel,
|
|
34
|
+
...options,
|
|
35
|
+
});
|
|
32
36
|
};
|
|
33
37
|
}
|
|
34
38
|
getRoomKey(roomLink) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const globalSelf:
|
|
2
|
-
export declare const phxWindow:
|
|
3
|
-
export declare const global:
|
|
1
|
+
export declare const globalSelf: (Window & typeof globalThis) | null;
|
|
2
|
+
export declare const phxWindow: (Window & typeof globalThis) | null;
|
|
3
|
+
export declare const global: {};
|
|
4
4
|
export declare const DEFAULT_VSN = "2.0.0";
|
|
5
5
|
export declare const SOCKET_STATES: {
|
|
6
6
|
connecting: number;
|
|
@@ -52,7 +52,7 @@ const teletypeApp = (options) => {
|
|
|
52
52
|
});
|
|
53
53
|
// track own dimensions and keep it up to date
|
|
54
54
|
setInterval(reEvaluateOwnDimensions, 1000);
|
|
55
|
-
term.
|
|
55
|
+
term.onData((d) => {
|
|
56
56
|
stdout.write(d);
|
|
57
57
|
// revisit: is it worth having one letter names, instead of something descriptive
|
|
58
58
|
// does it really save bytes?
|
|
@@ -62,13 +62,13 @@ const teletypeApp = (options) => {
|
|
|
62
62
|
d: (0, encryption_1.encrypt)(d, options.roomKey),
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
|
-
term.
|
|
65
|
+
term.onExit(() => {
|
|
66
66
|
console.log(chalk.blueBright("terminated shell stream to oorja. byee!"));
|
|
67
67
|
resolve(null);
|
|
68
68
|
});
|
|
69
69
|
stdin.setEncoding("utf8");
|
|
70
70
|
stdin.setRawMode(true);
|
|
71
|
-
stdin.on("data", (d) => term.write(d));
|
|
71
|
+
stdin.on("data", (d) => term.write(d.toString("utf8")));
|
|
72
72
|
},
|
|
73
73
|
onClose: () => {
|
|
74
74
|
console.log(chalk.redBright("connection closed, terminated stream."));
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1,68 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": "1.7.6",
|
|
3
|
+
"commands": {
|
|
4
|
+
"signout": {
|
|
5
|
+
"id": "signout",
|
|
6
|
+
"description": "Sign-out of oorja. Clears saved auth-token",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"pluginName": "oorja",
|
|
9
|
+
"pluginAlias": "oorja",
|
|
10
|
+
"pluginType": "core",
|
|
11
|
+
"aliases": [],
|
|
12
|
+
"flags": {},
|
|
13
|
+
"args": {}
|
|
14
|
+
},
|
|
15
|
+
"teletype": {
|
|
16
|
+
"id": "teletype",
|
|
17
|
+
"description": "Launch a terminal streaming session in oorja.",
|
|
18
|
+
"strict": true,
|
|
19
|
+
"pluginName": "oorja",
|
|
20
|
+
"pluginAlias": "oorja",
|
|
21
|
+
"pluginType": "core",
|
|
22
|
+
"aliases": [
|
|
23
|
+
"tty"
|
|
24
|
+
],
|
|
25
|
+
"examples": [
|
|
26
|
+
"$ teletype\nWill prompt to choose streaming destination - existing room or create a new one.\n\n",
|
|
27
|
+
"$ teletype 'https://oorja.io/rooms?id=foo#key'\nWill stream to the room specified by secret link, you must have joined the room before streaming.\n\n",
|
|
28
|
+
"$ teletype -m\nWill also allow room participants to write to your terminal!\n\n"
|
|
29
|
+
],
|
|
30
|
+
"flags": {
|
|
31
|
+
"help": {
|
|
32
|
+
"name": "help",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"char": "h",
|
|
35
|
+
"description": "Show CLI help.",
|
|
36
|
+
"allowNo": false
|
|
37
|
+
},
|
|
38
|
+
"shell": {
|
|
39
|
+
"name": "shell",
|
|
40
|
+
"type": "option",
|
|
41
|
+
"char": "s",
|
|
42
|
+
"description": "shell to use. e.g. bash, fish",
|
|
43
|
+
"multiple": false,
|
|
44
|
+
"default": "/usr/bin/zsh"
|
|
45
|
+
},
|
|
46
|
+
"multiplex": {
|
|
47
|
+
"name": "multiplex",
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"char": "m",
|
|
50
|
+
"description": "Allows room users to WRITE TO YOUR SHELL i.e enables collaboration mode. Make sure you trust room participants. Off by default",
|
|
51
|
+
"allowNo": false
|
|
52
|
+
},
|
|
53
|
+
"new_room": {
|
|
54
|
+
"name": "new_room",
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"char": "n",
|
|
57
|
+
"description": "Create new room",
|
|
58
|
+
"allowNo": false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"args": {
|
|
62
|
+
"room": {
|
|
63
|
+
"name": "room"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oorja",
|
|
3
3
|
"description": "stream terminals to the web and more.",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.6",
|
|
5
5
|
"author": "Akshay Kumar @akshaykmr",
|
|
6
6
|
"bin": {
|
|
7
7
|
"oorja": "./bin/run",
|
|
@@ -10,44 +10,45 @@
|
|
|
10
10
|
"bugs": "https://github.com/akshaykmr/TeleType/issues",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@msgpack/msgpack": "^2.8.0",
|
|
13
|
-
"@oclif/
|
|
14
|
-
"@oclif/
|
|
15
|
-
"@oclif/plugin-
|
|
16
|
-
"axios": "^1.
|
|
13
|
+
"@oclif/core": "^2",
|
|
14
|
+
"@oclif/plugin-help": "^5",
|
|
15
|
+
"@oclif/plugin-plugins": "^3.4.0",
|
|
16
|
+
"axios": "^1.5.0",
|
|
17
17
|
"camelcase-keys": "^6.2.2",
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"enquirer": "^2.3.6",
|
|
21
|
-
"node-pty": "^0.10.1",
|
|
18
|
+
|
|
19
|
+
"chalk": "^4.1.2",
|
|
22
20
|
"ora": "^4",
|
|
21
|
+
|
|
22
|
+
"conf-cli": "^0.1.9",
|
|
23
|
+
"enquirer": "^2.4.1",
|
|
24
|
+
"node-pty": "^1.0.0",
|
|
23
25
|
"term-size": "^2.2.0",
|
|
24
|
-
"tslib": "^
|
|
25
|
-
"ws": "^8.
|
|
26
|
+
"tslib": "^2.6.2",
|
|
27
|
+
"ws": "^8.14.1"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
28
|
-
"@
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"typescript": "^4.9.
|
|
39
|
-
"aws-sdk": "2.1282"
|
|
30
|
+
"@types/node": "^16.18.50",
|
|
31
|
+
"chai": "^4",
|
|
32
|
+
"eslint": "^7.32.0",
|
|
33
|
+
"eslint-config-oclif": "^4",
|
|
34
|
+
"eslint-config-oclif-typescript": "^1.0.3",
|
|
35
|
+
"oclif": "^3.15.0",
|
|
36
|
+
"prettier": "^3.0.3",
|
|
37
|
+
"shx": "^0.3.3",
|
|
38
|
+
"ts-node": "^10.9.1",
|
|
39
|
+
"tslib": "^2.6.2",
|
|
40
|
+
"typescript": "^4.9.5"
|
|
40
41
|
},
|
|
41
42
|
"engines": {
|
|
42
|
-
"node": ">=
|
|
43
|
+
"node": ">=18.17.1"
|
|
43
44
|
},
|
|
44
45
|
"files": [
|
|
45
46
|
"/bin",
|
|
46
|
-
"/
|
|
47
|
+
"/dist",
|
|
47
48
|
"/npm-shrinkwrap.json",
|
|
48
49
|
"/oclif.manifest.json"
|
|
49
50
|
],
|
|
50
|
-
"homepage": "https://
|
|
51
|
+
"homepage": "https://oorja.io",
|
|
51
52
|
"keywords": [
|
|
52
53
|
"teletype",
|
|
53
54
|
"terminal",
|
|
@@ -56,32 +57,27 @@
|
|
|
56
57
|
"cli"
|
|
57
58
|
],
|
|
58
59
|
"license": "SEE LICENSE IN license.txt",
|
|
59
|
-
"main": "
|
|
60
|
+
"main": "dist/index.js",
|
|
60
61
|
"oclif": {
|
|
61
|
-
"commands": "./
|
|
62
|
+
"commands": "./dist/commands",
|
|
62
63
|
"bin": "oorja",
|
|
63
64
|
"plugins": [
|
|
64
65
|
"@oclif/plugin-help",
|
|
66
|
+
"@oclif/plugin-plugins",
|
|
65
67
|
"conf-cli"
|
|
66
|
-
]
|
|
67
|
-
"update": {
|
|
68
|
-
"s3": {
|
|
69
|
-
"host": "https://cli-dist-a327765.s3.amazonaws.com",
|
|
70
|
-
"bucket": "cli-dist-a327765"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
68
|
+
]
|
|
73
69
|
},
|
|
74
70
|
"repository": "akshaykmr/TeleType",
|
|
75
71
|
"scripts": {
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
72
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
73
|
+
"lint": "eslint . --ext .ts --config .eslintrc",
|
|
74
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
75
|
+
"posttest": "yarn lint",
|
|
76
|
+
"prepack": "yarn build && oclif manifest && oclif readme",
|
|
77
|
+
"version": "oclif readme && git add README.md",
|
|
82
78
|
"prettier": "prettier --write './**/*.{ts,tsx,js,css,html}'"
|
|
83
79
|
},
|
|
84
|
-
"types": "
|
|
80
|
+
"types": "dist/index.d.ts",
|
|
85
81
|
"optionalDependencies": {
|
|
86
82
|
"bufferutil": "^4.0.1",
|
|
87
83
|
"utf-8-validate": "^5.0.2"
|
package/NOTICE.txt
DELETED
package/bin/run
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Command, flags } from "@oclif/command";
|
|
2
|
-
export default class TeleTypeCommand extends Command {
|
|
3
|
-
static aliases: string[];
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
static flags: {
|
|
7
|
-
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
|
8
|
-
shell: flags.IOptionFlag<string>;
|
|
9
|
-
multiplex: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
-
new_room: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
11
|
-
};
|
|
12
|
-
static args: {
|
|
13
|
-
name: string;
|
|
14
|
-
}[];
|
|
15
|
-
run(): Promise<void>;
|
|
16
|
-
private streamToLink;
|
|
17
|
-
private createRoomAndStream;
|
|
18
|
-
private clearstdin;
|
|
19
|
-
}
|
package/lib/lib/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { run } from "@oclif/command";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|