pinecall 0.4.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 +14 -6
- package/dist/cli/agent-files.d.ts +6 -0
- package/dist/cli/agent-files.d.ts.map +1 -0
- package/dist/cli/agent-files.js +40 -0
- package/dist/cli/agent-files.js.map +1 -0
- package/dist/cli/agent-lines.d.ts +23 -0
- package/dist/cli/agent-lines.d.ts.map +1 -0
- package/dist/cli/agent-lines.js +109 -0
- package/dist/cli/agent-lines.js.map +1 -0
- package/dist/cli/agent-processes.d.ts +13 -0
- package/dist/cli/agent-processes.d.ts.map +1 -0
- package/dist/cli/agent-processes.js +34 -0
- package/dist/cli/agent-processes.js.map +1 -0
- package/dist/cli/agent-versions.d.ts +12 -0
- package/dist/cli/agent-versions.d.ts.map +1 -0
- package/dist/cli/agent-versions.js +70 -0
- package/dist/cli/agent-versions.js.map +1 -0
- package/dist/cli/agent.d.ts +77 -0
- package/dist/cli/agent.d.ts.map +1 -0
- package/dist/cli/agent.js +186 -0
- package/dist/cli/agent.js.map +1 -0
- package/dist/cli/chat.d.ts +2 -2
- package/dist/cli/chat.d.ts.map +1 -1
- package/dist/cli/chat.js +12 -24
- package/dist/cli/chat.js.map +1 -1
- package/dist/cli/client-for.d.ts +6 -0
- package/dist/cli/client-for.d.ts.map +1 -0
- package/dist/cli/client-for.js +7 -0
- package/dist/cli/client-for.js.map +1 -0
- package/dist/cli/connected.d.ts +4 -4
- package/dist/cli/connected.d.ts.map +1 -1
- package/dist/cli/connected.js +2 -2
- package/dist/cli/connected.js.map +1 -1
- package/dist/cli/dotenv.d.ts +24 -0
- package/dist/cli/dotenv.d.ts.map +1 -0
- package/dist/cli/dotenv.js +69 -0
- package/dist/cli/dotenv.js.map +1 -0
- package/dist/cli/env.d.ts +21 -37
- package/dist/cli/env.d.ts.map +1 -1
- package/dist/cli/env.js +35 -68
- package/dist/cli/env.js.map +1 -1
- package/dist/cli/eval.d.ts +2 -1
- package/dist/cli/eval.d.ts.map +1 -1
- package/dist/cli/eval.js +5 -4
- package/dist/cli/eval.js.map +1 -1
- package/dist/cli/groups.d.ts.map +1 -1
- package/dist/cli/groups.js +0 -1
- package/dist/cli/groups.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +25 -30
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/lexicon.d.ts +14 -0
- package/dist/cli/lexicon.d.ts.map +1 -0
- package/dist/cli/lexicon.js +123 -0
- package/dist/cli/lexicon.js.map +1 -0
- package/dist/cli/line.js +6 -6
- package/dist/cli/line.js.map +1 -1
- package/dist/cli/linking.d.ts +13 -0
- package/dist/cli/linking.d.ts.map +1 -0
- package/dist/cli/linking.js +103 -0
- package/dist/cli/linking.js.map +1 -0
- package/dist/cli/load.js +1 -1
- package/dist/cli/load.js.map +1 -1
- package/dist/cli/login.d.ts +5 -11
- package/dist/cli/login.d.ts.map +1 -1
- package/dist/cli/login.js +31 -140
- package/dist/cli/login.js.map +1 -1
- package/dist/cli/memory-policy.d.ts +9 -0
- package/dist/cli/memory-policy.d.ts.map +1 -0
- package/dist/cli/memory-policy.js +79 -0
- package/dist/cli/memory-policy.js.map +1 -0
- package/dist/cli/memory.d.ts.map +1 -1
- package/dist/cli/memory.js +9 -1
- package/dist/cli/memory.js.map +1 -1
- package/dist/cli/pipeline.d.ts +2 -0
- package/dist/cli/pipeline.d.ts.map +1 -1
- package/dist/cli/pipeline.js +18 -76
- package/dist/cli/pipeline.js.map +1 -1
- package/dist/cli/serve/server.d.ts +1 -1
- package/dist/cli/serve/server.d.ts.map +1 -1
- package/dist/cli/serve/server.js +3 -2
- package/dist/cli/serve/server.js.map +1 -1
- package/dist/cli/serve/sidecar.js +1 -1
- package/dist/cli/serve/sidecar.js.map +1 -1
- package/dist/cli/serve.d.ts +1 -1
- package/dist/cli/serve.d.ts.map +1 -1
- package/dist/cli/serve.js +5 -5
- package/dist/cli/serve.js.map +1 -1
- package/dist/cli/signed-in.d.ts +36 -0
- package/dist/cli/signed-in.d.ts.map +1 -0
- package/dist/cli/signed-in.js +60 -0
- package/dist/cli/signed-in.js.map +1 -0
- package/dist/cli/simulate.d.ts.map +1 -1
- package/dist/cli/simulate.js +7 -6
- package/dist/cli/simulate.js.map +1 -1
- package/dist/cli/{run-console.d.ts → start-console.d.ts} +2 -2
- package/dist/cli/start-console.d.ts.map +1 -0
- package/dist/cli/{run-console.js → start-console.js} +3 -3
- package/dist/cli/start-console.js.map +1 -0
- package/dist/cli/{run-screens.d.ts → start-screens.d.ts} +2 -2
- package/dist/cli/start-screens.d.ts.map +1 -0
- package/dist/cli/{run-screens.js → start-screens.js} +24 -5
- package/dist/cli/start-screens.js.map +1 -0
- package/dist/cli/{run.d.ts → start.d.ts} +3 -3
- package/dist/cli/start.d.ts.map +1 -0
- package/dist/cli/{run.js → start.js} +31 -35
- package/dist/cli/start.js.map +1 -0
- package/dist/cli/supervise.d.ts +1 -1
- package/dist/cli/supervise.d.ts.map +1 -1
- package/dist/cli/supervise.js +1 -1
- package/dist/cli/supervise.js.map +1 -1
- package/dist/cli/testing/gateway.d.ts +3 -0
- package/dist/cli/testing/gateway.d.ts.map +1 -1
- package/dist/cli/testing/gateway.js +2 -4
- package/dist/cli/testing/gateway.js.map +1 -1
- package/dist/cli/tuned.d.ts +8 -0
- package/dist/cli/tuned.d.ts.map +1 -0
- package/dist/cli/tuned.js +66 -0
- package/dist/cli/tuned.js.map +1 -0
- package/dist/cli/ui/chatting.d.ts +1 -1
- package/dist/cli/ui/chatting.d.ts.map +1 -1
- package/dist/cli/ui/chatting.js +11 -10
- package/dist/cli/ui/chatting.js.map +1 -1
- package/dist/cli/ui/console/assets/index-DmN15Axn.css +1 -0
- package/dist/cli/ui/console/assets/index-aGyMCQUH.js +106 -0
- package/dist/cli/ui/console/index.html +2 -2
- package/dist/cli/ui/doors.d.ts +2 -2
- package/dist/cli/ui/doors.d.ts.map +1 -1
- package/dist/cli/ui/doors.js +2 -2
- package/dist/cli/ui/doors.js.map +1 -1
- package/dist/cli/ui/drifting.d.ts +1 -1
- package/dist/cli/ui/drifting.js +1 -1
- package/dist/cli/ui/knowing.d.ts +1 -1
- package/dist/cli/ui/knowing.js +3 -3
- package/dist/cli/ui/knowing.js.map +1 -1
- package/dist/cli/ui/promoting.d.ts +1 -1
- package/dist/cli/ui/promoting.js +1 -1
- package/dist/cli/ui/remembering.d.ts +1 -1
- package/dist/cli/ui/remembering.js +3 -3
- package/dist/cli/ui/remembering.js.map +1 -1
- package/dist/cli/ui/reproducing.d.ts +1 -1
- package/dist/cli/ui/reproducing.js +1 -1
- package/dist/cli/ui/simulating.d.ts +1 -1
- package/dist/cli/ui/simulating.js +4 -4
- package/dist/cli/ui/simulating.js.map +1 -1
- package/dist/cli/ui/testing.d.ts +1 -1
- package/dist/cli/ui/testing.js +3 -3
- package/dist/cli/ui/testing.js.map +1 -1
- package/dist/cli/whoami.d.ts +6 -2
- package/dist/cli/whoami.d.ts.map +1 -1
- package/dist/cli/whoami.js +6 -5
- package/dist/cli/whoami.js.map +1 -1
- package/dist/cli/world.d.ts +14 -24
- package/dist/cli/world.d.ts.map +1 -1
- package/dist/cli/world.js +21 -36
- package/dist/cli/world.js.map +1 -1
- package/dist/client/agent.d.ts +2 -1
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +3 -2
- package/dist/client/agent.js.map +1 -1
- package/dist/client/client.d.ts +17 -2
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +44 -2
- package/dist/client/client.js.map +1 -1
- package/dist/client/connection.d.ts +3 -0
- package/dist/client/connection.d.ts.map +1 -1
- package/dist/client/connection.js +2 -1
- package/dist/client/connection.js.map +1 -1
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/observe.d.ts +3 -0
- package/dist/client/observe.d.ts.map +1 -1
- package/dist/client/observe.js +2 -1
- package/dist/client/observe.js.map +1 -1
- package/dist/client/signed.d.ts +15 -0
- package/dist/client/signed.d.ts.map +1 -0
- package/dist/client/signed.js +19 -0
- package/dist/client/signed.js.map +1 -0
- package/dist/client/testing/gateway.d.ts +5 -0
- package/dist/client/testing/gateway.d.ts.map +1 -1
- package/dist/client/testing/gateway.js +10 -0
- package/dist/client/testing/gateway.js.map +1 -1
- package/dist/views/render.d.ts +1 -1
- package/dist/views/render.js +1 -1
- package/package.json +2 -2
- package/dist/cli/config.d.ts +0 -16
- package/dist/cli/config.d.ts.map +0 -1
- package/dist/cli/config.js +0 -125
- package/dist/cli/config.js.map +0 -1
- package/dist/cli/credentials.d.ts +0 -41
- package/dist/cli/credentials.d.ts.map +0 -1
- package/dist/cli/credentials.js +0 -98
- package/dist/cli/credentials.js.map +0 -1
- package/dist/cli/gateway.d.ts +0 -12
- package/dist/cli/gateway.d.ts.map +0 -1
- package/dist/cli/gateway.js +0 -67
- package/dist/cli/gateway.js.map +0 -1
- package/dist/cli/keys.d.ts +0 -28
- package/dist/cli/keys.d.ts.map +0 -1
- package/dist/cli/keys.js +0 -137
- package/dist/cli/keys.js.map +0 -1
- package/dist/cli/profiles.d.ts +0 -122
- package/dist/cli/profiles.d.ts.map +0 -1
- package/dist/cli/profiles.js +0 -312
- package/dist/cli/profiles.js.map +0 -1
- package/dist/cli/run-console.d.ts.map +0 -1
- package/dist/cli/run-console.js.map +0 -1
- package/dist/cli/run-screens.d.ts.map +0 -1
- package/dist/cli/run-screens.js.map +0 -1
- package/dist/cli/run.d.ts.map +0 -1
- package/dist/cli/run.js.map +0 -1
- package/dist/cli/ui/console/assets/index-DhcpHPdk.js +0 -102
- package/dist/cli/ui/console/assets/index-iylvEP0_.css +0 -1
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700&display=swap"
|
|
12
12
|
rel="stylesheet"
|
|
13
13
|
/>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-aGyMCQUH.js"></script>
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DmN15Axn.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<div id="root"></div>
|
package/dist/cli/ui/doors.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { Remembering } from "./remembering.js";
|
|
|
9
9
|
import type { Reproducing } from "./reproducing.js";
|
|
10
10
|
import type { Simulating } from "./simulating.js";
|
|
11
11
|
import type { Testing } from "./testing.js";
|
|
12
|
-
/** What `pinecall
|
|
12
|
+
/** What `pinecall start` hands in. Every field is what one screen of the console needs from this process. */
|
|
13
13
|
export interface Own {
|
|
14
14
|
simulating?: Simulating | undefined;
|
|
15
15
|
testing?: Testing | undefined;
|
|
@@ -25,7 +25,7 @@ export type Verbs = Partial<Record<DevVerb, (asked: unknown) => Promise<unknown>
|
|
|
25
25
|
/**
|
|
26
26
|
* The table, keyed by the wire's verb. A screen that needs something only this process can do —
|
|
27
27
|
* the class of this directory, its personas, its goldens, its files — adds ONE module and ONE
|
|
28
|
-
* row here; `pinecall
|
|
28
|
+
* row here; `pinecall start` answers the gateway's dev.request off it and knows nothing else.
|
|
29
29
|
*/
|
|
30
30
|
export declare function ownVerbs(own: Own): Verbs;
|
|
31
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doors.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/doors.ts"],"names":[],"mappings":"AAAA,sGAAsG;AAEtG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAA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AG,SAAS,CAAC;IACtC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACvC;AAED,2FAA2F;AAC3F,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAEnF;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,CAuCxC;AAKD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,CAWnD"}
|
package/dist/cli/ui/doors.js
CHANGED
|
@@ -4,7 +4,7 @@ import { refusedAs } from "./refusal.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* The table, keyed by the wire's verb. A screen that needs something only this process can do —
|
|
6
6
|
* the class of this directory, its personas, its goldens, its files — adds ONE module and ONE
|
|
7
|
-
* row here; `pinecall
|
|
7
|
+
* row here; `pinecall start` answers the gateway's dev.request off it and knows nothing else.
|
|
8
8
|
*/
|
|
9
9
|
export function ownVerbs(own) {
|
|
10
10
|
const verbs = {};
|
|
@@ -46,7 +46,7 @@ export function ownVerbs(own) {
|
|
|
46
46
|
}
|
|
47
47
|
return verbs;
|
|
48
48
|
}
|
|
49
|
-
// A verb nobody registered — a `pinecall
|
|
49
|
+
// A verb nobody registered — a `pinecall start` in a directory with no personas, asked to simulate.
|
|
50
50
|
const NOT_HERE = (verb) => `this process answers no ${verb}: nothing of it is in this directory`;
|
|
51
51
|
/**
|
|
52
52
|
* The table as the client's Agent takes it. A refusal keeps its status and its sentence — the
|
package/dist/cli/ui/doors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doors.js","sourceRoot":"","sources":["../../../src/cli/ui/doors.ts"],"names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AC;YAC/B,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -14,7 +14,7 @@ export interface Drifting {
|
|
|
14
14
|
read(asked: unknown): Promise<Drifted>;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* One `Drifting` for the life of a `pinecall
|
|
17
|
+
* One `Drifting` for the life of a `pinecall start`. Nothing here is the console's own work: it is
|
|
18
18
|
* the very `theDrift` the verb runs, in the process that already holds the key, because reading
|
|
19
19
|
* two hundred calls and their scores is two hundred round trips and a browser should make none of
|
|
20
20
|
* them. A held-rate is a count of the verdicts the log already carries — nothing is judged again.
|
package/dist/cli/ui/drifting.js
CHANGED
|
@@ -5,7 +5,7 @@ import { anObject, aString, maybeNumber } from "./asked.js";
|
|
|
5
5
|
const A_WEEK = 7 * 24 * 60 * 60;
|
|
6
6
|
const A_MONTH = 30 * 24 * 60 * 60;
|
|
7
7
|
/**
|
|
8
|
-
* One `Drifting` for the life of a `pinecall
|
|
8
|
+
* One `Drifting` for the life of a `pinecall start`. Nothing here is the console's own work: it is
|
|
9
9
|
* the very `theDrift` the verb runs, in the process that already holds the key, because reading
|
|
10
10
|
* two hundred calls and their scores is two hundred round trips and a browser should make none of
|
|
11
11
|
* them. A held-rate is a count of the verdicts the log already carries — nothing is judged again.
|
package/dist/cli/ui/knowing.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface Here {
|
|
|
27
27
|
golden: string | null;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* One `Knowing` for the life of a `pinecall
|
|
30
|
+
* One `Knowing` for the life of a `pinecall start`. Pushing a base is reading files off this
|
|
31
31
|
* machine's disk, which only the process standing in the agent's directory can do — the same
|
|
32
32
|
* `knowledge/docs` and `knowledge/golden.json` `pinecall knowledge` reads, through the same two
|
|
33
33
|
* doors of the gateway. Listing and dropping a base are the gateway's own and the page asks it
|
package/dist/cli/ui/knowing.js
CHANGED
|
@@ -7,10 +7,10 @@ import { load } from "../load.js";
|
|
|
7
7
|
import { anObject, aString, maybeNumber, someWords } from "./asked.js";
|
|
8
8
|
import { Refusal } from "./refusal.js";
|
|
9
9
|
const NOT_THIS_DIRECTORY = (asked, here) => here === null
|
|
10
|
-
? `no agent class in this directory: run \`pinecall
|
|
11
|
-
: `this process runs in ${here}'s directory: to push ${asked}'s knowledge, run \`pinecall
|
|
10
|
+
? `no agent class in this directory: run \`pinecall start\` where ${asked}'s agent.tsx is`
|
|
11
|
+
: `this process runs in ${here}'s directory: to push ${asked}'s knowledge, run \`pinecall start\` there`;
|
|
12
12
|
/**
|
|
13
|
-
* One `Knowing` for the life of a `pinecall
|
|
13
|
+
* One `Knowing` for the life of a `pinecall start`. Pushing a base is reading files off this
|
|
14
14
|
* machine's disk, which only the process standing in the agent's directory can do — the same
|
|
15
15
|
* `knowledge/docs` and `knowledge/golden.json` `pinecall knowledge` reads, through the same two
|
|
16
16
|
* doors of the gateway. Listing and dropping a base are the gateway's own and the page asks it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knowing.js","sourceRoot":"","sources":["../../../src/cli/ui/knowing.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAE7G,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAInD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACL,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,EACb,YAAY,EACZ,SAAS,EACT,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,cAAc,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,E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ise<Promoted>;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* One `Promoting` for the life of a `pinecall
|
|
20
|
+
* One `Promoting` for the life of a `pinecall start`. A promotion WRITES A FILE — `test/candidates`
|
|
21
21
|
* beside this directory's goldens — which is why it is a door of this process and not of the
|
|
22
22
|
* gateway: the call is the gateway's, the file is this machine's. It lands as a CANDIDATE with
|
|
23
23
|
* `promoted_from` on it, and a person edits it before it counts as a golden.
|
package/dist/cli/ui/promoting.js
CHANGED
|
@@ -5,7 +5,7 @@ import { anObject, aString, maybeNumber, someWords } from "./asked.js";
|
|
|
5
5
|
import { Refusal } from "./refusal.js";
|
|
6
6
|
const NO_CLASS = "no agent class in this directory: a candidate is written beside the goldens it will join";
|
|
7
7
|
/**
|
|
8
|
-
* One `Promoting` for the life of a `pinecall
|
|
8
|
+
* One `Promoting` for the life of a `pinecall start`. A promotion WRITES A FILE — `test/candidates`
|
|
9
9
|
* beside this directory's goldens — which is why it is a door of this process and not of the
|
|
10
10
|
* gateway: the call is the gateway's, the file is this machine's. It lands as a CANDIDATE with
|
|
11
11
|
* `promoted_from` on it, and a person edits it before it counts as a golden.
|
|
@@ -30,7 +30,7 @@ export interface Pieces {
|
|
|
30
30
|
}>;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* One `Remembering` for the life of a `pinecall
|
|
33
|
+
* One `Remembering` for the life of a `pinecall start`. Both goldens are FILES of this directory —
|
|
34
34
|
* `memory/golden.json` and `test/memory` — so only the process standing in it can run them, and
|
|
35
35
|
* both are the very ones `pinecall memory eval` and `pinecall remember` run. The models are the
|
|
36
36
|
* gateway's, as they always were: this process sends questions and cases, never a key.
|
|
@@ -11,10 +11,10 @@ import { casesIn } from "../testing/goldens.js";
|
|
|
11
11
|
import { anObject, aString, maybeNumber } from "./asked.js";
|
|
12
12
|
import { Refusal } from "./refusal.js";
|
|
13
13
|
const NOT_THIS_DIRECTORY = (asked, here) => here === null
|
|
14
|
-
? `no agent class in this directory: run \`pinecall
|
|
15
|
-
: `this process runs in ${here}'s directory: to run ${asked}'s memory goldens, run \`pinecall
|
|
14
|
+
? `no agent class in this directory: run \`pinecall start\` where ${asked}'s agent.tsx is`
|
|
15
|
+
: `this process runs in ${here}'s directory: to run ${asked}'s memory goldens, run \`pinecall start\` there`;
|
|
16
16
|
/**
|
|
17
|
-
* One `Remembering` for the life of a `pinecall
|
|
17
|
+
* One `Remembering` for the life of a `pinecall start`. Both goldens are FILES of this directory —
|
|
18
18
|
* `memory/golden.json` and `test/memory` — so only the process standing in it can run them, and
|
|
19
19
|
* both are the very ones `pinecall memory eval` and `pinecall remember` run. The models are the
|
|
20
20
|
* gateway's, as they always were: this process sends questions and cases, never a key.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remembering.js","sourceRoot":"","sources":["../../../src/cli/ui/remembering.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAE7G,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAInD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM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AC,YAAY,EAAE,CAAC;KACjE,CAAC;AACJ,CAAC"}
|
|
@@ -13,7 +13,7 @@ export interface Reproducing {
|
|
|
13
13
|
read(asked: unknown): Promise<unknown>;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* One `Reproducing` for the life of a `pinecall
|
|
16
|
+
* One `Reproducing` for the life of a `pinecall start`. A reproduction is a FILE the suite left in
|
|
17
17
|
* the directory it ran in — `.pinecall/evals/<run>/<golden>.json` — so the page can only have it
|
|
18
18
|
* through the process standing there. It carries the one thing the log deliberately does not: the
|
|
19
19
|
* requests the model actually answered, region by region, because the log keeps a hash of each
|
|
@@ -9,7 +9,7 @@ const A_GOLDEN = /^[^/\\]{1,120}$/;
|
|
|
9
9
|
const NOT_HERE = (run) => `no reproduction of ${run} under ${REPRODUCTIONS}: the suite writes them where it was run, ` +
|
|
10
10
|
"and a run that was green wrote none";
|
|
11
11
|
/**
|
|
12
|
-
* One `Reproducing` for the life of a `pinecall
|
|
12
|
+
* One `Reproducing` for the life of a `pinecall start`. A reproduction is a FILE the suite left in
|
|
13
13
|
* the directory it ran in — `.pinecall/evals/<run>/<golden>.json` — so the page can only have it
|
|
14
14
|
* through the process standing there. It carries the one thing the log deliberately does not: the
|
|
15
15
|
* requests the model actually answered, region by region, because the log keeps a hash of each
|
|
@@ -39,7 +39,7 @@ export interface Pieces {
|
|
|
39
39
|
simulate: typeof aSimulation;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
* One `Simulating` for the life of a `pinecall
|
|
42
|
+
* One `Simulating` for the life of a `pinecall start`: the door it was opened with, the class of the
|
|
43
43
|
* directory it runs in, and where the simulation's own lines go — the terminal that typed `ui`,
|
|
44
44
|
* exactly as `pinecall simulate` prints them. The call itself is watched from the page, off the
|
|
45
45
|
* log, like any other call; nothing here keeps a second transcript.
|
|
@@ -8,13 +8,13 @@ import { Refusal } from "./refusal.js";
|
|
|
8
8
|
const MOST_TURNS = 30;
|
|
9
9
|
// The console may be opened on any agent the gateway holds, but a simulation needs the CLASS —
|
|
10
10
|
// mounted in this process, as `pinecall simulate` mounts it — and the class is the one in the
|
|
11
|
-
// directory `pinecall
|
|
11
|
+
// directory `pinecall start` was typed in. Another agent's page gets the sentence, not a call.
|
|
12
12
|
const NOT_THIS_DIRECTORY = (asked, here) => here === null
|
|
13
|
-
? `no agent class in this directory: run \`pinecall
|
|
14
|
-
: `this process runs in ${here}'s directory: to simulate ${asked}, run \`pinecall
|
|
13
|
+
? `no agent class in this directory: run \`pinecall start\` where ${asked}'s agent.tsx is`
|
|
14
|
+
: `this process runs in ${here}'s directory: to simulate ${asked}, run \`pinecall start\` there`;
|
|
15
15
|
const NO_CALL = "the simulation ended before a call opened";
|
|
16
16
|
/**
|
|
17
|
-
* One `Simulating` for the life of a `pinecall
|
|
17
|
+
* One `Simulating` for the life of a `pinecall start`: the door it was opened with, the class of the
|
|
18
18
|
* directory it runs in, and where the simulation's own lines go — the terminal that typed `ui`,
|
|
19
19
|
* exactly as `pinecall simulate` prints them. The call itself is watched from the page, off the
|
|
20
20
|
* log, like any other call; nothing here keeps a second transcript.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulating.js","sourceRoot":"","sources":["../../../src/cli/ui/simulating.ts"],"names":[],"mappings":"AAAA,mHAAmH;AAEnH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,UAAU,EAAgB,MAAM,sBAAsB,CAAC;AAG7E,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAevC,8FAA8F;AAC9F,mFAAmF;AACnF,MAAM,UAAU,GAAG,EAAE,CAAC;AAetB,+FAA+F;AAC/F,8FAA8F;AAC9F
|
|
1
|
+
{"version":3,"file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L,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC;QAC9B,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC;QAClC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC;QAC5B,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC;QAC5B,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,CAAC;QACpF,gBAAgB,EAAE,WAAW,CAAC,KAAK,EAAE,kBAAkB,EAAE,CAAC,EAAE,GAAG,CAAC;QAChE,WAAW,EAAE,WAAW,CAAC,KAAK,EAAE,aAAa,EAAE,CAAC,EAAE,GAAG,CAAC;KACvD,CAAC;AACJ,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,mBAAmB,CAAC,IAAU;IAC5C,OAAO;QACL,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzC,QAAQ,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,EAAE,GAAG,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;KACnF,CAAC;AACJ,CAAC"}
|
package/dist/cli/ui/testing.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export interface Pieces {
|
|
|
41
41
|
running: (door: Door, agent: string) => Promise<string | undefined>;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* One `Testing` for the life of a `pinecall
|
|
44
|
+
* One `Testing` for the life of a `pinecall start`: the door it was opened with, the class of the
|
|
45
45
|
* directory it runs in, and where the report goes — the terminal that typed `ui`, exactly as
|
|
46
46
|
* `pinecall test` prints it. The run itself is read from the page off `GET /v1/evals/runs`, like
|
|
47
47
|
* any other run; the reproductions are written where the verb writes them.
|
package/dist/cli/ui/testing.js
CHANGED
|
@@ -12,12 +12,12 @@ import { Refusal } from "./refusal.js";
|
|
|
12
12
|
const A_RUN_OPENS_WITHIN_MS = 20_000;
|
|
13
13
|
const A_LOOK_EVERY_MS = 250;
|
|
14
14
|
const NOT_THIS_DIRECTORY = (asked, here) => here === null
|
|
15
|
-
? `no agent class in this directory: run \`pinecall
|
|
16
|
-
: `this process runs in ${here}'s directory: to run ${asked}'s goldens, run \`pinecall
|
|
15
|
+
? `no agent class in this directory: run \`pinecall start\` where ${asked}'s agent.tsx is`
|
|
16
|
+
: `this process runs in ${here}'s directory: to run ${asked}'s goldens, run \`pinecall start\` there`;
|
|
17
17
|
const ONLY_ON_A_LINE = "background noise and packet loss are about audio: a spoken run";
|
|
18
18
|
const NO_RUN = "the suite ended before the gateway opened a run";
|
|
19
19
|
/**
|
|
20
|
-
* One `Testing` for the life of a `pinecall
|
|
20
|
+
* One `Testing` for the life of a `pinecall start`: the door it was opened with, the class of the
|
|
21
21
|
* directory it runs in, and where the report goes — the terminal that typed `ui`, exactly as
|
|
22
22
|
* `pinecall test` prints it. The run itself is read from the page off `GET /v1/evals/runs`, like
|
|
23
23
|
* any other run; the reproductions are written where the verb writes them.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/cli/ui/testing.ts"],"names":[],"mappings":"AAAA,2HAA2H;AAE3H,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAe,MAAM,uBAAuB,CAAC;AAE1E,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACjE,OA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,IAAU;IACzC,OAAO;QACL,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC;QACtC,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC;QACvG,OAAO,EAAE,QAAQ;KAClB,CAAC;AACJ,CAAC"}
|
package/dist/cli/whoami.d.ts
CHANGED
|
@@ -9,8 +9,12 @@ export interface Who {
|
|
|
9
9
|
slug?: string | null;
|
|
10
10
|
key_id: string;
|
|
11
11
|
label: string | null;
|
|
12
|
-
/** The world this
|
|
12
|
+
/** The world this request ran in: the one `--prod` named, else the sandbox — or a server token's own. */
|
|
13
13
|
env: string;
|
|
14
|
+
/** The person the key was minted for; none for a server's token. */
|
|
15
|
+
name?: string | null;
|
|
16
|
+
/** Whether this key may act in production: the person's switch (an admin always), or a production token. */
|
|
17
|
+
production: boolean;
|
|
14
18
|
}
|
|
15
19
|
export declare const group: Group;
|
|
16
20
|
/** Resolve the door, ask it who is knocking, and print the two lines. */
|
|
@@ -25,7 +29,7 @@ export declare function whoIs(door: Door): Promise<Who>;
|
|
|
25
29
|
* gateway too old to carry one, or an org whose row is gone.
|
|
26
30
|
*/
|
|
27
31
|
export declare function orgOf(who: Who): string;
|
|
28
|
-
/** One line: whose key, which of theirs,
|
|
32
|
+
/** One line: whose key, which of theirs, the world, what it was issued for, and production. */
|
|
29
33
|
export declare function describing(who: Who): string;
|
|
30
34
|
/**
|
|
31
35
|
* What the gateway said when it refused, in its own words.
|
package/dist/cli/whoami.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whoami.d.ts","sourceRoot":"","sources":["../../src/cli/whoami.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAG1G,OAAO,KAAK,EAA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;GAMG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAEtC;AAED,+FAA+F;AAC/F,wBAAgB,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAK3C;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAI/C"}
|
package/dist/cli/whoami.js
CHANGED
|
@@ -8,10 +8,10 @@ export const group = {
|
|
|
8
8
|
purpose: "which org and which key this terminal is holding",
|
|
9
9
|
usage: `usage: pinecall whoami
|
|
10
10
|
|
|
11
|
-
Prints the gateway every connecting verb would talk to, where the key came from
|
|
12
|
-
that gateway says the key is: the org, the
|
|
13
|
-
issued under
|
|
14
|
-
key itself is neither printed nor sent anywhere else.`,
|
|
11
|
+
Prints the gateway every connecting verb would talk to, where the key came from (the
|
|
12
|
+
environment, or the project's .env), and what that gateway says the key is: the org, the
|
|
13
|
+
key's id, the world this command runs in, the label it was issued under, and whether you may
|
|
14
|
+
act in production. The key itself is neither printed nor sent anywhere else.`,
|
|
15
15
|
run,
|
|
16
16
|
};
|
|
17
17
|
/** Resolve the door, ask it who is knocking, and print the two lines. */
|
|
@@ -45,11 +45,12 @@ export async function whoIs(door) {
|
|
|
45
45
|
export function orgOf(who) {
|
|
46
46
|
return who.slug ?? who.org;
|
|
47
47
|
}
|
|
48
|
-
/** One line: whose key, which of theirs,
|
|
48
|
+
/** One line: whose key, which of theirs, the world, what it was issued for, and production. */
|
|
49
49
|
export function describing(who) {
|
|
50
50
|
const said = [`org ${orgOf(who)}`, `key ${who.key_id}`, who.env];
|
|
51
51
|
if (who.label !== null)
|
|
52
52
|
said.push(who.label);
|
|
53
|
+
said.push(`production: ${who.production ? "yes" : "no"}`);
|
|
53
54
|
return said.join(" · ");
|
|
54
55
|
}
|
|
55
56
|
/**
|
package/dist/cli/whoami.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whoami.js","sourceRoot":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,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB,MAAM,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;AAChG,CAAC;AAED,4FAA4F;AAC5F,SAAS,QAAQ,CAAC,IAAY;IAC5B,IAAI,CAAC;QACH,MAAM,IAAI,GAAY,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,IAAI,GAAI,IAA6B,CAAC,MAAM,CAAC;QACnD,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACrD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
package/dist/cli/world.d.ts
CHANGED
|
@@ -1,33 +1,23 @@
|
|
|
1
|
-
/** Which world a verb works in
|
|
1
|
+
/** Which world a verb works in: the sandbox, or production when `--prod` names it for one command. */
|
|
2
|
+
import type { World } from "../client/signed.js";
|
|
2
3
|
import type { Open } from "./env.js";
|
|
3
4
|
import { type Who } from "./whoami.js";
|
|
4
5
|
/** The world a laptop is in: what is being written, held per person, nobody's customers calling. */
|
|
5
|
-
export declare const SANDBOX
|
|
6
|
-
/** The world
|
|
7
|
-
export declare const PRODUCTION
|
|
6
|
+
export declare const SANDBOX: World;
|
|
7
|
+
/** The world the org's customers reach. A person acts there while their org lets them. */
|
|
8
|
+
export declare const PRODUCTION: World;
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* Take `--prod` out of an invocation's argv, and remember it.
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* because a laptop is where things are written and a deployment is the deliberate act.
|
|
12
|
+
* Returns what is left, so the group sees only its own flags. `--prod` belongs to no group: it says
|
|
13
|
+
* which world THIS command runs in, and the gateway lets it through only while the person's row
|
|
14
|
+
* opens production. Nothing is kept: the next command is in the sandbox again.
|
|
15
15
|
*/
|
|
16
|
-
export declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
/** What the gateway says this key is: asked once, and used for both the check and the line. */
|
|
16
|
+
export declare function withoutTheWorldFlag(argv: readonly string[]): string[];
|
|
17
|
+
/** Production when this invocation said `--prod`; otherwise nothing is named and it is the sandbox. */
|
|
18
|
+
export declare function theChosenWorld(): World | undefined;
|
|
19
|
+
/** What the gateway says this key is, in the world this command asked for. */
|
|
22
20
|
export declare function standing(door: Open): Promise<Who>;
|
|
23
|
-
/**
|
|
24
|
-
* Why this verb will not run with the key in hand, or undefined when it will.
|
|
25
|
-
*
|
|
26
|
-
* The whole reason this exists: `pinecall run` used to register wherever the key it happened to
|
|
27
|
-
* find pointed, and the line it printed read the same either way — so an agent landed in
|
|
28
|
-
* production, in somebody else's org, and nothing said so until a customer called it.
|
|
29
|
-
*/
|
|
30
|
-
export declare function notThisWorld(verb: string, who: Who, said: string | undefined): string | undefined;
|
|
31
|
-
/** When the gateway will not say which world the key opens: guessing is the bug this replaces. */
|
|
21
|
+
/** When the gateway will not say who this key is: guessing is the bug this replaces. */
|
|
32
22
|
export declare function cannotTell(verb: string, failed: unknown): string;
|
|
33
23
|
//# sourceMappingURL=world.d.ts.map
|
package/dist/cli/world.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../src/cli/world.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../src/cli/world.ts"],"names":[],"mappings":"AAAA,sGAAsG;AAEtG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAkB,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AAEvD,oGAAoG;AACpG,eAAO,MAAM,OAAO,EAAE,KAAiB,CAAC;AAExC,0FAA0F;AAC1F,eAAO,MAAM,UAAU,EAAE,KAAoB,CAAC;AAO9C;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAGrE;AAED,uGAAuG;AACvG,wBAAgB,cAAc,IAAI,KAAK,GAAG,SAAS,CAElD;AAED,8EAA8E;AAC9E,wBAAsB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,CAEvD;AAED,wFAAwF;AACxF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAEhE"}
|
package/dist/cli/world.js
CHANGED
|
@@ -1,49 +1,34 @@
|
|
|
1
|
-
/** Which world a verb works in
|
|
2
|
-
import { theChosenWorld } from "./profiles.js";
|
|
1
|
+
/** Which world a verb works in: the sandbox, or production when `--prod` names it for one command. */
|
|
3
2
|
import { refusal, whoIs } from "./whoami.js";
|
|
4
3
|
/** The world a laptop is in: what is being written, held per person, nobody's customers calling. */
|
|
5
4
|
export const SANDBOX = "sandbox";
|
|
6
|
-
/** The world
|
|
5
|
+
/** The world the org's customers reach. A person acts there while their org lets them. */
|
|
7
6
|
export const PRODUCTION = "production";
|
|
8
|
-
|
|
7
|
+
// Read once per invocation, off argv, before any group sees it — so every verb goes where the
|
|
8
|
+
// command said without each of them parsing the flag. The one piece of process-wide state this
|
|
9
|
+
// CLI keeps, and it is reset on every parse.
|
|
10
|
+
let production = false;
|
|
9
11
|
/**
|
|
10
|
-
*
|
|
12
|
+
* Take `--prod` out of an invocation's argv, and remember it.
|
|
11
13
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* because a laptop is where things are written and a deployment is the deliberate act.
|
|
14
|
+
* Returns what is left, so the group sees only its own flags. `--prod` belongs to no group: it says
|
|
15
|
+
* which world THIS command runs in, and the gateway lets it through only while the person's row
|
|
16
|
+
* opens production. Nothing is kept: the next command is in the sandbox again.
|
|
16
17
|
*/
|
|
17
|
-
export
|
|
18
|
-
|
|
18
|
+
export function withoutTheWorldFlag(argv) {
|
|
19
|
+
production = argv.includes("--prod");
|
|
20
|
+
return argv.filter((word) => word !== "--prod");
|
|
21
|
+
}
|
|
22
|
+
/** Production when this invocation said `--prod`; otherwise nothing is named and it is the sandbox. */
|
|
23
|
+
export function theChosenWorld() {
|
|
24
|
+
return production ? PRODUCTION : undefined;
|
|
25
|
+
}
|
|
26
|
+
/** What the gateway says this key is, in the world this command asked for. */
|
|
19
27
|
export async function standing(door) {
|
|
20
28
|
return await whoIs(door);
|
|
21
29
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Why this verb will not run with the key in hand, or undefined when it will.
|
|
24
|
-
*
|
|
25
|
-
* The whole reason this exists: `pinecall run` used to register wherever the key it happened to
|
|
26
|
-
* find pointed, and the line it printed read the same either way — so an agent landed in
|
|
27
|
-
* production, in somebody else's org, and nothing said so until a customer called it.
|
|
28
|
-
*/
|
|
29
|
-
export function notThisWorld(verb, who, said) {
|
|
30
|
-
if (said !== undefined && !WORLDS.includes(said)) {
|
|
31
|
-
return `--env takes ${WORLDS.join(" or ")}, not ${JSON.stringify(said)}`;
|
|
32
|
-
}
|
|
33
|
-
const wanted = said ?? theChosenWorld() ?? SANDBOX;
|
|
34
|
-
if (who.env === wanted)
|
|
35
|
-
return undefined;
|
|
36
|
-
if (said !== undefined) {
|
|
37
|
-
return (`--env ${said} asks for ${said}, and this key opens ${who.env}: a key opens one world and`
|
|
38
|
-
+ " no flag changes that.\n"
|
|
39
|
-
+ ` \`pinecall use <profile>\` for a key that opens ${said} — \`pinecall config\` lists them.`);
|
|
40
|
-
}
|
|
41
|
-
return (`this key opens ${who.env}, and \`pinecall ${verb}\` answers in the ${SANDBOX} unless you say so.\n`
|
|
42
|
-
+ ` \`pinecall ${verb} --env ${who.env}\` if that is what you meant: it is what a deployment types.\n`
|
|
43
|
-
+ " `pinecall use <profile>` to work on a key of your own — `pinecall config` lists them.");
|
|
44
|
-
}
|
|
45
|
-
/** When the gateway will not say which world the key opens: guessing is the bug this replaces. */
|
|
30
|
+
/** When the gateway will not say who this key is: guessing is the bug this replaces. */
|
|
46
31
|
export function cannotTell(verb, failed) {
|
|
47
|
-
return `\`pinecall ${verb}\` will not guess
|
|
32
|
+
return `\`pinecall ${verb}\` will not guess who this key is: ${refusal(failed)}`;
|
|
48
33
|
}
|
|
49
34
|
//# sourceMappingURL=world.js.map
|
package/dist/cli/world.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"world.js","sourceRoot":"","sources":["../../src/cli/world.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"world.js","sourceRoot":"","sources":["../../src/cli/world.ts"],"names":[],"mappings":"AAAA,sGAAsG;AAItG,OAAO,EAAE,OAAO,EAAE,KAAK,EAAY,MAAM,aAAa,CAAC;AAEvD,oGAAoG;AACpG,MAAM,CAAC,MAAM,OAAO,GAAU,SAAS,CAAC;AAExC,0FAA0F;AAC1F,MAAM,CAAC,MAAM,UAAU,GAAU,YAAY,CAAC;AAE9C,8FAA8F;AAC9F,+FAA+F;AAC/F,6CAA6C;AAC7C,IAAI,UAAU,GAAG,KAAK,CAAC;AAEvB;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAuB;IACzD,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC;AAClD,CAAC;AAED,uGAAuG;AACvG,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7C,CAAC;AAED,8EAA8E;AAC9E,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,IAAU;IACvC,OAAO,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,MAAe;IACtD,OAAO,cAAc,IAAI,sCAAsC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;AACnF,CAAC"}
|
package/dist/client/agent.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface AgentGateway {
|
|
|
28
28
|
seen(event: CamelEvent, call: Call | null): void;
|
|
29
29
|
onError(error: Error): void;
|
|
30
30
|
readonly sdk: string;
|
|
31
|
+
readonly host: string;
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
34
|
* What answers a console's ask of this process: the verb, and the body the console sent as the
|
|
@@ -65,7 +66,7 @@ export declare class Agent implements CallGateway {
|
|
|
65
66
|
onAny(listener: AnyListener<Call | null>): () => void;
|
|
66
67
|
/**
|
|
67
68
|
* Answer a console's asks of this process — `dev.request`, relayed by the gateway. Only the
|
|
68
|
-
* process standing in the agent's directory has one: `pinecall
|
|
69
|
+
* process standing in the agent's directory has one: `pinecall start` registers it, a plain app
|
|
69
70
|
* never does, and a console asking a plain app is told so.
|
|
70
71
|
*/
|
|
71
72
|
onDev(handler: DevHandler): void;
|