prjct-cli 0.33.5 → 0.34.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/package.json +1 -1
  3. package/scripts/postinstall.js +26 -2
  4. package/templates/agentic/orchestrator.md +303 -0
  5. package/templates/commands/bug.md +2 -0
  6. package/templates/commands/github.md +63 -7
  7. package/templates/commands/jira.md +44 -4
  8. package/templates/commands/linear.md +40 -8
  9. package/templates/commands/monday.md +42 -6
  10. package/templates/commands/p.md +57 -10
  11. package/templates/commands/sync.md +133 -97
  12. package/templates/commands/task.md +12 -0
  13. package/templates/config/skill-mappings.json +95 -63
  14. package/dist/bin/prjct.mjs +0 -13581
  15. package/dist/core/infrastructure/command-installer.js +0 -473
  16. package/dist/core/infrastructure/editors-config.js +0 -157
  17. package/dist/core/infrastructure/setup.js +0 -893
  18. package/dist/core/utils/version.js +0 -142
  19. package/packages/shared/.turbo/turbo-build.log +0 -14
  20. package/packages/shared/dist/index.d.ts +0 -10
  21. package/packages/shared/dist/index.d.ts.map +0 -1
  22. package/packages/shared/dist/index.js +0 -4196
  23. package/packages/shared/dist/schemas.d.ts +0 -408
  24. package/packages/shared/dist/schemas.d.ts.map +0 -1
  25. package/packages/shared/dist/types.d.ts +0 -144
  26. package/packages/shared/dist/types.d.ts.map +0 -1
  27. package/packages/shared/dist/unified.d.ts +0 -139
  28. package/packages/shared/dist/unified.d.ts.map +0 -1
  29. package/packages/shared/dist/utils.d.ts +0 -60
  30. package/packages/shared/dist/utils.d.ts.map +0 -1
  31. package/templates/commands/ask.md +0 -128
  32. package/templates/commands/dashboard.md +0 -686
  33. package/templates/commands/feature.md +0 -46
  34. package/templates/commands/now.md +0 -53
  35. package/templates/commands/suggest.md +0 -116
  36. package/templates/global/docs/agents.md +0 -88
  37. package/templates/global/docs/architecture.md +0 -103
  38. package/templates/global/docs/commands.md +0 -96
  39. package/templates/global/docs/validation.md +0 -95
@@ -1,142 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: true });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
-
31
- // core/utils/version.ts
32
- var version_exports = {};
33
- __export(version_exports, {
34
- PACKAGE_ROOT: () => PACKAGE_ROOT,
35
- VERSION: () => VERSION,
36
- compareVersions: () => compareVersions,
37
- default: () => version_default,
38
- getPackageInfo: () => getPackageInfo,
39
- getPackageRoot: () => getPackageRoot,
40
- getVersion: () => getVersion,
41
- isCompatible: () => isCompatible,
42
- needsMigration: () => needsMigration
43
- });
44
- module.exports = __toCommonJS(version_exports);
45
- var import_fs = __toESM(require("fs"));
46
- var import_path = __toESM(require("path"));
47
- var cachedVersion = null;
48
- var cachedPackageJson = null;
49
- var cachedPackageRoot = null;
50
- function getPackageRoot() {
51
- if (cachedPackageRoot) {
52
- return cachedPackageRoot;
53
- }
54
- let currentDir = __dirname;
55
- for (let i = 0; i < 5; i++) {
56
- const packageJsonPath = import_path.default.join(currentDir, "package.json");
57
- if (import_fs.default.existsSync(packageJsonPath)) {
58
- try {
59
- const pkg = JSON.parse(import_fs.default.readFileSync(packageJsonPath, "utf-8"));
60
- if (pkg.name === "prjct-cli") {
61
- cachedPackageRoot = currentDir;
62
- return currentDir;
63
- }
64
- } catch {
65
- }
66
- }
67
- currentDir = import_path.default.dirname(currentDir);
68
- }
69
- cachedPackageRoot = import_path.default.join(__dirname, "..", "..", "..");
70
- return cachedPackageRoot;
71
- }
72
- __name(getPackageRoot, "getPackageRoot");
73
- function getVersion() {
74
- if (cachedVersion) {
75
- return cachedVersion;
76
- }
77
- try {
78
- const packageJsonPath = import_path.default.join(getPackageRoot(), "package.json");
79
- const packageJson = JSON.parse(import_fs.default.readFileSync(packageJsonPath, "utf-8"));
80
- cachedVersion = packageJson.version;
81
- cachedPackageJson = packageJson;
82
- return cachedVersion;
83
- } catch (error) {
84
- console.error("Failed to read version from package.json:", error.message);
85
- return "0.0.0";
86
- }
87
- }
88
- __name(getVersion, "getVersion");
89
- function getPackageInfo() {
90
- if (!cachedPackageJson) {
91
- getVersion();
92
- }
93
- return cachedPackageJson;
94
- }
95
- __name(getPackageInfo, "getPackageInfo");
96
- function compareVersions(v1, v2) {
97
- const parts1 = v1.split(".").map(Number);
98
- const parts2 = v2.split(".").map(Number);
99
- for (let i = 0; i < Math.max(parts1.length, parts2.length); i++) {
100
- const num1 = parts1[i] || 0;
101
- const num2 = parts2[i] || 0;
102
- if (num1 > num2) return 1;
103
- if (num1 < num2) return -1;
104
- }
105
- return 0;
106
- }
107
- __name(compareVersions, "compareVersions");
108
- function isCompatible(configVersion) {
109
- const current = getVersion();
110
- const [currentMajor, currentMinor] = current.split(".").map(Number);
111
- const [configMajor, configMinor] = configVersion.split(".").map(Number);
112
- return currentMajor === configMajor && currentMinor === configMinor;
113
- }
114
- __name(isCompatible, "isCompatible");
115
- function needsMigration(fromVersion, toVersion = null) {
116
- const target = toVersion || getVersion();
117
- return compareVersions(fromVersion, target) < 0;
118
- }
119
- __name(needsMigration, "needsMigration");
120
- var VERSION = getVersion();
121
- var PACKAGE_ROOT = getPackageRoot();
122
- var version_default = {
123
- getVersion,
124
- getPackageRoot,
125
- getPackageInfo,
126
- compareVersions,
127
- isCompatible,
128
- needsMigration,
129
- VERSION,
130
- PACKAGE_ROOT
131
- };
132
- // Annotate the CommonJS export names for ESM import in node:
133
- 0 && (module.exports = {
134
- PACKAGE_ROOT,
135
- VERSION,
136
- compareVersions,
137
- getPackageInfo,
138
- getPackageRoot,
139
- getVersion,
140
- isCompatible,
141
- needsMigration
142
- });
@@ -1,14 +0,0 @@
1
-
2
- > @prjct/shared@0.1.0 build
3
- > tsup src/index.ts --format esm --dts
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Target: es2022
9
- ESM Build start
10
- DTS Build start
11
- ESM dist/index.js 5.93 KB
12
- ESM ⚡️ Build success in 221ms
13
- DTS ⚡️ Build success in 1410ms
14
- DTS dist/index.d.ts 17.66 KB
@@ -1,10 +0,0 @@
1
- /**
2
- * @prjct/shared - Shared Types and Utilities
3
- *
4
- * Types and schemas shared between CLI, server, and web.
5
- */
6
- export * from './types';
7
- export * from './schemas';
8
- export * from './utils';
9
- export * from './unified';
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA"}