@dmsdc-ai/aigentry-telepty 0.1.86 → 0.1.87
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 +2 -2
- package/package.json +1 -1
package/daemon.js
CHANGED
|
@@ -825,8 +825,8 @@ app.post('/api/sessions/spawn', (req, res) => {
|
|
|
825
825
|
app.post('/api/sessions/register', (req, res) => {
|
|
826
826
|
const { session_id, command, cwd = process.cwd(), backend, cmux_workspace_id, cmux_surface_id, term_program, term } = req.body;
|
|
827
827
|
if (!session_id) return res.status(400).json({ error: 'session_id is required' });
|
|
828
|
-
// Entitlement: check session limit for new registrations
|
|
829
|
-
if (!sessions[session_id]) {
|
|
828
|
+
// Entitlement: check session limit for new registrations (exempt aterm — embedded IPC, no PTY cost)
|
|
829
|
+
if (!sessions[session_id] && req.body.delivery_type !== 'aterm') {
|
|
830
830
|
const sessionCount = Object.keys(sessions).length;
|
|
831
831
|
const ent = checkEntitlement({ feature: 'telepty.multi_session', currentUsage: sessionCount });
|
|
832
832
|
if (!ent.allowed) {
|