@burdenoff/microfe-timecampus 2026.1102.2 → 2026.1107.2

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 (42) hide show
  1. package/dist/generated/global-types.d.ts +713 -244
  2. package/dist/generated/global-types.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.d.ts +373 -0
  4. package/dist/generated/wspace-operations.d.ts.map +1 -1
  5. package/dist/generated/wspace-operations.js +1331 -1153
  6. package/dist/generated/wspace-operations.js.map +1 -1
  7. package/dist/generated/wspace-types.d.ts +17396 -467
  8. package/dist/generated/wspace-types.d.ts.map +1 -1
  9. package/dist/generated/wspace-types.js +11 -5
  10. package/dist/generated/wspace-types.js.map +1 -1
  11. package/dist/index.js +7 -7
  12. package/dist/timecampus/TimeCampusRoutes.d.ts.map +1 -1
  13. package/dist/timecampus/TimeCampusRoutes.js +10 -6
  14. package/dist/timecampus/TimeCampusRoutes.js.map +1 -1
  15. package/dist/timecampus/index.js +7 -7
  16. package/dist/timecampus/pages/extend/TimeTriggersPage.d.ts +2 -0
  17. package/dist/timecampus/pages/extend/TimeTriggersPage.d.ts.map +1 -0
  18. package/dist/timecampus/pages/extend/TimeTriggersPage.js +606 -0
  19. package/dist/timecampus/pages/extend/TimeTriggersPage.js.map +1 -0
  20. package/dist/timecampus/pages/extend/extendHelpers.d.ts.map +1 -1
  21. package/dist/timecampus/pages/extend/extendHelpers.js +43 -42
  22. package/dist/timecampus/pages/extend/extendHelpers.js.map +1 -1
  23. package/dist/timecampus/pages/extend/triggerHelpers.d.ts +50 -0
  24. package/dist/timecampus/pages/extend/triggerHelpers.d.ts.map +1 -0
  25. package/dist/timecampus/pages/extend/triggerHelpers.js +114 -0
  26. package/dist/timecampus/pages/extend/triggerHelpers.js.map +1 -0
  27. package/dist/timecampus/pages/settings/IdleDetectionCard.d.ts +12 -0
  28. package/dist/timecampus/pages/settings/IdleDetectionCard.d.ts.map +1 -0
  29. package/dist/timecampus/pages/settings/IdleDetectionCard.js +127 -0
  30. package/dist/timecampus/pages/settings/IdleDetectionCard.js.map +1 -0
  31. package/dist/timecampus/pages/settings/PrivacySettingsPage.d.ts.map +1 -1
  32. package/dist/timecampus/pages/settings/PrivacySettingsPage.js +101 -88
  33. package/dist/timecampus/pages/settings/PrivacySettingsPage.js.map +1 -1
  34. package/dist/timecampus/pages/settings/idleDetection.d.ts +38 -0
  35. package/dist/timecampus/pages/settings/idleDetection.d.ts.map +1 -0
  36. package/dist/timecampus/pages/settings/idleDetection.js +45 -0
  37. package/dist/timecampus/pages/settings/idleDetection.js.map +1 -0
  38. package/dist/timecampus/pages/timeline/timelineProvenance.d.ts +1 -1
  39. package/dist/timecampus/pages/timeline/timelineProvenance.d.ts.map +1 -1
  40. package/dist/timecampus/pages/timeline/timelineProvenance.js +4 -0
  41. package/dist/timecampus/pages/timeline/timelineProvenance.js.map +1 -1
  42. package/package.json +1 -1
@@ -11,6 +11,10 @@ var e = {
11
11
  channel: {
12
12
  label: "From channel rules",
13
13
  detail: "Categorized by the capture channel that sent this activity."
14
+ },
15
+ idle: {
16
+ label: "Away from keyboard",
17
+ detail: "The desktop app saw no keyboard or mouse input, so this time is shown as away rather than work. Change this in Privacy settings."
14
18
  }
15
19
  }, t = "AI can get this wrong. Pick another category to correct it, and TimeCampus will use your choice for this app from now on.";
