@crossworks/content-core 0.300.51 → 0.300.53

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/content-core",
3
- "version": "0.300.51",
3
+ "version": "0.300.53",
4
4
  "description": "Browser-safe content logic — markdown, blocks, pages, tables, formulas — shared by the server and any client. Zero server deps by design: nothing here may reach @mantle/db, node-only APIs, or the network (the jackdaw-repo-split P0 boundary).",
5
5
  "exports": {
6
6
  "./app-nav": "./src/app-nav.ts",
@@ -33,7 +33,7 @@
33
33
  "./tree": "./src/tree.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@mantle/client-types": "npm:@crossworks/client-types@0.300.51",
36
+ "@mantle/client-types": "npm:@crossworks/client-types@0.300.53",
37
37
  "marked": "^18.1.0",
38
38
  "mathjs": "15.2.0"
39
39
  },
@@ -24,6 +24,7 @@ import type {
24
24
  ThoughtTrailMode,
25
25
  } from '@mantle/client-types';
26
26
  import { kindsWhere } from '@mantle/client-types/kinds';
27
+ import { profileFlag } from '@mantle/client-types/profile-flags';
27
28
 
28
29
  import {
29
30
  parseAgentThinkingEffort,
@@ -53,7 +54,7 @@ const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
53
54
  export function isStreamThoughtsEnabled(
54
55
  prefs: Pick<ProfilePreferences, 'streamThoughts'>,
55
56
  ): boolean {
56
- return prefs.streamThoughts !== false;
57
+ return profileFlag(prefs, 'streamThoughts');
57
58
  }
58
59
 
59
60
  /** Resolve the trail display mode to a definite value — 'list' unless explicitly
@@ -69,7 +70,7 @@ export function resolveThoughtTrailMode(
69
70
  export function isPersistThoughtsEnabled(
70
71
  prefs: Pick<ProfilePreferences, 'persistThoughts'>,
71
72
  ): boolean {
72
- return prefs.persistThoughts !== false;
73
+ return profileFlag(prefs, 'persistThoughts');
73
74
  }
74
75
 
75
76
  /** Builtin read tools that reach the owner's PRIVATE corpus (email + journal).
@@ -93,7 +94,7 @@ export const TEAM_PRIVATE_READ_SLUGS: readonly string[] = [
93
94
  export function isTeamPrivateReadsEnabled(
94
95
  prefs: Pick<ProfilePreferences, 'teamPrivateReads'>,
95
96
  ): boolean {
96
- return prefs.teamPrivateReads === true;
97
+ return profileFlag(prefs, 'teamPrivateReads');
97
98
  }
98
99
 
99
100
  /** Node types that hold the owner's private corpus (email + journal). A team