@dmsdc-ai/aigentry-telepty 0.1.90 → 0.1.92

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/daemon.js CHANGED
@@ -784,13 +784,6 @@ app.post('/api/sessions/spawn', (req, res) => {
784
784
  const { session_id, command, args = [], cwd = process.cwd(), cols = 80, rows = 30, type = 'AGENT' } = req.body;
785
785
  if (!session_id) return res.status(400).json({ error: 'session_id is strictly required.' });
786
786
  if (sessions[session_id]) return res.status(409).json({ error: `Session ID '${session_id}' is already active.` });
787
- // Entitlement: check session limit
788
- const sessionCount = Object.keys(sessions).length;
789
- const ent = checkEntitlement({ feature: 'telepty.multi_session', currentUsage: sessionCount });
790
- if (!ent.allowed) {
791
- console.log(`[ENTITLEMENT] Session limit reached (${sessionCount}/${ent.limit?.max || '?'}), tier: ${ent.tier}`);
792
- return res.status(402).json({ error: ent.reason, upgrade_url: ent.upgrade_url, tier: ent.tier });
793
- }
794
787
  if (!command) return res.status(400).json({ error: 'command is required' });
795
788
 
796
789
  const isWin = os.platform() === 'win32';
@@ -895,15 +888,6 @@ app.post('/api/sessions/spawn', (req, res) => {
895
888
  app.post('/api/sessions/register', (req, res) => {
896
889
  const { session_id, command, cwd = process.cwd(), backend, cmux_workspace_id, cmux_surface_id, term_program, term } = req.body;
897
890
  if (!session_id) return res.status(400).json({ error: 'session_id is required' });
898
- // Entitlement: check session limit for new registrations (exempt aterm — embedded IPC, no PTY cost)
899
- if (!sessions[session_id] && req.body.delivery_type !== 'aterm') {
900
- const sessionCount = Object.keys(sessions).length;
901
- const ent = checkEntitlement({ feature: 'telepty.multi_session', currentUsage: sessionCount });
902
- if (!ent.allowed) {
903
- console.log(`[ENTITLEMENT] Session limit reached (${sessionCount}/${ent.limit?.max || '?'}), tier: ${ent.tier}`);
904
- return res.status(402).json({ error: ent.reason, upgrade_url: ent.upgrade_url, tier: ent.tier });
905
- }
906
- }
907
891
  // Idempotent: allow re-registration (update command/cwd, keep clients)
908
892
  if (sessions[session_id]) {
909
893
  const existing = sessions[session_id];
package/entitlement.js CHANGED
@@ -9,7 +9,7 @@ const UPGRADE_URL = 'https://aigentry.dev/upgrade';
9
9
 
10
10
  const FEATURES = {
11
11
  'telepty.core': { tiers: ['free', 'pro', 'team'] },
12
- 'telepty.multi_session': { tiers: ['pro', 'team'], freeLimit: 3 },
12
+ 'telepty.multi_session': { tiers: ['free', 'pro', 'team'] },
13
13
  'telepty.remote_sessions': { tiers: ['pro', 'team'] },
14
14
  'telepty.team_broadcast': { tiers: ['team'] }
15
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-telepty",
3
- "version": "0.1.90",
3
+ "version": "0.1.92",
4
4
  "main": "daemon.js",
5
5
  "bin": {
6
6
  "aigentry-telepty": "install.js",