@openagentpack/sdk 0.7.2 → 0.7.3

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.
@@ -14,7 +14,7 @@ import {
14
14
  resolveFetch,
15
15
  resolveTargetProviders,
16
16
  skillNameFromFiles
17
- } from "./chunk-HLZOSZ7B.js";
17
+ } from "./chunk-IRA4LOCJ.js";
18
18
 
19
19
  // src/internal/core/project-runtime.ts
20
20
  function createProjectRuntime(input) {
@@ -2894,12 +2894,10 @@ function mapAgent2(name, decl, refs, version, projectName) {
2894
2894
  }
2895
2895
  }
2896
2896
  }
2897
- if (refs.skill_ids.length) {
2898
- body.skills = refs.skill_ids.map((s) => ({
2899
- type: s.type === "official" ? "qoder" : s.type,
2900
- skill_id: s.skill_id
2901
- }));
2902
- }
2897
+ body.skills = refs.skill_ids.map((s) => ({
2898
+ type: s.type === "official" ? "qoder" : s.type,
2899
+ skill_id: s.skill_id
2900
+ }));
2903
2901
  return body;
2904
2902
  }
2905
2903
  function mapForwardTemplate(name, decl, refs, projectName) {
@@ -4404,18 +4402,16 @@ function mapAgent3(name, decl, refs, version, projectName, skillVersions) {
4404
4402
  });
4405
4403
  }
4406
4404
  }
4407
- if (refs.skill_ids.length) {
4408
- body.skills = refs.skill_ids.map((s) => ({
4409
- // Bailian's SkillType enum is "customer" | "official"; map the
4410
- // resolver's generic "custom" sentinel to "customer".
4411
- type: s.type === "custom" ? "customer" : s.type,
4412
- skill_id: s.skill_id,
4413
- // Bailian composes `{skill_id}@{version}` internally and rejects
4414
- // entries without a version. Prefer explicit external references, then
4415
- // the latest active remote version, then the common initial version.
4416
- version: s.version ?? skillVersions?.[s.skill_id] ?? "1.0"
4417
- }));
4418
- }
4405
+ body.skills = refs.skill_ids.map((s) => ({
4406
+ // Bailian's SkillType enum is "customer" | "official"; map the
4407
+ // resolver's generic "custom" sentinel to "customer".
4408
+ type: s.type === "custom" ? "customer" : s.type,
4409
+ skill_id: s.skill_id,
4410
+ // Bailian composes `{skill_id}@{version}` internally and rejects
4411
+ // entries without a version. Prefer explicit external references, then
4412
+ // the latest active remote version, then the common initial version.
4413
+ version: s.version ?? skillVersions?.[s.skill_id] ?? "1.0"
4414
+ }));
4419
4415
  return body;
4420
4416
  }
4421
4417
  function mapSession3(bindings) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  UserError,
3
3
  inspectProjectSource
4
- } from "./chunk-HLZOSZ7B.js";
4
+ } from "./chunk-IRA4LOCJ.js";
5
5
 
6
6
  // src/internal/project-versions/directory.ts
7
7
  import { createHash, randomUUID } from "crypto";
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  selectDestructive,
24
24
  syncProjectResourcesWithStateBackend,
25
25
  writeProjectRuntime
26
- } from "./chunk-LJQMLMAT.js";
26
+ } from "./chunk-DFRNXUT3.js";
27
27
  import {
28
28
  ApiError,
29
29
  ConflictError,
@@ -49,7 +49,7 @@ import {
49
49
  rewriteFileMentions,
50
50
  setDefaultFetch,
51
51
  validateProjectConfig
52
- } from "./chunk-HLZOSZ7B.js";
52
+ } from "./chunk-IRA4LOCJ.js";
53
53
  import "./chunk-6PDVAFLK.js";
54
54
  import {
55
55
  defaultFileUploadPurpose,
@@ -13,8 +13,8 @@ import {
13
13
  readProjectVersionSource,
14
14
  releasePreparedProjectVersion,
15
15
  restoreProjectVersion
16
- } from "./chunk-7L73W3DL.js";
17
- import "./chunk-HLZOSZ7B.js";
16
+ } from "./chunk-XQMLTTGI.js";
17
+ import "./chunk-IRA4LOCJ.js";
18
18
  import "./chunk-6PDVAFLK.js";
19
19
  import "./chunk-CHGDM6TX.js";
20
20
  export {
@@ -4,17 +4,17 @@ import {
4
4
  planProjectContext,
5
5
  planProjectWithStateBackend,
6
6
  writeProjectRuntime
7
- } from "./chunk-LJQMLMAT.js";
7
+ } from "./chunk-DFRNXUT3.js";
8
8
  import {
9
9
  createDirectoryProjectVersionService
10
- } from "./chunk-7L73W3DL.js";
10
+ } from "./chunk-XQMLTTGI.js";
11
11
  import {
12
12
  UserError,
13
13
  inspectProjectSource,
14
14
  resolveProjectConfig,
15
15
  resolveProjectConfigFromObject,
16
16
  validateProjectConfig
17
- } from "./chunk-HLZOSZ7B.js";
17
+ } from "./chunk-IRA4LOCJ.js";
18
18
  import "./chunk-6PDVAFLK.js";
19
19
  import "./chunk-CHGDM6TX.js";
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagentpack/sdk",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "OpenAgentPack SDK (Node-compatible runtime)",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [