@chrona-city/ugc-kit 1.5.11 → 1.5.13
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/README.md +63 -0
- package/docs/harness-onboarding.md +44 -3
- package/docs/meshy.md +13 -0
- package/docs/npm-creator.md +1 -1
- package/docs/runtime-download.md +34 -0
- package/lib/creator-api.mjs +80 -9
- package/lib/creator-cli.mjs +13 -3
- package/lib/creator-contribution.mjs +1 -1
- package/lib/creator-install.mjs +48 -5
- package/lib/creator-mcp.mjs +1 -0
- package/lib/creator-onboarding.mjs +3 -2
- package/lib/creator-platform.mjs +4 -2
- package/lib/creator-project-update.mjs +4 -1
- package/lib/creator-session.mjs +11 -5
- package/lib/creator-toolchain-compat.mjs +3 -0
- package/lib/meshy-cli.mjs +23 -0
- package/lib/meshy-store.mjs +33 -10
- package/node_modules/pngjs/CHANGELOG.md +128 -0
- package/package.json +1 -2
- package/runtime-catalog.json +16 -16
- package/node_modules/@esbuild/darwin-arm64/README.md +0 -3
- package/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
- package/node_modules/@esbuild/darwin-arm64/package.json +0 -20
- package/node_modules/@esbuild/darwin-x64/README.md +0 -3
- package/node_modules/@esbuild/darwin-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/darwin-x64/package.json +0 -20
- package/node_modules/@esbuild/linux-arm64/README.md +0 -3
- package/node_modules/@esbuild/linux-arm64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-arm64/package.json +0 -20
- package/node_modules/@esbuild/linux-x64/README.md +0 -3
- package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-x64/package.json +0 -20
- package/node_modules/esbuild/LICENSE.md +0 -21
- package/node_modules/esbuild/README.md +0 -3
- package/node_modules/esbuild/bin/esbuild +0 -223
- package/node_modules/esbuild/install.js +0 -289
- package/node_modules/esbuild/lib/main.d.ts +0 -716
- package/node_modules/esbuild/lib/main.js +0 -2242
- package/node_modules/esbuild/package.json +0 -49
package/lib/creator-session.mjs
CHANGED
|
@@ -13,7 +13,7 @@ export const creatorUploadScopes = Object.freeze(['source:read', 'submissions:wr
|
|
|
13
13
|
|
|
14
14
|
export function assertCreatorUploadAccess(credential, origin, projectId) {
|
|
15
15
|
if (credential?.origin !== origin || !Number.isSafeInteger(credential.expiresAtMs)
|
|
16
|
-
|| credential.expiresAtMs <=
|
|
16
|
+
|| credential.expiresAtMs <= 0 || !Array.isArray(credential.scopes)
|
|
17
17
|
|| !(credential.projectId === '' || /^[a-f0-9]{32}$/.test(credential.projectId ?? ''))
|
|
18
18
|
|| !/^ct_[a-f0-9]{32}\.[a-f0-9]{64}$/.test(credential.accessToken ?? '')) fail('INVALID_CREATOR_CREDENTIAL');
|
|
19
19
|
if (credential.projectId && credential.projectId !== projectId) fail('CREATOR_SESSION_PROJECT_MISMATCH');
|
|
@@ -25,7 +25,7 @@ export function assertCreatorUploadAccess(credential, origin, projectId) {
|
|
|
25
25
|
|
|
26
26
|
function uploadPreflight(state) {
|
|
27
27
|
const authorized = state.phase === 'authorized' && Number.isSafeInteger(state.credential?.expiresAtMs)
|
|
28
|
-
&& state.credential.expiresAtMs >
|
|
28
|
+
&& state.credential.expiresAtMs > 0 && state.credential.origin === state.origin;
|
|
29
29
|
const granted = authorized && Array.isArray(state.credential.scopes) ? state.credential.scopes : [];
|
|
30
30
|
const missingScopes = creatorUploadScopes.filter(scope => !granted.includes(scope));
|
|
31
31
|
return { status: !authorized ? 'not-authorized' : missingScopes.length ? 'missing-scopes' : 'scope-ready',
|
|
@@ -58,6 +58,11 @@ async function writeNew(file, bytes) {
|
|
|
58
58
|
try { await handle.writeFile(bytes); await handle.sync(); } finally { await handle.close(); }
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
// Internal purpose-specific callers reuse the same private filesystem boundary,
|
|
62
|
+
// not the upload session schema, CT or its authority.
|
|
63
|
+
export { sessionDirectory as validatePrivateCreatorDirectory, readPrivate as readPrivateCreatorFile,
|
|
64
|
+
writeNew as writeNewPrivateCreatorFile };
|
|
65
|
+
|
|
61
66
|
async function withSession(directory, action) {
|
|
62
67
|
const root = await sessionDirectory(directory), file = path.join(root, 'session.json'), lockFile = path.join(root, 'session.lock');
|
|
63
68
|
let lock;
|
|
@@ -128,7 +133,8 @@ export async function completeCreatorSession(directory, { signal, fetchImpl, exp
|
|
|
128
133
|
return withSession(directory, async (state, save) => {
|
|
129
134
|
if (expectedOrigin !== undefined && state.origin !== expectedOrigin) fail('CREATOR_SESSION_ORIGIN_MISMATCH');
|
|
130
135
|
if (state.phase !== 'pending') fail('CREATOR_SESSION_NOT_PENDING');
|
|
131
|
-
|
|
136
|
+
const elapsed = Date.now() - state.lastAttemptAtMs;
|
|
137
|
+
if (elapsed >= 0 && elapsed < 2000) fail('CREATOR_AUTHORIZATION_POLL_EARLY');
|
|
132
138
|
const api = createCreatorApi({ origin: state.origin, allowLocalHttp: state.allowLocalHttp, fetchImpl });
|
|
133
139
|
state.phase = 'exchanging'; state.lastAttemptAtMs = Date.now(); await save();
|
|
134
140
|
try {
|
|
@@ -161,7 +167,7 @@ export async function inspectCreatorSession(directory, { expectedOrigin } = {})
|
|
|
161
167
|
export async function useCreatorSession(directory, action, { fetchImpl, expectedOrigin } = {}) {
|
|
162
168
|
return withSession(directory, async state => {
|
|
163
169
|
if (expectedOrigin !== undefined && state.origin !== expectedOrigin) fail('CREATOR_SESSION_ORIGIN_MISMATCH');
|
|
164
|
-
if (state.phase !== 'authorized' || !state.credential || state.credential.expiresAtMs <=
|
|
170
|
+
if (state.phase !== 'authorized' || !Number.isSafeInteger(state.credential?.expiresAtMs) || state.credential.expiresAtMs <= 0) fail('CREATOR_SESSION_NOT_AUTHORIZED');
|
|
165
171
|
return action(createCreatorApi({ origin: state.origin, allowLocalHttp: state.allowLocalHttp, fetchImpl }), structuredClone(state.credential));
|
|
166
172
|
});
|
|
167
173
|
}
|
|
@@ -222,7 +228,7 @@ export async function requestCreatorPreview(directory, projectId, jobId, payload
|
|
|
222
228
|
if (!/^job_[a-f0-9]{64}$/.test(jobId ?? '')) fail('INVALID_CREATOR_JOB_ID');
|
|
223
229
|
return withSession(directory, async (state, _save, root) => {
|
|
224
230
|
if (expectedOrigin !== undefined && state.origin !== expectedOrigin) fail('CREATOR_SESSION_ORIGIN_MISMATCH');
|
|
225
|
-
if (state.phase !== 'authorized' || !state.credential || state.credential.expiresAtMs <=
|
|
231
|
+
if (state.phase !== 'authorized' || !Number.isSafeInteger(state.credential?.expiresAtMs) || state.credential.expiresAtMs <= 0) fail('CREATOR_SESSION_NOT_AUTHORIZED');
|
|
226
232
|
if (state.credential.projectId && state.credential.projectId !== projectId) fail('CREATOR_SESSION_PROJECT_MISMATCH');
|
|
227
233
|
if (signal?.aborted) fail('CREATOR_REQUEST_CANCELLED');
|
|
228
234
|
const api = createCreatorApi({ origin: state.origin, allowLocalHttp: state.allowLocalHttp, fetchImpl });
|
|
@@ -67,6 +67,9 @@ export const registeredUpgradeSources = [{ schemaVersion: '1.0.0', package: '@ch
|
|
|
67
67
|
snapshotHash: 'sha256:1bc56acdc3fdac6999115526f804068c101dcc73ef5054eb2c2c3dc29e381af8',
|
|
68
68
|
sdk: { shared: '#chrona/shared', client: '#chrona/client' } },
|
|
69
69
|
{ schemaVersion: '1.0.0', package: '@chrona-city/ugc-kit', version: '1.5.11',
|
|
70
|
+
snapshotHash: 'sha256:1bc56acdc3fdac6999115526f804068c101dcc73ef5054eb2c2c3dc29e381af8',
|
|
71
|
+
sdk: { shared: '#chrona/shared', client: '#chrona/client' } },
|
|
72
|
+
{ schemaVersion: '1.0.0', package: '@chrona-city/ugc-kit', version: '1.5.12',
|
|
70
73
|
snapshotHash: 'sha256:1bc56acdc3fdac6999115526f804068c101dcc73ef5054eb2c2c3dc29e381af8',
|
|
71
74
|
sdk: { shared: '#chrona/shared', client: '#chrona/client' } }];
|
|
72
75
|
|
package/lib/meshy-cli.mjs
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
import { configureMeshy, meshyStatus, removeMeshy, promptMeshyKey, meshyFail } from './meshy-store.mjs';
|
|
2
2
|
import { createMeshyTask, pollMeshyTask, listMeshyTasks, downloadMeshyTask } from './meshy-api.mjs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
|
|
5
|
+
export function meshyFailureDetails(error, { includeLocalPaths = false } = {}) {
|
|
6
|
+
if (!['MESHY_CONFIG_UNSAFE', 'MESHY_CONFIG_INSIDE_REPOSITORY'].includes(error?.code)) return {};
|
|
7
|
+
const value = error.meshyDiagnostic;
|
|
8
|
+
if (!value || !['directory', 'credentials', 'configuration', 'local-state'].includes(value.object)
|
|
9
|
+
|| !['permissions', 'owner', 'symbolic-link', 'hardlink', 'type', 'size', 'access', 'linked-parent', 'repository'].includes(value.reason)) return {};
|
|
10
|
+
const raw = value.observed, observed = raw && ['directory', 'file', 'symbolic-link', 'other'].includes(raw.type)
|
|
11
|
+
&& ['current', 'different'].includes(raw.owner) && /^[0-7]{4}$/.test(raw.mode ?? '')
|
|
12
|
+
&& Number.isSafeInteger(raw.links) && raw.links >= 0
|
|
13
|
+
? { type: raw.type, owner: raw.owner, mode: raw.mode, links: raw.links } : undefined;
|
|
14
|
+
const directory = value.object === 'directory', expected = { type: directory ? 'directory' : 'file', owner: 'current',
|
|
15
|
+
permissions: 'owner-only', ...(!directory ? { links: 1, maximumBytes: 65536 } : {}) };
|
|
16
|
+
const localPath = includeLocalPaths && typeof value.localPath === 'string' && path.isAbsolute(value.localPath)
|
|
17
|
+
&& value.localPath.length <= 4096 && !/[\x00-\x1f\x7f]/.test(value.localPath) ? value.localPath : undefined;
|
|
18
|
+
const repair = value.reason === 'permissions' && observed?.owner === 'current' && observed.type === expected.type
|
|
19
|
+
&& (directory || observed.links === 1) && localPath
|
|
20
|
+
? { automatic: false, argv: ['chmod', directory ? '0700' : '0600', localPath] } : undefined;
|
|
21
|
+
return { meshyDiagnostic: { object: value.object, reason: value.reason, ...(observed ? { observed } : {}), expected,
|
|
22
|
+
...(localPath ? { localPath } : {}), ...(repair ? { repair } : {}),
|
|
23
|
+
next: repair ? 'Review this one owned object, then run the suggested command yourself and repeat chrona meshy status.'
|
|
24
|
+
: 'Preserve existing files. Inspect chrona meshy status in your own terminal; do not recursively chmod, follow links or replace credentials.' } };
|
|
25
|
+
}
|
|
3
26
|
|
|
4
27
|
export const meshyMessages = {
|
|
5
28
|
MESHY_PLATFORM_UNSUPPORTED: 'Local key storage currently requires a verified POSIX owner/permission boundary.',
|
package/lib/meshy-store.mjs
CHANGED
|
@@ -4,22 +4,40 @@ import { randomUUID } from 'node:crypto';
|
|
|
4
4
|
import os from 'node:os';
|
|
5
5
|
import path from 'node:path';
|
|
6
6
|
|
|
7
|
-
export const meshyFail = code => { throw Object.assign(new Error(code), { code
|
|
7
|
+
export const meshyFail = (code, meshyDiagnostic) => { throw Object.assign(new Error(code), { code,
|
|
8
|
+
...(meshyDiagnostic ? { meshyDiagnostic } : {}) }); };
|
|
8
9
|
export const meshyHome = () => path.join(os.homedir(), '.chrona');
|
|
9
|
-
const
|
|
10
|
+
const objectName = (file, directory) => directory ? 'directory' : path.basename(file) === 'credentials.json'
|
|
11
|
+
? 'credentials' : path.basename(file) === 'config.json' ? 'configuration' : 'local-state';
|
|
12
|
+
const observation = stat => ({ type: stat.isSymbolicLink() ? 'symbolic-link' : stat.isDirectory() ? 'directory' : stat.isFile() ? 'file' : 'other',
|
|
13
|
+
owner: stat.uid === process.getuid() ? 'current' : 'different', mode: (stat.mode & 0o7777).toString(8).padStart(4, '0'), links: stat.nlink });
|
|
14
|
+
function unsafe(file, reason, stat, directory = false, code = 'MESHY_CONFIG_UNSAFE') {
|
|
15
|
+
meshyFail(code, { object: objectName(file, directory), reason, localPath: file,
|
|
16
|
+
...(stat ? { observed: observation(stat) } : {}) });
|
|
17
|
+
}
|
|
18
|
+
function checkMetadata(file, stat, directory = false) {
|
|
19
|
+
if (stat.isSymbolicLink()) unsafe(file, 'symbolic-link', stat, directory);
|
|
20
|
+
if (!(directory ? stat.isDirectory() : stat.isFile())) unsafe(file, 'type', stat, directory);
|
|
21
|
+
if (stat.uid !== process.getuid()) unsafe(file, 'owner', stat, directory);
|
|
22
|
+
if (!directory && stat.nlink !== 1) unsafe(file, 'hardlink', stat);
|
|
23
|
+
if ((stat.mode & 0o077) !== 0) unsafe(file, 'permissions', stat, directory);
|
|
24
|
+
if (!directory && stat.size > 65536) unsafe(file, 'size', stat);
|
|
25
|
+
}
|
|
10
26
|
|
|
11
27
|
export async function privateMeshyRoot(directory, create = false) {
|
|
12
28
|
if (process.platform === 'win32' || typeof process.getuid !== 'function') meshyFail('MESHY_PLATFORM_UNSUPPORTED');
|
|
13
29
|
if (typeof directory !== 'string' || !path.isAbsolute(directory)) meshyFail('MESHY_CONFIG_UNSAFE');
|
|
14
|
-
const root = path.resolve(directory)
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
const root = path.resolve(directory);
|
|
31
|
+
let parent;
|
|
32
|
+
try { parent = await realpath(path.dirname(root)); } catch { unsafe(root, 'access', undefined, true); }
|
|
33
|
+
if (parent !== path.dirname(root)) unsafe(root, 'linked-parent', undefined, true);
|
|
34
|
+
if (create) await mkdir(root, { mode: 0o700 }).catch(e => { if (e.code !== 'EEXIST') unsafe(root, 'access', undefined, true); });
|
|
17
35
|
let s;
|
|
18
|
-
try { s = await lstat(root); } catch (e) { if (e.code === 'ENOENT' && !create) return null;
|
|
19
|
-
|
|
36
|
+
try { s = await lstat(root); } catch (e) { if (e.code === 'ENOENT' && !create) return null; unsafe(root, 'access', undefined, true); }
|
|
37
|
+
checkMetadata(root, s, true);
|
|
20
38
|
let cursor = root;
|
|
21
39
|
while (true) {
|
|
22
|
-
try { await lstat(path.join(cursor, '.git'));
|
|
40
|
+
try { await lstat(path.join(cursor, '.git')); unsafe(root, 'repository', s, true, 'MESHY_CONFIG_INSIDE_REPOSITORY'); }
|
|
23
41
|
catch (e) { if (e.code !== 'ENOENT') throw e; }
|
|
24
42
|
const next = path.dirname(cursor); if (next === cursor) break; cursor = next;
|
|
25
43
|
}
|
|
@@ -29,10 +47,15 @@ export async function privateMeshyRoot(directory, create = false) {
|
|
|
29
47
|
export async function readMeshyJson(file, fallback = null) {
|
|
30
48
|
let handle;
|
|
31
49
|
try { handle = await open(file, constants.O_RDONLY | constants.O_NOFOLLOW | constants.O_NONBLOCK); }
|
|
32
|
-
catch (e) {
|
|
50
|
+
catch (e) {
|
|
51
|
+
if (e.code === 'ENOENT') return fallback;
|
|
52
|
+
const stat = await lstat(file).catch(() => null);
|
|
53
|
+
if (stat) checkMetadata(file, stat);
|
|
54
|
+
unsafe(file, 'access', stat);
|
|
55
|
+
}
|
|
33
56
|
try {
|
|
34
57
|
const before = await handle.stat();
|
|
35
|
-
|
|
58
|
+
checkMetadata(file, before);
|
|
36
59
|
const bytes = await handle.readFile(), after = await handle.stat(), current = await lstat(file);
|
|
37
60
|
if (bytes.length !== before.size || after.mtimeMs !== before.mtimeMs || after.ctimeMs !== before.ctimeMs
|
|
38
61
|
|| current.ino !== before.ino || current.dev !== before.dev) meshyFail('MESHY_STATE_CHANGED');
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
### 7.0.0 - 19/02/2023
|
|
4
|
+
|
|
5
|
+
- BREAKING - Drop support for node 12 (Though nothing incompatible in this release yet)
|
|
6
|
+
- Switch to a pngjs organisation
|
|
7
|
+
|
|
8
|
+
### 6.0.0 - 24/10/2020
|
|
9
|
+
|
|
10
|
+
- BREAKING - Sync version now throws if there is unexpected content at the end of the stream.
|
|
11
|
+
- BREAKING - Drop support for node 10 (Though nothing incompatible in this release yet)
|
|
12
|
+
- Reduce the number of files included in the package
|
|
13
|
+
|
|
14
|
+
### 5.1.0 - 13/09/2020
|
|
15
|
+
|
|
16
|
+
- Add option to skip rescaling
|
|
17
|
+
|
|
18
|
+
### 5.0.0 - 15/04/2020
|
|
19
|
+
|
|
20
|
+
- Drop support for Node 8
|
|
21
|
+
- Browserified bundle may now contain ES20(15-20) code if the supported node version supports it. Please run the browserified version through babel if you need to support older browsers.
|
|
22
|
+
|
|
23
|
+
### 4.0.1 - 15/04/2020
|
|
24
|
+
|
|
25
|
+
- Fix to possible null reference in nextTick of async method
|
|
26
|
+
|
|
27
|
+
### 4.0.0 - 09/04/2020
|
|
28
|
+
|
|
29
|
+
- Fix issue in newer nodes with using Buffer
|
|
30
|
+
- Fix async issue with some png files
|
|
31
|
+
- Drop support for Node 4 & 6
|
|
32
|
+
|
|
33
|
+
### 3.4.0 - 09/03/2019
|
|
34
|
+
|
|
35
|
+
- Include whether the png has alpha in the meta data
|
|
36
|
+
- emit an error if the image is truncated instead of hanging
|
|
37
|
+
- Add a browserified version
|
|
38
|
+
- speed up some mapping functions
|
|
39
|
+
|
|
40
|
+
### 3.3.3 - 19/04/2018
|
|
41
|
+
|
|
42
|
+
- Real fix for node 9
|
|
43
|
+
|
|
44
|
+
### 3.3.2 - 16/02/2018
|
|
45
|
+
|
|
46
|
+
- Fix for node 9
|
|
47
|
+
|
|
48
|
+
### 3.3.1 - 15/11/2017
|
|
49
|
+
|
|
50
|
+
- Bugfixes and removal of es6
|
|
51
|
+
|
|
52
|
+
### 3.3.0
|
|
53
|
+
|
|
54
|
+
- Add writing 16 bit channels and support for grayscale input
|
|
55
|
+
|
|
56
|
+
### 3.2.0 - 30/04/2017
|
|
57
|
+
|
|
58
|
+
- Support for encoding 8-bit grayscale images
|
|
59
|
+
|
|
60
|
+
### 3.1.0 - 30/04/2017
|
|
61
|
+
|
|
62
|
+
- Support for pngs with zlib chunks that are malformed after valid data
|
|
63
|
+
|
|
64
|
+
### 3.0.1 - 16/02/2017
|
|
65
|
+
|
|
66
|
+
- Fix single pixel pngs
|
|
67
|
+
|
|
68
|
+
### 3.0.0 - 03/08/2016
|
|
69
|
+
|
|
70
|
+
- Drop support for node below v4 and iojs. Pin to 2.3.0 to use with old, unsupported or patched node versions.
|
|
71
|
+
|
|
72
|
+
### 2.3.0 - 22/04/2016
|
|
73
|
+
|
|
74
|
+
- Support for sync in node 0.10
|
|
75
|
+
|
|
76
|
+
### 2.2.0 - 04/12/2015
|
|
77
|
+
|
|
78
|
+
- Add sync write api
|
|
79
|
+
- Fix newfile example
|
|
80
|
+
- Correct comparison table
|
|
81
|
+
|
|
82
|
+
### 2.1.0 - 28/10/2015
|
|
83
|
+
|
|
84
|
+
- rename package to pngjs
|
|
85
|
+
- added 'bgColor' option
|
|
86
|
+
|
|
87
|
+
### 2.0.0 - 08/10/2015
|
|
88
|
+
|
|
89
|
+
- fixes to readme
|
|
90
|
+
- _breaking change_ - bitblt on the png prototype now doesn't take a unused, unnecessary src first argument
|
|
91
|
+
|
|
92
|
+
### 1.2.0 - 13/09/2015
|
|
93
|
+
|
|
94
|
+
- support passing colorType to write PNG's and writing bitmaps without alpha information
|
|
95
|
+
|
|
96
|
+
### 1.1.0 - 07/09/2015
|
|
97
|
+
|
|
98
|
+
- support passing a deflate factory for controlled compression
|
|
99
|
+
|
|
100
|
+
### 1.0.2 - 22/08/2015
|
|
101
|
+
|
|
102
|
+
- Expose all PNG creation info
|
|
103
|
+
|
|
104
|
+
### 1.0.1 - 21/08/2015
|
|
105
|
+
|
|
106
|
+
- Fix non square interlaced files
|
|
107
|
+
|
|
108
|
+
### 1.0.0 - 08/08/2015
|
|
109
|
+
|
|
110
|
+
- More tests
|
|
111
|
+
- source linted
|
|
112
|
+
- maintainability refactorings
|
|
113
|
+
- async API - exceptions in reading now emit warnings
|
|
114
|
+
- documentation improvement - sync api now documented, adjustGamma documented
|
|
115
|
+
- breaking change - gamma chunk is now written. previously a read then write would destroy gamma information, now it is persisted.
|
|
116
|
+
|
|
117
|
+
### 0.0.3 - 03/08/2015
|
|
118
|
+
|
|
119
|
+
- Error handling fixes
|
|
120
|
+
- ignore files for smaller npm footprint
|
|
121
|
+
|
|
122
|
+
### 0.0.2 - 02/08/2015
|
|
123
|
+
|
|
124
|
+
- Bugfixes to interlacing, support for transparent colours
|
|
125
|
+
|
|
126
|
+
### 0.0.1 - 02/08/2015
|
|
127
|
+
|
|
128
|
+
- Initial release, see pngjs for older changelog.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrona-city/ugc-kit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.13",
|
|
4
4
|
"description": "Chrona creator CLI, SDK and MCP tools for validated multiplayer content",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -116,7 +116,6 @@
|
|
|
116
116
|
},
|
|
117
117
|
"bundleDependencies": [
|
|
118
118
|
"@modelcontextprotocol/server",
|
|
119
|
-
"esbuild",
|
|
120
119
|
"gltf-validator",
|
|
121
120
|
"pngjs",
|
|
122
121
|
"smol-toml",
|
package/runtime-catalog.json
CHANGED
|
@@ -5,33 +5,33 @@
|
|
|
5
5
|
{
|
|
6
6
|
"schemaVersion": "1.0.0",
|
|
7
7
|
"kind": "public-runtime-lock",
|
|
8
|
-
"runtimeId": "
|
|
9
|
-
"runtimeHash": "sha256:
|
|
8
|
+
"runtimeId": "runtime_110e49df719755e06b0decff75e91a44d6fd5c8177e06609fdd8b88094af4ea6",
|
|
9
|
+
"runtimeHash": "sha256:110e49df719755e06b0decff75e91a44d6fd5c8177e06609fdd8b88094af4ea6",
|
|
10
10
|
"manifest": {
|
|
11
|
-
"bytes":
|
|
12
|
-
"sha256": "sha256:
|
|
13
|
-
"url": "https://chrona.city/runtime-packages/
|
|
11
|
+
"bytes": 160826,
|
|
12
|
+
"sha256": "sha256:8a59c5b5f2cb806e9f43d2b23b13eb22f033b3758e9b64b117b146c1f95b2cf7",
|
|
13
|
+
"url": "https://chrona.city/runtime-packages/runtime_110e49df719755e06b0decff75e91a44d6fd5c8177e06609fdd8b88094af4ea6/runtime-manifest.json"
|
|
14
14
|
},
|
|
15
15
|
"archive": {
|
|
16
|
-
"bytes":
|
|
17
|
-
"sha256": "sha256:
|
|
18
|
-
"url": "https://chrona.city/runtime-packages/
|
|
16
|
+
"bytes": 12345177,
|
|
17
|
+
"sha256": "sha256:15ad0a19b414d04768bac7755f218dca72b17f9ecae1dcf60b8e4a0eaf7ffd71",
|
|
18
|
+
"url": "https://chrona.city/runtime-packages/runtime_110e49df719755e06b0decff75e91a44d6fd5c8177e06609fdd8b88094af4ea6/runtime.zip"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"schemaVersion": "1.0.0",
|
|
23
23
|
"kind": "public-runtime-lock",
|
|
24
|
-
"runtimeId": "
|
|
25
|
-
"runtimeHash": "sha256:
|
|
24
|
+
"runtimeId": "runtime_4f2469adcb46d2ef001c0e1ae8015be6d4f7d8ac03f7d5d7ed39f9e7911b9be2",
|
|
25
|
+
"runtimeHash": "sha256:4f2469adcb46d2ef001c0e1ae8015be6d4f7d8ac03f7d5d7ed39f9e7911b9be2",
|
|
26
26
|
"manifest": {
|
|
27
|
-
"bytes":
|
|
28
|
-
"sha256": "sha256:
|
|
29
|
-
"url": "https://chrona.city/runtime-packages/
|
|
27
|
+
"bytes": 61663,
|
|
28
|
+
"sha256": "sha256:37263ffe4831fafebe9b51b04d0b750e986b9802d1e63299e15a36fe0d9b5f4e",
|
|
29
|
+
"url": "https://chrona.city/runtime-packages/runtime_4f2469adcb46d2ef001c0e1ae8015be6d4f7d8ac03f7d5d7ed39f9e7911b9be2/runtime-manifest.json"
|
|
30
30
|
},
|
|
31
31
|
"archive": {
|
|
32
|
-
"bytes":
|
|
33
|
-
"sha256": "sha256:
|
|
34
|
-
"url": "https://chrona.city/runtime-packages/
|
|
32
|
+
"bytes": 7856027,
|
|
33
|
+
"sha256": "sha256:f7058294e15dc8d4d902f7ab40b87b5e6332cf6ad7e7b5a18b7d83f59f1e558f",
|
|
34
|
+
"url": "https://chrona.city/runtime-packages/runtime_4f2469adcb46d2ef001c0e1ae8015be6d4f7d8ac03f7d5d7ed39f9e7911b9be2/runtime.zip"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
]
|
|
Binary file
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@esbuild/darwin-arm64",
|
|
3
|
-
"version": "0.25.9",
|
|
4
|
-
"description": "The macOS ARM 64-bit binary for esbuild, a JavaScript bundler.",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/evanw/esbuild.git"
|
|
8
|
-
},
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"preferUnplugged": true,
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=18"
|
|
13
|
-
},
|
|
14
|
-
"os": [
|
|
15
|
-
"darwin"
|
|
16
|
-
],
|
|
17
|
-
"cpu": [
|
|
18
|
-
"arm64"
|
|
19
|
-
]
|
|
20
|
-
}
|
|
Binary file
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@esbuild/darwin-x64",
|
|
3
|
-
"version": "0.25.9",
|
|
4
|
-
"description": "The macOS 64-bit binary for esbuild, a JavaScript bundler.",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/evanw/esbuild.git"
|
|
8
|
-
},
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"preferUnplugged": true,
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=18"
|
|
13
|
-
},
|
|
14
|
-
"os": [
|
|
15
|
-
"darwin"
|
|
16
|
-
],
|
|
17
|
-
"cpu": [
|
|
18
|
-
"x64"
|
|
19
|
-
]
|
|
20
|
-
}
|
|
Binary file
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@esbuild/linux-arm64",
|
|
3
|
-
"version": "0.25.9",
|
|
4
|
-
"description": "The Linux ARM 64-bit binary for esbuild, a JavaScript bundler.",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/evanw/esbuild.git"
|
|
8
|
-
},
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"preferUnplugged": true,
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=18"
|
|
13
|
-
},
|
|
14
|
-
"os": [
|
|
15
|
-
"linux"
|
|
16
|
-
],
|
|
17
|
-
"cpu": [
|
|
18
|
-
"arm64"
|
|
19
|
-
]
|
|
20
|
-
}
|
|
Binary file
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@esbuild/linux-x64",
|
|
3
|
-
"version": "0.25.9",
|
|
4
|
-
"description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/evanw/esbuild.git"
|
|
8
|
-
},
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"preferUnplugged": true,
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=18"
|
|
13
|
-
},
|
|
14
|
-
"os": [
|
|
15
|
-
"linux"
|
|
16
|
-
],
|
|
17
|
-
"cpu": [
|
|
18
|
-
"x64"
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Evan Wallace
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|