16
20
  function n(e) {
@@ -1 +1 @@
1
- {"version":3,"file":"timelineProvenance.js","names":[],"sources":["../../../../src/timecampus/pages/timeline/timelineProvenance.ts"],"sourcesContent":["/**\n * How a timeline segment came by its category (BOFF-3899). The service writes\n * `categorySource` lowercase ('auto' | 'user' | 'channel' | 'ai'); an AI\n * decision also carries the model's confidence (0..1) and the\n * \"provider:model\" that made it. Pure so the labels are unit-tested.\n */\n\nexport interface SegmentProvenanceInput {\n categorySource?: string | null;\n categoryConfidence?: number | null;\n categoryModel?: string | null;\n}\n\nexport interface SegmentProvenance {\n /** Short text shown next to the category chip. */\n label: string;\n /** Longer explanation for the hover title / screen readers. */\n detail: string;\n /** True when a model, not a rule or the user, chose the category. */\n isAi: boolean;\n}\n\nconst SOURCE_PROVENANCE: Record<string, Omit<SegmentProvenance, \"isAi\">> = {\n auto: {\n label: \"Auto-categorized\",\n detail: \"Categorized by TimeCampus's built-in app rules.\",\n },\n user: {\n label: \"You set this\",\n detail:\n \"You chose this category. TimeCampus applies your correction to this app from now on.\",\n },\n channel: {\n label: \"From channel rules\",\n detail: \"Categorized by the capture channel that sent this activity.\",\n },\n};\n\n/** The disclaimer shown with AI-decided categories (AI readiness 5.3). */\nexport const AI_CATEGORY_DISCLAIMER =\n \"AI can get this wrong. Pick another category to correct it, and TimeCampus will use your choice for this app from now on.\";\n\n/** Whole-percent confidence, or null when the value is missing or unusable. */\nexport function confidencePercent(\n confidence: number | null | undefined,\n): number | null {\n if (typeof confidence !== \"number\" || !Number.isFinite(confidence)) {\n return null;\n }\n return Math.round(Math.min(1, Math.max(0, confidence)) * 100);\n}\n\nexport function segmentProvenance(\n segment: SegmentProvenanceInput,\n): SegmentProvenance | null {\n const source = segment.categorySource?.trim().toLowerCase();\n if (!source) return null;\n\n if (source === \"ai\") {\n const percent = confidencePercent(segment.categoryConfidence);\n const label =\n percent === null\n ? \"Categorized by AI\"\n : `Categorized by AI · ${percent}% confident`;\n const model = segment.categoryModel?.trim();\n const decidedBy = model ? `Decided by ${model}.` : \"Decided by a model.\";\n return {\n label,\n detail: `${decidedBy} ${AI_CATEGORY_DISCLAIMER}`,\n isAi: true,\n };\n }\n\n const known = SOURCE_PROVENANCE[source];\n if (known) return { ...known, isAi: false };\n return {\n label: segment.categorySource ?? source,\n detail: `Category source: ${segment.categorySource ?? source}.`,\n isAi: false,\n };\n}\n\n/** True when at least one segment's category was decided by a model. */\nexport function hasAiCategorizedSegment(\n segments: ReadonlyArray<SegmentProvenanceInput>,\n): boolean {\n return segments.some(\n (segment) => segment.categorySource?.trim().toLowerCase() === \"ai\",\n );\n}\n"],"mappings":";AAsBA,IAAM,IAAqE;CACzE,MAAM;EACJ,OAAO;EACP,QAAQ;CACV;CACA,MAAM;EACJ,OAAO;EACP,QACE;CACJ;CACA,SAAS;EACP,OAAO;EACP,QAAQ;CACV;AACF,GAGa,IACX;AAGF,SAAgB,EACd,GACe;CAIf,OAHI,OAAO,KAAe,YAAY,CAAC,OAAO,SAAS,CAAU,IACxD,OAEF,KAAK,MAAM,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,CAAU,CAAC,IAAI,GAAG;AAC9D;AAEA,SAAgB,EACd,GAC0B;CAC1B,IAAM,IAAS,EAAQ,gBAAgB,KAAK,CAAC,CAAC,YAAY;CAC1D,IAAI,CAAC,GAAQ,OAAO;CAEpB,IAAI,MAAW,MAAM;EACnB,IAAM,IAAU,EAAkB,EAAQ,kBAAkB,GACtD,IACJ,MAAY,OACR,sBACA,uBAAuB,EAAQ,cAC/B,IAAQ,EAAQ,eAAe,KAAK;EAE1C,OAAO;GACL;GACA,QAAQ,GAHQ,IAAQ,cAAc,EAAM,KAAK,sBAG5B,GAAG;GACxB,MAAM;EACR;CACF;CAEA,IAAM,IAAQ,EAAkB;CAEhC,OADI,IAAc;EAAE,GAAG;EAAO,MAAM;CAAM,IACnC;EACL,OAAO,EAAQ,kBAAkB;EACjC,QAAQ,oBAAoB,EAAQ,kBAAkB,EAAO;EAC7D,MAAM;CACR;AACF;AAGA,SAAgB,EACd,GACS;CACT,OAAO,EAAS,MACb,MAAY,EAAQ,gBAAgB,KAAK,CAAC,CAAC,YAAY,MAAM,IAChE;AACF"}
1
+ {"version":3,"file":"timelineProvenance.js","names":[],"sources":["../../../../src/timecampus/pages/timeline/timelineProvenance.ts"],"sourcesContent":["/**\n * How a timeline segment came by its category (BOFF-3899). The service writes\n * `categorySource` lowercase ('auto' | 'user' | 'channel' | 'ai' | 'idle'); an AI\n * decision also carries the model's confidence (0..1) and the\n * \"provider:model\" that made it. Pure so the labels are unit-tested.\n */\n\nexport interface SegmentProvenanceInput {\n categorySource?: string | null;\n categoryConfidence?: number | null;\n categoryModel?: string | null;\n}\n\nexport interface SegmentProvenance {\n /** Short text shown next to the category chip. */\n label: string;\n /** Longer explanation for the hover title / screen readers. */\n detail: string;\n /** True when a model, not a rule or the user, chose the category. */\n isAi: boolean;\n}\n\nconst SOURCE_PROVENANCE: Record<string, Omit<SegmentProvenance, \"isAi\">> = {\n auto: {\n label: \"Auto-categorized\",\n detail: \"Categorized by TimeCampus's built-in app rules.\",\n },\n user: {\n label: \"You set this\",\n detail:\n \"You chose this category. TimeCampus applies your correction to this app from now on.\",\n },\n channel: {\n label: \"From channel rules\",\n detail: \"Categorized by the capture channel that sent this activity.\",\n },\n // BOFF-4210: an away block the desktop app's idle detection recorded.\n idle: {\n label: \"Away from keyboard\",\n detail:\n \"The desktop app saw no keyboard or mouse input, so this time is shown as away rather than work. Change this in Privacy settings.\",\n },\n};\n\n/** The disclaimer shown with AI-decided categories (AI readiness 5.3). */\nexport const AI_CATEGORY_DISCLAIMER =\n \"AI can get this wrong. Pick another category to correct it, and TimeCampus will use your choice for this app from now on.\";\n\n/** Whole-percent confidence, or null when the value is missing or unusable. */\nexport function confidencePercent(\n confidence: number | null | undefined,\n): number | null {\n if (typeof confidence !== \"number\" || !Number.isFinite(confidence)) {\n return null;\n }\n return Math.round(Math.min(1, Math.max(0, confidence)) * 100);\n}\n\nexport function segmentProvenance(\n segment: SegmentProvenanceInput,\n): SegmentProvenance | null {\n const source = segment.categorySource?.trim().toLowerCase();\n if (!source) return null;\n\n if (source === \"ai\") {\n const percent = confidencePercent(segment.categoryConfidence);\n const label =\n percent === null\n ? \"Categorized by AI\"\n : `Categorized by AI · ${percent}% confident`;\n const model = segment.categoryModel?.trim();\n const decidedBy = model ? `Decided by ${model}.` : \"Decided by a model.\";\n return {\n label,\n detail: `${decidedBy} ${AI_CATEGORY_DISCLAIMER}`,\n isAi: true,\n };\n }\n\n const known = SOURCE_PROVENANCE[source];\n if (known) return { ...known, isAi: false };\n return {\n label: segment.categorySource ?? source,\n detail: `Category source: ${segment.categorySource ?? source}.`,\n isAi: false,\n };\n}\n\n/** True when at least one segment's category was decided by a model. */\nexport function hasAiCategorizedSegment(\n segments: ReadonlyArray<SegmentProvenanceInput>,\n): boolean {\n return segments.some(\n (segment) => segment.categorySource?.trim().toLowerCase() === \"ai\",\n );\n}\n"],"mappings":";AAsBA,IAAM,IAAqE;CACzE,MAAM;EACJ,OAAO;EACP,QAAQ;CACV;CACA,MAAM;EACJ,OAAO;EACP,QACE;CACJ;CACA,SAAS;EACP,OAAO;EACP,QAAQ;CACV;CAEA,MAAM;EACJ,OAAO;EACP,QACE;CACJ;AACF,GAGa,IACX;AAGF,SAAgB,EACd,GACe;CAIf,OAHI,OAAO,KAAe,YAAY,CAAC,OAAO,SAAS,CAAU,IACxD,OAEF,KAAK,MAAM,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,CAAU,CAAC,IAAI,GAAG;AAC9D;AAEA,SAAgB,EACd,GAC0B;CAC1B,IAAM,IAAS,EAAQ,gBAAgB,KAAK,CAAC,CAAC,YAAY;CAC1D,IAAI,CAAC,GAAQ,OAAO;CAEpB,IAAI,MAAW,MAAM;EACnB,IAAM,IAAU,EAAkB,EAAQ,kBAAkB,GACtD,IACJ,MAAY,OACR,sBACA,uBAAuB,EAAQ,cAC/B,IAAQ,EAAQ,eAAe,KAAK;EAE1C,OAAO;GACL;GACA,QAAQ,GAHQ,IAAQ,cAAc,EAAM,KAAK,sBAG5B,GAAG;GACxB,MAAM;EACR;CACF;CAEA,IAAM,IAAQ,EAAkB;CAEhC,OADI,IAAc;EAAE,GAAG;EAAO,MAAM;CAAM,IACnC;EACL,OAAO,EAAQ,kBAAkB;EACjC,QAAQ,oBAAoB,EAAQ,kBAAkB,EAAO;EAC7D,MAAM;CACR;AACF;AAGA,SAAgB,EACd,GACS;CACT,OAAO,EAAS,MACb,MAAY,EAAQ,gBAAgB,KAAK,CAAC,CAAC,YAAY,MAAM,IAChE;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-timecampus",
3
- "version": "2026.1102.2",
3
+ "version": "2026.1107.2",
4
4
  "description": "Burdenoff TimeCampus Microfrontend - AI-powered time management and productivity platform",
5
5
  "type": "module",
6
6
  "files": [