@photon-cli/flux 0.2.9 → 0.3.1
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/index.js +4 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -52067,14 +52067,11 @@ var GrpcClient = class {
|
|
|
52067
52067
|
}
|
|
52068
52068
|
};
|
|
52069
52069
|
var DEFAULT_OPTIONS = {
|
|
52070
|
-
"grpc.max_receive_message_length":
|
|
52071
|
-
"grpc.max_send_message_length":
|
|
52070
|
+
"grpc.max_receive_message_length": 1e4,
|
|
52071
|
+
"grpc.max_send_message_length": 5e3,
|
|
52072
52072
|
"grpc.keepalive_time_ms": 3e4,
|
|
52073
52073
|
"grpc.keepalive_timeout_ms": 1e4,
|
|
52074
|
-
"grpc.keepalive_permit_without_calls": 1
|
|
52075
|
-
"grpc.http2.max_pings_without_data": 0,
|
|
52076
|
-
"grpc.http2.min_time_between_pings_ms": 1e4,
|
|
52077
|
-
"grpc.http2.min_ping_interval_without_data_ms": 1e4
|
|
52074
|
+
"grpc.keepalive_permit_without_calls": 1
|
|
52078
52075
|
};
|
|
52079
52076
|
async function createGrpcClient(address, grpcOptionsOrServiceImpls, ...serviceImpls) {
|
|
52080
52077
|
const isServiceImpl = grpcOptionsOrServiceImpls instanceof Object && "type" in grpcOptionsOrServiceImpls && "serviceClass" in grpcOptionsOrServiceImpls;
|
|
@@ -52237,14 +52234,6 @@ function logout() {
|
|
|
52237
52234
|
clearConfig();
|
|
52238
52235
|
console.log("[FLUX] Logged out.");
|
|
52239
52236
|
}
|
|
52240
|
-
async function getPhoneNumber() {
|
|
52241
|
-
const config = loadConfig();
|
|
52242
|
-
if (config.phoneNumber) {
|
|
52243
|
-
return config.phoneNumber;
|
|
52244
|
-
}
|
|
52245
|
-
console.log("[FLUX] Not logged in.");
|
|
52246
|
-
return await login();
|
|
52247
|
-
}
|
|
52248
52237
|
var AGENT_FILE_NAME = "agent.ts";
|
|
52249
52238
|
function findAgentFile() {
|
|
52250
52239
|
const cwd = process.cwd();
|
|
@@ -52345,7 +52334,7 @@ async function runLocal() {
|
|
|
52345
52334
|
askQuestion();
|
|
52346
52335
|
}
|
|
52347
52336
|
async function runProd() {
|
|
52348
|
-
const phoneNumber =
|
|
52337
|
+
const phoneNumber = "+17185619177";
|
|
52349
52338
|
const agentPath = findAgentFile();
|
|
52350
52339
|
if (!agentPath) {
|
|
52351
52340
|
console.error("[FLUX] No agent.ts or agent.js found in current directory.");
|