ai-remote 0.5.0 → 0.6.0
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 +40 -0
- package/SKILL.md +123 -13
- package/dist/{cli-chunk-Q33YGIDO.mjs → cli-chunk-L6E2YYPQ.mjs} +19 -5
- package/dist/{cli-chunk-F2TSY3YW.mjs → cli-chunk-P4645KKB.mjs} +3 -3
- package/dist/{cli-chunk-OZG2CODR.mjs → cli-chunk-TKKENOSJ.mjs} +1 -1
- package/dist/{cli-chunk-S2TWL5LF.mjs → cli-chunk-UD2YES3P.mjs} +107 -39
- package/dist/cli-chunk-WWORJ2NE.mjs +72 -0
- package/dist/{cli-copy-BOF44DWQ.mjs → cli-copy-2HQU2E7D.mjs} +18 -5
- package/dist/{cli-daemon-3BBFQCML.mjs → cli-daemon-3L36TBIB.mjs} +852 -274
- package/dist/{cli-identities-ZILT4XCR.mjs → cli-identities-GBQWYF2O.mjs} +4 -4
- package/dist/cli-known-hosts-UU427T4N.mjs +12 -0
- package/dist/{cli-secrets-26D3F6EN.mjs → cli-secrets-BMYFPDB2.mjs} +1 -1
- package/dist/cli-shell-JEC6BEME.mjs +11 -0
- package/dist/{cli-window-ZKAXEHQV.mjs → cli-window-AWXZ5NJX.mjs} +2 -2
- package/dist/cli.mjs +219 -109
- package/dist/computer.d.ts +77 -0
- package/dist/computer.js +3 -0
- package/dist/index.d.ts +80 -1
- package/dist/index.js +1 -1
- package/dist/protocols.d.ts +247 -17
- package/dist/protocols.js +16 -16
- package/package.json +6 -1
- package/dist/cli-shell-45XRTE7O.mjs +0 -10
|
@@ -53,7 +53,7 @@ async function parsePrivateKey(text, comment = "") {
|
|
|
53
53
|
async function parseOpenSshKey(body, comment) {
|
|
54
54
|
const magic = new TextDecoder().decode(body.subarray(0, OPENSSH_MAGIC.length));
|
|
55
55
|
if (magic !== OPENSSH_MAGIC) throw new Error("this is not an OpenSSH private key");
|
|
56
|
-
const reader = new SshReader(body, OPENSSH_MAGIC.length);
|
|
56
|
+
const reader = new SshReader(body.slice(), OPENSSH_MAGIC.length);
|
|
57
57
|
const cipher = reader.string();
|
|
58
58
|
reader.string();
|
|
59
59
|
reader.stringBytes();
|
|
@@ -171,7 +171,7 @@ async function ecdsaIdentity(keyBlob, curve, point, d, comment) {
|
|
|
171
171
|
const x = point.subarray(1, 1 + spec.size);
|
|
172
172
|
const y = point.subarray(1 + spec.size, 1 + spec.size * 2);
|
|
173
173
|
const key = await importJwk(
|
|
174
|
-
{ kty: "EC", crv: spec.jwk, x: b64u(x), y: b64u(y), d: b64u(padStart(d, spec.size)) },
|
|
174
|
+
{ kty: "EC", crv: spec.jwk, x: b64u(x), y: b64u(y), d: b64u(padStart(d.slice(), spec.size)) },
|
|
175
175
|
{ name: "ECDSA", namedCurve: spec.jwk }
|
|
176
176
|
);
|
|
177
177
|
const algorithm = `ecdsa-sha2-${curve}`;
|
|
@@ -231,8 +231,8 @@ async function fromPkcs8(der, comment) {
|
|
|
231
231
|
const [name, spec] = curve;
|
|
232
232
|
const point = concatBytes(
|
|
233
233
|
new Uint8Array([4]),
|
|
234
|
-
padStart(from(jwk.x), spec.size),
|
|
235
|
-
padStart(from(jwk.y), spec.size)
|
|
234
|
+
padStart(from(jwk.x).slice(), spec.size),
|
|
235
|
+
padStart(from(jwk.y).slice(), spec.size)
|
|
236
236
|
);
|
|
237
237
|
return ecdsaIdentity(new Uint8Array(0), name, point, from(jwk.d), comment);
|
|
238
238
|
}
|
|
@@ -198,7 +198,7 @@ function savedSecrets() {
|
|
|
198
198
|
if (!seen.has(entry.key)) seen.set(entry.key, entry);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
return [...seen.values()].map(({ key, backend, savedAt }) => ({ key, backend, savedAt })).
|
|
201
|
+
return [...seen.values()].map(({ key, backend, savedAt }) => ({ key, backend, savedAt })).toSorted((a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0);
|
|
202
202
|
}
|
|
203
203
|
async function forgetAll() {
|
|
204
204
|
const keys = savedSecrets().map((entry) => entry.key);
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
openWindow,
|
|
5
5
|
readCurrentDisplaySize,
|
|
6
6
|
runWindow
|
|
7
|
-
} from "./cli-chunk-
|
|
8
|
-
import "./cli-chunk-
|
|
7
|
+
} from "./cli-chunk-P4645KKB.mjs";
|
|
8
|
+
import "./cli-chunk-TKKENOSJ.mjs";
|
|
9
9
|
export {
|
|
10
10
|
detectCurrentDisplaySize,
|
|
11
11
|
nativeWindowAvailable,
|