@general-input/cli 0.14.0 → 0.14.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/cli.js CHANGED
@@ -18288,7 +18288,7 @@ import chalk4 from "chalk";
18288
18288
  // package.json
18289
18289
  var package_default = {
18290
18290
  name: "@general-input/cli",
18291
- version: "0.14.0",
18291
+ version: "0.14.1",
18292
18292
  type: "module",
18293
18293
  description: "The agent-facing CLI for General Input. Authenticate, manage workflows, run bash with operator credentials injected by the cloud.",
18294
18294
  license: "SEE LICENSE IN LICENSE",
@@ -19364,6 +19364,10 @@ var SkillAuthoringService = class {
19364
19364
  const { client } = await this.sessionContext.requireAuthed();
19365
19365
  return client.skills.list();
19366
19366
  }
19367
+ async get(id) {
19368
+ const { client } = await this.sessionContext.requireAuthed();
19369
+ return client.skills.get(id);
19370
+ }
19367
19371
  /** Create a skill in the cloud, then scaffold a starter SKILL.md in `dir`. */
19368
19372
  async create(args) {
19369
19373
  const { client } = await this.sessionContext.requireAuthed();
@@ -22733,6 +22737,20 @@ function registerResourceGet(parent) {
22733
22737
  const dir = resolve3(opts.dir ?? ".");
22734
22738
  const workflowId = resolveResourceId({ id, dir });
22735
22739
  try {
22740
+ if (workflowId.startsWith("skl_")) {
22741
+ const skill = await skillAuthoringService.get(workflowId);
22742
+ if (opts.json) {
22743
+ printJson(skill);
22744
+ return;
22745
+ }
22746
+ printInfo(`id: ${skill.id}`);
22747
+ printInfo(`name: ${skill.name}`);
22748
+ printInfo("type: skill");
22749
+ printInfo(`enabled: ${skill.isEnabled ? "yes" : "no"}`);
22750
+ printInfo(`valid: ${skill.isValid ? "yes" : "no"}`);
22751
+ printInfo(`version: ${skill.version}`);
22752
+ return;
22753
+ }
22736
22754
  const detail = await workflowAuthoringService.get(workflowId);
22737
22755
  if (opts.json) {
22738
22756
  printJson(detail);