@follenfang/fupload 0.0.1 → 0.0.4

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.
@@ -1,6 +1,7 @@
1
1
  import os from "node:os";
2
2
  import path from "node:path";
3
3
 
4
+ import { ensureCurseForgeEnv } from "./curseforge-config.mjs";
4
5
  import { readManagedInstall, recordManagedSkill } from "./managed-install.mjs";
5
6
  import { resolveSkillDirectory } from "./options.mjs";
6
7
  import { ensureSkill, loadDistribution } from "./skill-installer.mjs";
@@ -27,6 +28,7 @@ export async function updateSelf({
27
28
  home = os.homedir(),
28
29
  runNpm = runNpmCli,
29
30
  } = {}) {
31
+ const curseforgeConfig = ensureCurseForgeEnv({ home, platform });
30
32
  const installation = resolveGlobalInstall(packageRoot, platform);
31
33
  const current = loadDistribution(packageRoot);
32
34
  const primary = target || resolveSkillDirectory({ env, home });
@@ -94,6 +96,7 @@ export async function updateSelf({
94
96
  from_version: current.packageRecord.version,
95
97
  to_version: updated.packageRecord.version,
96
98
  npm_exit_status: npmResult.status,
99
+ curseforge_config: curseforgeConfig,
97
100
  skills,
98
101
  };
99
102
  }
@@ -1,6 +1,7 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
 
4
+ import { ensureCurseForgeEnv } from "./lib/curseforge-config.mjs";
4
5
  import { recordManagedSkill } from "./lib/managed-install.mjs";
5
6
  import { resolveSkillDirectory } from "./lib/options.mjs";
6
7
  import { ensureSkill } from "./lib/skill-installer.mjs";
@@ -9,9 +10,11 @@ const packageRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "
9
10
  const target = resolveSkillDirectory();
10
11
 
11
12
  try {
13
+ const config = ensureCurseForgeEnv();
12
14
  const result = await ensureSkill({ packageRoot, target });
13
15
  recordManagedSkill(target);
14
16
  process.stdout.write(`Fuploader Skill ${result.status}: ${target}\n`);
17
+ process.stdout.write(`CurseForge configuration ${config.status}: ${config.path}\n`);
15
18
  } catch (error) {
16
19
  process.stderr.write(`Fuploader Skill installation failed: ${error.message}\n`);
17
20
  process.exitCode = 1;
@@ -1,14 +1,19 @@
1
1
  {
2
2
  "schema": "fupload.npm-skill-manifest.v1",
3
3
  "package_name": "@follenfang/fupload",
4
- "package_version": "0.0.1",
5
- "skill_version": "0.0.1",
6
- "tree_sha256": "310b805667d90a590f5e1ac9f8833224e5b6a6050e4d2e3c412f712993e362a7",
4
+ "package_version": "0.0.4",
5
+ "skill_version": "0.0.4",
6
+ "tree_sha256": "657cba2688d07435efd1b5d4ae36b9db58704918dd870b468d9e5ef74c15adc4",
7
7
  "files": [
8
8
  {
9
9
  "path": "agents/openai.yaml",
10
- "bytes": 364,
11
- "sha256": "8316fb299d1e77fbbca1cfc6ec80b2078372dff96940d154af425e692ea9bd58"
10
+ "bytes": 342,
11
+ "sha256": "473872fbc6fcecb2030fd2ac66589afd72f813ad47b2e6e968ee2bca4b7e6ab3"
12
+ },
13
+ {
14
+ "path": "examples/curseforge-plugin-upload.json",
15
+ "bytes": 515,
16
+ "sha256": "624cc03b0d6debd842270d129817904aadff67b6d462f8d1481fc95e999c053e"
12
17
  },
13
18
  {
14
19
  "path": "examples/dd-config-delete.json",
@@ -70,6 +75,16 @@
70
75
  "bytes": 168,
71
76
  "sha256": "40491e9aeddc71a4e9578264e5c42b40613e0ea5f0321da29e170b84ff9f1905"
72
77
  },
78
+ {
79
+ "path": "references/blackbox.md",
80
+ "bytes": 2244,
81
+ "sha256": "910bcd8ff334a063a3c2121bbe16d5134e5719eab80835a1d4f6d8a830b27d51"
82
+ },
83
+ {
84
+ "path": "references/curseforge.md",
85
+ "bytes": 11917,
86
+ "sha256": "2dd0a2429a37af30c4f85a884c2e8ea6fcdb1691c34ccc0c34925890e4e60d92"
87
+ },
73
88
  {
74
89
  "path": "references/dd.md",
75
90
  "bytes": 16543,
@@ -93,12 +108,27 @@
93
108
  {
94
109
  "path": "scripts/fupload_cli/__init__.py",
95
110
  "bytes": 49,
96
- "sha256": "c324e2309cb62d40e43669d5cf8c09f9ffe354ddb4cee317fc9d68caa0740b50"
111
+ "sha256": "833580602400dbdb71fb0d388ffbceb1d4a4f6478bd2667b4a564f5004cf1ca6"
112
+ },
113
+ {
114
+ "path": "scripts/fupload_cli/blackbox_auth.py",
115
+ "bytes": 2874,
116
+ "sha256": "e018a33dce4babd1dc739af68c58499412474c7e1f1e3c0640dc53dbe46fce29"
117
+ },
118
+ {
119
+ "path": "scripts/fupload_cli/blackbox.py",
120
+ "bytes": 12503,
121
+ "sha256": "e15ef8a5063c000c6d4569028acdee2d32915d8ac27f3863122e344381d071c6"
97
122
  },
98
123
  {
99
124
  "path": "scripts/fupload_cli/cli.py",
100
- "bytes": 22260,
101
- "sha256": "4ab353e8c322dfaea76bce52d39fb777bcf0296a515d4065e52afe62f38ed92c"
125
+ "bytes": 25664,
126
+ "sha256": "d1327783aa0e4e27fcc1f71a80cd090f661feaf2e226688b2efa6a36b9645073"
127
+ },
128
+ {
129
+ "path": "scripts/fupload_cli/curseforge.py",
130
+ "bytes": 7959,
131
+ "sha256": "c607c6caba5c551a7e3970bd152de94ab1e96350ee73969048f5aea5bf42c75d"
102
132
  },
103
133
  {
104
134
  "path": "scripts/fupload_cli/dd_broker.py",
@@ -137,8 +167,8 @@
137
167
  },
138
168
  {
139
169
  "path": "scripts/fupload_cli/schema.py",
140
- "bytes": 31522,
141
- "sha256": "8256229fd2b82db42628bc7c61ba7881035b37640483f3398bb771aa327fea21"
170
+ "bytes": 36268,
171
+ "sha256": "db788d2422c0f6b50ce2795a3df75d5bf1e23934ba4211a64198de06931492a5"
142
172
  },
143
173
  {
144
174
  "path": "scripts/fupload_cli/transport.py",
@@ -157,8 +187,8 @@
157
187
  },
158
188
  {
159
189
  "path": "SKILL.md",
160
- "bytes": 18699,
161
- "sha256": "ff3b6e220ffbe94361f59e9cbcc925c9ddb3568c655ce908ad4117b75f0a89fc"
190
+ "bytes": 22692,
191
+ "sha256": "f83b18a43c8013c0ebf7531abca2a0eb34d032a5803c12e154fce84996630142"
162
192
  }
163
193
  ]
164
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@follenfang/fupload",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "description": "Install and run the Fuploader Agent Skill and Python CLI.",
5
5
  "type": "module",
6
6
  "bin": {