@khal-os/cli 1.0.3 → 1.0.4
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 +19 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19986,22 +19986,22 @@ function decode(data) {
|
|
|
19986
19986
|
|
|
19987
19987
|
// src/commands/app.ts
|
|
19988
19988
|
var S = {
|
|
19989
|
-
list: "os.
|
|
19990
|
-
get: "os.
|
|
19991
|
-
register: "os.
|
|
19992
|
-
unregister: "os.
|
|
19993
|
-
disable: "os.
|
|
19994
|
-
enable: "os.
|
|
19995
|
-
storeList: "os.
|
|
19996
|
-
storeSubmit: "os.
|
|
19997
|
-
storeApprove: "os.
|
|
19998
|
-
storeReject: "os.
|
|
19999
|
-
runStart: "os.
|
|
20000
|
-
runEnd: "os.
|
|
20001
|
-
runList: "os.
|
|
20002
|
-
vote: "os.
|
|
20003
|
-
unvote: "os.
|
|
20004
|
-
metrics: "os.
|
|
19989
|
+
list: "os.apps.list",
|
|
19990
|
+
get: "os.apps.get",
|
|
19991
|
+
register: "os.apps.register",
|
|
19992
|
+
unregister: "os.apps.unregister",
|
|
19993
|
+
disable: "os.apps.disable",
|
|
19994
|
+
enable: "os.apps.enable",
|
|
19995
|
+
storeList: "os.apps.store.list",
|
|
19996
|
+
storeSubmit: "os.apps.store.submit",
|
|
19997
|
+
storeApprove: "os.apps.store.approve",
|
|
19998
|
+
storeReject: "os.apps.store.reject",
|
|
19999
|
+
runStart: "os.apps.run.start",
|
|
20000
|
+
runEnd: "os.apps.run.end",
|
|
20001
|
+
runList: "os.apps.run.list",
|
|
20002
|
+
vote: "os.apps.vote",
|
|
20003
|
+
unvote: "os.apps.unvote",
|
|
20004
|
+
metrics: "os.apps.metrics",
|
|
20005
20005
|
temporalInstall: "os.marketplace.install",
|
|
20006
20006
|
temporalUninstall: "os.marketplace.uninstall",
|
|
20007
20007
|
temporalUpdate: "os.marketplace.update",
|
|
@@ -20068,7 +20068,7 @@ function resolveInstanceFromOpts(opts, cmd) {
|
|
|
20068
20068
|
async function resolveRemote(name) {
|
|
20069
20069
|
const nc = await connectNats();
|
|
20070
20070
|
try {
|
|
20071
|
-
const resp = await nc.request("os.
|
|
20071
|
+
const resp = await nc.request("os.apps.config.remotes", encode({}), { timeout: TIMEOUT });
|
|
20072
20072
|
const data = JSON.parse(decode(resp.data));
|
|
20073
20073
|
const remote = data.remotes?.find((r) => r.name === name);
|
|
20074
20074
|
if (!remote)
|
|
@@ -20937,7 +20937,7 @@ function formatTimestamp(ts) {
|
|
|
20937
20937
|
return ts;
|
|
20938
20938
|
}
|
|
20939
20939
|
}
|
|
20940
|
-
var eventsCommand = new Command("events").description("Tail handler events with timing and status").argument("[subject-pattern]", "NATS subject pattern to filter events (e.g.
|
|
20940
|
+
var eventsCommand = new Command("events").description("Tail handler events with timing and status").argument("[subject-pattern]", "NATS subject pattern to filter events (e.g. apps.*)").option("--all", "Subscribe to all handler events").option("--since <duration>", "Replay events from JetStream (e.g. 5m, 1h, 30s)").option("--json", "Output raw JSON lines").option("-i, --instance <url>", "KhalOS instance URL").action(async (subjectPattern, opts, cmd) => {
|
|
20941
20941
|
if (!subjectPattern && !opts.all) {
|
|
20942
20942
|
console.error("Error: specify a subject pattern or use --all");
|
|
20943
20943
|
process.exit(1);
|
|
@@ -23709,7 +23709,7 @@ var assertAppsCommand = new Command("apps").description("Compare NATS app count
|
|
|
23709
23709
|
let expectedApps = [];
|
|
23710
23710
|
try {
|
|
23711
23711
|
const nc = await connectNats();
|
|
23712
|
-
const resp = await nc.request("os.
|
|
23712
|
+
const resp = await nc.request("os.apps.list", new TextEncoder().encode(JSON.stringify({})), {
|
|
23713
23713
|
timeout: 5000
|
|
23714
23714
|
});
|
|
23715
23715
|
const data = JSON.parse(decode(resp.data));
|