ninja-terminals 2.3.7 → 2.3.9
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/cli.js +5 -1
- package/package.json +1 -1
- package/server.js +9 -3
package/cli.js
CHANGED
|
@@ -118,7 +118,11 @@ async function runSetup() {
|
|
|
118
118
|
|
|
119
119
|
// 3. Copy orchestrator prompt to CLAUDE.md
|
|
120
120
|
const claudeMd = path.join(process.cwd(), 'CLAUDE.md');
|
|
121
|
-
|
|
121
|
+
// Use the real orchestrator prompt, not the pointer file
|
|
122
|
+
let orchestratorPrompt = path.join(npmRoot, 'ORCHESTRATOR-PROMPT.md');
|
|
123
|
+
if (!fs.existsSync(orchestratorPrompt)) {
|
|
124
|
+
orchestratorPrompt = path.join(npmRoot, 'prompts', 'orchestrator.md');
|
|
125
|
+
}
|
|
122
126
|
|
|
123
127
|
if (fs.existsSync(orchestratorPrompt)) {
|
|
124
128
|
const prompt = fs.readFileSync(orchestratorPrompt, 'utf-8');
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -488,7 +488,11 @@ app.get('/health', (_req, res) => {
|
|
|
488
488
|
// Create session — validates token and returns existing or spawns terminals
|
|
489
489
|
app.post('/api/session', requireAuth, (req, res) => {
|
|
490
490
|
try {
|
|
491
|
-
|
|
491
|
+
// Auth disabled — everyone gets pro tier, no limits
|
|
492
|
+
const tier = 'pro';
|
|
493
|
+
const terminalsMax = 999;
|
|
494
|
+
const features = {};
|
|
495
|
+
const token = 'free-user';
|
|
492
496
|
|
|
493
497
|
// If session already exists with same token, return existing terminals
|
|
494
498
|
if (activeSession && activeSession.token === token) {
|
|
@@ -719,7 +723,8 @@ app.get('/api/terminals', requireAuth, (req, res) => {
|
|
|
719
723
|
// Spawn terminal
|
|
720
724
|
app.post('/api/terminals', requireAuth, (req, res) => {
|
|
721
725
|
try {
|
|
722
|
-
|
|
726
|
+
// Auth disabled — everyone gets pro tier
|
|
727
|
+
const tier = 'pro';
|
|
723
728
|
|
|
724
729
|
const label = req.body?.label;
|
|
725
730
|
const scope = req.body?.scope || [];
|
|
@@ -767,7 +772,8 @@ app.post('/api/terminals/:id/restart', requireAuth, (req, res) => {
|
|
|
767
772
|
const terminal = terminals.get(id);
|
|
768
773
|
if (!terminal) return res.status(404).json({ error: 'Not found' });
|
|
769
774
|
|
|
770
|
-
|
|
775
|
+
// Auth disabled — everyone gets pro tier
|
|
776
|
+
const tier = 'pro';
|
|
771
777
|
const label = terminal.label;
|
|
772
778
|
const scope = terminal.scope;
|
|
773
779
|
const termCwd = terminal.cwd;
|