instar 1.3.203 → 1.3.205

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.
Files changed (43) hide show
  1. package/dist/commands/init.js +1 -0
  2. package/dist/commands/init.js.map +1 -1
  3. package/dist/commands/server.d.ts.map +1 -1
  4. package/dist/commands/server.js +10 -1
  5. package/dist/commands/server.js.map +1 -1
  6. package/dist/commands/setup-wizard/gemini-driver.d.ts +46 -0
  7. package/dist/commands/setup-wizard/gemini-driver.d.ts.map +1 -0
  8. package/dist/commands/setup-wizard/gemini-driver.js +645 -0
  9. package/dist/commands/setup-wizard/gemini-driver.js.map +1 -0
  10. package/dist/commands/setup-wizard/model-constants.d.ts +7 -0
  11. package/dist/commands/setup-wizard/model-constants.d.ts.map +1 -1
  12. package/dist/commands/setup-wizard/model-constants.js +7 -0
  13. package/dist/commands/setup-wizard/model-constants.js.map +1 -1
  14. package/dist/commands/setup.d.ts.map +1 -1
  15. package/dist/commands/setup.js +26 -29
  16. package/dist/commands/setup.js.map +1 -1
  17. package/dist/core/LeaseCoordinator.d.ts +22 -0
  18. package/dist/core/LeaseCoordinator.d.ts.map +1 -1
  19. package/dist/core/LeaseCoordinator.js +33 -0
  20. package/dist/core/LeaseCoordinator.js.map +1 -1
  21. package/dist/core/MultiMachineCoordinator.d.ts.map +1 -1
  22. package/dist/core/MultiMachineCoordinator.js +11 -1
  23. package/dist/core/MultiMachineCoordinator.js.map +1 -1
  24. package/dist/core/PostUpdateMigrator.d.ts +2 -1
  25. package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
  26. package/dist/core/PostUpdateMigrator.js +104 -0
  27. package/dist/core/PostUpdateMigrator.js.map +1 -1
  28. package/dist/core/installCodexHooks.js +1 -1
  29. package/dist/core/installCodexHooks.js.map +1 -1
  30. package/dist/core/instarSettingsHooks.d.ts.map +1 -1
  31. package/dist/core/instarSettingsHooks.js +5 -0
  32. package/dist/core/instarSettingsHooks.js.map +1 -1
  33. package/dist/threadline/RelayGroundingPreamble.d.ts.map +1 -1
  34. package/dist/threadline/RelayGroundingPreamble.js +12 -0
  35. package/dist/threadline/RelayGroundingPreamble.js.map +1 -1
  36. package/package.json +1 -1
  37. package/scripts/generate-builtin-manifest.cjs +1 -0
  38. package/src/data/builtin-manifest.json +29 -20
  39. package/upgrades/1.3.204.md +26 -0
  40. package/upgrades/1.3.205.md +53 -0
  41. package/upgrades/side-effects/gemini-hybrid-setup-driver-eli16.md +40 -0
  42. package/upgrades/side-effects/gemini-hybrid-setup-driver.md +88 -0
  43. package/upgrades/side-effects/self-stop-guard.md +83 -0
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Gemini driver for the hybrid wizard.
3
+ *
4
+ * Per-turn narrative: for each `narrative-then-prompt` state, instar
5
+ * spawns Gemini's canonical one-shot CLI with a tightly-constrained
6
+ * prompt asking Gemini to generate ONE warm 2-3 sentence intro paragraph. The structural
7
+ * prompt (the question text) is printed verbatim by instar from the
8
+ * state machine; Gemini never sees it. This means Gemini cannot reword
9
+ * the question, can't add or remove options, and can't decide to
10
+ * "execute the setup" — each per-turn invocation has nothing to
11
+ * execute and a single bounded text job.
12
+ *
13
+ * Action states call existing instar CLI commands directly. Gemini is
14
+ * never handed the Claude setup skill and is never asked to run shell,
15
+ * write files, configure services, or drive browser automation.
16
+ */
17
+ import { type WizardAnswers } from './state-machine.js';
18
+ export interface GeminiDriverOptions {
19
+ geminiPath: string;
20
+ projectDir: string;
21
+ instarRoot: string;
22
+ /**
23
+ * When false, the driver suppresses narrative LLM calls and prints
24
+ * a deterministic fallback intro for each step. Used in tests and
25
+ * when the gemini binary returns an auth error.
26
+ */
27
+ enableNarrative?: boolean;
28
+ }
29
+ /**
30
+ * Send the agent's personal "first hello" to the Lifeline topic
31
+ * after the server has started. This is SKILL.md's "magic moment"
32
+ * — the agent's first words to the user, in voice, using their
33
+ * actual name + role + the user's name.
34
+ *
35
+ * Reads token + chatId + lifelineTopicId from the just-written
36
+ * config.json. Silently no-ops if any are missing (Telegram wasn't
37
+ * configured, or the manual backstop didn't write lifelineTopicId).
38
+ *
39
+ * Exported for testing.
40
+ */
41
+ export declare function runSendLifelineGreeting(answers: WizardAnswers, options: GeminiDriverOptions): Promise<Partial<WizardAnswers>>;
42
+ /**
43
+ * Entry point — runs the wizard from the initial state to completion.
44
+ */
45
+ export declare function runGeminiWizard(options: GeminiDriverOptions): Promise<void>;
46
+ //# sourceMappingURL=gemini-driver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gemini-driver.d.ts","sourceRoot":"","sources":["../../../src/commands/setup-wizard/gemini-driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,OAAO,EAIL,KAAK,aAAa,EAGnB,MAAM,oBAAoB,CAAC;AAO5B,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AA6ZD;;;;;;;;;;;GAWG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CA+DjC;AAsLD;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiCjF"}