@jini-ai/platform 0.6.15-rc.2 → 0.6.16
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/CHANGELOG.md +26 -0
- package/README.md +7 -8
- package/dist/asset-cache.adapter.d.ts +2 -2
- package/dist/asset-cache.adapter.js +2 -2
- package/dist/asset-cache.d.ts +1 -3
- package/dist/asset-cache.js +2 -14
- package/dist/blob-storage.js +10 -9
- package/dist/child-environment.js +1 -1
- package/dist/command.js +4 -1
- package/dist/core/effective-port.d.ts +6 -0
- package/dist/core/effective-port.js +8 -0
- package/dist/download.js +25 -24
- package/dist/fetch-with-timeout.d.ts +27 -7
- package/dist/fetch-with-timeout.js +51 -11
- package/dist/fs/atomic-write.js +5 -2
- package/dist/fs/boot-identity.d.ts +0 -4
- package/dist/fs/boot-identity.js +9 -3
- package/dist/fs/directory-registry.js +2 -2
- package/dist/fs/directory-running-lock.js +9 -4
- package/dist/fs/directory-sync.js +2 -3
- package/dist/fs/directory-user-config.d.ts +9 -0
- package/dist/fs/directory-user-config.js +13 -6
- package/dist/fs/directory-workspace.js +11 -14
- package/dist/fs/durable-json.js +22 -16
- package/dist/fs/errno.d.ts +9 -0
- package/dist/fs/errno.js +21 -0
- package/dist/fs/file-lock.d.ts +1 -0
- package/dist/fs/file-lock.js +17 -19
- package/dist/fs/guarded-reader.d.ts +22 -1
- package/dist/fs/guarded-reader.js +85 -15
- package/dist/fs/index.d.ts +1 -0
- package/dist/fs/index.js +1 -0
- package/dist/fs/user-data-directories.js +5 -7
- package/dist/fs/workspace-directory.d.ts +7 -1
- package/dist/fs/workspace-directory.js +9 -2
- package/dist/fs.js +2 -1
- package/dist/http/guarded/client.js +2 -1
- package/dist/http.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mail/builtin-providers.js +4 -2
- package/dist/mail/feedback.js +1 -1
- package/dist/mail/prepare-sender-email.js +7 -1
- package/dist/mail/provider.js +14 -8
- package/dist/mail/rate-limit.js +3 -1
- package/dist/messages.js +1 -1
- package/dist/net/endpoint-policy.js +15 -7
- package/dist/net/index.d.ts +1 -0
- package/dist/net/index.js +1 -0
- package/dist/net/local-http-probe.d.ts +16 -0
- package/dist/net/local-http-probe.js +36 -0
- package/dist/object-store/local-fs.js +3 -1
- package/dist/process.js +10 -9
- package/dist/proxy-env.js +22 -14
- package/dist/secrets/credential-sets/index.d.ts +1 -0
- package/dist/secrets/credential-sets/index.js +1 -0
- package/dist/secrets/credential-sets/provider-matches.js +14 -3
- package/dist/secrets/credential-sets/vault-archive.d.ts +41 -0
- package/dist/secrets/credential-sets/vault-archive.js +64 -0
- package/dist/secrets/credential-sets/vault.meta.js +6 -2
- package/dist/secrets/credential-sets/vault.repo.memory.js +3 -5
- package/dist/secrets/credential-sets/vault.service.js +22 -17
- package/dist/secrets/credential-sets/vault.types.d.ts +6 -0
- package/dist/secrets/credential-sets/vault.types.js +7 -0
- package/dist/secrets/credential-token.js +9 -2
- package/dist/secrets/keyring.env.js +2 -4
- package/dist/shell.js +2 -1
- package/dist/terminal.js +4 -7
- package/dist/toolchain.js +4 -9
- package/dist/web/first-distinct.d.ts +11 -0
- package/dist/web/first-distinct.js +16 -0
- package/dist/web/html-document.js +35 -39
- package/dist/web/html-to-markdown.js +20 -9
- package/dist/web/web-page.js +28 -25
- package/dist/windows-system-tools.d.ts +15 -0
- package/dist/windows-system-tools.js +16 -0
- package/package.json +10 -6
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Absolute path of a Windows system tool under `%SystemRoot%\System32`. A bare name such as
|
|
3
|
+
* `reg.exe` is resolved by the child-process search, which on Windows consults the current
|
|
4
|
+
* directory before PATH, so a same-named file in a project folder could run instead of the OS tool.
|
|
5
|
+
* Falls back to `C:\Windows` when the environment does not name the system root.
|
|
6
|
+
* @complexity O(1).
|
|
7
|
+
*/
|
|
8
|
+
export declare function windowsSystemTool({ relativePath }: {
|
|
9
|
+
relativePath: readonly string[];
|
|
10
|
+
}, { env }?: {
|
|
11
|
+
env?: NodeJS.ProcessEnv;
|
|
12
|
+
}): string;
|
|
13
|
+
/** Windows PowerShell 5.1, which ships with every supported Windows release. */
|
|
14
|
+
export declare function windowsPowerShell(): string;
|
|
15
|
+
//# sourceMappingURL=windows-system-tools.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { win32 } from "node:path";
|
|
2
|
+
/**
|
|
3
|
+
* Absolute path of a Windows system tool under `%SystemRoot%\System32`. A bare name such as
|
|
4
|
+
* `reg.exe` is resolved by the child-process search, which on Windows consults the current
|
|
5
|
+
* directory before PATH, so a same-named file in a project folder could run instead of the OS tool.
|
|
6
|
+
* Falls back to `C:\Windows` when the environment does not name the system root.
|
|
7
|
+
* @complexity O(1).
|
|
8
|
+
*/
|
|
9
|
+
export function windowsSystemTool({ relativePath }, { env = process.env } = {}) {
|
|
10
|
+
return win32.join(env.SystemRoot ?? env.windir ?? "C:\\Windows", "System32", ...relativePath);
|
|
11
|
+
}
|
|
12
|
+
/** Windows PowerShell 5.1, which ships with every supported Windows release. */
|
|
13
|
+
export function windowsPowerShell() {
|
|
14
|
+
return windowsSystemTool({ relativePath: ["WindowsPowerShell", "v1.0", "powershell.exe"] });
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=windows-system-tools.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/platform",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
4
4
|
"description": "Generic OS/platform primitives: process exec and lifecycle, filesystem containment, HTTP readiness polling, toolchain discovery, blob storage, AWS signing, and an SSRF-safe asset cache.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -55,6 +55,13 @@
|
|
|
55
55
|
"src/fetch-with-timeout.ts",
|
|
56
56
|
"src/http/guarded/errors.ts"
|
|
57
57
|
]
|
|
58
|
+
},
|
|
59
|
+
"optionalPeers": {
|
|
60
|
+
"hast-util-from-parse5": "opt-in: html to markdown conversion; import @jini-ai/platform/web — HTML to Markdown conversion could not load hast-util-from-parse5. Install hast-util-from-parse5 to enable this feature, or check its installed version and native binaries.",
|
|
61
|
+
"hast-util-to-mdast": "opt-in: html to markdown conversion; import @jini-ai/platform/web — HTML to Markdown conversion could not load hast-util-to-mdast. Install hast-util-to-mdast to enable this feature, or check its installed version and native binaries.",
|
|
62
|
+
"mdast-util-to-markdown": "opt-in: html to markdown conversion; import @jini-ai/platform/web — HTML to Markdown conversion could not load mdast-util-to-markdown. Install mdast-util-to-markdown to enable this feature, or check its installed version and native binaries.",
|
|
63
|
+
"mdast-util-gfm-table": "opt-in: markdown table conversion; import @jini-ai/platform/web — Markdown table conversion could not load mdast-util-gfm-table. Install mdast-util-gfm-table to enable this feature, or check its installed version and native binaries.",
|
|
64
|
+
"parse5": "opt-in: html parsing; import @jini-ai/platform/web — HTML parsing could not load parse5. Install parse5 to enable this feature, or check its installed version and native binaries."
|
|
58
65
|
}
|
|
59
66
|
},
|
|
60
67
|
"type": "module",
|
|
@@ -206,7 +213,8 @@
|
|
|
206
213
|
"!dist/**/*.map"
|
|
207
214
|
],
|
|
208
215
|
"dependencies": {
|
|
209
|
-
"@jini-ai/core": "^0.6.
|
|
216
|
+
"@jini-ai/core": "^0.6.13",
|
|
217
|
+
"undici": "^7.25.0"
|
|
210
218
|
},
|
|
211
219
|
"publishConfig": {
|
|
212
220
|
"access": "public",
|
|
@@ -223,7 +231,6 @@
|
|
|
223
231
|
"fast-check": "4.3.0"
|
|
224
232
|
},
|
|
225
233
|
"peerDependencies": {
|
|
226
|
-
"undici": "^7.25.0",
|
|
227
234
|
"hast-util-from-parse5": "8.0.3",
|
|
228
235
|
"hast-util-to-mdast": "10.1.2",
|
|
229
236
|
"mdast-util-to-markdown": "2.1.2",
|
|
@@ -231,9 +238,6 @@
|
|
|
231
238
|
"parse5": "7.3.0"
|
|
232
239
|
},
|
|
233
240
|
"peerDependenciesMeta": {
|
|
234
|
-
"undici": {
|
|
235
|
-
"optional": true
|
|
236
|
-
},
|
|
237
241
|
"hast-util-from-parse5": {
|
|
238
242
|
"optional": true
|
|
239
243
|
},
|