@cognite/dune 0.3.0 → 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.
@@ -2,7 +2,7 @@
2
2
  * Skills Command
3
3
  *
4
4
  * Manages AI agent skills for Dune apps. Uses the `skills` package (bundled
5
- * dependency) for pull operations.
5
+ * dependency) for pull/list operations.
6
6
  */
7
7
 
8
8
  import { execFileSync } from "node:child_process";
@@ -42,6 +42,7 @@ Usage:
42
42
 
43
43
  Commands:
44
44
  pull Pull all skills into your project
45
+ list List installed skills
45
46
  help Show this help message
46
47
 
47
48
  Options for pull:
@@ -53,6 +54,7 @@ Options for pull:
53
54
  Examples:
54
55
  npx @cognite/dune skills pull # Pull all skills
55
56
  npx @cognite/dune skills pull --skill create-client-tool
57
+ npx @cognite/dune skills list # List installed skills
56
58
  `);
57
59
  }
58
60
 
@@ -140,6 +142,18 @@ function handlePull(args) {
140
142
  console.log("\n✅ Skills pulled successfully");
141
143
  }
142
144
 
145
+ /**
146
+ * Handle `dune skills list`
147
+ */
148
+ function handleList() {
149
+ try {
150
+ runSkillsCli(["list"]);
151
+ } catch (error) {
152
+ console.error("❌ Failed to list skills:", error instanceof Error ? error.message : String(error));
153
+ process.exit(1);
154
+ }
155
+ }
156
+
143
157
  /**
144
158
  * Skills command handler
145
159
  * @param {string[]} args
@@ -159,6 +173,9 @@ export function handleSkillsCommand(args) {
159
173
  case "pull":
160
174
  handlePull(subArgs);
161
175
  break;
176
+ case "list":
177
+ handleList();
178
+ break;
162
179
  default:
163
180
  console.error(`❌ Unknown skills command: ${subcommand}`);
164
181
  printHelp();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/dune",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Build and deploy React apps to Cognite Data Fusion",
5
5
  "keywords": ["cognite", "dune", "cdf", "fusion", "react", "scaffold", "deploy"],
6
6
  "license": "Apache-2.0",