@ibgib/web-gib 0.0.27 → 0.0.28

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.
@@ -10,5 +10,5 @@
10
10
  /**
11
11
  * this is the version of this package, auto-updated in the build process
12
12
  */
13
- export declare const AUTO_GENERATED_VERSION = "0.0.27";
13
+ export declare const AUTO_GENERATED_VERSION = "0.0.28";
14
14
  //# sourceMappingURL=AUTO-GENERATED-version.d.mts.map
@@ -10,5 +10,5 @@
10
10
  /**
11
11
  * this is the version of this package, auto-updated in the build process
12
12
  */
13
- export const AUTO_GENERATED_VERSION = '0.0.27';
13
+ export const AUTO_GENERATED_VERSION = '0.0.28';
14
14
  //# sourceMappingURL=AUTO-GENERATED-version.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibgib/web-gib",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "Framework for creating agentic ibGib web apps. Contains plumbing for ibgib components, agentic framework (currently only Gemini implemented), web-based IndexedDB storage substrate, and more.",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -11,4 +11,4 @@
11
11
  /**
12
12
  * this is the version of this package, auto-updated in the build process
13
13
  */
14
- export const AUTO_GENERATED_VERSION = '0.0.27';
14
+ export const AUTO_GENERATED_VERSION = '0.0.28';
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "name": "ibgib-scaffold-app",
4
+ "deprecatedVersion": "0.0.26",
5
+ "deprecatedDate": "2026-04-20",
6
+ "message": "Renamed to ibgib-create-app."
7
+ },
8
+ {
9
+ "name": "ibgib-add-core-engine",
10
+ "deprecatedVersion": "0.0.26",
11
+ "deprecatedDate": "2026-04-20",
12
+ "message": "Renamed to ibgib-create-app-core."
13
+ }
14
+ ]
@@ -22,6 +22,13 @@ try {
22
22
  if (fs.existsSync(targetAgentsDir)) {
23
23
  fs.rmSync(targetAgentsDir, { recursive: true, force: true });
24
24
  }
25
+ fs.mkdirSync(targetAgentsDir, { recursive: true });
26
+
27
+ // Copy deprecated-skills.json if it exists
28
+ const deprecatedFileSrc = path.join(sourceAgentsDir, 'deprecated-skills.json');
29
+ if (fs.existsSync(deprecatedFileSrc)) {
30
+ fs.cpSync(deprecatedFileSrc, path.join(targetAgentsDir, 'deprecated-skills.json'));
31
+ }
25
32
 
26
33
  // We only want to copy skills that start with "ibgib-"
27
34
  const sourceSkillsDir = path.join(sourceAgentsDir, 'skills');
@@ -71,6 +71,52 @@ try {
71
71
  console.log(`${logPref} ✅ Copied skill: ${skillName}`);
72
72
  }
73
73
  }
74
+
75
+ // Check for deprecated skills in the user's workspace
76
+ const deprecatedFilePath = path.join(sourceAgentsDir, 'deprecated-skills.json');
77
+ if (fs.existsSync(deprecatedFilePath)) {
78
+ try {
79
+ const deprecatedList = JSON.parse(fs.readFileSync(deprecatedFilePath, 'utf8'));
80
+
81
+ if (deprecatedList && Array.isArray(deprecatedList) && deprecatedList.length > 0) {
82
+ let mostRecentDate = '';
83
+ for (const d of deprecatedList) {
84
+ if (d.deprecatedDate && d.deprecatedDate > mostRecentDate) {
85
+ mostRecentDate = d.deprecatedDate;
86
+ }
87
+ }
88
+ const dateNote = mostRecentDate ? ` (most recently on ${mostRecentDate})` : '';
89
+ console.log(`\n${logPref} ℹ️ Notice: Some skills have been deprecated by ibGib${dateNote}. See deprecated-skills.json for details.`);
90
+ }
91
+
92
+ const userSkills = fs.readdirSync(targetSkillsDir, { withFileTypes: true });
93
+ let foundDeprecated = false;
94
+
95
+ for (const dirent of userSkills) {
96
+ if (!dirent.isDirectory()) continue;
97
+ const skillName = dirent.name;
98
+ const deprecated = deprecatedList.find(d => d.name === skillName);
99
+
100
+ if (deprecated) {
101
+ if (!foundDeprecated) {
102
+ console.log(`\n${logPref} ⚠️ WARNING: DEPRECATED SKILLS DETECTED IN YOUR WORKSPACE ⚠️`);
103
+ console.log(`${logPref} The following skills in your ${targetSkillsDir} folder are deprecated:`);
104
+ foundDeprecated = true;
105
+ }
106
+ const versionString = deprecated.deprecatedVersion ? ` (v${deprecated.deprecatedVersion})` : '';
107
+ const dateString = deprecated.deprecatedDate ? ` [${deprecated.deprecatedDate}]` : '';
108
+ const msgString = deprecated.message ? ` - ${deprecated.message}` : '';
109
+ console.log(`${logPref} * ${skillName}${versionString}${dateString}${msgString}`);
110
+ }
111
+ }
112
+ if (foundDeprecated) {
113
+ console.log(`${logPref} Note: Deprecated skills are NOT auto-deleted. You may safely remove them manually.\n`);
114
+ }
115
+ } catch (e) {
116
+ console.error(`${logPref} Error reading deprecated skills list:`, e);
117
+ }
118
+ }
119
+
74
120
  console.log(`${logPref} Finished initializing agent skills.`);
75
121
  } catch (error) {
76
122
  console.error(`${logPref} ❌ Failed to copy agent skills:`, error);