@percher/shared 0.1.4 → 0.1.6
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/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +13 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +13 -0
- package/dist/limits.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { APP_NAME_RE } from "./app-name";
|
|
2
|
-
export { MAX_TARBALL_BYTES } from "./limits";
|
|
3
|
-
export { MAX_LOG_SEARCH_LENGTH } from "./logs";
|
|
4
|
-
export { canonicalInjectedKey, isPercherInjected, PERCHER_INJECTED_ENV_KEYS, } from "./platform-env";
|
|
5
|
-
export { DEFAULT_NODE_VERSION_LABEL, DEFAULT_NODE_VERSION_MAJOR } from "./runtime";
|
|
6
|
-
export { TIMEOUTS, type TimeoutKey } from "./timeouts";
|
|
1
|
+
export { APP_NAME_RE } from "./app-name.js";
|
|
2
|
+
export { MAX_INLINE_PUBLISH_BYTES, MAX_TARBALL_BYTES } from "./limits.js";
|
|
3
|
+
export { MAX_LOG_SEARCH_LENGTH } from "./logs.js";
|
|
4
|
+
export { canonicalInjectedKey, isPercherInjected, PERCHER_INJECTED_ENV_KEYS, } from "./platform-env.js";
|
|
5
|
+
export { DEFAULT_NODE_VERSION_LABEL, DEFAULT_NODE_VERSION_MAJOR } from "./runtime.js";
|
|
6
|
+
export { TIMEOUTS, type TimeoutKey } from "./timeouts.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { APP_NAME_RE } from "./app-name";
|
|
2
|
-
export { MAX_TARBALL_BYTES } from "./limits";
|
|
3
|
-
export { MAX_LOG_SEARCH_LENGTH } from "./logs";
|
|
4
|
-
export { canonicalInjectedKey, isPercherInjected, PERCHER_INJECTED_ENV_KEYS, } from "./platform-env";
|
|
5
|
-
export { DEFAULT_NODE_VERSION_LABEL, DEFAULT_NODE_VERSION_MAJOR } from "./runtime";
|
|
6
|
-
export { TIMEOUTS } from "./timeouts";
|
|
1
|
+
export { APP_NAME_RE } from "./app-name.js";
|
|
2
|
+
export { MAX_INLINE_PUBLISH_BYTES, MAX_TARBALL_BYTES } from "./limits.js";
|
|
3
|
+
export { MAX_LOG_SEARCH_LENGTH } from "./logs.js";
|
|
4
|
+
export { canonicalInjectedKey, isPercherInjected, PERCHER_INJECTED_ENV_KEYS, } from "./platform-env.js";
|
|
5
|
+
export { DEFAULT_NODE_VERSION_LABEL, DEFAULT_NODE_VERSION_MAJOR } from "./runtime.js";
|
|
6
|
+
export { TIMEOUTS } from "./timeouts.js";
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAmB,MAAM,YAAY,CAAC"}
|
package/dist/limits.d.ts
CHANGED
|
@@ -6,4 +6,17 @@
|
|
|
6
6
|
* extractor, which guards against zip bombs.
|
|
7
7
|
*/
|
|
8
8
|
export declare const MAX_TARBALL_BYTES: number;
|
|
9
|
+
/**
|
|
10
|
+
* Max accepted inline-source publish size in bytes (25 MB) — the sum of
|
|
11
|
+
* the decoded `content` bytes an assistant passes to `percher_publish` /
|
|
12
|
+
* `POST /apps/publish`. Much tighter than {@link MAX_TARBALL_BYTES}
|
|
13
|
+
* because inline source is small, hand-authored, and arrives as an
|
|
14
|
+
* untrusted tool argument (no `.gitignore`, no node_modules). Enforced
|
|
15
|
+
* BEFORE buffering on the curated publish endpoint (413 if over) and
|
|
16
|
+
* mirrored in the hosted `percher_publish` tool guard so an agent gets a
|
|
17
|
+
* clear "this is too large — use the connected-repo path" message before
|
|
18
|
+
* any upload. Large apps belong on the connected-repo deploy path
|
|
19
|
+
* (`percher_deploy`), not inline.
|
|
20
|
+
*/
|
|
21
|
+
export declare const MAX_INLINE_PUBLISH_BYTES: number;
|
|
9
22
|
//# sourceMappingURL=limits.d.ts.map
|
package/dist/limits.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,QAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,QAAoB,CAAC;AAEnD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,QAAmB,CAAC"}
|
package/dist/limits.js
CHANGED
|
@@ -6,4 +6,17 @@
|
|
|
6
6
|
* extractor, which guards against zip bombs.
|
|
7
7
|
*/
|
|
8
8
|
export const MAX_TARBALL_BYTES = 500 * 1024 * 1024;
|
|
9
|
+
/**
|
|
10
|
+
* Max accepted inline-source publish size in bytes (25 MB) — the sum of
|
|
11
|
+
* the decoded `content` bytes an assistant passes to `percher_publish` /
|
|
12
|
+
* `POST /apps/publish`. Much tighter than {@link MAX_TARBALL_BYTES}
|
|
13
|
+
* because inline source is small, hand-authored, and arrives as an
|
|
14
|
+
* untrusted tool argument (no `.gitignore`, no node_modules). Enforced
|
|
15
|
+
* BEFORE buffering on the curated publish endpoint (413 if over) and
|
|
16
|
+
* mirrored in the hosted `percher_publish` tool guard so an agent gets a
|
|
17
|
+
* clear "this is too large — use the connected-repo path" message before
|
|
18
|
+
* any upload. Large apps belong on the connected-repo deploy path
|
|
19
|
+
* (`percher_deploy`), not inline.
|
|
20
|
+
*/
|
|
21
|
+
export const MAX_INLINE_PUBLISH_BYTES = 25 * 1024 * 1024;
|
|
9
22
|
//# sourceMappingURL=limits.js.map
|
package/dist/limits.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits.js","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC"}
|
|
1
|
+
{"version":3,"file":"limits.js","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percher/shared",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Shared constants and contracts (timeouts, etc.) used across the Percher CLI, API, MCP, and worker. Internal — values change in lockstep across packages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,12 +36,13 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"scripts": {
|
|
39
|
-
"build": "tsc -p tsconfig.json",
|
|
39
|
+
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
|
|
40
40
|
"test": "bun test",
|
|
41
41
|
"typecheck": "tsc --noEmit"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"bun-types": "^1.1.0"
|
|
44
|
+
"bun-types": "^1.1.0",
|
|
45
|
+
"tsc-alias": "^1.8.17"
|
|
45
46
|
},
|
|
46
47
|
"license": "MIT",
|
|
47
48
|
"author": "Mattias Malmborg",
|