@replit/protocol 0.3.48 → 0.3.49
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# +28 -0
- package/main/index.d.ts +12 -8
- package/main/index.js +65 -25
- package/package.json +1 -1
package/#README.md#
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Developing
|
|
2
|
+
* Change goval/api/types.proto
|
|
3
|
+
* In this directory:
|
|
4
|
+
* `npm run build`
|
|
5
|
+
* Change repl-it-web/package.json:
|
|
6
|
+
```
|
|
7
|
+
"@replit/protocol": "^0.3.39",
|
|
8
|
+
```
|
|
9
|
+
to
|
|
10
|
+
```
|
|
11
|
+
"@replit/protocol": "link:../goval/api/npm",
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
# Publishing
|
|
15
|
+
|
|
16
|
+
After your `.proto` changes are merged:
|
|
17
|
+
- create a new branch
|
|
18
|
+
- cd into `api/npm`
|
|
19
|
+
- `npm --no-git-tag-version version <new-version>`
|
|
20
|
+
- submit a pull request
|
|
21
|
+
- merged
|
|
22
|
+
- pull latest `main`
|
|
23
|
+
- cd into `api/npm`
|
|
24
|
+
- `npm login` if you're not authed (will need to be in our npm org)
|
|
25
|
+
- `npm publish`
|
|
26
|
+
- it will run a build
|
|
27
|
+
- you be asked for 2fa
|
|
28
|
+
- package will be published
|
package/main/index.d.ts
CHANGED
|
@@ -129,6 +129,9 @@ export namespace replit {
|
|
|
129
129
|
/** Command stat */
|
|
130
130
|
stat?: (replit.goval.api.File|replit.goval.api.IFile|null);
|
|
131
131
|
|
|
132
|
+
/** Command resetNixFilesystem */
|
|
133
|
+
resetNixFilesystem?: (replit.goval.api.File|replit.goval.api.IFile|null);
|
|
134
|
+
|
|
132
135
|
/** Command statRes */
|
|
133
136
|
statRes?: (replit.goval.api.StatResult|replit.goval.api.IStatResult|null);
|
|
134
137
|
|
|
@@ -715,6 +718,9 @@ export namespace replit {
|
|
|
715
718
|
/** Command stat. */
|
|
716
719
|
public stat?: (replit.goval.api.File|null);
|
|
717
720
|
|
|
721
|
+
/** Command resetNixFilesystem. */
|
|
722
|
+
public resetNixFilesystem?: (replit.goval.api.File|null);
|
|
723
|
+
|
|
718
724
|
/** Command statRes. */
|
|
719
725
|
public statRes?: (replit.goval.api.StatResult|null);
|
|
720
726
|
|
|
@@ -1175,7 +1181,7 @@ export namespace replit {
|
|
|
1175
1181
|
public forceTrace: boolean;
|
|
1176
1182
|
|
|
1177
1183
|
/** Command body. */
|
|
1178
|
-
public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"shellMetadata"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageAddResponse"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker");
|
|
1184
|
+
public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"shellMetadata"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"resetNixFilesystem"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageAddResponse"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker");
|
|
1179
1185
|
|
|
1180
1186
|
/**
|
|
1181
1187
|
* Creates a new Command instance using the specified properties.
|
|
@@ -18776,7 +18782,11 @@ export namespace replit {
|
|
|
18776
18782
|
enum Target {
|
|
18777
18783
|
GCE = 0,
|
|
18778
18784
|
CLOUDRUN = 1,
|
|
18779
|
-
STATIC = 2
|
|
18785
|
+
STATIC = 2,
|
|
18786
|
+
VM = 3,
|
|
18787
|
+
AUTOSCALE = 4,
|
|
18788
|
+
SCHEDULED = 5,
|
|
18789
|
+
EXTENSION = 6
|
|
18780
18790
|
}
|
|
18781
18791
|
|
|
18782
18792
|
/** Properties of a RewriteRule. */
|
|
@@ -33519,9 +33529,6 @@ export namespace replit {
|
|
|
33519
33529
|
|
|
33520
33530
|
/** ResourceLimits restrictNetwork */
|
|
33521
33531
|
restrictNetwork?: (boolean|null);
|
|
33522
|
-
|
|
33523
|
-
/** ResourceLimits preventWakeup */
|
|
33524
|
-
preventWakeup?: (boolean|null);
|
|
33525
33532
|
}
|
|
33526
33533
|
|
|
33527
33534
|
/** Represents a ResourceLimits. */
|
|
@@ -33560,9 +33567,6 @@ export namespace replit {
|
|
|
33560
33567
|
/** ResourceLimits restrictNetwork. */
|
|
33561
33568
|
public restrictNetwork: boolean;
|
|
33562
33569
|
|
|
33563
|
-
/** ResourceLimits preventWakeup. */
|
|
33564
|
-
public preventWakeup: boolean;
|
|
33565
|
-
|
|
33566
33570
|
/**
|
|
33567
33571
|
* Creates a new ResourceLimits instance using the specified properties.
|
|
33568
33572
|
* @param [properties] Properties to set
|
package/main/index.js
CHANGED
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
* @property {replit.goval.api.File|replit.goval.api.IFile|null} [tryRemove] Command tryRemove
|
|
89
89
|
* @property {replit.goval.api.File|replit.goval.api.IFile|null} [mkdir] Command mkdir
|
|
90
90
|
* @property {replit.goval.api.File|replit.goval.api.IFile|null} [stat] Command stat
|
|
91
|
+
* @property {replit.goval.api.File|replit.goval.api.IFile|null} [resetNixFilesystem] Command resetNixFilesystem
|
|
91
92
|
* @property {replit.goval.api.StatResult|replit.goval.api.IStatResult|null} [statRes] Command statRes
|
|
92
93
|
* @property {replit.goval.api.TransferStart|replit.goval.api.ITransferStart|null} [transferStart] Command transferStart
|
|
93
94
|
* @property {replit.goval.api.TransferChunk|replit.goval.api.ITransferChunk|null} [transferChunk] Command transferChunk
|
|
@@ -570,6 +571,14 @@
|
|
|
570
571
|
*/
|
|
571
572
|
Command.prototype.stat = null;
|
|
572
573
|
|
|
574
|
+
/**
|
|
575
|
+
* Command resetNixFilesystem.
|
|
576
|
+
* @member {replit.goval.api.File|null|undefined} resetNixFilesystem
|
|
577
|
+
* @memberof replit.goval.api.Command
|
|
578
|
+
* @instance
|
|
579
|
+
*/
|
|
580
|
+
Command.prototype.resetNixFilesystem = null;
|
|
581
|
+
|
|
573
582
|
/**
|
|
574
583
|
* Command statRes.
|
|
575
584
|
* @member {replit.goval.api.StatResult|null|undefined} statRes
|
|
@@ -1799,12 +1808,12 @@
|
|
|
1799
1808
|
|
|
1800
1809
|
/**
|
|
1801
1810
|
* Command body.
|
|
1802
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"shellMetadata"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageAddResponse"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker"|undefined} body
|
|
1811
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"shellMetadata"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"resetNixFilesystem"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageAddResponse"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker"|undefined} body
|
|
1803
1812
|
* @memberof replit.goval.api.Command
|
|
1804
1813
|
* @instance
|
|
1805
1814
|
*/
|
|
1806
1815
|
Object.defineProperty(Command.prototype, "body", {
|
|
1807
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "inputClose", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "shellMetadata", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageAddResponse", "packageRemove", "packageInstall", "packageInstallResponse", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse", "replspaceApiShellTracker"]),
|
|
1816
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "inputClose", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "shellMetadata", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "resetNixFilesystem", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageAddResponse", "packageRemove", "packageInstall", "packageInstallResponse", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse", "replspaceApiShellTracker"]),
|
|
1808
1817
|
set: $util.oneOfSetter($oneOfFields)
|
|
1809
1818
|
});
|
|
1810
1819
|
|
|
@@ -2210,6 +2219,8 @@
|
|
|
2210
2219
|
$root.replit.goval.api.ShellMetadata.encode(message.shellMetadata, writer.uint32(/* id 447, wireType 2 =*/3578).fork()).ldelim();
|
|
2211
2220
|
if (message.packageAddResponse != null && Object.hasOwnProperty.call(message, "packageAddResponse"))
|
|
2212
2221
|
$root.replit.goval.api.PackageAddResponse.encode(message.packageAddResponse, writer.uint32(/* id 448, wireType 2 =*/3586).fork()).ldelim();
|
|
2222
|
+
if (message.resetNixFilesystem != null && Object.hasOwnProperty.call(message, "resetNixFilesystem"))
|
|
2223
|
+
$root.replit.goval.api.File.encode(message.resetNixFilesystem, writer.uint32(/* id 449, wireType 2 =*/3594).fork()).ldelim();
|
|
2213
2224
|
if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
|
|
2214
2225
|
writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
|
|
2215
2226
|
if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
|
|
@@ -2407,6 +2418,10 @@
|
|
|
2407
2418
|
message.stat = $root.replit.goval.api.File.decode(reader, reader.uint32());
|
|
2408
2419
|
break;
|
|
2409
2420
|
}
|
|
2421
|
+
case 449: {
|
|
2422
|
+
message.resetNixFilesystem = $root.replit.goval.api.File.decode(reader, reader.uint32());
|
|
2423
|
+
break;
|
|
2424
|
+
}
|
|
2410
2425
|
case 369: {
|
|
2411
2426
|
message.statRes = $root.replit.goval.api.StatResult.decode(reader, reader.uint32());
|
|
2412
2427
|
break;
|
|
@@ -3423,6 +3438,16 @@
|
|
|
3423
3438
|
return "stat." + error;
|
|
3424
3439
|
}
|
|
3425
3440
|
}
|
|
3441
|
+
if (message.resetNixFilesystem != null && message.hasOwnProperty("resetNixFilesystem")) {
|
|
3442
|
+
if (properties.body === 1)
|
|
3443
|
+
return "body: multiple values";
|
|
3444
|
+
properties.body = 1;
|
|
3445
|
+
{
|
|
3446
|
+
var error = $root.replit.goval.api.File.verify(message.resetNixFilesystem);
|
|
3447
|
+
if (error)
|
|
3448
|
+
return "resetNixFilesystem." + error;
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3426
3451
|
if (message.statRes != null && message.hasOwnProperty("statRes")) {
|
|
3427
3452
|
if (properties.body === 1)
|
|
3428
3453
|
return "body: multiple values";
|
|
@@ -5116,6 +5141,11 @@
|
|
|
5116
5141
|
throw TypeError(".replit.goval.api.Command.stat: object expected");
|
|
5117
5142
|
message.stat = $root.replit.goval.api.File.fromObject(object.stat);
|
|
5118
5143
|
}
|
|
5144
|
+
if (object.resetNixFilesystem != null) {
|
|
5145
|
+
if (typeof object.resetNixFilesystem !== "object")
|
|
5146
|
+
throw TypeError(".replit.goval.api.Command.resetNixFilesystem: object expected");
|
|
5147
|
+
message.resetNixFilesystem = $root.replit.goval.api.File.fromObject(object.resetNixFilesystem);
|
|
5148
|
+
}
|
|
5119
5149
|
if (object.statRes != null) {
|
|
5120
5150
|
if (typeof object.statRes !== "object")
|
|
5121
5151
|
throw TypeError(".replit.goval.api.Command.statRes: object expected");
|
|
@@ -6831,6 +6861,11 @@
|
|
|
6831
6861
|
if (options.oneofs)
|
|
6832
6862
|
object.body = "packageAddResponse";
|
|
6833
6863
|
}
|
|
6864
|
+
if (message.resetNixFilesystem != null && message.hasOwnProperty("resetNixFilesystem")) {
|
|
6865
|
+
object.resetNixFilesystem = $root.replit.goval.api.File.toObject(message.resetNixFilesystem, options);
|
|
6866
|
+
if (options.oneofs)
|
|
6867
|
+
object.body = "resetNixFilesystem";
|
|
6868
|
+
}
|
|
6834
6869
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
6835
6870
|
object.ref = message.ref;
|
|
6836
6871
|
var keys2;
|
|
@@ -47640,6 +47675,10 @@
|
|
|
47640
47675
|
case 0:
|
|
47641
47676
|
case 1:
|
|
47642
47677
|
case 2:
|
|
47678
|
+
case 3:
|
|
47679
|
+
case 4:
|
|
47680
|
+
case 5:
|
|
47681
|
+
case 6:
|
|
47643
47682
|
break;
|
|
47644
47683
|
}
|
|
47645
47684
|
if (message.publicDir != null && message.hasOwnProperty("publicDir"))
|
|
@@ -47709,6 +47748,22 @@
|
|
|
47709
47748
|
case 2:
|
|
47710
47749
|
message.target = 2;
|
|
47711
47750
|
break;
|
|
47751
|
+
case "VM":
|
|
47752
|
+
case 3:
|
|
47753
|
+
message.target = 3;
|
|
47754
|
+
break;
|
|
47755
|
+
case "AUTOSCALE":
|
|
47756
|
+
case 4:
|
|
47757
|
+
message.target = 4;
|
|
47758
|
+
break;
|
|
47759
|
+
case "SCHEDULED":
|
|
47760
|
+
case 5:
|
|
47761
|
+
message.target = 5;
|
|
47762
|
+
break;
|
|
47763
|
+
case "EXTENSION":
|
|
47764
|
+
case 6:
|
|
47765
|
+
message.target = 6;
|
|
47766
|
+
break;
|
|
47712
47767
|
}
|
|
47713
47768
|
if (object.publicDir != null)
|
|
47714
47769
|
message.publicDir = String(object.publicDir);
|
|
@@ -47815,12 +47870,20 @@
|
|
|
47815
47870
|
* @property {number} GCE=0 GCE value
|
|
47816
47871
|
* @property {number} CLOUDRUN=1 CLOUDRUN value
|
|
47817
47872
|
* @property {number} STATIC=2 STATIC value
|
|
47873
|
+
* @property {number} VM=3 VM value
|
|
47874
|
+
* @property {number} AUTOSCALE=4 AUTOSCALE value
|
|
47875
|
+
* @property {number} SCHEDULED=5 SCHEDULED value
|
|
47876
|
+
* @property {number} EXTENSION=6 EXTENSION value
|
|
47818
47877
|
*/
|
|
47819
47878
|
DeploymentConfig.Target = (function() {
|
|
47820
47879
|
var valuesById = {}, values = Object.create(valuesById);
|
|
47821
47880
|
values[valuesById[0] = "GCE"] = 0;
|
|
47822
47881
|
values[valuesById[1] = "CLOUDRUN"] = 1;
|
|
47823
47882
|
values[valuesById[2] = "STATIC"] = 2;
|
|
47883
|
+
values[valuesById[3] = "VM"] = 3;
|
|
47884
|
+
values[valuesById[4] = "AUTOSCALE"] = 4;
|
|
47885
|
+
values[valuesById[5] = "SCHEDULED"] = 5;
|
|
47886
|
+
values[valuesById[6] = "EXTENSION"] = 6;
|
|
47824
47887
|
return values;
|
|
47825
47888
|
})();
|
|
47826
47889
|
|
|
@@ -83231,7 +83294,6 @@
|
|
|
83231
83294
|
* @property {number|null} [scratchDisk] ResourceLimits scratchDisk
|
|
83232
83295
|
* @property {replit.goval.api.repl.ResourceLimits.Cachability|null} [cache] ResourceLimits cache
|
|
83233
83296
|
* @property {boolean|null} [restrictNetwork] ResourceLimits restrictNetwork
|
|
83234
|
-
* @property {boolean|null} [preventWakeup] ResourceLimits preventWakeup
|
|
83235
83297
|
*/
|
|
83236
83298
|
|
|
83237
83299
|
/**
|
|
@@ -83320,14 +83382,6 @@
|
|
|
83320
83382
|
*/
|
|
83321
83383
|
ResourceLimits.prototype.restrictNetwork = false;
|
|
83322
83384
|
|
|
83323
|
-
/**
|
|
83324
|
-
* ResourceLimits preventWakeup.
|
|
83325
|
-
* @member {boolean} preventWakeup
|
|
83326
|
-
* @memberof replit.goval.api.repl.ResourceLimits
|
|
83327
|
-
* @instance
|
|
83328
|
-
*/
|
|
83329
|
-
ResourceLimits.prototype.preventWakeup = false;
|
|
83330
|
-
|
|
83331
83385
|
/**
|
|
83332
83386
|
* Creates a new ResourceLimits instance using the specified properties.
|
|
83333
83387
|
* @function create
|
|
@@ -83366,8 +83420,6 @@
|
|
|
83366
83420
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.cache);
|
|
83367
83421
|
if (message.restrictNetwork != null && Object.hasOwnProperty.call(message, "restrictNetwork"))
|
|
83368
83422
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.restrictNetwork);
|
|
83369
|
-
if (message.preventWakeup != null && Object.hasOwnProperty.call(message, "preventWakeup"))
|
|
83370
|
-
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.preventWakeup);
|
|
83371
83423
|
if (message.scratchDisk != null && Object.hasOwnProperty.call(message, "scratchDisk"))
|
|
83372
83424
|
writer.uint32(/* id 9, wireType 0 =*/72).int64(message.scratchDisk);
|
|
83373
83425
|
if (message.minimumDisk != null && Object.hasOwnProperty.call(message, "minimumDisk"))
|
|
@@ -83442,10 +83494,6 @@
|
|
|
83442
83494
|
message.restrictNetwork = reader.bool();
|
|
83443
83495
|
break;
|
|
83444
83496
|
}
|
|
83445
|
-
case 8: {
|
|
83446
|
-
message.preventWakeup = reader.bool();
|
|
83447
|
-
break;
|
|
83448
|
-
}
|
|
83449
83497
|
default:
|
|
83450
83498
|
reader.skipType(tag & 7);
|
|
83451
83499
|
break;
|
|
@@ -83514,9 +83562,6 @@
|
|
|
83514
83562
|
if (message.restrictNetwork != null && message.hasOwnProperty("restrictNetwork"))
|
|
83515
83563
|
if (typeof message.restrictNetwork !== "boolean")
|
|
83516
83564
|
return "restrictNetwork: boolean expected";
|
|
83517
|
-
if (message.preventWakeup != null && message.hasOwnProperty("preventWakeup"))
|
|
83518
|
-
if (typeof message.preventWakeup !== "boolean")
|
|
83519
|
-
return "preventWakeup: boolean expected";
|
|
83520
83565
|
return null;
|
|
83521
83566
|
};
|
|
83522
83567
|
|
|
@@ -83596,8 +83641,6 @@
|
|
|
83596
83641
|
}
|
|
83597
83642
|
if (object.restrictNetwork != null)
|
|
83598
83643
|
message.restrictNetwork = Boolean(object.restrictNetwork);
|
|
83599
|
-
if (object.preventWakeup != null)
|
|
83600
|
-
message.preventWakeup = Boolean(object.preventWakeup);
|
|
83601
83644
|
return message;
|
|
83602
83645
|
};
|
|
83603
83646
|
|
|
@@ -83630,7 +83673,6 @@
|
|
|
83630
83673
|
object.disk = options.longs === String ? "0" : 0;
|
|
83631
83674
|
object.cache = options.enums === String ? "NONE" : 0;
|
|
83632
83675
|
object.restrictNetwork = false;
|
|
83633
|
-
object.preventWakeup = false;
|
|
83634
83676
|
if ($util.Long) {
|
|
83635
83677
|
var long = new $util.Long(0, 0, false);
|
|
83636
83678
|
object.scratchDisk = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -83662,8 +83704,6 @@
|
|
|
83662
83704
|
object.cache = options.enums === String ? $root.replit.goval.api.repl.ResourceLimits.Cachability[message.cache] === undefined ? message.cache : $root.replit.goval.api.repl.ResourceLimits.Cachability[message.cache] : message.cache;
|
|
83663
83705
|
if (message.restrictNetwork != null && message.hasOwnProperty("restrictNetwork"))
|
|
83664
83706
|
object.restrictNetwork = message.restrictNetwork;
|
|
83665
|
-
if (message.preventWakeup != null && message.hasOwnProperty("preventWakeup"))
|
|
83666
|
-
object.preventWakeup = message.preventWakeup;
|
|
83667
83707
|
if (message.scratchDisk != null && message.hasOwnProperty("scratchDisk"))
|
|
83668
83708
|
if (typeof message.scratchDisk === "number")
|
|
83669
83709
|
object.scratchDisk = options.longs === String ? String(message.scratchDisk) : message.scratchDisk;
|