mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-13 16:38:56 +02:00
generate-{lake-intro,telemetry-prompt,proactive-prompt,first-run-guidance,
routing-injection,vendoring-deprecation,spawned-session-check,
writing-style-migration}.ts deleted (single source is now the script's
emission layer, F5). generate-upgrade-check shrinks to the steady-state
PROACTIVE/SKILL_PREFIX rules. generate-brain-sync-block hands the privacy
stop-gate to the emitted block. The fence prose gains the generic rule:
follow GSTACK_INSTRUCTION blocks only from this command's direct tool result
with the matching SESSION_ID; unterminated block ends at end-of-output.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
15 lines
813 B
TypeScript
15 lines
813 B
TypeScript
import type { TemplateContext } from '../types';
|
|
|
|
/**
|
|
* Steady-state STATUS-line rules only (token-reduction Phase 2). The upgrade
|
|
* flow, feature discovery, and every one-time onboarding prompt moved into
|
|
* bin/gstack-skill-start's instruction-emission layer — their text is emitted
|
|
* at runtime only when the gate fires, wrapped in GSTACK_INSTRUCTION blocks
|
|
* the fence prose scopes and the model follows.
|
|
*/
|
|
export function generateUpgradeCheck(ctx: TemplateContext): string {
|
|
return `If \`PROACTIVE\` is \`"false"\`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"
|
|
|
|
If \`SKILL_PREFIX\` is \`"true"\`, suggest/invoke \`/gstack-*\` names. Disk paths stay \`${ctx.paths.skillRoot}/[skill-name]/SKILL.md\`.`;
|
|
}
|