@norskvideo/ctl-commands 0.1.1 → 0.1.3

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/commands.d.ts CHANGED
@@ -128,6 +128,8 @@ export type Command = {
128
128
  id: string;
129
129
  } | {
130
130
  kind: "shm.list";
131
+ } | {
132
+ kind: "sideload.status";
131
133
  } | {
132
134
  kind: "template.list";
133
135
  } | {
@@ -140,6 +142,9 @@ export type Command = {
140
142
  kind: "template.import";
141
143
  file: string;
142
144
  opts: TemplateImportOpts;
145
+ } | {
146
+ kind: "template.refresh";
147
+ name: string;
143
148
  } | {
144
149
  kind: "template.remove";
145
150
  name: string;
@@ -314,6 +319,11 @@ export declare const commands: {
314
319
  readonly kind: "shm.list";
315
320
  }>;
316
321
  };
322
+ readonly sideload: {
323
+ readonly status: LeafCmd<() => {
324
+ readonly kind: "sideload.status";
325
+ }>;
326
+ };
317
327
  readonly template: {
318
328
  readonly list: LeafCmd<() => {
319
329
  readonly kind: "template.list";
@@ -331,6 +341,10 @@ export declare const commands: {
331
341
  readonly file: string;
332
342
  readonly opts: TemplateImportOpts;
333
343
  }>;
344
+ readonly refresh: LeafCmd<(name: string) => {
345
+ readonly kind: "template.refresh";
346
+ readonly name: string;
347
+ }>;
334
348
  readonly remove: LeafCmd<(name: string) => {
335
349
  readonly kind: "template.remove";
336
350
  readonly name: string;
package/commands.js CHANGED
@@ -55,11 +55,15 @@ export const commands = {
55
55
  shm: {
56
56
  list: leaf("list", () => ({ kind: "shm.list" })),
57
57
  },
58
+ sideload: {
59
+ status: leaf("status", () => ({ kind: "sideload.status" })),
60
+ },
58
61
  template: {
59
62
  list: leaf("list", () => ({ kind: "template.list" })),
60
63
  show: leaf("show <name>", (name) => ({ kind: "template.show", name })),
61
64
  default: leaf("default <product>", (product) => ({ kind: "template.default", product })),
62
65
  import: leaf("import <file>", (file, opts) => ({ kind: "template.import", file, opts })),
66
+ refresh: leaf("refresh <name>", (name) => ({ kind: "template.refresh", name })),
63
67
  remove: leaf("remove <name>", (name) => ({ kind: "template.remove", name })),
64
68
  },
65
69
  proxy: {
package/format.js CHANGED
@@ -80,6 +80,8 @@ export function toArgv(cmd) {
80
80
  return ["product", "pull", cmd.name];
81
81
  case "shm.list":
82
82
  return ["shm", "list"];
83
+ case "sideload.status":
84
+ return ["sideload", "status"];
83
85
  case "template.list":
84
86
  return ["template", "list"];
85
87
  case "template.show":
@@ -88,6 +90,8 @@ export function toArgv(cmd) {
88
90
  return ["template", "default", cmd.product];
89
91
  case "template.import":
90
92
  return ["template", "import", cmd.file, ...formatOpts(cmd.opts)];
93
+ case "template.refresh":
94
+ return ["template", "refresh", cmd.name];
91
95
  case "template.remove":
92
96
  return ["template", "remove", cmd.name];
93
97
  case "mcp":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-commands",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {