@skillrecordings/cli 0.2.1 → 0.2.3
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/.env.encrypted +0 -0
- package/bin/skill.mjs +4 -17
- package/dist/{chunk-3E3GYSZR.js → chunk-5QCJIGF3.js} +2 -2
- package/dist/{chunk-2NCCVTEE.js → chunk-HCFBOGCL.js} +12 -6
- package/dist/chunk-HCFBOGCL.js.map +1 -0
- package/dist/chunk-MNFDM56Q.js +36 -0
- package/dist/chunk-MNFDM56Q.js.map +1 -0
- package/dist/{config-AUAIYDSI.js → config-523F4OBH.js} +3 -3
- package/dist/index.js +11 -32
- package/dist/index.js.map +1 -1
- package/dist/{pipeline-IAVVAKTU.js → pipeline-JELLPZAE.js} +2 -2
- package/dist/preload.js +152 -0
- package/dist/preload.js.map +1 -0
- package/package.json +2 -2
- package/dist/chunk-2NCCVTEE.js.map +0 -1
- /package/dist/{chunk-3E3GYSZR.js.map → chunk-5QCJIGF3.js.map} +0 -0
- /package/dist/{config-AUAIYDSI.js.map → config-523F4OBH.js.map} +0 -0
- /package/dist/{pipeline-IAVVAKTU.js.map → pipeline-JELLPZAE.js.map} +0 -0
package/.env.encrypted
ADDED
|
Binary file
|
package/bin/skill.mjs
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { fileURLToPath } from 'node:url'
|
|
3
|
-
import { dirname, join } from 'node:path'
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
// Load secrets via 1Password/age encryption before importing CLI
|
|
4
|
+
// This sets DATABASE_URL and other env vars from encrypted .env.encrypted
|
|
5
|
+
await import('../dist/preload.js')
|
|
7
6
|
|
|
8
|
-
//
|
|
9
|
-
// This allows help, auth, and other non-db commands to work without DATABASE_URL
|
|
10
|
-
process.env.SKIP_ENV_VALIDATION = '1'
|
|
11
|
-
|
|
12
|
-
// Load env from CLI package directory
|
|
13
|
-
try {
|
|
14
|
-
const dotenvFlow = await import('dotenv-flow')
|
|
15
|
-
dotenvFlow.config({ path: cliDir, silent: true })
|
|
16
|
-
} catch {
|
|
17
|
-
// Ignore - env loading is optional
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Now import the main CLI
|
|
7
|
+
// Now import the main CLI with secrets available
|
|
21
8
|
await import('../dist/index.js')
|
|
@@ -3547,7 +3547,7 @@ ${message.body}
|
|
|
3547
3547
|
---
|
|
3548
3548
|
Write your response:`;
|
|
3549
3549
|
if (useAgentMode && appId) {
|
|
3550
|
-
const { runSupportAgent } = await import("./config-
|
|
3550
|
+
const { runSupportAgent } = await import("./config-523F4OBH.js");
|
|
3551
3551
|
await log("debug", "draft using agent mode", {
|
|
3552
3552
|
workflow: "pipeline",
|
|
3553
3553
|
step: "draft",
|
|
@@ -7068,4 +7068,4 @@ export {
|
|
|
7068
7068
|
runPipeline,
|
|
7069
7069
|
runThreadPipeline
|
|
7070
7070
|
};
|
|
7071
|
-
//# sourceMappingURL=chunk-
|
|
7071
|
+
//# sourceMappingURL=chunk-5QCJIGF3.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createTool
|
|
3
|
+
} from "./chunk-F4EM72IH.js";
|
|
1
4
|
import {
|
|
2
5
|
Redis2,
|
|
3
6
|
traceMemoryCite,
|
|
@@ -18,9 +21,6 @@ import {
|
|
|
18
21
|
import {
|
|
19
22
|
queryVectors
|
|
20
23
|
} from "./chunk-H3D6VCME.js";
|
|
21
|
-
import {
|
|
22
|
-
createTool
|
|
23
|
-
} from "./chunk-F4EM72IH.js";
|
|
24
24
|
import {
|
|
25
25
|
__export,
|
|
26
26
|
init_esm_shims
|
|
@@ -6734,8 +6734,10 @@ var db = null;
|
|
|
6734
6734
|
var pool = null;
|
|
6735
6735
|
function getDb() {
|
|
6736
6736
|
if (!db) {
|
|
6737
|
+
const url2 = new URL(env.DATABASE_URL);
|
|
6738
|
+
url2.searchParams.delete("sslaccept");
|
|
6737
6739
|
pool = mysql.createPool({
|
|
6738
|
-
uri:
|
|
6740
|
+
uri: url2.toString(),
|
|
6739
6741
|
ssl: {
|
|
6740
6742
|
rejectUnauthorized: true
|
|
6741
6743
|
}
|
|
@@ -6751,7 +6753,11 @@ async function closeDb() {
|
|
|
6751
6753
|
db = null;
|
|
6752
6754
|
}
|
|
6753
6755
|
}
|
|
6754
|
-
var database =
|
|
6756
|
+
var database = new Proxy({}, {
|
|
6757
|
+
get(_target, prop, receiver) {
|
|
6758
|
+
return Reflect.get(getDb(), prop, receiver);
|
|
6759
|
+
}
|
|
6760
|
+
});
|
|
6755
6761
|
|
|
6756
6762
|
// ../sdk/dist/client.js
|
|
6757
6763
|
init_esm_shims();
|
|
@@ -22339,4 +22345,4 @@ export {
|
|
|
22339
22345
|
DEFAULT_AGENT_MODEL,
|
|
22340
22346
|
runSupportAgent
|
|
22341
22347
|
};
|
|
22342
|
-
//# sourceMappingURL=chunk-
|
|
22348
|
+
//# sourceMappingURL=chunk-HCFBOGCL.js.map
|