opencode-plugin-wecom 0.1.0 → 0.1.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 (2) hide show
  1. package/dist/index.js +74 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1319,6 +1319,20 @@ function formatStatusText(status, cliAvailable, receiptCount) {
1319
1319
  if (status.phase !== "ready") lines.push("提示: 运行 /wecom-login 获取手机企微扫码链接。");
1320
1320
  return lines.join("\n");
1321
1321
  }
1322
+ const DAYUAN_TASK_RESULT_OUTPUT_SCHEMA = {
1323
+ type: "object",
1324
+ properties: {
1325
+ task_id: { type: "string" },
1326
+ state: { type: "string" },
1327
+ is_summary: { type: "boolean" },
1328
+ summary: { type: "string" },
1329
+ interaction_kind: { type: "string" },
1330
+ guidance: { type: "string" },
1331
+ raw_parts_count: { type: "number" },
1332
+ from_cache: { type: "boolean" }
1333
+ },
1334
+ additionalProperties: true
1335
+ };
1322
1336
  function createWecomPlugin(deps) {
1323
1337
  return Plugin.define({
1324
1338
  id: PLUGIN_ID,
@@ -1406,6 +1420,28 @@ function createWecomPlugin(deps) {
1406
1420
  } },
1407
1421
  additionalProperties: false
1408
1422
  },
1423
+ output: {
1424
+ type: "object",
1425
+ properties: {
1426
+ auth: {
1427
+ type: "object",
1428
+ additionalProperties: true
1429
+ },
1430
+ wecom_auth_url: { type: "string" },
1431
+ cli: {
1432
+ type: "object",
1433
+ additionalProperties: true
1434
+ },
1435
+ recent_receipts: {
1436
+ type: "array",
1437
+ items: {
1438
+ type: "object",
1439
+ additionalProperties: true
1440
+ }
1441
+ }
1442
+ },
1443
+ additionalProperties: true
1444
+ },
1409
1445
  options: {
1410
1446
  namespace: "wecom",
1411
1447
  codemode: true
@@ -1452,6 +1488,25 @@ function createWecomPlugin(deps) {
1452
1488
  },
1453
1489
  additionalProperties: false
1454
1490
  },
1491
+ output: {
1492
+ type: "object",
1493
+ properties: {
1494
+ authorization_url: { type: "string" },
1495
+ state: { type: "string" },
1496
+ expires_in_seconds: { type: "number" },
1497
+ desktop_required: { type: "boolean" },
1498
+ reused: { type: "boolean" },
1499
+ auth: {
1500
+ type: "object",
1501
+ additionalProperties: true
1502
+ },
1503
+ result: {
1504
+ type: "object",
1505
+ additionalProperties: true
1506
+ }
1507
+ },
1508
+ additionalProperties: true
1509
+ },
1455
1510
  options: {
1456
1511
  namespace: "wecom",
1457
1512
  codemode: true
@@ -1557,6 +1612,7 @@ function createWecomPlugin(deps) {
1557
1612
  required: ["action"],
1558
1613
  additionalProperties: false
1559
1614
  },
1615
+ output: DAYUAN_TASK_RESULT_OUTPUT_SCHEMA,
1560
1616
  options: {
1561
1617
  namespace: "wecom",
1562
1618
  codemode: true
@@ -1627,6 +1683,7 @@ function createWecomPlugin(deps) {
1627
1683
  required: ["task_id"],
1628
1684
  additionalProperties: false
1629
1685
  },
1686
+ output: DAYUAN_TASK_RESULT_OUTPUT_SCHEMA,
1630
1687
  options: {
1631
1688
  namespace: "wecom",
1632
1689
  codemode: true
@@ -1682,6 +1739,7 @@ function createWecomPlugin(deps) {
1682
1739
  required: ["task_id", "text"],
1683
1740
  additionalProperties: false
1684
1741
  },
1742
+ output: DAYUAN_TASK_RESULT_OUTPUT_SCHEMA,
1685
1743
  options: {
1686
1744
  namespace: "wecom",
1687
1745
  codemode: true
@@ -1732,6 +1790,22 @@ function createWecomPlugin(deps) {
1732
1790
  required: ["domain", "args"],
1733
1791
  additionalProperties: false
1734
1792
  },
1793
+ output: {
1794
+ type: "object",
1795
+ properties: {
1796
+ ok: { type: "boolean" },
1797
+ domain: { type: "string" },
1798
+ args: {
1799
+ type: "array",
1800
+ items: { type: "string" }
1801
+ },
1802
+ exit_code: { type: "number" },
1803
+ stdout: { type: "string" },
1804
+ stderr: { type: "string" },
1805
+ data: {}
1806
+ },
1807
+ additionalProperties: true
1808
+ },
1735
1809
  options: {
1736
1810
  namespace: "wecom",
1737
1811
  codemode: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-plugin-wecom",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "OpenCode V2 plugin for WeCom (Enterprise WeChat) via desktop-free WorkBuddy cloud auth, Dayuan A2A read-only queries, optional @wecom/cli bridge, and Yuri/Desktop GUI controls",
5
5
  "type": "module",
6
6
  "exports": {