dsh-multigameassistant 2.1.0 → 2.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.
package/cordis.patch.yml CHANGED
@@ -1,4 +1,4 @@
1
- # dsh-multigameassistant 2.1.0
1
+ # dsh-multigameassistant 2.1.1
2
2
  # dsh-multigameassistant: the app's plugins (packages/bundle/cordis.patch.yml, each @adg/<plugin> as dsh-multigameassistant/<plugin>)
3
3
  # sharing the dsh with the person's other chats, and the app's agent preset (dsh's standard one with the app's
4
4
  # tools and prompts, and compaction as 设置 → 对话压缩 says). No row of dsh is restated.
package/lib/analyzer.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { createRequire as __adgCreateRequire } from 'node:module'; import { dirname as __adgDirname } from 'node:path'; import { fileURLToPath as __adgFileURLToPath } from 'node:url'; const require = __adgCreateRequire(import.meta.url); const __filename = __adgFileURLToPath(import.meta.url); const __dirname = __adgDirname(__filename);
2
2
  import {
3
3
  probeProject
4
- } from "./chunk-YG4B5G7F.js";
4
+ } from "./chunk-B4UT4NYH.js";
5
5
  import {
6
6
  MANIFEST_FILE,
7
7
  SKILL_FILE,
8
8
  guideIssues,
9
9
  parseManifest,
10
10
  require_dist
11
- } from "./chunk-77ZYHRN7.js";
11
+ } from "./chunk-5PDYWE24.js";
12
12
  import {
13
13
  BUILTIN_PACK_VERSION,
14
14
  PACKS_CAPABILITY,
15
15
  ScriptId
16
- } from "./chunk-V2X4PLF5.js";
16
+ } from "./chunk-NM6H6WCQ.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-SHTX4AGU.js";
@@ -2,7 +2,7 @@ import { createRequire as __adgCreateRequire } from 'node:module'; import { dirn
2
2
  import {
3
3
  ScriptFamily,
4
4
  ScriptId
5
- } from "./chunk-V2X4PLF5.js";
5
+ } from "./chunk-NM6H6WCQ.js";
6
6
  import {
7
7
  external_exports
8
8
  } from "./chunk-SHTX4AGU.js";
@@ -2400,6 +2400,7 @@ export {
2400
2400
  systemHost,
2401
2401
  checkEnvironment,
2402
2402
  compareVersions,
2403
+ satisfies,
2403
2404
  applyFix,
2404
2405
  runElevated,
2405
2406
  probeProject,
@@ -4,7 +4,7 @@ import {
4
4
  LOW_CONTEXT_WINDOW_MS,
5
5
  MAX_ARCHIVE_DAYS,
6
6
  MIN_ARCHIVE_DAYS
7
- } from "./chunk-V2X4PLF5.js";
7
+ } from "./chunk-NM6H6WCQ.js";
8
8
 
9
9
  // packages/gateway/lib/low-context.js
10
10
  import { appendFile, mkdir, readFile, stat } from "node:fs/promises";
@@ -2,7 +2,7 @@ import { createRequire as __adgCreateRequire } from 'node:module'; import { dirn
2
2
  import {
3
3
  SUMMARIES_FILE,
4
4
  summariesReader
5
- } from "./chunk-FH64SAZU.js";
5
+ } from "./chunk-FBDVN6Q2.js";
6
6
  import {
7
7
  writeFileAtomic
8
8
  } from "./chunk-RESS7WVY.js";
@@ -39,7 +39,7 @@ import {
39
39
  personaOf,
40
40
  personaPrompt,
41
41
  threadsBetween
42
- } from "./chunk-V2X4PLF5.js";
42
+ } from "./chunk-NM6H6WCQ.js";
43
43
  import {
44
44
  external_exports
45
45
  } from "./chunk-SHTX4AGU.js";
