@openspecui/server 9.0.0 → 9.0.2

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.mjs +5 -5
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -3070,11 +3070,11 @@ function policyFingerprint(policy) {
3070
3070
  policy.workflows
3071
3071
  ]);
3072
3072
  }
3073
- async function resolveGeneratorEvidence(cliExecutor, cliCommandAuthority, workflows) {
3073
+ async function resolveGeneratorEvidence(cliExecutor, cliCommandAuthority, workflows, delivery) {
3074
3074
  const availability = await cliExecutor.checkAvailability();
3075
3075
  return {
3076
3076
  version: availability.available && availability.version ? availability.version : null,
3077
- commandContents: availability.available ? await loadOpenSpecAgentCommandContents(await cliCommandAuthority.getCliCommand(), workflows) : null
3077
+ commandContents: availability.available && delivery !== "skills" ? await loadOpenSpecAgentCommandContents(await cliCommandAuthority.getCliCommand(), workflows) : null
3078
3078
  };
3079
3079
  }
3080
3080
  function createProjection(policy, states, generatorEvidence) {
@@ -3124,7 +3124,7 @@ var RetainedAgentDeliveryProjection = class {
3124
3124
  if (this.disposed || generation !== this.authorityGeneration) return;
3125
3125
  return this.preparePhysicalObservation().then(() => {
3126
3126
  if (this.disposed || generation !== this.authorityGeneration) return;
3127
- return resolveGeneratorEvidence(this.options.cliExecutor, this.options.cliCommandAuthority, environment.profileState.workflows).then((generatorEvidence) => {
3127
+ return resolveGeneratorEvidence(this.options.cliExecutor, this.options.cliCommandAuthority, environment.profileState.workflows, environment.profileState.delivery ?? "skills").then((generatorEvidence) => {
3128
3128
  if (this.disposed || generation !== this.authorityGeneration) return;
3129
3129
  this.startPhysicalProjection(resolvePolicy(environment), generatorEvidence, false);
3130
3130
  });
@@ -3140,7 +3140,7 @@ var RetainedAgentDeliveryProjection = class {
3140
3140
  }
3141
3141
  bindPolicy(policy, force) {
3142
3142
  const generation = ++this.authorityGeneration;
3143
- Promise.all([this.preparePhysicalObservation(), resolveGeneratorEvidence(this.options.cliExecutor, this.options.cliCommandAuthority, policy.workflows)]).then(([, generatorEvidence]) => {
3143
+ Promise.all([this.preparePhysicalObservation(), resolveGeneratorEvidence(this.options.cliExecutor, this.options.cliCommandAuthority, policy.workflows, policy.delivery)]).then(([, generatorEvidence]) => {
3144
3144
  if (this.disposed || generation !== this.authorityGeneration) return;
3145
3145
  this.startPhysicalProjection(policy, generatorEvidence, force);
3146
3146
  }).catch((cause) => {
@@ -3208,7 +3208,7 @@ var AgentDeliveryProjectionService = class {
3208
3208
  const environment = await this.options.environmentGlobalProjectionService.getCurrent();
3209
3209
  this.assertActive();
3210
3210
  const policy = resolvePolicy(environment);
3211
- const generatorEvidence = await resolveGeneratorEvidence(this.options.cliExecutor, this.options.cliCommandAuthority, policy.workflows);
3211
+ const generatorEvidence = await resolveGeneratorEvidence(this.options.cliExecutor, this.options.cliCommandAuthority, policy.workflows, policy.delivery);
3212
3212
  const states = await getToolInitStates(this.options.projectDir, {
3213
3213
  ...policy,
3214
3214
  generatorVersion: generatorEvidence.version ?? void 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/server",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.mjs",
6
6
  "exports": {
@@ -33,8 +33,8 @@
33
33
  "@hono/node-server": "^1.14.1",
34
34
  "@huggingface/hub": "^2.12.0",
35
35
  "@lydell/node-pty": "^1.1.0",
36
- "@openspecui/core": "9.0.0",
37
- "@openspecui/search": "9.0.0",
36
+ "@openspecui/core": "9.0.2",
37
+ "@openspecui/search": "9.0.2",
38
38
  "@opentelemetry/api": "^1.9.1",
39
39
  "@opentelemetry/exporter-trace-otlp-http": "^0.221.0",
40
40
  "@opentelemetry/sdk-node": "^0.221.0",