failproofai 0.0.1-beta.7 → 0.0.1-beta.9
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +3 -3
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +2 -2
- package/.next/standalone/.next/server/app/_not-found.rsc +15 -15
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +10 -10
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +15 -15
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +10 -10
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +8 -8
- package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__02nt~6d._.js +1 -1
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_0z7w.hh._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__092s1ta._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__09icjsf._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0g.lg8b._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0h..k-e._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0osi8nq._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0xmjv9e._.js → [root-of-the-server]__0su5_t~._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0w6l33k._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0cnhb7_._.js → [root-of-the-server]__0yhzo9v._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__11pa2ra._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__12t-wym._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_10lm7or._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_0xerkr6._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_0q-m0y-._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/pages/404.html +2 -2
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +9 -9
- package/.next/standalone/.next/static/chunks/{0w4.ug1d.ok15.js → 0.aencsvb-yev.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0b.lzb_keexdb.js → 0frzv~pmu0hsf.js} +1 -1
- package/.next/standalone/.next/static/chunks/{07nvevyjq47qo.js → 0nygnut7i45jn.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0jzowkzl-dd6s.js → 0pc9pc_pilpi9.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0jfhld9mk1zm4.js → 0qjjki0j187__.js} +1 -1
- package/.next/standalone/.next/static/chunks/{16_nu40klq96n.js → 124wu0bxsexm6.js} +1 -1
- package/.next/standalone/.next/static/chunks/{00qeuetfdsgjk.js → 12olt9p45z-lq.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0iv-rbjm2j5nc.js → 14xe0g0rgwk18.js} +1 -1
- package/.next/standalone/docs/index.md +1 -0
- package/.next/standalone/docs/package-aliases.md +76 -0
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/scripts/alias-proxy.js +18 -0
- package/.next/standalone/scripts/publish-aliases.mjs +85 -0
- package/package.json +1 -1
- package/scripts/alias-proxy.js +18 -0
- package/scripts/publish-aliases.mjs +85 -0
- /package/.next/standalone/.next/static/{H15OMlkQejMvLowzdBldp → o1smiVYETTvcMet_AU8oi}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{H15OMlkQejMvLowzdBldp → o1smiVYETTvcMet_AU8oi}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{H15OMlkQejMvLowzdBldp → o1smiVYETTvcMet_AU8oi}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { execSync } from 'child_process';
|
|
3
|
+
import { readFileSync, writeFileSync, mkdirSync, rmSync, cpSync } from 'fs';
|
|
4
|
+
import { join, dirname } from 'path';
|
|
5
|
+
import { fileURLToPath } from 'url';
|
|
6
|
+
|
|
7
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
const rootPkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
|
|
9
|
+
const VERSION = rootPkg.version;
|
|
10
|
+
const DRY_RUN = process.argv.includes('--dry-run');
|
|
11
|
+
|
|
12
|
+
const ALIASES = [
|
|
13
|
+
// Formatting variants — no "ai", or hyphen/underscore separators
|
|
14
|
+
'failproof',
|
|
15
|
+
'failproof-ai',
|
|
16
|
+
'fail-proof-ai',
|
|
17
|
+
'failproof_ai',
|
|
18
|
+
'fail_proof_ai',
|
|
19
|
+
'fail-proofai',
|
|
20
|
+
// Missing one 'o' from "proof" — common single-char slip
|
|
21
|
+
'failprof',
|
|
22
|
+
'failprof-ai',
|
|
23
|
+
'failprofai',
|
|
24
|
+
'fail-prof-ai',
|
|
25
|
+
'failprof_ai',
|
|
26
|
+
// 'a'/'i' transposition — common keyboard slip
|
|
27
|
+
'faliproof',
|
|
28
|
+
'faliproof-ai',
|
|
29
|
+
'faliproofai',
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
const warnings = [];
|
|
33
|
+
|
|
34
|
+
for (const name of ALIASES) {
|
|
35
|
+
const tmpDir = join('/tmp', `npm-alias-${name}-${Date.now()}`);
|
|
36
|
+
const binDir = join(tmpDir, 'bin');
|
|
37
|
+
mkdirSync(binDir, { recursive: true });
|
|
38
|
+
|
|
39
|
+
const pkg = {
|
|
40
|
+
name,
|
|
41
|
+
version: VERSION,
|
|
42
|
+
description: `Alias for failproofai — installs if you typed '${name}' instead of 'failproofai'`,
|
|
43
|
+
bin: { [name]: './bin/proxy.js' },
|
|
44
|
+
files: ['bin/'],
|
|
45
|
+
dependencies: { failproofai: VERSION },
|
|
46
|
+
publishConfig: { access: 'public' },
|
|
47
|
+
repository: rootPkg.repository,
|
|
48
|
+
homepage: rootPkg.homepage,
|
|
49
|
+
bugs: rootPkg.bugs,
|
|
50
|
+
license: rootPkg.license,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
writeFileSync(join(tmpDir, 'package.json'), JSON.stringify(pkg, null, 2) + '\n');
|
|
54
|
+
cpSync(join(__dirname, 'alias-proxy.js'), join(binDir, 'proxy.js'));
|
|
55
|
+
|
|
56
|
+
if (DRY_RUN) {
|
|
57
|
+
console.log(`[dry-run] Would publish ${name}@${VERSION}`);
|
|
58
|
+
console.log(JSON.stringify(pkg, null, 2));
|
|
59
|
+
console.log('---');
|
|
60
|
+
rmSync(tmpDir, { recursive: true, force: true });
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
console.log(`Publishing ${name}@${VERSION}...`);
|
|
65
|
+
try {
|
|
66
|
+
execSync('npm publish', { cwd: tmpDir, stdio: 'pipe' });
|
|
67
|
+
console.log(`Done: ${name}`);
|
|
68
|
+
} catch (err) {
|
|
69
|
+
const output = (err.stdout?.toString() ?? '') + (err.stderr?.toString() ?? '');
|
|
70
|
+
if (output.includes('too similar')) {
|
|
71
|
+
warnings.push(`${name}: blocked by npm similarity check — request via npm support`);
|
|
72
|
+
} else if (output.includes('cannot publish over')) {
|
|
73
|
+
console.log(`[skip] ${name}: already published at ${VERSION}`);
|
|
74
|
+
} else {
|
|
75
|
+
warnings.push(`${name}: ${output.trim().split('\n').find(l => l.includes('npm error')) ?? 'unknown error'}`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
rmSync(tmpDir, { recursive: true, force: true });
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (warnings.length > 0) {
|
|
83
|
+
console.log('\n::warning::Some alias packages were not published:');
|
|
84
|
+
for (const w of warnings) console.log(` - ${w}`);
|
|
85
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|