@@ -9040,9 +9040,12 @@ var AdgGateway = class extends Service {
9040
9040
  version: 1,
9041
9041
  methods: {
9042
9042
  "agents/home": async (params) => {
9043
- const { agentId } = params;
9043
+ const { agentId, focus } = params;
9044
9044
  try {
9045
- return { sessionId: await this.home(agentId) };
9045
+ const sessionId = await this.home(agentId);
9046
+ if (focus !== void 0)
9047
+ await this.skillScope.setFocus(sessionId, { scripts: focus.scripts ?? [], games: focus.games ?? [] }, "add");
9048
+ return { sessionId };
9046
9049
  } catch (error) {
9047
9050
  throw new RpcError(ErrorCode.InvalidParams, error instanceof Error ? error.message : String(error));
9048
9051
  }
@@ -10141,6 +10144,7 @@ Content-Length: 0
10141
10144
  var lib_default = AdgGateway;
10142
10145
 
10143
10146
  export {
10147
+ pluginVersion,
10144
10148
  SkillScope,
10145
10149
  streamFacts,
10146
10150
  convertEvent,
@@ -2722,12 +2722,26 @@ var HubItem = external_exports.object({
2722
2722
  scripts: external_exports.array(external_exports.string()),
2723
2723
  repo: external_exports.string(),
2724
2724
  path: external_exports.string(),
2725
+ /** Fingerprint of its whole folder: a different one is another version. */
2725
2726
  hash: external_exports.string(),
2727
+ /** What the repository's index calls this version, and one line on what changed. */
2728
+ version: external_exports.string().optional(),
2729
+ changes: external_exports.string().optional(),
2730
+ /** App versions it works with, e.g. `>=2.1.0`. */
2731
+ requires: external_exports.string().optional(),
2726
2732
  installed: external_exports.object({
2727
2733
  at: external_exports.number(),
2728
- /** The repository has a newer version. */
2729
- update: external_exports.boolean()
2734
+ /** The repository has a newer version (not one gone back from). */
2735
+ update: external_exports.boolean(),
2736
+ /** The version downloaded here. */
2737
+ version: external_exports.string().optional(),
2738
+ /** The version the last update replaced, kept to go back to. */
2739
+ previous: external_exports.object({ version: external_exports.string().optional(), at: external_exports.number() }).optional(),
2740
+ /** Went back from the repository's current version: not offered again until another. */
2741
+ held: external_exports.boolean().optional()
2730
2742
  }).optional(),
2743
+ /** Why the repository's version cannot be taken: this app is too old for it. */
2744
+ incompatible: external_exports.string().optional(),
2731
2745
  /** Why it cannot be downloaded (a core or the user's own skill has the name). */
2732
2746
  blocked: external_exports.string().optional()
2733
2747
  });
@@ -2750,6 +2764,12 @@ var SkillHubRequests = {
2750
2764
  params: ByName,
2751
2765
  result: external_exports.object({ state: external_exports.enum(["current", "updated"]), item: HubItem })
2752
2766
  },
2767
+ /** Go back to the version the last update replaced. */
2768
+ "skillhub/rollback": {
2769
+ capability: SKILLHUB_CAPABILITY,
2770
+ params: ByName,
2771
+ result: HubItem
2772
+ },
2753
2773
  "skillhub/remove": {
2754
2774
  capability: SKILLHUB_CAPABILITY,
2755
2775
  params: ByName,
@@ -3021,10 +3041,13 @@ var Requests = {
3021
3041
  params: Empty2,
3022
3042
  result: external_exports.object({ items: external_exports.array(Role) })
3023
3043
  },
3024
- /** The agent's one conversation (`main`: 助手's), made the first time it is asked for, or again when it was deleted. */
3044
+ /**
3045
+ * The agent's one conversation (`main`: 助手's), made the first time it is asked for, or again when it was deleted.
3046
+ * `focus`: scripts and games added to what it is about (as `sessions/create`'s); it sees their skills.
3047
+ */
3025
3048
  "agents/home": {
3026
3049
  capability: AGENTS_CAPABILITY,
3027
- params: external_exports.object({ agentId: external_exports.string() }),
3050
+ params: external_exports.object({ agentId: external_exports.string(), focus: external_exports.object({ scripts: external_exports.array(external_exports.string()).optional(), games: external_exports.array(external_exports.string()).optional() }).optional() }),
3028
3051
  result: external_exports.object({ sessionId: external_exports.string() })
3029
3052
  },
3030
3053
  /** Work handed from or to this conversation, newest last. */
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __adgCreateRequire } from 'node:module'; import { dirname as __adgDirname } from 'node:path'; import { fileURLToPath as __adgFileURLToPath } from 'node:url'; const require = __adgCreateRequire(import.meta.url); const __filename = __adgFileURLToPath(import.meta.url); const __dirname = __adgDirname(__filename);
2
2
  import {
3
3
  convertRecord
4
- } from "./chunk-MEKSHT6V.js";
4
+ } from "./chunk-MQG5FLOG.js";
5
5
  import {
6
6
  writeFileAtomic
7
7
  } from "./chunk-RESS7WVY.js";
@@ -20,7 +20,7 @@ import {
20
20
  threadMessage,
21
21
  threadReminder,
22
22
  threadsBetween
23
- } from "./chunk-V2X4PLF5.js";
23
+ } from "./chunk-NM6H6WCQ.js";
24
24
  import {
25
25
  external_exports
26
26
  } from "./chunk-SHTX4AGU.js";
@@ -4,11 +4,11 @@ import {
4
4
  guideView,
5
5
  renderTask,
6
6
  require_dist
7
- } from "./chunk-77ZYHRN7.js";
7
+ } from "./chunk-5PDYWE24.js";
8
8
  import {
9
9
  RUNS_CAPABILITY,
10
10
  ScriptId
11
- } from "./chunk-V2X4PLF5.js";
11
+ } from "./chunk-NM6H6WCQ.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-SHTX4AGU.js";
package/lib/emulator.js CHANGED
@@ -2,14 +2,14 @@ import { createRequire as __adgCreateRequire } from 'node:module'; import { dirn
2
2
  import {
3
3
  download,
4
4
  runElevated
5
- } from "./chunk-YG4B5G7F.js";
5
+ } from "./chunk-B4UT4NYH.js";
6
6
  import {
7
7
  writeFileAtomic
8
8
  } from "./chunk-RESS7WVY.js";
