@rebasepro/cli 0.13.1-canary.gf57a27e → 0.14.0
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/bundle.d.ts +4 -3
- package/dist/commands/api-keys.d.ts +51 -0
- package/dist/commands/auth.d.ts +31 -0
- package/dist/commands/cloud/context.d.ts +143 -10
- package/dist/commands/cloud/databases.d.ts +38 -0
- package/dist/commands/cloud/deployments.d.ts +22 -0
- package/dist/commands/cloud/domains.d.ts +9 -0
- package/dist/commands/cloud/env.d.ts +50 -0
- package/dist/commands/cloud/extensions.d.ts +20 -0
- package/dist/commands/cloud/projects.d.ts +29 -0
- package/dist/commands/cloud/resources.d.ts +13 -0
- package/dist/commands/dev.d.ts +18 -0
- package/dist/commands/eject.d.ts +42 -0
- package/dist/commands/init.d.ts +16 -0
- package/dist/commands/skills.d.ts +81 -0
- package/dist/index.es.js +1741 -654
- package/dist/index.es.js.map +1 -1
- package/dist/manifest.d.ts +16 -1
- package/dist/utils/args.d.ts +76 -0
- package/package.json +7 -7
- package/templates/eject/Dockerfile +29 -4
- package/templates/eject/backend/src/index.ts +60 -8
- package/templates/eject/docker-compose.custom.yml +9 -1
- package/templates/overlays/baas/backend/tsconfig.json +6 -1
- package/templates/overlays/baas/config/index.ts +9 -0
- package/templates/overlays/baas/config/package.json +1 -0
- package/templates/template/backend/functions/hello.ts +8 -4
- package/templates/template/backend/tsconfig.json +6 -1
- package/templates/template/frontend/vite.config.ts +33 -2
|
@@ -1 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported agent environments and their target directories.
|
|
3
|
+
*
|
|
4
|
+
* `flatLayout` says where the installed rule file sits relative to the skill's
|
|
5
|
+
* own assets. A subdirectory layout writes `<skill>/SKILL.md`, so a link the
|
|
6
|
+
* skill spells `references/x.md` resolves as written; a flat layout writes
|
|
7
|
+
* `<skill>.md` one level up, so those links have to be re-pointed at the
|
|
8
|
+
* per-skill asset directory. See `rewriteAssetLinks`.
|
|
9
|
+
*/
|
|
10
|
+
declare const AGENTS: {
|
|
11
|
+
readonly cursor: {
|
|
12
|
+
readonly label: "Cursor";
|
|
13
|
+
readonly detectDir: ".cursor";
|
|
14
|
+
readonly targetDir: ".cursor/rules";
|
|
15
|
+
readonly flatLayout: true;
|
|
16
|
+
/** Cursor uses .mdc files (Markdown with Context). */
|
|
17
|
+
readonly transformFile: (skillName: string, content: string) => {
|
|
18
|
+
fileName: string;
|
|
19
|
+
content: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly claude: {
|
|
23
|
+
readonly label: "Claude Code";
|
|
24
|
+
readonly detectDir: ".claude";
|
|
25
|
+
readonly targetDir: ".claude/skills";
|
|
26
|
+
readonly flatLayout: false;
|
|
27
|
+
/** Claude Code uses the standard SKILL.md format in subdirectories. */
|
|
28
|
+
readonly transformFile: (skillName: string, content: string) => {
|
|
29
|
+
fileName: string;
|
|
30
|
+
content: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly windsurf: {
|
|
34
|
+
readonly label: "Windsurf";
|
|
35
|
+
readonly detectDir: ".windsurf";
|
|
36
|
+
readonly targetDir: ".windsurf/rules";
|
|
37
|
+
readonly flatLayout: true;
|
|
38
|
+
/** Windsurf uses plain .md files. */
|
|
39
|
+
readonly transformFile: (skillName: string, content: string) => {
|
|
40
|
+
fileName: string;
|
|
41
|
+
content: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
readonly gemini: {
|
|
45
|
+
readonly label: "Gemini CLI / Antigravity";
|
|
46
|
+
readonly detectDir: ".agents";
|
|
47
|
+
readonly targetDir: ".agents/skills";
|
|
48
|
+
readonly flatLayout: false;
|
|
49
|
+
/** Gemini uses the standard SKILL.md format in subdirectories. */
|
|
50
|
+
readonly transformFile: (skillName: string, content: string) => {
|
|
51
|
+
fileName: string;
|
|
52
|
+
content: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type AgentKey = keyof typeof AGENTS;
|
|
57
|
+
export interface LoadedSkill {
|
|
58
|
+
name: string;
|
|
59
|
+
/** Absolute path of the skill's source directory. */
|
|
60
|
+
dir: string;
|
|
61
|
+
content: string;
|
|
62
|
+
/** Every file the skill ships besides SKILL.md, relative to `dir`. */
|
|
63
|
+
assets: string[];
|
|
64
|
+
}
|
|
65
|
+
/** Read all skill directories and return their names, content and assets. */
|
|
66
|
+
export declare function loadSkills(skillsDir: string): LoadedSkill[];
|
|
67
|
+
/**
|
|
68
|
+
* Re-point a skill's own asset links at the per-skill subdirectory, for the
|
|
69
|
+
* agents whose rule file does not live in it.
|
|
70
|
+
*
|
|
71
|
+
* Only paths that name a file the skill actually ships are rewritten, and only
|
|
72
|
+
* where they start a path segment — so prose that happens to contain the same
|
|
73
|
+
* words is left alone.
|
|
74
|
+
*/
|
|
75
|
+
export declare function rewriteAssetLinks(content: string, assets: string[], skillName: string): string;
|
|
76
|
+
/** Install skills for a specific agent into the project directory. */
|
|
77
|
+
export declare function installForAgent(agentKey: AgentKey, skills: LoadedSkill[], projectDir: string): {
|
|
78
|
+
skills: number;
|
|
79
|
+
assets: number;
|
|
80
|
+
};
|
|
1
81
|
export declare function skillsCommand(subcommand: string | undefined, rawArgs: string[]): Promise<void>;
|
|
82
|
+
export {};
|