dsh-skill-bazaar 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +7 -7
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -59,7 +59,7 @@ dsh plugin --profile <profile> add github:halosunqaq/dsh-skill-bazaar
59
59
 
60
60
  ## HTTP 路由与权限
61
61
 
62
- 所有路由挂在 `api/skill-bazaar/` 下,并且**只接受本机回环请求**(非 loopback 直接 403),没有其他鉴权:
62
+ 所有路由挂在 `api/skill-bazaar/` 下,走 DSH 宿主自己的准入校验:`auth: 'required'`,只有已登录的宿主会话(owner Peer)才能访问,浏览器里随便打开的第三方网页调用会被宿主拒绝;此外还保留一层本机回环限制(非 loopback 直接 403)。插件自身不做账号体系,也没有额外的口令。
63
63
 
64
64
  | 路由 | 方法 | 说明 |
65
65
  |---|---|---|
package/index.js CHANGED
@@ -1274,7 +1274,7 @@ export function apply(ctx, config = {}) {
1274
1274
  {
1275
1275
  kind: 'exact',
1276
1276
  path: '/api/skill-bazaar/sources',
1277
- auth: 'anonymous',
1277
+ auth: 'required',
1278
1278
  handler: async (req, res) => {
1279
1279
  if (!isLoopback(req)) return writeJson(res, 403, { error: 'forbidden: loopback-only' });
1280
1280
  try {
@@ -1348,7 +1348,7 @@ export function apply(ctx, config = {}) {
1348
1348
  {
1349
1349
  kind: 'exact',
1350
1350
  path: '/api/skill-bazaar/skills',
1351
- auth: 'anonymous',
1351
+ auth: 'required',
1352
1352
  handler: async (req, res) => {
1353
1353
  if (!guard(req, res, 'GET')) return;
1354
1354
  try {
@@ -1368,7 +1368,7 @@ export function apply(ctx, config = {}) {
1368
1368
  {
1369
1369
  kind: 'exact',
1370
1370
  path: '/api/skill-bazaar/skill',
1371
- auth: 'anonymous',
1371
+ auth: 'required',
1372
1372
  handler: async (req, res) => {
1373
1373
  if (!guard(req, res, 'GET')) return;
1374
1374
  try {
@@ -1442,7 +1442,7 @@ export function apply(ctx, config = {}) {
1442
1442
  {
1443
1443
  kind: 'exact',
1444
1444
  path: '/api/skill-bazaar/install',
1445
- auth: 'anonymous',
1445
+ auth: 'required',
1446
1446
  handler: async (req, res) => {
1447
1447
  if (!guard(req, res, 'POST')) return;
1448
1448
  try {
@@ -1481,7 +1481,7 @@ export function apply(ctx, config = {}) {
1481
1481
  {
1482
1482
  kind: 'exact',
1483
1483
  path: '/api/skill-bazaar/targets',
1484
- auth: 'anonymous',
1484
+ auth: 'required',
1485
1485
  handler: async (req, res) => {
1486
1486
  if (!guard(req, res, 'GET')) return;
1487
1487
  try {
@@ -1494,7 +1494,7 @@ export function apply(ctx, config = {}) {
1494
1494
  {
1495
1495
  kind: 'exact',
1496
1496
  path: '/api/skill-bazaar/resolve',
1497
- auth: 'anonymous',
1497
+ auth: 'required',
1498
1498
  handler: async (req, res) => {
1499
1499
  if (!guard(req, res, 'GET')) return;
1500
1500
  try {
@@ -1516,7 +1516,7 @@ export function apply(ctx, config = {}) {
1516
1516
  {
1517
1517
  kind: 'exact',
1518
1518
  path: '/api/skill-bazaar/installed',
1519
- auth: 'anonymous',
1519
+ auth: 'required',
1520
1520
  handler: async (req, res) => {
1521
1521
  if (!guard(req, res, 'GET')) return;
1522
1522
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-skill-bazaar",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Skill market for DeepSeek Harness: browse CherryIN and skills.sh side by side, read Chinese titles and summaries, and install any skill into .agents with one click. · DSH 技能市场:CherryIN 与 skills.sh 双源分开浏览,自动中文简介,一键装到 .agents。",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "url": "https://github.com/halosunqaq/dsh-skill-bazaar/issues"
25
25
  },
26
26
  "engines": {
27
- "dsh": ">=0.2.0 <0.3.0-0 || >=0.2.3-alpha.0 <0.3.0-0"
27
+ "dsh": ">=0.2.3-0 <0.3.0"
28
28
  },
29
29
  "exports": {
30
30
  ".": "./index.js",