@deerdesign/deertools 1.2.35 → 1.2.36

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": "@deerdesign/deertools",
3
- "version": "1.2.35",
3
+ "version": "1.2.36",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
package/src/commands.js CHANGED
@@ -91,17 +91,6 @@ async function cmdLogin(pos, flags) {
91
91
  for (const product of products) {
92
92
  out(`\n=== ${product.name} ===`);
93
93
  try {
94
- if (product.id === 'skills') {
95
- const { loginSkillsBrowser } = require('./skills-login');
96
- const entry = await loginSkillsBrowser({
97
- port: flags.port ? Number(flags.port) : 0,
98
- openBrowser: flags['no-open'] ? null : undefined,
99
- log: out,
100
- });
101
- out(`✓ Zalogowano do DeerSkills Hub. Zakres: ${entry.scope}.`);
102
- out(` Przegląd umiejętności: deertools skill list | Synchronizacja: deertools skill sync`);
103
- continue;
104
- }
105
94
  const productScope = (product.id === 'rendermind' && !explicitRo && !flags.scope && !flags.admin)
106
95
  ? 'read write'
107
96
  : scope;
package/src/doctor.js CHANGED
@@ -98,7 +98,7 @@ async function cmdDoctor(pos, flags) {
98
98
  try {
99
99
  let res = await fetchText(`${product.site}/llms.txt`, { timeoutMs: 3000 });
100
100
  if (!res.ok && product.id === 'skills') {
101
- res = await fetchText('https://id-preview--162a014c-053f-4837-9eaf-fae7b3e01417.lovable.app', { timeoutMs: 3000 });
101
+ res = await fetchText(product.site, { timeoutMs: 3000 });
102
102
  }
103
103
  const dt = Date.now() - t0;
104
104
  if (res.ok) {
package/src/registry.js CHANGED
@@ -68,12 +68,12 @@ const PRODUCTS = {
68
68
  skills: {
69
69
  name: 'DeerSkills',
70
70
  localName: 'DeerSkills Hub',
71
- site: 'https://skills.deergroup.pl',
72
- authorizeUrl: 'https://skills.deergroup.pl/oauth/authorize',
73
- tokenUrl: 'https://ezspmlsnmxuhtzvwrnoj.supabase.co/functions/v1/oauth-token',
71
+ site: 'https://skillsgarden.deergroup.pl',
72
+ authorizeUrl: 'https://skillsgarden.deergroup.pl/oauth/authorize',
73
+ tokenUrl: 'https://ezspmlsnmxuhtzvwrnoj.supabase.co/auth/v1/oauth/token',
74
74
  keyPrefix: 'deer_skills_live_',
75
75
  fallbackApiBase: 'https://ezspmlsnmxuhtzvwrnoj.supabase.co/functions/v1/skills-api',
76
- mcpEndpoint: 'https://ezspmlsnmxuhtzvwrnoj.supabase.co/functions/v1/skills-mcp',
76
+ mcpEndpoint: 'https://ezspmlsnmxuhtzvwrnoj.supabase.co/functions/v1/mcp',
77
77
  aliases: ['hub', 'skill', 'umiejetnosci'],
78
78
  },
79
79
  };
package/src/skills-hub.js CHANGED
@@ -56,7 +56,9 @@ async function hubRequest(endpoint, { method = 'GET', body = null } = {}) {
56
56
  'User-Agent': 'deertools-cli',
57
57
  };
58
58
  if (key) {
59
- headers['x-api-key'] = key;
59
+ if (key.startsWith('deer_')) {
60
+ headers['x-api-key'] = key;
61
+ }
60
62
  headers['Authorization'] = `Bearer ${key}`;
61
63
  }
62
64