@bendyline/gezel-cli 1.2.14 → 1.3.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 +50 -15
- package/dist/app-author-command.js +2 -2
- package/dist/app-command.js +10 -3
- package/dist/app-guide.js +1 -1
- package/dist/bin/gezel-main.js +985 -384
- package/dist/handboek-export.js +35 -35
- package/dist/tui/index.js +56 -29
- package/package.json +7 -7
package/dist/handboek-export.js
CHANGED
|
@@ -297,15 +297,15 @@ ${mark(app, 160, `${prefix}${id}/logo.webp`)}
|
|
|
297
297
|
function indexHtml(apps, ctx) {
|
|
298
298
|
const present = CATEGORIES.filter(([id]) => apps.some((a) => a.category === id));
|
|
299
299
|
const demos = apps.filter((a) => a.demo).length;
|
|
300
|
-
const description = `${apps.length} Gezel apps: an interface paired with AI
|
|
301
|
-
return `${head("Gezel apps \u2014 a page you use, and
|
|
300
|
+
const description = `${apps.length} Gezel apps: an interface paired with AI that knows the job, the plans it follows, and the actions it takes. Try ${demos} of them in your browser.`;
|
|
301
|
+
return `${head("Gezel apps \u2014 a page you use, and Gezel working behind it", description, "/apps/", ctx)}
|
|
302
302
|
<body>
|
|
303
303
|
<div class="wrap">
|
|
304
304
|
${masthead()}
|
|
305
305
|
<main>
|
|
306
306
|
<section class="hero">
|
|
307
|
-
<h1><span class="title">Gezel apps</span><span class="tagline">A page you use, and
|
|
308
|
-
<p class="lede">Each app pairs an interface with AI
|
|
307
|
+
<h1><span class="title">Gezel apps</span><span class="tagline">A page you use, and Gezel working behind it.</span></h1>
|
|
308
|
+
<p class="lede">Each app pairs an interface with AI that knows the job, the step-by-step plans it follows, and actions that change the app\u2019s own files. Try ${demos} of them right here on sample data, with a scripted conversation. In Gezel they run on your computer, on your files, with the model you choose.</p>
|
|
309
309
|
</section>
|
|
310
310
|
<div class="filter">
|
|
311
311
|
<div class="tray" role="radiogroup" aria-label="Show apps for">
|
|
@@ -319,7 +319,7 @@ ${apps.map((a) => card(a)).join("\n")}
|
|
|
319
319
|
</ul>
|
|
320
320
|
<section class="band">
|
|
321
321
|
<h2>Make your own</h2>
|
|
322
|
-
<p>An app is plain files: an HTML page,
|
|
322
|
+
<p>An app is plain files: an HTML page, its crew, the craftbooks they follow, and small scripts for its actions. Build one for yourself, or contribute it to the catalog everyone installs from.</p>
|
|
323
323
|
<p class="band-links"><a href="${esc(ctx.docsBase)}building-ai-apps-inside-gezel/">Building AI apps inside Gezel</a><a href="${esc(ctx.docsBase)}gezel-page-apis/">The page APIs</a><a href="https://github.com/bendyline/gilde">The gilde catalog on GitHub</a></p>
|
|
324
324
|
</section>
|
|
325
325
|
</main>
|
|
@@ -390,7 +390,7 @@ function appHtml(app, apps, ctx) {
|
|
|
390
390
|
(s) => s.night ? `Runs ${esc(s.name)} overnight, once you agree.` : `Runs ${esc(s.name)} on a schedule, once you agree.`
|
|
391
391
|
).join(" ")}</p>` : ""}</section>` : "";
|
|
392
392
|
const shown = actions.slice(0, 8);
|
|
393
|
-
const tools = actions.length ? `<section class="inside-card"><h3>Actions
|
|
393
|
+
const tools = actions.length ? `<section class="inside-card"><h3>Actions Gezel can take</h3><ul class="plain">${shown.map(
|
|
394
394
|
(t) => `<li><strong>${esc(humanizeTool(t.name))}</strong><span>${esc(firstSentence(t.description ?? ""))}</span></li>`
|
|
395
395
|
).join(
|
|
396
396
|
""
|
|
@@ -427,7 +427,7 @@ ${demo}
|
|
|
427
427
|
<li><a href="/#download">Download Gezel</a> for Mac, Windows or Linux. It\u2019s free.</li>
|
|
428
428
|
<li>Choose <strong>New project</strong>, then <strong>${esc(label)}</strong>, then <strong>${esc(m.name)}</strong>.</li>
|
|
429
429
|
${questions.length ? `<li>Answer ${questions.length === 1 ? "its question" : "a few questions"}: ${questions.map((q) => `<em>${esc(q)}</em>`).join(" ")}</li>` : ""}
|
|
430
|
-
<li>${lead ? `Your ${esc(lead.role.toLowerCase())} takes it from there, on the model you choose.` : "
|
|
430
|
+
<li>${lead ? `Your ${esc(lead.role.toLowerCase())} takes it from there, on the model you choose.` : "Gezel takes it from there, on the model you choose."}</li>
|
|
431
431
|
</ol>
|
|
432
432
|
</section>
|
|
433
433
|
${more.length ? `<section class="more" aria-labelledby="more"><h2 id="more">More apps to try</h2><ul class="app-grid app-grid-small">${more.map((a) => card(a, "../")).join("")}</ul></section>` : ""}
|
|
@@ -1693,7 +1693,7 @@ async function buildSiteCatalog(catalog, scorecard = SCORECARD) {
|
|
|
1693
1693
|
title: "Add-on toolsets and connectors",
|
|
1694
1694
|
area: "technical",
|
|
1695
1695
|
order: 4.5,
|
|
1696
|
-
summary: "Toolsets you can add to a
|
|
1696
|
+
summary: "Toolsets you can add to a crew member, and connectors that bring outside data into a project.",
|
|
1697
1697
|
generated: true,
|
|
1698
1698
|
subcategory: HOW_GEZEL_WORKS
|
|
1699
1699
|
},
|
|
@@ -1727,15 +1727,15 @@ async function buildSiteCatalog(catalog, scorecard = SCORECARD) {
|
|
|
1727
1727
|
{
|
|
1728
1728
|
entry: {
|
|
1729
1729
|
id: "craftbooks-index",
|
|
1730
|
-
title: "Every
|
|
1730
|
+
title: "Every plan",
|
|
1731
1731
|
area: "craftbooks",
|
|
1732
1732
|
order: 0,
|
|
1733
1733
|
generated: true
|
|
1734
1734
|
},
|
|
1735
1735
|
markdown: [
|
|
1736
|
-
"# Every
|
|
1736
|
+
"# Every plan",
|
|
1737
1737
|
"",
|
|
1738
|
-
`
|
|
1738
|
+
`Plans are step-by-step procedures Gezel follows to produce a real piece of work. Each one names its steps, the role that runs each, and the checks the result must pass. There are ${craftbooks.length} of them, grouped here by the kind of work they do.`
|
|
1739
1739
|
].join("\n"),
|
|
1740
1740
|
html: craftbookGalleryHtml(craftbooks, craftbookArt),
|
|
1741
1741
|
listed: false,
|
|
@@ -1766,7 +1766,7 @@ function modelCatalogMarkdown(chat, images, videos, scorecard) {
|
|
|
1766
1766
|
"",
|
|
1767
1767
|
`## Chat models (${chat.length})`,
|
|
1768
1768
|
"",
|
|
1769
|
-
"The models
|
|
1769
|
+
"The models Gezel thinks and writes with, recommended first. **Measured** is the share of tasks the model (or another build of it) passed in its most recent full [scorecard](model-scorecard) round, preferring the general set, with the machine that round ran on. Follow it to every round on the model\u2019s page. Rounds are not comparable with each other, and a number from a workstation is not a promise about a laptop.",
|
|
1770
1770
|
"",
|
|
1771
1771
|
"| Model | Measured | Size | Context | Tools | Best for | Runs on | License |",
|
|
1772
1772
|
"| --- | --- | --- | --- | --- | --- | --- | --- |",
|
|
@@ -1788,7 +1788,7 @@ function modelCatalogMarkdown(chat, images, videos, scorecard) {
|
|
|
1788
1788
|
"",
|
|
1789
1789
|
`## Image models (${images.length})`,
|
|
1790
1790
|
"",
|
|
1791
|
-
"Models
|
|
1791
|
+
"Models Gezel can use to draw pictures, icons and illustrations. Gezel works out what each one needs from its files and offers only the ones your machine can run.",
|
|
1792
1792
|
"",
|
|
1793
1793
|
"| Model | Size | Commercial use | License |",
|
|
1794
1794
|
"| --- | --- | --- | --- |",
|
|
@@ -1913,7 +1913,7 @@ function chatModelMarkdown(m, scorecard) {
|
|
|
1913
1913
|
"| --- | --- |",
|
|
1914
1914
|
...facts.filter(([, v]) => v).map(([k, v]) => row([k, cell(v)])),
|
|
1915
1915
|
"",
|
|
1916
|
-
"Gezel downloads this model the first time
|
|
1916
|
+
"Gezel downloads this model the first time it is needed, checks the file against its published hash, and applies tuned settings for it.",
|
|
1917
1917
|
"",
|
|
1918
1918
|
...measuredResultsMarkdown(scorecard, m.id)
|
|
1919
1919
|
];
|
|
@@ -1929,14 +1929,14 @@ function toolsetCatalogMarkdown(addOns, connectors, communityCount) {
|
|
|
1929
1929
|
const lines = [
|
|
1930
1930
|
"# Add-on toolsets and connectors",
|
|
1931
1931
|
"",
|
|
1932
|
-
"Every
|
|
1932
|
+
"Every crew member starts with the built-in tool groups that fit their role, described in [Tools and toolsets](tools-and-toolsets). This page lists what you can add on top."
|
|
1933
1933
|
];
|
|
1934
1934
|
if (addOns.length > 0) {
|
|
1935
1935
|
lines.push(
|
|
1936
1936
|
"",
|
|
1937
1937
|
"## Add-on toolsets",
|
|
1938
1938
|
"",
|
|
1939
|
-
"Extra tools from Gezel\u2019s own catalog. Add one to a
|
|
1939
|
+
"Extra tools from Gezel\u2019s own catalog. Add one to a crew member from their Toolsets tab.",
|
|
1940
1940
|
"",
|
|
1941
1941
|
"| Toolset | What it does |",
|
|
1942
1942
|
"| --- | --- |",
|
|
@@ -1948,7 +1948,7 @@ function toolsetCatalogMarkdown(addOns, connectors, communityCount) {
|
|
|
1948
1948
|
"",
|
|
1949
1949
|
"## Connectors",
|
|
1950
1950
|
"",
|
|
1951
|
-
"Connectors copy data from outside services, such as mail, calendars and issue trackers, into a project as searchable files.
|
|
1951
|
+
"Connectors copy data from outside services, such as mail, calendars and issue trackers, into a project as searchable files. Gezel works on that local copy, never on the live account.",
|
|
1952
1952
|
"",
|
|
1953
1953
|
"| Connector | What it brings in |",
|
|
1954
1954
|
"| --- | --- |",
|
|
@@ -1960,7 +1960,7 @@ function toolsetCatalogMarkdown(addOns, connectors, communityCount) {
|
|
|
1960
1960
|
"",
|
|
1961
1961
|
"## Community servers",
|
|
1962
1962
|
"",
|
|
1963
|
-
`Gezel\u2019s toolset browser also lists about ${roundDown(communityCount).toLocaleString("en-US")} MCP servers from the public community registry, marked **Community**. They are third-party projects, so review one before you add it
|
|
1963
|
+
`Gezel\u2019s toolset browser also lists about ${roundDown(communityCount).toLocaleString("en-US")} MCP servers from the public community registry, marked **Community**. They are third-party projects, so review one before you add it. You can also bring your own: see [Custom MCP toolsets](tools-and-toolsets#custom-mcp-toolsets).`
|
|
1964
1964
|
);
|
|
1965
1965
|
}
|
|
1966
1966
|
return lines.join("\n");
|
|
@@ -1969,7 +1969,7 @@ function roleCatalogMarkdown(roles) {
|
|
|
1969
1969
|
return [
|
|
1970
1970
|
"# Every role template",
|
|
1971
1971
|
"",
|
|
1972
|
-
"A role template is a ready-made character for your crew: a name, a job, and a working style that shapes how they think and talk. The Meester picks from these when
|
|
1972
|
+
"A role template is a ready-made character for your crew: a name, a job, and a working style that shapes how they think and talk. The Meester picks from these when a job calls for one, and you can add any of them yourself with **New crew member**. The core roles each have their own page in [Roles](roles-index).",
|
|
1973
1973
|
"",
|
|
1974
1974
|
"| Role | What they do |",
|
|
1975
1975
|
"| --- | --- |",
|
|
@@ -1981,14 +1981,14 @@ function roleCatalogMarkdown(roles) {
|
|
|
1981
1981
|
function roleTemplateMarkdown(r, about) {
|
|
1982
1982
|
const lines = [`# ${r.name}`, "", r.description.trim()];
|
|
1983
1983
|
if (r.meesterCandidate) {
|
|
1984
|
-
lines.push("", "This character can also act as your Meester, the
|
|
1984
|
+
lines.push("", "This character can also act as your Meester, the one you talk to first.");
|
|
1985
1985
|
}
|
|
1986
1986
|
if (about?.trim()) {
|
|
1987
1987
|
lines.push(
|
|
1988
1988
|
"",
|
|
1989
1989
|
"## How they work",
|
|
1990
1990
|
"",
|
|
1991
|
-
"This is the character brief Gezel gives the model, word for word. It shapes how this
|
|
1991
|
+
"This is the character brief Gezel gives the model, word for word. It shapes how this character thinks, works and talks.",
|
|
1992
1992
|
"",
|
|
1993
1993
|
demoteHeadings(about.trim())
|
|
1994
1994
|
);
|
|
@@ -2897,9 +2897,9 @@ function openInGezelSection(entryId, siteUrl) {
|
|
|
2897
2897
|
})}</p>`;
|
|
2898
2898
|
}
|
|
2899
2899
|
var AREA_BLURBS = {
|
|
2900
|
-
conceptual: "What gezel is, who
|
|
2901
|
-
"gezel-roles": "The roles a
|
|
2902
|
-
craftbooks: "Step-by-step
|
|
2900
|
+
conceptual: "What gezel is, who does the work, and how the pieces fit together.",
|
|
2901
|
+
"gezel-roles": "The roles on a crew, and what each one is good at.",
|
|
2902
|
+
craftbooks: "Step-by-step plans Gezel can follow \u2014 one per job.",
|
|
2903
2903
|
"project-types": "Ready-made project setups, each with a crew and a bench.",
|
|
2904
2904
|
technical: "Architecture, file layout, providers, security, and the CLI.",
|
|
2905
2905
|
"whats-new": "What changed in each release, in plain language."
|
|
@@ -3056,14 +3056,14 @@ ${sitePage.html}`;
|
|
|
3056
3056
|
}
|
|
3057
3057
|
const landingSocial = canonicalBase ? {
|
|
3058
3058
|
url: canonicalBase,
|
|
3059
|
-
title: "
|
|
3059
|
+
title: "Gezel Help",
|
|
3060
3060
|
image: ogBase ? `${ogBase}${ogCardPath(LANDING_CARD_ID)}` : void 0
|
|
3061
3061
|
} : void 0;
|
|
3062
3062
|
if (ogBase) {
|
|
3063
3063
|
cardPlans.push({
|
|
3064
3064
|
id: LANDING_CARD_ID,
|
|
3065
|
-
kicker: `${WORDMARK} \xB7
|
|
3066
|
-
headline: "
|
|
3065
|
+
kicker: `${WORDMARK} \xB7 Help`,
|
|
3066
|
+
headline: "Gezel Help"
|
|
3067
3067
|
});
|
|
3068
3068
|
}
|
|
3069
3069
|
await writeFile4(join5(out, "index.html"), landingPage(areas, css, siteUrl, landingSocial), "utf8");
|
|
@@ -3113,7 +3113,7 @@ ${body}`;
|
|
|
3113
3113
|
}
|
|
3114
3114
|
function llmsTxt(areas, base) {
|
|
3115
3115
|
const lines = [
|
|
3116
|
-
"# Gezel
|
|
3116
|
+
"# Gezel Help",
|
|
3117
3117
|
"",
|
|
3118
3118
|
"> Gezel is a free, open-source app and platform for running a crew of AI agents on your own computer, with local models or a cloud plan you already have. Every article below is plain markdown.",
|
|
3119
3119
|
"",
|
|
@@ -3225,7 +3225,7 @@ function masthead2(areas, depth, siteUrl, currentArea) {
|
|
|
3225
3225
|
const wordmark = siteUrl ? `<a class="hb-wordmark" href="${esc2(siteUrl)}">${WORDMARK}</a>
|
|
3226
3226
|
` : "";
|
|
3227
3227
|
return `<header class="hb-masthead">
|
|
3228
|
-
${wordmark}<a class="hb-brand" href="${up2(depth)}">Gezel
|
|
3228
|
+
${wordmark}<a class="hb-brand" href="${up2(depth)}">Gezel Help</a>
|
|
3229
3229
|
<nav class="hb-areanav">
|
|
3230
3230
|
${links}
|
|
3231
3231
|
</nav>
|
|
@@ -3253,7 +3253,7 @@ ${more}
|
|
|
3253
3253
|
</section>`;
|
|
3254
3254
|
});
|
|
3255
3255
|
return `<aside class="hb-sidebar">
|
|
3256
|
-
<nav aria-label="
|
|
3256
|
+
<nav aria-label="Help sections">
|
|
3257
3257
|
${sections.join("\n")}
|
|
3258
3258
|
</nav>
|
|
3259
3259
|
</aside>`;
|
|
@@ -3313,14 +3313,14 @@ function articlePage(args) {
|
|
|
3313
3313
|
const area = areas.find((a) => a.area === entry.area);
|
|
3314
3314
|
const aside = onThisPage(headings);
|
|
3315
3315
|
const scriptTags = scripts.map((name) => `<script defer src="${up2(depth)}assets/${esc2(name)}"></script>`).join("\n");
|
|
3316
|
-
return `${head2(`${entry.title} \u2014 Gezel
|
|
3316
|
+
return `${head2(`${entry.title} \u2014 Gezel Help`, css, depth, entry.summary, social)}
|
|
3317
3317
|
<body class="hb hb-article-page">
|
|
3318
3318
|
${masthead2(areas, depth, siteUrl, entry.area)}
|
|
3319
3319
|
<div class="hb-layout">
|
|
3320
3320
|
${sidebar(areas, entry, depth)}
|
|
3321
3321
|
<main class="hb-main">
|
|
3322
3322
|
<nav class="hb-breadcrumb" aria-label="Breadcrumb">
|
|
3323
|
-
<a href="${up2(depth)}">
|
|
3323
|
+
<a href="${up2(depth)}">Help</a>${area ? ` <span>/</span> <a href="${up2(depth)}${esc2(areaLanding(area))}/">${esc2(area.title)}</a>` : ""}
|
|
3324
3324
|
</nav>
|
|
3325
3325
|
<article class="hb-article">
|
|
3326
3326
|
${body}
|
|
@@ -3336,7 +3336,7 @@ ${scriptTags}
|
|
|
3336
3336
|
}
|
|
3337
3337
|
function footer2(depth) {
|
|
3338
3338
|
return `<footer class="hb-footer">
|
|
3339
|
-
<p><a href="${up2(depth)}">Gezel
|
|
3339
|
+
<p><a href="${up2(depth)}">Gezel Help</a> \u2014 documentation for gezel, a crew of AI companions that works for you, from your own computer.</p>
|
|
3340
3340
|
</footer>`;
|
|
3341
3341
|
}
|
|
3342
3342
|
function landingPage(areas, css, siteUrl, social) {
|
|
@@ -3366,12 +3366,12 @@ ${list}
|
|
|
3366
3366
|
<p class="hb-more"><a href="${esc2(landing)}/">Browse all ${articleCount(area)} ${esc2(area.title.toLowerCase())}</a></p>
|
|
3367
3367
|
</section>`;
|
|
3368
3368
|
}).join("\n");
|
|
3369
|
-
return `${head2("Gezel
|
|
3369
|
+
return `${head2("Gezel Help", css, 0, "Documentation for gezel \u2014 a crew of AI companions that works for you, from your own computer.", social)}
|
|
3370
3370
|
<body class="hb hb-home">
|
|
3371
3371
|
${masthead2(areas, 0, siteUrl)}
|
|
3372
3372
|
<main class="hb-main hb-home-main">
|
|
3373
3373
|
<section class="hb-hero">
|
|
3374
|
-
<h1>
|
|
3374
|
+
<h1>Gezel Help</h1>
|
|
3375
3375
|
<p class="hb-lede">Gezel lets you assemble a crew of AI companions and put them to work \u2014 on your own computer, with your own files. This is their handboek: what they are, what they can do, and how to work with them.</p>
|
|
3376
3376
|
</section>
|
|
3377
3377
|
${startBlock}
|
package/dist/tui/index.js
CHANGED
|
@@ -126,7 +126,7 @@ var CLI_ENGAGEMENT_MODES = [
|
|
|
126
126
|
name: "full-play",
|
|
127
127
|
mode: "proactive",
|
|
128
128
|
label: "Full play",
|
|
129
|
-
description: "Everything runs, including proactive nudges and
|
|
129
|
+
description: "Everything runs, including proactive nudges and handoffs."
|
|
130
130
|
}
|
|
131
131
|
];
|
|
132
132
|
var MODE_ALIASES = {
|
|
@@ -425,7 +425,7 @@ function preferredModel(status) {
|
|
|
425
425
|
const model = status.models.find((candidate) => candidate.id === status.configuredModel) ?? status.models.find((candidate) => candidate.id === status.recommendedModel) ?? status.models[0];
|
|
426
426
|
if (!model) {
|
|
427
427
|
throw new ManagedAppCommandError(
|
|
428
|
-
"No compatible local
|
|
428
|
+
"No compatible local crew member or tool-capable model is available for this integration."
|
|
429
429
|
);
|
|
430
430
|
}
|
|
431
431
|
return model;
|
|
@@ -567,7 +567,7 @@ var SLASH_COMMAND_WORDWHEEL_SIZE = 4;
|
|
|
567
567
|
var SLASH_COMMANDS = [
|
|
568
568
|
{ name: "help", description: "show the command reference" },
|
|
569
569
|
{ name: "project", description: "switch active project" },
|
|
570
|
-
{ name: "gezel", description: "switch
|
|
570
|
+
{ name: "gezel", description: "switch crew member, or bring a role onto the project" },
|
|
571
571
|
{ name: "allow", description: "allow a project permission" },
|
|
572
572
|
{ name: "disallow", description: "disallow a project permission" },
|
|
573
573
|
{ name: "show", description: "show optional chat details" },
|
|
@@ -584,7 +584,7 @@ var SLASH_COMMANDS = [
|
|
|
584
584
|
{ name: "disconnect", description: "remove Gezel from a connected local app" },
|
|
585
585
|
{ name: "focus", description: "send into another active chat" },
|
|
586
586
|
{ name: "cli", description: "make bare input run shell commands" },
|
|
587
|
-
{ name: "chat", description: "make bare input message
|
|
587
|
+
{ name: "chat", description: "make bare input a message to Gezel" },
|
|
588
588
|
{ name: "clear", description: "clear the visible feed" },
|
|
589
589
|
{ name: "quit", description: "exit the TUI" }
|
|
590
590
|
];
|
|
@@ -1062,7 +1062,7 @@ function reduceFeed(rows, env, opts = {}) {
|
|
|
1062
1062
|
sessionId,
|
|
1063
1063
|
gezelId,
|
|
1064
1064
|
kind: "note",
|
|
1065
|
-
text:
|
|
1065
|
+
text: `\u23F3 waiting for ${event.targetGezelName || "someone on the crew"}\u2026`,
|
|
1066
1066
|
open: false
|
|
1067
1067
|
}
|
|
1068
1068
|
]);
|
|
@@ -1193,7 +1193,7 @@ function reduceTurns(turns, env) {
|
|
|
1193
1193
|
case "heartbeat":
|
|
1194
1194
|
return event.label ? set(heartbeatLabel(event.label), void 0, null) : turns;
|
|
1195
1195
|
case "awaiting_gezel":
|
|
1196
|
-
return set("
|
|
1196
|
+
return set(`waiting for ${event.targetGezelName || "a reply"}`, void 0, null);
|
|
1197
1197
|
case "error":
|
|
1198
1198
|
case "done":
|
|
1199
1199
|
return clear();
|
|
@@ -1401,7 +1401,7 @@ function toolRowText(call) {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
function gezelLabel(gezelId, gezels, boring) {
|
|
1403
1403
|
const g = gezels.find((x) => x.id === gezelId);
|
|
1404
|
-
if (!g) return boring ? "
|
|
1404
|
+
if (!g) return boring ? "Gezel" : gezelId;
|
|
1405
1405
|
if (boring) return g.roleBasedName ?? g.role ?? g.id;
|
|
1406
1406
|
return g.role ? `${g.name} \xB7 ${g.role}` : g.name;
|
|
1407
1407
|
}
|
|
@@ -2181,7 +2181,7 @@ function NpmInstallApprovalPrompt(props) {
|
|
|
2181
2181
|
/* @__PURE__ */ jsx4(Text5, { bold: true, color: "yellow", children: "npm package approval" }),
|
|
2182
2182
|
currentPackage ? /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
2183
2183
|
/* @__PURE__ */ jsxs5(Text5, { wrap: "wrap", children: [
|
|
2184
|
-
"
|
|
2184
|
+
"Gezel wants to install ",
|
|
2185
2185
|
packages.length === 1 ? "this package" : "packages",
|
|
2186
2186
|
" outside the pre-vetted list."
|
|
2187
2187
|
] }),
|
|
@@ -2360,7 +2360,7 @@ var CORE_ROLE_ORDER = [
|
|
|
2360
2360
|
];
|
|
2361
2361
|
var SECTION_IN_PROJECT = "In this project";
|
|
2362
2362
|
var SECTION_RECOMMENDED = "Recommended for this project";
|
|
2363
|
-
var SECTION_OTHER_GEZELS = "
|
|
2363
|
+
var SECTION_OTHER_GEZELS = "The rest of your crew";
|
|
2364
2364
|
var SECTION_CORE = "Core roles";
|
|
2365
2365
|
var SECTION_MORE = "More roles";
|
|
2366
2366
|
var DEFAULT_HINT_WIDTH = 76;
|
|
@@ -2976,7 +2976,7 @@ function useTerminalSize() {
|
|
|
2976
2976
|
}
|
|
2977
2977
|
var HELP = [
|
|
2978
2978
|
"/project \u2014 switch project /model \u2014 switch engine + model",
|
|
2979
|
-
"/gezel \u2014 switch
|
|
2979
|
+
"/gezel \u2014 switch crew member or bring on a role /gezel <role or name> \u2014 go straight there",
|
|
2980
2980
|
"/model download \u2014 choose and download a new on-device model",
|
|
2981
2981
|
"/allow edits \u2014 allow tool edits /disallow edits \u2014 make tool edits read-only",
|
|
2982
2982
|
"/allow codexedits|claudeedits \u2014 allow provider-native project edits",
|
|
@@ -3291,7 +3291,7 @@ function App(props) {
|
|
|
3291
3291
|
if (project.mode !== "solo") return;
|
|
3292
3292
|
if (project.voormanGezelId === joinedGezelId) return;
|
|
3293
3293
|
await client.updateProject(projectId, { mode: "crew" });
|
|
3294
|
-
note("this job is now a crew project \u2014
|
|
3294
|
+
note("this job is now a crew project \u2014 crew members here can delegate and recruit.");
|
|
3295
3295
|
} catch (err) {
|
|
3296
3296
|
note(`could not switch this job to a crew project: ${errMsg(err)}`, "error");
|
|
3297
3297
|
}
|
|
@@ -3370,15 +3370,15 @@ function App(props) {
|
|
|
3370
3370
|
"error"
|
|
3371
3371
|
);
|
|
3372
3372
|
default:
|
|
3373
|
-
return note(`no
|
|
3373
|
+
return note(`no crew member or role matches "${arg}". Type /gezel to browse.`, "error");
|
|
3374
3374
|
}
|
|
3375
3375
|
},
|
|
3376
3376
|
[gezels, loadRoleTemplates, note, recruitGezel, useGezel]
|
|
3377
3377
|
);
|
|
3378
3378
|
const openModelPicker = useCallback2(async () => {
|
|
3379
|
-
if (!activeGezelId || !activeGezel) return note("no active
|
|
3379
|
+
if (!activeGezelId || !activeGezel) return note("no active crew member yet.", "error");
|
|
3380
3380
|
if (activeGezel.fixedFunction) {
|
|
3381
|
-
return note(
|
|
3381
|
+
return note(`${activeGezel.name} runs a fixed tool and does not use a chat model.`, "error");
|
|
3382
3382
|
}
|
|
3383
3383
|
if (modelChoicesLoading) return note("model choices are already loading.");
|
|
3384
3384
|
setModelChoicesLoading(true);
|
|
@@ -3395,9 +3395,12 @@ function App(props) {
|
|
|
3395
3395
|
}, [activeGezel, activeGezelId, client, config, modelChoicesLoading, note]);
|
|
3396
3396
|
const openModelDownloadPicker = useCallback2(
|
|
3397
3397
|
async (returnTo = null) => {
|
|
3398
|
-
if (!activeGezelId || !activeGezel) return note("no active
|
|
3398
|
+
if (!activeGezelId || !activeGezel) return note("no active crew member yet.", "error");
|
|
3399
3399
|
if (activeGezel.fixedFunction) {
|
|
3400
|
-
return note(
|
|
3400
|
+
return note(
|
|
3401
|
+
`${activeGezel.name} runs a fixed tool and does not use a chat model.`,
|
|
3402
|
+
"error"
|
|
3403
|
+
);
|
|
3401
3404
|
}
|
|
3402
3405
|
if (modelChoicesLoading) return note("model choices are already loading.");
|
|
3403
3406
|
setOverlay(null);
|
|
@@ -3426,7 +3429,7 @@ function App(props) {
|
|
|
3426
3429
|
[activeGezel, activeGezelId, client, config, modelChoicesLoading, note, openModelPicker]
|
|
3427
3430
|
);
|
|
3428
3431
|
const openThreadPicker = useCallback2(async () => {
|
|
3429
|
-
if (!activeGezelId) return note("no active
|
|
3432
|
+
if (!activeGezelId) return note("no active crew member yet.", "error");
|
|
3430
3433
|
if (threadsLoading) return;
|
|
3431
3434
|
setThreadsLoading(true);
|
|
3432
3435
|
try {
|
|
@@ -3449,7 +3452,7 @@ function App(props) {
|
|
|
3449
3452
|
try {
|
|
3450
3453
|
const session = await client.getChatSession(sessionId);
|
|
3451
3454
|
if (session.gezelId !== activeGezelId || session.projectId !== projectId) {
|
|
3452
|
-
throw new Error("thread no longer belongs to the active
|
|
3455
|
+
throw new Error("thread no longer belongs to the active crew member and project");
|
|
3453
3456
|
}
|
|
3454
3457
|
setOwnSessionId(session.id);
|
|
3455
3458
|
setFocusedSessionId(session.id);
|
|
@@ -3464,7 +3467,7 @@ function App(props) {
|
|
|
3464
3467
|
);
|
|
3465
3468
|
const startNewThread = useCallback2(async () => {
|
|
3466
3469
|
setOverlay(null);
|
|
3467
|
-
if (!activeGezelId) return note("no active
|
|
3470
|
+
if (!activeGezelId) return note("no active crew member yet.", "error");
|
|
3468
3471
|
try {
|
|
3469
3472
|
const session = await client.createChatSession({
|
|
3470
3473
|
gezelId: activeGezelId,
|
|
@@ -3986,7 +3989,7 @@ function App(props) {
|
|
|
3986
3989
|
if (result.projectStatus !== "active") {
|
|
3987
3990
|
note(`${projectName} is ${result.projectStatus}; no project work was started.`);
|
|
3988
3991
|
} else {
|
|
3989
|
-
note(`no due schedules or
|
|
3992
|
+
note(`no due schedules or active tasks for Gezel found in ${projectName}.`);
|
|
3990
3993
|
}
|
|
3991
3994
|
} else {
|
|
3992
3995
|
note(`continue: ${parts.join("; ")}.`);
|
|
@@ -4097,7 +4100,7 @@ function App(props) {
|
|
|
4097
4100
|
return note("CLI mode \u2014 bare input runs as a shell command. /chat to exit.");
|
|
4098
4101
|
case "chat":
|
|
4099
4102
|
setMode("chat");
|
|
4100
|
-
return note("chat mode \u2014 bare input is a prompt to
|
|
4103
|
+
return note("chat mode \u2014 bare input is a prompt to Gezel.");
|
|
4101
4104
|
case "clear":
|
|
4102
4105
|
setTurns(/* @__PURE__ */ new Map());
|
|
4103
4106
|
setPendingInput(null);
|
|
@@ -4216,14 +4219,14 @@ function App(props) {
|
|
|
4216
4219
|
setModelDownloadProgress(null);
|
|
4217
4220
|
if (companionResult.name && companionResult.error) {
|
|
4218
4221
|
note(
|
|
4219
|
-
`downloaded ${choice.model.name}; ${companionResult.name} image reader could not be added: ${companionResult.error}. Switching
|
|
4222
|
+
`downloaded ${choice.model.name}; ${companionResult.name} image reader could not be added: ${companionResult.error}. Switching to ${choice.model.name}\u2026`
|
|
4220
4223
|
);
|
|
4221
4224
|
} else if (companionResult.name) {
|
|
4222
4225
|
note(
|
|
4223
|
-
`downloaded ${choice.model.name} with ${companionResult.name} for image reading; switching
|
|
4226
|
+
`downloaded ${choice.model.name} with ${companionResult.name} for image reading; switching to it\u2026`
|
|
4224
4227
|
);
|
|
4225
4228
|
} else {
|
|
4226
|
-
note(`downloaded ${choice.model.name}; switching
|
|
4229
|
+
note(`downloaded ${choice.model.name}; switching to it\u2026`);
|
|
4227
4230
|
}
|
|
4228
4231
|
await applyModelSelection(installedChoice);
|
|
4229
4232
|
} catch (err) {
|
|
@@ -4321,7 +4324,7 @@ function App(props) {
|
|
|
4321
4324
|
overlay === "gezel" ? /* @__PURE__ */ jsx5(
|
|
4322
4325
|
Picker,
|
|
4323
4326
|
{
|
|
4324
|
-
title: "Switch
|
|
4327
|
+
title: "Switch crew member, or bring on a role",
|
|
4325
4328
|
items: gezelPickerItems,
|
|
4326
4329
|
windowSize: gezelPickerWindowSize,
|
|
4327
4330
|
onCancel: () => setOverlay(null),
|
|
@@ -4723,7 +4726,7 @@ function taskAssigneeLabel(task, gezels, boring) {
|
|
|
4723
4726
|
if (task.assignee.kind === "user") return "you";
|
|
4724
4727
|
const gezelId = task.assignee.gezelId;
|
|
4725
4728
|
const gezel = gezels.find((item) => item.id === gezelId);
|
|
4726
|
-
if (!gezel) return boring ? "
|
|
4729
|
+
if (!gezel) return boring ? "Gezel" : gezelId;
|
|
4727
4730
|
return boring ? gezel.roleBasedName ?? gezel.role ?? gezel.id : gezel.name;
|
|
4728
4731
|
}
|
|
4729
4732
|
function taskStatusChoices(task) {
|
|
@@ -4756,8 +4759,32 @@ import { Box as Box7, Text as Text7, useApp as useApp2, useInput as useInput5 }
|
|
|
4756
4759
|
import { useCallback as useCallback3, useEffect as useEffect5, useState as useState6 } from "react";
|
|
4757
4760
|
|
|
4758
4761
|
// src/run-readiness.ts
|
|
4762
|
+
import { resolveOnDeviceProvider as resolveOnDeviceProvider3 } from "@bendyline/gezel/native";
|
|
4763
|
+
|
|
4764
|
+
// src/craftbook-setup.ts
|
|
4765
|
+
import { Writable } from "stream";
|
|
4766
|
+
import {
|
|
4767
|
+
craftbookSetupGaps,
|
|
4768
|
+
isCraftbookModelEngine,
|
|
4769
|
+
resolveCraftbookModelNeeds,
|
|
4770
|
+
resolveSecurityPolicy as resolveSecurityPolicy2
|
|
4771
|
+
} from "@bendyline/gezel";
|
|
4759
4772
|
import { resolveOnDeviceProvider as resolveOnDeviceProvider2 } from "@bendyline/gezel/native";
|
|
4760
4773
|
|
|
4774
|
+
// src/native-command.ts
|
|
4775
|
+
import {
|
|
4776
|
+
NativeEngineNameSchema
|
|
4777
|
+
} from "@bendyline/gezel";
|
|
4778
|
+
|
|
4779
|
+
// src/settings-command.ts
|
|
4780
|
+
import {
|
|
4781
|
+
classifySecurityLevel,
|
|
4782
|
+
projectManagedWorkspaceWritable,
|
|
4783
|
+
resolveSecurityPolicy,
|
|
4784
|
+
securityCapabilitiesOf,
|
|
4785
|
+
securityPolicyForLevel
|
|
4786
|
+
} from "@bendyline/gezel";
|
|
4787
|
+
|
|
4761
4788
|
// src/model-choice.ts
|
|
4762
4789
|
import {
|
|
4763
4790
|
measuredClaim,
|
|
@@ -4957,7 +4984,7 @@ function BootstrapGate(props) {
|
|
|
4957
4984
|
return;
|
|
4958
4985
|
}
|
|
4959
4986
|
try {
|
|
4960
|
-
await
|
|
4987
|
+
await installNativeToolkit2(client, context.nativeStatus, missing, setScreen);
|
|
4961
4988
|
const [nativeStatus, memory] = await Promise.all([
|
|
4962
4989
|
client.getNativeEngineStatus(),
|
|
4963
4990
|
client.getMemoryProfile()
|
|
@@ -5002,7 +5029,7 @@ function BootstrapGate(props) {
|
|
|
5002
5029
|
if (choice.kind === "bundle") {
|
|
5003
5030
|
const missing = missingToolkit(await client.getNativeEngineStatus());
|
|
5004
5031
|
if (missing.length > 0) {
|
|
5005
|
-
await
|
|
5032
|
+
await installNativeToolkit2(client, plan.context.nativeStatus, missing, setScreen);
|
|
5006
5033
|
}
|
|
5007
5034
|
}
|
|
5008
5035
|
const chatAlreadyInstalled = choice.kind === "bundle" && plan.installedChatModels.some((model) => model.id === choice.model.id);
|
|
@@ -5269,7 +5296,7 @@ function ProgressBar({ pct }) {
|
|
|
5269
5296
|
"]"
|
|
5270
5297
|
] });
|
|
5271
5298
|
}
|
|
5272
|
-
async function
|
|
5299
|
+
async function installNativeToolkit2(client, status, missing, setScreen) {
|
|
5273
5300
|
for (let index = 0; index < missing.length; index += 1) {
|
|
5274
5301
|
const engine = missing[index];
|
|
5275
5302
|
let terminalError = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/gezel-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "The gezel command-line tool: chat with your gezels, run craftbooks, and manage local models from the terminal.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"!dist/**/*.map"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@bendyline/gezel": "1.
|
|
48
|
-
"@bendyline/gezel-app-sdk": "1.
|
|
49
|
-
"@bendyline/gezel-catalog": "1.
|
|
50
|
-
"@bendyline/gezel-client": "1.
|
|
51
|
-
"@bendyline/gezel-knowledge": "1.2.
|
|
52
|
-
"@bendyline/gezel-service": "1.
|
|
47
|
+
"@bendyline/gezel": "1.3.0",
|
|
48
|
+
"@bendyline/gezel-app-sdk": "1.2.0",
|
|
49
|
+
"@bendyline/gezel-catalog": "1.3.0",
|
|
50
|
+
"@bendyline/gezel-client": "1.3.0",
|
|
51
|
+
"@bendyline/gezel-knowledge": "1.2.11",
|
|
52
|
+
"@bendyline/gezel-service": "1.3.0",
|
|
53
53
|
"@bendyline/squisq": "2.13.12",
|
|
54
54
|
"@bendyline/squisq-formats": "2.8.14",
|
|
55
55
|
"@bendyline/squisq-react": "2.12.24",
|