9
9
  import {
10
10
  EMULATORS_CAPABILITY,
11
11
  EmulatorSettings
12
- } from "./chunk-V2X4PLF5.js";
12
+ } from "./chunk-NM6H6WCQ.js";
13
13
  import {
14
14
  external_exports
15
15
  } from "./chunk-SHTX4AGU.js";
package/lib/feishu.js CHANGED
@@ -2,7 +2,7 @@ import { createRequire as __adgCreateRequire } from 'node:module'; import { dirn
2
2
  import {
3
3
  replyMarkdown,
4
4
  replyPlain
5
- } from "./chunk-TWUATN5X.js";
5
+ } from "./chunk-UQLHGLMP.js";
6
6
  import {
7
7
  require_extension,
8
8
  require_permessage_deflate,
@@ -12,8 +12,8 @@ import {
12
12
  require_subprotocol,
13
13
  require_websocket,
14
14
  require_websocket_server
15
- } from "./chunk-MEKSHT6V.js";
16
- import "./chunk-FH64SAZU.js";
15
+ } from "./chunk-MQG5FLOG.js";
16
+ import "./chunk-FBDVN6Q2.js";
17
17
  import {
18
18
  writeFileAtomic
19
19
  } from "./chunk-RESS7WVY.js";
@@ -22,7 +22,7 @@ import {
22
22
  FEISHU_SECRET_REF,
23
23
  FeishuPending,
24
24
  FeishuSettings
25
- } from "./chunk-V2X4PLF5.js";
25
+ } from "./chunk-NM6H6WCQ.js";
26
26
  import {
27
27
  external_exports
28
28
  } from "./chunk-SHTX4AGU.js";
package/lib/game-intel.js CHANGED
@@ -7,12 +7,12 @@ import {
7
7
  GAME_MANIFEST_FILE,
8
8
  GameManifest,
9
9
  parseGameManifest
10
- } from "./chunk-77ZYHRN7.js";
10
+ } from "./chunk-5PDYWE24.js";
11
11
  import {
12
12
  sessionConversations
13
- } from "./chunk-TWUATN5X.js";
14
- import "./chunk-MEKSHT6V.js";
15
- import "./chunk-FH64SAZU.js";
13
+ } from "./chunk-UQLHGLMP.js";
14
+ import "./chunk-MQG5FLOG.js";
15
+ import "./chunk-FBDVN6Q2.js";
16
16
  import {
17
17
  ExeIcons,
18
18
  writeFileAtomic
@@ -25,7 +25,7 @@ import {
25
25
  SCREEN_SOURCE,
26
26
  SHOT_IMAGE,
27
27
  taskMessage
28
- } from "./chunk-V2X4PLF5.js";
28
+ } from "./chunk-NM6H6WCQ.js";
29
29
  import {
30
30
  external_exports
31
31
  } from "./chunk-SHTX4AGU.js";
