@pellux/goodvibes-sdk 0.33.28 → 0.33.29

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.
@@ -3,7 +3,7 @@
3
3
  "product": {
4
4
  "id": "goodvibes",
5
5
  "surface": "operator",
6
- "version": "0.33.28"
6
+ "version": "0.33.29"
7
7
  },
8
8
  "auth": {
9
9
  "modes": [
@@ -1 +1 @@
1
- {"version":3,"file":"intent-classifier.d.ts","sourceRoot":"","sources":["../../../src/platform/core/intent-classifier.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF;;;;;GAKG;AAEH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjD,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAyBD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,oBAAoB,CA+EpE"}
1
+ {"version":3,"file":"intent-classifier.d.ts","sourceRoot":"","sources":["../../../src/platform/core/intent-classifier.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF;;;;;GAKG;AAEH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjD,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AA6BD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,oBAAoB,CAyFpE"}
@@ -10,6 +10,8 @@ const FILE_REFERENCES = /(\.ts|\.[jt]sx?|\.py|\.go|\.rs|\.json|\.yaml|\.yml|\.to
10
10
  const DELIVERABLE_SEPARATORS = /\band\b.+\band\b|;|\n-\s|\n\*\s|\n\d+\.\s/i;
11
11
  // Multiple sentences: two or more sentence-ending punctuation marks (. ! ?) followed by whitespace + capital
12
12
  const MULTI_SENTENCE = /[.!?][\s]+[A-Z].*[.!?][\s]+[A-Z]/;
13
+ const RETROSPECTIVE_DOCUMENTATION_REQUEST = /(\bthings you did\b|\bfrom start to finish\b|\bwhat (?:you|we) did\b|\bsetup steps\b|\binstruction guide\b|\beasy to follow guide\b|\bfed to llms?\b|\bworkflow to follow\b|\bsummarize(?: the)? workflow\b|\bdocument(?: the)? setup\b|\blist\b.{0,120}\b(?:things|steps|installed|installations?|workflow|setup)\b|\b(?:write|draft|create|make|produce|generate|document|summarize)\b.{0,100}\b(?:instruction guide|guide|runbook|playbook|checklist|documentation|docs|setup steps|workflow summary|workflow to follow)\b)/i;
14
+ const CONCRETE_IMPLEMENTATION_ACTION = /\b(build|implement|develop|add|refactor|migrate|scaffold|configure|integrate|deploy|fix|update|delete|remove|rename)\b/i;
13
15
  // ---------------------------------------------------------------------------
14
16
  // Classifier
15
17
  // ---------------------------------------------------------------------------
@@ -52,6 +54,14 @@ export function classifyIntent(message) {
52
54
  projectScore += 1;
53
55
  signals.push('spec_plan_reference');
54
56
  }
57
+ const isRetrospectiveDocumentationRequest = RETROSPECTIVE_DOCUMENTATION_REQUEST.test(trimmed);
58
+ if (isRetrospectiveDocumentationRequest) {
59
+ signals.push('documentation_request');
60
+ chatScore += 2;
61
+ if (!CONCRETE_IMPLEMENTATION_ACTION.test(trimmed)) {
62
+ projectScore = Math.min(projectScore, 2);
63
+ }
64
+ }
55
65
  // ── Chat signals ───────────────────────────────────────────────────────────
56
66
  if (QUESTION_WORDS.test(trimmed)) {
57
67
  chatScore += 2;
@@ -1,6 +1,6 @@
1
1
  import { readFileSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
- let version = '0.33.28';
3
+ let version = '0.33.29';
4
4
  try {
5
5
  const pkg = JSON.parse(readFileSync(join(import.meta.dir, '..', '..', 'package.json'), 'utf-8'));
6
6
  version = pkg.version ?? version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pellux/goodvibes-sdk",
3
- "version": "0.33.28",
3
+ "version": "0.33.29",
4
4
  "description": "TypeScript SDK for building GoodVibes operator, peer, web, mobile, and daemon-connected apps with typed contracts, auth, realtime events, and transport layers.",
5
5
  "keywords": [
6
6
  "goodvibes",
@@ -449,14 +449,14 @@
449
449
  "sideEffects": false,
450
450
  "type": "module",
451
451
  "dependencies": {
452
- "@pellux/goodvibes-contracts": "0.33.28",
453
- "@pellux/goodvibes-daemon-sdk": "0.33.28",
454
- "@pellux/goodvibes-errors": "0.33.28",
455
- "@pellux/goodvibes-operator-sdk": "0.33.28",
456
- "@pellux/goodvibes-peer-sdk": "0.33.28",
457
- "@pellux/goodvibes-transport-core": "0.33.28",
458
- "@pellux/goodvibes-transport-http": "0.33.28",
459
- "@pellux/goodvibes-transport-realtime": "0.33.28"
452
+ "@pellux/goodvibes-contracts": "0.33.29",
453
+ "@pellux/goodvibes-daemon-sdk": "0.33.29",
454
+ "@pellux/goodvibes-errors": "0.33.29",
455
+ "@pellux/goodvibes-operator-sdk": "0.33.29",
456
+ "@pellux/goodvibes-peer-sdk": "0.33.29",
457
+ "@pellux/goodvibes-transport-core": "0.33.29",
458
+ "@pellux/goodvibes-transport-http": "0.33.29",
459
+ "@pellux/goodvibes-transport-realtime": "0.33.29"
460
460
  },
461
461
  "optionalDependencies": {
462
462
  "@agentclientprotocol/sdk": "^0.21.0",