@cognite/cli 1.1.0-alpha.50 → 1.1.0-alpha.51
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/LICENSE.md +6 -0
- package/README.md +12 -0
- package/_templates/app/new/config/vitest.config.ts.ejs.t +5 -0
- package/_templates/app/new/root/AGENTS.md.ejs.t +77 -6
- package/_templates/app/new/root/gitignore.ejs.t +1 -0
- package/_templates/app/new/root/package.json.ejs.t +4 -2
- package/_templates/app/new/src/App.test.tsx.ejs.t +37 -11
- package/_templates/app/new/src/App.tsx.ejs.t +46 -64
- package/dist/{chunk-HE6P4LDC.js → chunk-3MRP5PCT.js} +6 -6
- package/dist/chunk-VTE66IK5.js +8 -0
- package/dist/cli/cli.js +90 -86
- package/dist/deploy/index.d.ts +3 -0
- package/dist/deploy/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{skills-GQ5TZKCM.js → skills-SV7BPHAZ.js} +1 -1
- package/package.json +3 -3
- package/dist/chunk-A5ASLC6T.js +0 -7
package/dist/deploy/index.d.ts
CHANGED
|
@@ -60,6 +60,9 @@ declare class AppHostingClient {
|
|
|
60
60
|
publishVersion(appExternalId: string, version: string): Promise<void>;
|
|
61
61
|
/** Publish the version and immediately set it as the ACTIVE alias. */
|
|
62
62
|
publishAndActivate(appExternalId: string, version: string): Promise<void>;
|
|
63
|
+
getActiveVersion(appExternalId: string): Promise<AppVersion | null>;
|
|
64
|
+
/** Remove the ACTIVE alias from a version, taking it out of service without changing its lifecycle state. */
|
|
65
|
+
deactivateVersion(appExternalId: string, version: string): Promise<void>;
|
|
63
66
|
/**
|
|
64
67
|
* Set the ACTIVE alias on a version. Returns the version that was
|
|
65
68
|
* previously active (if any) so callers can surface "Superseded X"
|
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../chunk-3MRP5PCT.js";import"../chunk-EI7MMDWY.js";export{a as AppHostingClient,b as ApplicationPackager,e as deploy,d as getSdk,c as getToken};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o,b as r,c as e,d as f,e as m}from"./chunk-
|
|
1
|
+
import{a as o,b as r,c as e,d as f,e as m}from"./chunk-3MRP5PCT.js";import{a as p,b as t}from"./chunk-EILVJ2ZW.js";import"./chunk-EI7MMDWY.js";export{o as AppHostingClient,r as ApplicationPackager,p as createDuneRuntime,t as createDuneRuntimeFromViews,m as deploy,f as getSdk,e as getToken};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b,d as c,e as d}from"./chunk-
|
|
1
|
+
import{b as a,c as b,d as c,e as d}from"./chunk-VTE66IK5.js";export{c as buildPullArgs,a as execSkillsCli,b as pullAllArgs,d as registerSkillsCommand};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/cli",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.51",
|
|
4
4
|
"description": "CLI for Cognite Data Fusion",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Cognite",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"refresh-spec-kit": "bash scripts/refresh-spec-kit.sh"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@cognite/app-sdk": "^0.
|
|
52
|
+
"@cognite/app-sdk": "^0.5.1",
|
|
53
53
|
"@cognite/sdk": "^10.10.0",
|
|
54
54
|
"@graphql-codegen/cli": "^7.0.0",
|
|
55
55
|
"@graphql-codegen/typescript": "^6.0.1",
|
package/dist/chunk-A5ASLC6T.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
var r=Object.defineProperty;var s=(l,i)=>r(l,"name",{value:i,configurable:!0});import{execFileSync as c}from"child_process";import{createRequire as a}from"module";import{InvalidArgumentError as p}from"commander";var e="cognitedata/builder-skills",o=["claude-code","cursor"],t=o.flatMap(l=>["-a",l]),u=a(import.meta.url).resolve("skills/bin/cli.mjs");function n(l,i={}){c(process.execPath,[u,...l],{stdio:"inherit",cwd:process.cwd(),...i})}s(n,"execSkillsCli");function S(){return["add",e,...t,"--skill","*","-y"]}s(S,"pullAllArgs");function d(l){if(!/^[\w.-]+\/[\w.-]+$/.test(l))throw new p("Expected owner/repo format (e.g., cognitedata/builder-skills)");return l}s(d,"validateSource");function m(l){let i=["add",l.source,...t];return l.skill?i.push("--skill",l.skill):l.interactive||i.push("--skill","*","-y"),l.global&&i.push("--global"),i}s(m,"buildPullArgs");function k(l){console.log(`\u{1F504} Pulling skills from ${l.source}...`),n(m(l)),console.log(`
|
|
2
|
-
\u2705 Skills pulled successfully`)}s(k,"handlePull");function P(l){let i=l.command("skills").summary("Manage AI agent skills for your app").description(`Manage AI agent skills for your app.
|
|
3
|
-
Supports: ${o.join(", ")}`).addHelpText("after",`
|
|
4
|
-
Examples:
|
|
5
|
-
npx @cognite/cli apps skills pull Pull all skills
|
|
6
|
-
npx @cognite/cli apps skills pull --skill create-client-tool Pull a specific skill
|
|
7
|
-
npx @cognite/cli apps skills list List installed skills`);return i.command("pull").description("Pull all skills into your project").option("--source <owner/repo>","Skills repository",d,e).option("--skill <name>","Pull a specific skill by name").option("-i, --interactive","Interactively select which skills to install",!1).option("--global","Install skills globally",!1).action(k),i.command("list").description("List installed skills").action(()=>{n(["list"])}),i}s(P,"registerSkillsCommand");export{s as a,n as b,S as c,m as d,P as e};
|