prjct-cli 0.44.1 → 0.45.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/CHANGELOG.md +39 -0
- package/bin/prjct.ts +14 -0
- package/core/commands/analysis.ts +239 -0
- package/core/commands/command-data.ts +21 -4
- package/core/commands/commands.ts +4 -0
- package/core/commands/register.ts +1 -0
- package/core/context-tools/files-tool.ts +584 -0
- package/core/context-tools/imports-tool.ts +423 -0
- package/core/context-tools/index.ts +458 -0
- package/core/context-tools/recent-tool.ts +313 -0
- package/core/context-tools/signatures-tool.ts +510 -0
- package/core/context-tools/summary-tool.ts +309 -0
- package/core/context-tools/token-counter.ts +279 -0
- package/core/context-tools/types.ts +253 -0
- package/core/index.ts +4 -0
- package/core/schemas/metrics.ts +143 -0
- package/core/services/sync-service.ts +99 -0
- package/core/storage/index.ts +4 -0
- package/core/storage/metrics-storage.ts +315 -0
- package/core/types/index.ts +3 -0
- package/core/types/storage.ts +49 -0
- package/dist/bin/prjct.mjs +5362 -2825
- package/dist/core/infrastructure/command-installer.js +10 -32
- package/dist/core/infrastructure/setup.js +10 -32
- package/package.json +1 -1
|
@@ -118,39 +118,17 @@ function hasProviderConfig(provider) {
|
|
|
118
118
|
return import_fs2.default.existsSync(config.configDir);
|
|
119
119
|
}
|
|
120
120
|
function getProviderBranding(provider) {
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
if (provider === "cursor") {
|
|
130
|
-
return {
|
|
131
|
-
commitFooter: `\u{1F916} Generated with [p/](https://www.prjct.app/)
|
|
132
|
-
Built with [Cursor](${config.websiteUrl})`,
|
|
133
|
-
signature: "\u26A1 prjct + Cursor"
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
if (provider === "antigravity") {
|
|
137
|
-
return {
|
|
138
|
-
commitFooter: `\u{1F916} Generated with [p/](https://www.prjct.app/)
|
|
139
|
-
Powered by [Antigravity](${config.websiteUrl})`,
|
|
140
|
-
signature: "\u26A1 prjct + Antigravity"
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
if (provider === "windsurf") {
|
|
144
|
-
return {
|
|
145
|
-
commitFooter: `\u{1F916} Generated with [p/](https://www.prjct.app/)
|
|
146
|
-
Built with [Windsurf](${config.websiteUrl})`,
|
|
147
|
-
signature: "\u26A1 prjct + Windsurf"
|
|
148
|
-
};
|
|
149
|
-
}
|
|
121
|
+
const commitFooter = `Generated with [p/](https://www.prjct.app/)`;
|
|
122
|
+
const signatures = {
|
|
123
|
+
claude: "\u26A1 prjct + Claude",
|
|
124
|
+
gemini: "\u26A1 prjct + Gemini",
|
|
125
|
+
cursor: "\u26A1 prjct + Cursor",
|
|
126
|
+
antigravity: "\u26A1 prjct + Antigravity",
|
|
127
|
+
windsurf: "\u26A1 prjct + Windsurf"
|
|
128
|
+
};
|
|
150
129
|
return {
|
|
151
|
-
commitFooter
|
|
152
|
-
|
|
153
|
-
signature: "\u26A1 prjct + Claude"
|
|
130
|
+
commitFooter,
|
|
131
|
+
signature: signatures[provider] || "\u26A1 prjct"
|
|
154
132
|
};
|
|
155
133
|
}
|
|
156
134
|
function detectCursorProject(projectRoot) {
|
|
@@ -118,39 +118,17 @@ function hasProviderConfig(provider) {
|
|
|
118
118
|
return import_fs2.default.existsSync(config.configDir);
|
|
119
119
|
}
|
|
120
120
|
function getProviderBranding(provider) {
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
if (provider === "cursor") {
|
|
130
|
-
return {
|
|
131
|
-
commitFooter: `\u{1F916} Generated with [p/](https://www.prjct.app/)
|
|
132
|
-
Built with [Cursor](${config.websiteUrl})`,
|
|
133
|
-
signature: "\u26A1 prjct + Cursor"
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
if (provider === "antigravity") {
|
|
137
|
-
return {
|
|
138
|
-
commitFooter: `\u{1F916} Generated with [p/](https://www.prjct.app/)
|
|
139
|
-
Powered by [Antigravity](${config.websiteUrl})`,
|
|
140
|
-
signature: "\u26A1 prjct + Antigravity"
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
if (provider === "windsurf") {
|
|
144
|
-
return {
|
|
145
|
-
commitFooter: `\u{1F916} Generated with [p/](https://www.prjct.app/)
|
|
146
|
-
Built with [Windsurf](${config.websiteUrl})`,
|
|
147
|
-
signature: "\u26A1 prjct + Windsurf"
|
|
148
|
-
};
|
|
149
|
-
}
|
|
121
|
+
const commitFooter = `Generated with [p/](https://www.prjct.app/)`;
|
|
122
|
+
const signatures = {
|
|
123
|
+
claude: "\u26A1 prjct + Claude",
|
|
124
|
+
gemini: "\u26A1 prjct + Gemini",
|
|
125
|
+
cursor: "\u26A1 prjct + Cursor",
|
|
126
|
+
antigravity: "\u26A1 prjct + Antigravity",
|
|
127
|
+
windsurf: "\u26A1 prjct + Windsurf"
|
|
128
|
+
};
|
|
150
129
|
return {
|
|
151
|
-
commitFooter
|
|
152
|
-
|
|
153
|
-
signature: "\u26A1 prjct + Claude"
|
|
130
|
+
commitFooter,
|
|
131
|
+
signature: signatures[provider] || "\u26A1 prjct"
|
|
154
132
|
};
|
|
155
133
|
}
|
|
156
134
|
function detectCursorProject(projectRoot) {
|