package/lib/gateway.js CHANGED
@@ -17,11 +17,12 @@ import {
17
17
  convertRecords,
18
18
  copyLabel,
19
19
  lib_default,
20
+ pluginVersion,
20
21
  streamFacts
21
- } from "./chunk-MEKSHT6V.js";
22
- import "./chunk-FH64SAZU.js";
22
+ } from "./chunk-MQG5FLOG.js";
23
+ import "./chunk-FBDVN6Q2.js";
23
24
  import "./chunk-RESS7WVY.js";
24
- import "./chunk-V2X4PLF5.js";
25
+ import "./chunk-NM6H6WCQ.js";
25
26
  import "./chunk-SHTX4AGU.js";
26
27
  import "./chunk-2UFLGPDY.js";
27
28
  export {
@@ -42,5 +43,6 @@ export {
42
43
  convertRecords,
43
44
  copyLabel,
44
45
  lib_default as default,
46
+ pluginVersion,
45
47
  streamFacts
46
48
  };
package/lib/guard.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __adgCreateRequire } from 'node:module'; import { dirname as __adgDirname } from 'node:path'; import { fileURLToPath as __adgFileURLToPath } from 'node:url'; const require = __adgCreateRequire(import.meta.url); const __filename = __adgFileURLToPath(import.meta.url); const __dirname = __adgDirname(__filename);
2
2
  import {
3
3
  GUARD_CAPABILITY
4
- } from "./chunk-V2X4PLF5.js";
4
+ } from "./chunk-NM6H6WCQ.js";
5
5
  import "./chunk-SHTX4AGU.js";
6
6
  import "./chunk-2UFLGPDY.js";
7
7
 
package/lib/intervene.js CHANGED
@@ -2,16 +2,16 @@ import { createRequire as __adgCreateRequire } from 'node:module'; import { dirn
2
2
  import {
3
3
  finalText,
4
4
  sessionConversations
5
- } from "./chunk-TWUATN5X.js";
6
- import "./chunk-MEKSHT6V.js";
7
- import "./chunk-FH64SAZU.js";
5
+ } from "./chunk-UQLHGLMP.js";
6
+ import "./chunk-MQG5FLOG.js";
7
+ import "./chunk-FBDVN6Q2.js";
8
8
  import {
9
9
  writeFileAtomic
10
10
  } from "./chunk-RESS7WVY.js";
11
11
  import {
12
12
  INTERVENE_CAPABILITY,
13
13
  UPDATE_RULE
14
- } from "./chunk-V2X4PLF5.js";
14
+ } from "./chunk-NM6H6WCQ.js";
15
15
  import {
16
16
  external_exports
17
17
  } from "./chunk-SHTX4AGU.js";
@@ -38,8 +38,8 @@ import {
38
38
  summaryTarget,
39
39
  summaryText,
40
40
  taskOver
41
- } from "./chunk-FH64SAZU.js";
42
- import "./chunk-V2X4PLF5.js";
41
+ } from "./chunk-FBDVN6Q2.js";
42
+ import "./chunk-NM6H6WCQ.js";
43
43
  import "./chunk-SHTX4AGU.js";
44
44
  import "./chunk-2UFLGPDY.js";
45
45
  export {
package/lib/monitor.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createRequire as __adgCreateRequire } from 'node:module'; import { dirname as __adgDirname } from 'node:path'; import { fileURLToPath as __adgFileURLToPath } from 'node:url'; const require = __adgCreateRequire(import.meta.url); const __filename = __adgFileURLToPath(import.meta.url); const __dirname = __adgDirname(__filename);
2
2
  import {
3
3
  parseDuration
4
- } from "./chunk-EOWM56PA.js";
5
- import "./chunk-77ZYHRN7.js";
4
+ } from "./chunk-VOTN4IHB.js";
5
+ import "./chunk-5PDYWE24.js";
6
6
  import {
7
7
  writeFileAtomic
8
8
  } from "./chunk-RESS7WVY.js";
@@ -10,7 +10,7 @@ import {
10
10
  Incident,
11
11
  MONITOR_CAPABILITY,
12
12
  MonitorSettings
13
- } from "./chunk-V2X4PLF5.js";
13
+ } from "./chunk-NM6H6WCQ.js";
14
14
  import {
15
15
  external_exports
16
16
  } from "./chunk-SHTX4AGU.js";
