create-snipara 2.0.16 → 2.0.18

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 (2) hide show
  1. package/dist/index.js +16 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { homedir } from "os";
13
13
  // package.json
14
14
  var package_default = {
15
15
  name: "create-snipara",
16
- version: "2.0.16",
16
+ version: "2.0.18",
17
17
  description: "Onboard Snipara Hosted MCP Context + Memory with project bootstrap intelligence and optional local workflows",
18
18
  main: "dist/index.js",
19
19
  type: "module",
@@ -107,11 +107,8 @@ var DEVICE_CLIENT_ID = "create-snipara";
107
107
  var DAY_ZERO_CORPUS_MAX_FILES = 8;
108
108
  var DAY_ZERO_CORPUS_MAX_FILE_CHARS = 12e3;
109
109
  var DAY_ZERO_CORPUS_MAX_TOTAL_CHARS = 5e4;
110
- var PROJECT_BOOTSTRAP_SCHEMA_VERSION = "snipara.project_bootstrap.v1";
111
110
  var PROJECT_BOOTSTRAP_MAX_WALKED_FILES = 2500;
112
111
  var PROJECT_BOOTSTRAP_MAX_MATCHED_FILES = 80;
113
- var ACTIVATION_MANIFEST_SCHEMA_VERSION = "snipara.activation.manifest.v1";
114
- var ACTIVATION_CONSUMER_CONTRACT_VERSION = "snipara.editor.activation.v1";
115
112
  var EXPERIENCE_GOAL_SECTION = `## Experience Goal
116
113
 
117
114
  The target experience is outcome-first agent work across supported clients:
@@ -1060,7 +1057,6 @@ function buildProjectBootstrap(scan) {
1060
1057
  )
1061
1058
  };
1062
1059
  return {
1063
- schemaVersion: PROJECT_BOOTSTRAP_SCHEMA_VERSION,
1064
1060
  generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
1065
1061
  repoPath: cwd,
1066
1062
  reviewPrompt: "Review what Snipara learned about your project.",
@@ -1198,8 +1194,6 @@ function createActivationManifest(answers, detection, mode = "default", scan) {
1198
1194
  const dayZeroQuery = "What is this project, what is currently in flight, and what should an agent know before making the first edit?";
1199
1195
  const surfaceContract = buildActivationSurfaceContract(answers.aiClient);
1200
1196
  return {
1201
- version: "create-snipara-activation-v1",
1202
- schemaVersion: ACTIVATION_MANIFEST_SCHEMA_VERSION,
1203
1197
  activationId: buildActivationId(),
1204
1198
  mode,
1205
1199
  surfaceContract,
@@ -1827,8 +1821,6 @@ function buildActivationJsonSummary(manifest, validation) {
1827
1821
  ok: true,
1828
1822
  activationStatus,
1829
1823
  activationId: manifest.activationId,
1830
- schemaVersion: manifest.schemaVersion,
1831
- consumerContractVersion: manifest.consumerContract.version,
1832
1824
  projectSlug: manifest.projectSlug,
1833
1825
  aiClient: manifest.aiClient,
1834
1826
  profile: validation.profile,
@@ -4093,7 +4085,6 @@ function buildActivationSurfaceContract(client) {
4093
4085
  function buildEditorActivationConsumerContract(client) {
4094
4086
  const secretRule = client === "vscode" ? "Use VS Code SecretStorage for SNIPARA_API_KEY and pass it to create-snipara through the child-process environment; never write raw secrets into extension settings or logs." : "Pass SNIPARA_API_KEY through the process environment or client secret store; never parse, log, or persist raw secrets from terminal output.";
4095
4087
  return {
4096
- version: ACTIVATION_CONSUMER_CONTRACT_VERSION,
4097
4088
  audience: "editor_extension",
4098
4089
  stableFiles: {
4099
4090
  activationManifest: ".snipara/activation/activation-manifest.json",
@@ -4104,8 +4095,6 @@ function buildEditorActivationConsumerContract(client) {
4104
4095
  projectBootstrapMarkdown: ".snipara/activation/project-bootstrap.md"
4105
4096
  },
4106
4097
  requiredManifestFields: [
4107
- "schemaVersion",
4108
- "consumerContract.version",
4109
4098
  "surfaceContract",
4110
4099
  "artifacts.activationManifestPath",
4111
4100
  "artifacts.firstBriefPath",
@@ -4277,6 +4266,11 @@ function getCompanionCommands(answers) {
4277
4266
  title: "Refresh local source context",
4278
4267
  command: `${COMPANION_NPX_COMMAND} source sync --json`,
4279
4268
  purpose: "Refresh the local snapshot, document dry-run, and code overlay cache after files change."
4269
+ },
4270
+ {
4271
+ title: "Generate a reviewable Project Brief",
4272
+ command: `${COMPANION_NPX_COMMAND} docs bootstrap --preview`,
4273
+ purpose: "Preview a safe, evidence-linked project brief when the repository has little or no documentation; apply it only after review."
4280
4274
  }
4281
4275
  ] : [];
4282
4276
  const businessOnboardingCommands = answers.installCompanion ? [
@@ -4623,6 +4617,16 @@ Refresh after file changes:
4623
4617
 
4624
4618
  \`${COMPANION_NPX_COMMAND} source sync --json\`
4625
4619
 
4620
+ If the folder has little or no documentation, preview a Project Brief before writing it:
4621
+
4622
+ \`${COMPANION_NPX_COMMAND} docs bootstrap --preview\`
4623
+
4624
+ After reviewing the generated brief, apply and index it:
4625
+
4626
+ \`${COMPANION_NPX_COMMAND} docs bootstrap --apply\`
4627
+
4628
+ \`${COMPANION_NPX_COMMAND} source sync --apply --reindex\`
4629
+
4626
4630
  Inspect local drift:
4627
4631
 
4628
4632
  \`${COMPANION_NPX_COMMAND} source status --json\`` : `This setup did not install snipara-companion. Enable it before local source activation:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-snipara",
3
- "version": "2.0.16",
3
+ "version": "2.0.18",
4
4
  "description": "Onboard Snipara Hosted MCP Context + Memory with project bootstrap intelligence and optional local workflows",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",