Commit Graph

33 Commits (3e1ed0032d650ca5cad7d6dbafc890a45ffbb9e2)

Author SHA1 Message Date
Peter Steinberger f9bb748a6c fix(memory): prevent QMD scope deny bypass 9 months ago
max 223eee0a20
refactor: unify peer kind to ChatType, rename dm to direct (#11881)
* fix: use .js extension for ESM imports of RoutePeerKind

The imports incorrectly used .ts extension which doesn't resolve
with moduleResolution: NodeNext. Changed to .js and added 'type'
import modifier.

* fix tsconfig

* refactor: unify peer kind to ChatType, rename dm to direct

- Replace RoutePeerKind with ChatType throughout codebase
- Change 'dm' literal values to 'direct' in routing/session keys
- Keep backward compat: normalizeChatType accepts 'dm' -> 'direct'
- Add ChatType export to plugin-sdk, deprecate RoutePeerKind
- Update session key parsing to accept both 'dm' and 'direct' markers
- Update all channel monitors and extensions to use ChatType

BREAKING CHANGE: Session keys now use 'direct' instead of 'dm'.
Existing 'dm' keys still work via backward compat layer.

* fix tests

* test: update session key expectations for dmdirect migration

- Fix test expectations to expect :direct: in generated output
- Add explicit backward compat test for normalizeChatType('dm')
- Keep input test data with :dm: keys to verify backward compat

* fix: accept legacy 'dm' in session key parsing for backward compat

getDmHistoryLimitFromSessionKey now accepts both :dm: and :direct:
to ensure old session keys continue to work correctly.

* test: add explicit backward compat tests for dmdirect migration

- session-key.test.ts: verify both :dm: and :direct: keys are valid
- getDmHistoryLimitFromSessionKey: verify both formats work

* feat: backward compat for resetByType.dm config key

* test: skip unix-path Nix tests on Windows
10 months ago
Sebastian 1bf9f237f7 docs: linting 10 months ago
George Pickett 873182ec2d docs: tighten secure DM example 10 months ago
Shrinija Kummari b8004a28cc docs: improve DM security guidance with concrete example
Add a more prominent security warning for multi-user DM setups:
- Add blockquote security warning about context leakage
- Include concrete example showing the privacy risk
- Add "When to enable this" checklist
- Clarify that default is fine for single-user setups

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
10 months ago
Lucas Kim 6fdb136688
docs: document secure DM mode preset (#7872)
* docs: document secure DM mode preset

* fix: resolve merge conflict in resizable-divider
10 months ago
Seb Slight abcaa8c7a9
Docs: add nav titles across docs (#5689) 10 months ago
cpojer 8cab78abbc
chore: Run `pnpm format:fix`. 10 months ago
Peter Steinberger 9a7160786a refactor: rename to openclaw 10 months ago
Ayaan Zaidi b6a3a91edf fix: wire per-account dm scope guidance (#3095) (thanks @jarvis-sam) 10 months ago
Peter Steinberger 6d16a658e5 refactor: rename clawdbot to moltbot with legacy compat 10 months ago
Peter Steinberger 96f1846c2c docs: align node transport with gateway ws 10 months ago
Echo c415ccaed5
feat(sessions): add channelIdleMinutes config for per-channel session idle durations (#1353)
* feat(sessions): add channelIdleMinutes config for per-channel session idle durations

Add new `channelIdleMinutes` config option to allow different session idle
timeouts per channel. For example, Discord sessions can now be configured
to last 7 days (10080 minutes) while other channels use shorter defaults.

Config example:
  sessions:
    channelIdleMinutes:
      discord: 10080  # 7 days

The channel-specific idle is passed as idleMinutesOverride to the existing
resolveSessionResetPolicy, integrating cleanly with the new reset policy
architecture.

* fix

* feat: add per-channel session reset overrides (#1353) (thanks @cash-echo-bot)

---------

Co-authored-by: Cash Williams <cashwilliams@gmail.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
10 months ago
Peter Steinberger 15e5bb3459 feat: improve /new model hints and reset confirmation 10 months ago
Peter Steinberger 6d5195c890 refactor: normalize cli command hints 10 months ago
Peter Steinberger 367826f6e4 feat(session): add daily reset policy
Co-authored-by: Austin Mudd <austinm911@gmail.com>
10 months ago
Peter Steinberger 0d9172d761 fix: persist session origin metadata 10 months ago
Peter Steinberger 34590d2144 feat: persist session origin metadata across connectors 10 months ago
Peter Steinberger a0be85c34c fix: /stop aborts subagents 10 months ago
Peter Steinberger 16768a9998 fix: start fresh cron sessions each run 10 months ago
Peter Steinberger 9072e35f08 fix: hard-abort clears queues on /stop 10 months ago
Ruby 0cd24137e8
feat: add session.identityLinks for cross-platform DM session linking (#1033)
Co-authored-by: Shadow <shadow@clawd.bot>
10 months ago
Ubuntu ca9688b5cc feat(session): add dmScope for multi-user DM isolation
Co-authored-by: Alphonse-arianee <Alphonse-arianee@users.noreply.github.com>
10 months ago
Peter Steinberger c91c85532a docs: add context concept page 10 months ago
Peter Steinberger 3eb48cbea7 docs: complete channels rename sweep 10 months ago
Peter Steinberger 414ad72d17 docs: clarify memory flush behavior 10 months ago
Peter Steinberger 2c7d64232e feat: enable adaptive context pruning by default 11 months ago
Peter Steinberger 67d1f61872 fix: harden session caching and topic transcripts 11 months ago
Peter Steinberger 62f3fded3d docs: add compaction concept 11 months ago
Peter Steinberger 09357b70ac docs: add session pruning docs 11 months ago
Peter Steinberger d7bc5b58fc refactor(telegram): polish topic threading 11 months ago
Peter Steinberger 80112433a5 fix(telegram): support forum topics
Co-authored-by: Daniel Griesser <HazAT@users.noreply.github.com>
Co-authored-by: Nacho Iacovino <nachoiacovino@users.noreply.github.com>
Co-authored-by: Randy Ventures <RandyVentures@users.noreply.github.com>
11 months ago
Peter Steinberger db4d0b8e75 docs: reorganize documentation structure 11 months ago