package/lib/notify.js CHANGED
@@ -16,11 +16,11 @@ import {
16
16
  replyPlain,
17
17
  sessionConversations,
18
18
  textReply
19
- } from "./chunk-TWUATN5X.js";
20
- import "./chunk-MEKSHT6V.js";
21
- import "./chunk-FH64SAZU.js";
19
+ } from "./chunk-UQLHGLMP.js";
20
+ import "./chunk-MQG5FLOG.js";
21
+ import "./chunk-FBDVN6Q2.js";
22
22
  import "./chunk-RESS7WVY.js";
23
- import "./chunk-V2X4PLF5.js";
23
+ import "./chunk-NM6H6WCQ.js";
24
24
  import "./chunk-SHTX4AGU.js";
25
25
  import "./chunk-2UFLGPDY.js";
26
26
  export {
@@ -4,18 +4,18 @@ import {
4
4
  PARAMS_SCHEMA,
5
5
  parseDuration,
6
6
  taskParams
7
- } from "./chunk-EOWM56PA.js";
7
+ } from "./chunk-VOTN4IHB.js";
8
8
  import {
9
9
  TaskInputError,
10
10
  renderTask
11
- } from "./chunk-77ZYHRN7.js";
11
+ } from "./chunk-5PDYWE24.js";
12
12
  import {
13
13
  MAIN,
14
14
  finalText,
15
15
  sessionConversations
16
- } from "./chunk-TWUATN5X.js";
17
- import "./chunk-MEKSHT6V.js";
18
- import "./chunk-FH64SAZU.js";
16
+ } from "./chunk-UQLHGLMP.js";
17
+ import "./chunk-MQG5FLOG.js";
18
+ import "./chunk-FBDVN6Q2.js";
19
19
  import {
20
20
  writeFileAtomic
21
21
  } from "./chunk-RESS7WVY.js";
@@ -33,7 +33,7 @@ import {
33
33
  isMarker,
34
34
  taskMessage,
35
35
  withStartEnd
36
- } from "./chunk-V2X4PLF5.js";
36
+ } from "./chunk-NM6H6WCQ.js";
37
37
  import {
38
38
  external_exports
39
39
  } from "./chunk-SHTX4AGU.js";
package/lib/qqbot.js CHANGED
@@ -4,9 +4,9 @@ import {
4
4
  questionText,
5
5
  replyMarkdown,
6
6
  replyPlain
7
- } from "./chunk-TWUATN5X.js";
8
- import "./chunk-MEKSHT6V.js";
9
- import "./chunk-FH64SAZU.js";
7
+ } from "./chunk-UQLHGLMP.js";
8
+ import "./chunk-MQG5FLOG.js";
9
+ import "./chunk-FBDVN6Q2.js";
10
10
  import {
11
11
  writeFileAtomic
12
12
  } from "./chunk-RESS7WVY.js";
@@ -15,7 +15,7 @@ import {
15
15
  QQBOT_SECRET_REF,
16
16
  QQPending,
17
17
  QQSettings
18
- } from "./chunk-V2X4PLF5.js";
18
+ } from "./chunk-NM6H6WCQ.js";
19
19
  import {
20
20
  external_exports
21
21
  } from "./chunk-SHTX4AGU.js";
package/lib/runner.js CHANGED
@@ -25,9 +25,9 @@ import {
25
25
  setIn,
26
26
  taskParams,
27
27
  tidyRuns
28
- } from "./chunk-EOWM56PA.js";
29
- import "./chunk-77ZYHRN7.js";
30
- import "./chunk-V2X4PLF5.js";
28
+ } from "./chunk-VOTN4IHB.js";
29
+ import "./chunk-5PDYWE24.js";
30
+ import "./chunk-NM6H6WCQ.js";
31
31
  import "./chunk-SHTX4AGU.js";
32
32
  import "./chunk-2UFLGPDY.js";
33
33
  export {
package/lib/scheduler.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __adgCreateRequire } from 'node:module'; import { dirname as __adgDirname } from 'node:path'; import { fileURLToPath as __adgFileURLToPath } from 'node:url'; const require = __adgCreateRequire(import.meta.url); const __filename = __adgFileURLToPath(import.meta.url); const __dirname = __adgDirname(__filename);
2
2
  import {
3
3
  SCHEDULE_CAPABILITY
4
- } from "./chunk-V2X4PLF5.js";
4
+ } from "./chunk-NM6H6WCQ.js";
5
5
  import {
6
6
  external_exports
7
7
  } from "./chunk-SHTX4AGU.js";