@kybernesis/create 0.26.1 → 0.26.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/dist/buzz.d.ts +1 -1
- package/dist/buzz.js +2 -2
- package/dist/templates.d.ts +1 -1
- package/dist/templates.js +11 -4
- package/dist/util.d.ts +8 -0
- package/dist/util.js +8 -0
- package/package.json +1 -1
package/dist/buzz.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Channels page (manage's `buzz.join`), which writes the relay, publishes the
|
|
16
16
|
* agent's profile and starts the bridge.
|
|
17
17
|
*/
|
|
18
|
-
export declare const BUZZ_PACKAGE
|
|
18
|
+
export declare const BUZZ_PACKAGE: string;
|
|
19
19
|
export declare const BUZZ_EXTENSION_MOUNT: string;
|
|
20
20
|
/** Where the agent's Buzz key lives: inside the agent, so the bridge and the agent read the same file. */
|
|
21
21
|
export declare function buzzKeyPath(appDir: string): string;
|
package/dist/buzz.js
CHANGED
|
@@ -2,7 +2,7 @@ import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync
|
|
|
2
2
|
import { tmpdir, userInfo } from "node:os";
|
|
3
3
|
import { basename, join, resolve } from "node:path";
|
|
4
4
|
import { upsertEnv } from "./envfile.js";
|
|
5
|
-
import { bold, capture, dim, green, red, run, yellow } from "./util.js";
|
|
5
|
+
import { bold, capture, dim, green, linePackage, red, run, yellow } from "./util.js";
|
|
6
6
|
/**
|
|
7
7
|
* `kyb add buzz` — get an agent ready for its owner's Buzz community.
|
|
8
8
|
*
|
|
@@ -20,7 +20,7 @@ import { bold, capture, dim, green, red, run, yellow } from "./util.js";
|
|
|
20
20
|
* Channels page (manage's `buzz.join`), which writes the relay, publishes the
|
|
21
21
|
* agent's profile and starts the bridge.
|
|
22
22
|
*/
|
|
23
|
-
export const BUZZ_PACKAGE = "
|
|
23
|
+
export const BUZZ_PACKAGE = linePackage("buzz");
|
|
24
24
|
export const BUZZ_EXTENSION_MOUNT = `// The agent's hands in Buzz: projects, issues, pull requests, patches, repos,\n` +
|
|
25
25
|
`// long-form notes, channel canvases, workflows, the feed, media — everything the\n` +
|
|
26
26
|
`// workspace has beyond talking, which the bridge alone does not provide.\n` +
|
package/dist/templates.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare function dispatchEveChannelTs(): string;
|
|
|
46
46
|
/** agent/tools/peers.ts: every agent this one may call, as tools, resolved per turn. */
|
|
47
47
|
export declare function dispatchPeersTs(): string;
|
|
48
48
|
/** Pinned to the eve line the scaffold certifies, like every other @kybernesis dep it installs. */
|
|
49
|
-
export declare const DISPATCH_DEP
|
|
49
|
+
export declare const DISPATCH_DEP: string;
|
|
50
50
|
export interface EngineerPlan {
|
|
51
51
|
files: Array<{
|
|
52
52
|
path: string;
|
package/dist/templates.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** File templates written by `kyb init`. Kept in sync with the proven Kyber patterns. */
|
|
2
|
+
import { linePackage } from "./util.js";
|
|
2
3
|
/** Exact output of Eve's legacy extension/github-tools registry item. */
|
|
3
4
|
export const LEGACY_GITHUB_TOOLS_MOUNT = `import githubTools from "@github-tools/eve-extension";
|
|
4
5
|
|
|
@@ -288,7 +289,7 @@ export default multiplayerSlackChannel({
|
|
|
288
289
|
credentials: connectSlackCredentials(process.env.SLACK_CONNECTOR_UID!),
|
|
289
290
|
});
|
|
290
291
|
`,
|
|
291
|
-
deps: onExe ? ["
|
|
292
|
+
deps: onExe ? [linePackage("multiplayer"), "@kybernesis/enterprise"] : ["@kybernesis/multiplayer", "@vercel/connect"],
|
|
292
293
|
registryItems: [],
|
|
293
294
|
env: onExe ? [] : [`SLACK_CONNECTOR_UID="slack/${name}"`],
|
|
294
295
|
steps: onExe
|
|
@@ -305,7 +306,8 @@ export default multiplayerSlackChannel({
|
|
|
305
306
|
return onExe
|
|
306
307
|
? {
|
|
307
308
|
file: "linq.ts",
|
|
308
|
-
content: `import {
|
|
309
|
+
content: `import { progressEvents } from "@kybernesis/cards";
|
|
310
|
+
import { channelIdentity } from "@kybernesis/enterprise";
|
|
309
311
|
import { linqEnvCredentials, linqSenderIdentity } from "@kybernesis/exe/linq";
|
|
310
312
|
import { linqChannel } from "eve/channels/linq";
|
|
311
313
|
|
|
@@ -316,6 +318,10 @@ import { linqChannel } from "eve/channels/linq";
|
|
|
316
318
|
//
|
|
317
319
|
// A sender is a control-plane person, never a phone number: an unlinked number
|
|
318
320
|
// gets one text with a claim link and nothing else.
|
|
321
|
+
//
|
|
322
|
+
// A text thread shows nothing between a request and its answer, so when the
|
|
323
|
+
// agent starts a long job it sends one "on it" line first (\`working_on_it\`,
|
|
324
|
+
// from @kybernesis/notify) and \`progressEvents\` posts it here as it happens.
|
|
319
325
|
const issuer = process.env.KYBERNESIS_ISSUER ?? "https://agent.kybernesis.ai";
|
|
320
326
|
const credential = process.env.KYBERNESIS_AGENT_CREDENTIAL;
|
|
321
327
|
const agentName = process.env.KYBERNESIS_AGENT;
|
|
@@ -323,6 +329,7 @@ const agentName = process.env.KYBERNESIS_AGENT;
|
|
|
323
329
|
export default linqChannel({
|
|
324
330
|
credentials: linqEnvCredentials(),
|
|
325
331
|
...(agentName ? { userName: agentName } : {}),
|
|
332
|
+
events: progressEvents(),
|
|
326
333
|
onMessage: linqSenderIdentity({
|
|
327
334
|
issuer,
|
|
328
335
|
agentName,
|
|
@@ -330,7 +337,7 @@ export default linqChannel({
|
|
|
330
337
|
}),
|
|
331
338
|
});
|
|
332
339
|
`,
|
|
333
|
-
deps: ["@kybernesis/exe", "@kybernesis/enterprise"],
|
|
340
|
+
deps: ["@kybernesis/exe", "@kybernesis/enterprise", "@kybernesis/cards"],
|
|
334
341
|
registryItems: [],
|
|
335
342
|
env: [],
|
|
336
343
|
steps: [
|
|
@@ -543,7 +550,7 @@ export default governedPeers();
|
|
|
543
550
|
`;
|
|
544
551
|
}
|
|
545
552
|
/** Pinned to the eve line the scaffold certifies, like every other @kybernesis dep it installs. */
|
|
546
|
-
export const DISPATCH_DEP = "
|
|
553
|
+
export const DISPATCH_DEP = linePackage("dispatch");
|
|
547
554
|
/** The workshop sandbox, per host. Same recipe; different backend. */
|
|
548
555
|
function workshopSandbox(host) {
|
|
549
556
|
if (host === "exe") {
|
package/dist/util.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export declare const EVE_VERSION = "0.81.1";
|
|
2
|
+
/** The npm dist-tag every @kybernesis package carries for EVE_VERSION's line, e.g. `eve-0.81`. */
|
|
3
|
+
export declare const EVE_LINE_TAG: string;
|
|
4
|
+
/**
|
|
5
|
+
* An install spec for a @kybernesis package on the certified line. A hand-written
|
|
6
|
+
* range went stale at the 0.81 cutover (dispatch ^0.7.0 is the 0.68 build, and
|
|
7
|
+
* npm refuses it beside eve 0.81.1), so specs follow EVE_VERSION instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const linePackage: (name: string) => string;
|
|
2
10
|
/** The registry items built for EVE_VERSION's line; every @kybernesis dep in them is tagged for it. */
|
|
3
11
|
export declare const REGISTRY_URL = "https://registry.kybernesis.ai/r/eve-0.81/{name}.json";
|
|
4
12
|
export declare const DEFAULT_ISSUER = "https://agent.kybernesis.ai";
|
package/dist/util.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
2
|
import { createInterface } from "node:readline/promises";
|
|
3
3
|
export const EVE_VERSION = "0.81.1";
|
|
4
|
+
/** The npm dist-tag every @kybernesis package carries for EVE_VERSION's line, e.g. `eve-0.81`. */
|
|
5
|
+
export const EVE_LINE_TAG = `eve-${EVE_VERSION.split(".").slice(0, 2).join(".")}`;
|
|
6
|
+
/**
|
|
7
|
+
* An install spec for a @kybernesis package on the certified line. A hand-written
|
|
8
|
+
* range went stale at the 0.81 cutover (dispatch ^0.7.0 is the 0.68 build, and
|
|
9
|
+
* npm refuses it beside eve 0.81.1), so specs follow EVE_VERSION instead.
|
|
10
|
+
*/
|
|
11
|
+
export const linePackage = (name) => `@kybernesis/${name}@${EVE_LINE_TAG}`;
|
|
4
12
|
/** The registry items built for EVE_VERSION's line; every @kybernesis dep in them is tagged for it. */
|
|
5
13
|
export const REGISTRY_URL = "https://registry.kybernesis.ai/r/eve-0.81/{name}.json";
|
|
6
14
|
export const DEFAULT_ISSUER = "https://agent.kybernesis.ai";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kybernesis/create",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.3",
|
|
4
4
|
"description": "The Kybernesis agent scaffolder and FDE toolkit: one command to a governed, remembering, multiplayer, self-testing eve agent \u2014 plus doctor and upgrade.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|