@skrr-ai/cli 0.1.176 → 0.1.177

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.
@@ -37,6 +37,13 @@
37
37
  * `platform-machine: available`) is held to the same set by
38
38
  * `api/server/services/Harness/__tests__/harnessSelection.spec.js`.
39
39
  *
40
+ * `platformMachineEvaluation` marks a harness such a machine ANNOUNCES without
41
+ * offering it: its image bakes it at a pinned version, the daemon announces its
42
+ * session capability once that runtime resolves, and the server still refuses
43
+ * it there until its registry placement is `available` (the GitHub Copilot SDK,
44
+ * OSK-24469, whose platform-machine admission waits on H9). Announcing it is
45
+ * what lets admission need no new image; it grants nothing by itself.
46
+ *
40
47
  * Pure: no `node:` imports and nothing read at module load.
41
48
  */
42
49
  /**
@@ -107,6 +114,13 @@ export interface InferenceBrokerHarness {
107
114
  * setuid wrapper, and it reaches its model only through this broker.
108
115
  */
109
116
  readonly platformMachine: boolean;
117
+ /**
118
+ * Whether a platform-managed machine announces this harness while its placement
119
+ * there is still evaluated: baked into the image, announced when its runtime
120
+ * resolves, and refused by the server's selection until the registry admits it.
121
+ * Never true beside `platformMachine`.
122
+ */
123
+ readonly platformMachineEvaluation: boolean;
110
124
  }
111
125
  export declare const INFERENCE_BROKER_HARNESSES: readonly InferenceBrokerHarness[];
112
126
  /**
@@ -121,6 +135,17 @@ export declare const PLATFORM_MACHINE_HARNESS_PROVIDERS: readonly string[];
121
135
  * `inferenceBrokerHarness`; false for anything unlisted or unreadable.
122
136
  */
123
137
  export declare function isPlatformMachineHarness(provider: unknown): boolean;
138
+ /**
139
+ * The canonical providers a platform-managed machine announces while their
140
+ * placement there is evaluated (`platformMachineEvaluation`): baked, announced
141
+ * when present, and admitted by nothing until the registry says `available`.
142
+ */
143
+ export declare const PLATFORM_MACHINE_EVALUATION_HARNESS_PROVIDERS: readonly string[];
144
+ /**
145
+ * Whether a platform-managed machine announces this harness for evaluation
146
+ * without offering it. False for the offered three and for anything unlisted.
147
+ */
148
+ export declare function isPlatformMachineEvaluationHarness(provider: unknown): boolean;
124
149
  /**
125
150
  * The listed harness for a provider name, or null. The first-party harness is
126
151
  * matched in every accepted spelling and never in a former one, which no entry
@@ -26,11 +26,13 @@ __export(inferenceBrokerHarnesses_exports, {
26
26
  INFERENCE_RELAY_AUDIENCE: () => INFERENCE_RELAY_AUDIENCE,
27
27
  MANAGED_INFERENCE_BROKER_TOKEN_CAPABILITY: () => MANAGED_INFERENCE_BROKER_TOKEN_CAPABILITY,
28
28
  PI_CREDENTIAL_BROKER_CAPABILITY: () => PI_CREDENTIAL_BROKER_CAPABILITY,
29
+ PLATFORM_MACHINE_EVALUATION_HARNESS_PROVIDERS: () => PLATFORM_MACHINE_EVALUATION_HARNESS_PROVIDERS,
29
30
  PLATFORM_MACHINE_HARNESS_PROVIDERS: () => PLATFORM_MACHINE_HARNESS_PROVIDERS,
30
31
  SESSION_TOKEN_AUDIENCE: () => SESSION_TOKEN_AUDIENCE,
31
32
  inferenceBrokerCarries: () => inferenceBrokerCarries,
32
33
  inferenceBrokerHarness: () => inferenceBrokerHarness,
33
34
  inferenceBrokerMissingCapabilities: () => inferenceBrokerMissingCapabilities,
35
+ isPlatformMachineEvaluationHarness: () => isPlatformMachineEvaluationHarness,
34
36
  isPlatformMachineHarness: () => isPlatformMachineHarness
35
37
  });
36
38
  module.exports = __toCommonJS(inferenceBrokerHarnesses_exports);
@@ -43,12 +45,13 @@ const MANAGED_INFERENCE_BROKER_TOKEN_CAPABILITY = "managed_inference_broker_toke
43
45
  const INFERENCE_RELAY_AUDIENCE = "inference";
44
46
  const SESSION_TOKEN_AUDIENCE = "session";
45
47
  const SHAPE_ANNOUNCED_BY = Object.freeze({ "managed-lease": MANAGED_INFERENCE_BROKER_TOKEN_CAPABILITY });
46
- function harness(provider, carries, announcedBy, { platformMachine }) {
48
+ function harness(provider, carries, announcedBy, { platformMachine, platformMachineEvaluation = false }) {
47
49
  return Object.freeze({
48
50
  provider,
49
51
  carries: Object.freeze([...carries]),
50
52
  announcedBy,
51
- platformMachine
53
+ platformMachine,
54
+ platformMachineEvaluation: platformMachineEvaluation && !platformMachine
52
55
  });
53
56
  }
54
57
  const INFERENCE_BROKER_HARNESSES = Object.freeze([
@@ -59,10 +62,15 @@ const INFERENCE_BROKER_HARNESSES = Object.freeze([
59
62
  harness("codex", ["managed-lease", "gateway"], HARNESS_CREDENTIAL_BROKER_CAPABILITY, {
60
63
  platformMachine: true
61
64
  }),
62
- // The Copilot SDK broker takes platform credits only as a managed lease. No
63
- // platform machine image bakes its runtime; its placement there is still
64
- // being evaluated (`packages/llm/harnesses/copilot-sdk.yaml`).
65
- harness("copilot-sdk", ["managed-lease"], null, { platformMachine: false }),
65
+ // The Copilot SDK broker takes platform credits only as a managed lease. The
66
+ // platform machine image bakes its runtime at the SDK's pin
67
+ // (`guest-harness-pins.json` `copilot-sdk`), so a platform machine announces it
68
+ // for measurement (H9), while its placement there is still `evaluating`
69
+ // (`packages/llm/harnesses/copilot-sdk.yaml`) and the server refuses it.
70
+ harness("copilot-sdk", ["managed-lease"], null, {
71
+ platformMachine: false,
72
+ platformMachineEvaluation: true
73
+ }),
66
74
  // pi takes platform credits only as a managed lease, through the daemon's
67
75
  // loopback broker (OSK-24468). Not yet offered on a platform machine: the
68
76
  // image bakes it at its pin (`guest-harness-pins.json`), but its registry
@@ -74,6 +82,10 @@ const PLATFORM_MACHINE_HARNESS_PROVIDERS = Object.freeze(INFERENCE_BROKER_HARNES
74
82
  function isPlatformMachineHarness(provider) {
75
83
  return inferenceBrokerHarness(provider)?.platformMachine === true;
76
84
  }
85
+ const PLATFORM_MACHINE_EVALUATION_HARNESS_PROVIDERS = Object.freeze(INFERENCE_BROKER_HARNESSES.filter((entry) => entry.platformMachineEvaluation).map((entry) => entry.provider));
86
+ function isPlatformMachineEvaluationHarness(provider) {
87
+ return inferenceBrokerHarness(provider)?.platformMachineEvaluation === true;
88
+ }
77
89
  function inferenceBrokerHarness(provider) {
78
90
  if (typeof provider !== "string" || !provider)
79
91
  return null;
@@ -112,10 +124,12 @@ const INFERENCE_BROKER_CAPABILITIES = Object.freeze([
112
124
  INFERENCE_RELAY_AUDIENCE,
113
125
  MANAGED_INFERENCE_BROKER_TOKEN_CAPABILITY,
114
126
  PI_CREDENTIAL_BROKER_CAPABILITY,
127
+ PLATFORM_MACHINE_EVALUATION_HARNESS_PROVIDERS,
115
128
  PLATFORM_MACHINE_HARNESS_PROVIDERS,
116
129
  SESSION_TOKEN_AUDIENCE,
117
130
  inferenceBrokerCarries,
118
131
  inferenceBrokerHarness,
119
132
  inferenceBrokerMissingCapabilities,
133
+ isPlatformMachineEvaluationHarness,
120
134
  isPlatformMachineHarness
121
135
  });
@@ -37,6 +37,13 @@
37
37
  * `platform-machine: available`) is held to the same set by
38
38
  * `api/server/services/Harness/__tests__/harnessSelection.spec.js`.
39
39
  *
40
+ * `platformMachineEvaluation` marks a harness such a machine ANNOUNCES without
41
+ * offering it: its image bakes it at a pinned version, the daemon announces its
42
+ * session capability once that runtime resolves, and the server still refuses
43
+ * it there until its registry placement is `available` (the GitHub Copilot SDK,
44
+ * OSK-24469, whose platform-machine admission waits on H9). Announcing it is
45
+ * what lets admission need no new image; it grants nothing by itself.
46
+ *
40
47
  * Pure: no `node:` imports and nothing read at module load.
41
48
  */
42
49
  /**
@@ -107,6 +114,13 @@ export interface InferenceBrokerHarness {
107
114
  * setuid wrapper, and it reaches its model only through this broker.
108
115
  */
109
116
  readonly platformMachine: boolean;
117
+ /**
118
+ * Whether a platform-managed machine announces this harness while its placement
119
+ * there is still evaluated: baked into the image, announced when its runtime
120
+ * resolves, and refused by the server's selection until the registry admits it.
121
+ * Never true beside `platformMachine`.
122
+ */
123
+ readonly platformMachineEvaluation: boolean;
110
124
  }
111
125
  export declare const INFERENCE_BROKER_HARNESSES: readonly InferenceBrokerHarness[];
112
126
  /**
@@ -121,6 +135,17 @@ export declare const PLATFORM_MACHINE_HARNESS_PROVIDERS: readonly string[];
121
135
  * `inferenceBrokerHarness`; false for anything unlisted or unreadable.
122
136
  */
123
137
  export declare function isPlatformMachineHarness(provider: unknown): boolean;
138
+ /**
139
+ * The canonical providers a platform-managed machine announces while their
140
+ * placement there is evaluated (`platformMachineEvaluation`): baked, announced
141
+ * when present, and admitted by nothing until the registry says `available`.
142
+ */
143
+ export declare const PLATFORM_MACHINE_EVALUATION_HARNESS_PROVIDERS: readonly string[];
144
+ /**
145
+ * Whether a platform-managed machine announces this harness for evaluation
146
+ * without offering it. False for the offered three and for anything unlisted.
147
+ */
148
+ export declare function isPlatformMachineEvaluationHarness(provider: unknown): boolean;
124
149
  /**
125
150
  * The listed harness for a provider name, or null. The first-party harness is
126
151
  * matched in every accepted spelling and never in a former one, which no entry
@@ -37,6 +37,13 @@
37
37
  * `platform-machine: available`) is held to the same set by
38
38
  * `api/server/services/Harness/__tests__/harnessSelection.spec.js`.
39
39
  *
40
+ * `platformMachineEvaluation` marks a harness such a machine ANNOUNCES without
41
+ * offering it: its image bakes it at a pinned version, the daemon announces its
42
+ * session capability once that runtime resolves, and the server still refuses
43
+ * it there until its registry placement is `available` (the GitHub Copilot SDK,
44
+ * OSK-24469, whose platform-machine admission waits on H9). Announcing it is
45
+ * what lets admission need no new image; it grants nothing by itself.
46
+ *
40
47
  * Pure: no `node:` imports and nothing read at module load.
41
48
  */
42
49
  import { FIRST_PARTY_HARNESS_PROVIDER, canonicalHarnessProvider } from './firstPartyHarness.js';
@@ -82,12 +89,13 @@ export const INFERENCE_RELAY_AUDIENCE = 'inference';
82
89
  export const SESSION_TOKEN_AUDIENCE = 'session';
83
90
  /** The capability a daemon announces when it can carry a shape at all, beyond its harness's entry. */
84
91
  const SHAPE_ANNOUNCED_BY = Object.freeze({ 'managed-lease': MANAGED_INFERENCE_BROKER_TOKEN_CAPABILITY });
85
- function harness(provider, carries, announcedBy, { platformMachine }) {
92
+ function harness(provider, carries, announcedBy, { platformMachine, platformMachineEvaluation = false, }) {
86
93
  return Object.freeze({
87
94
  provider,
88
95
  carries: Object.freeze([...carries]),
89
96
  announcedBy,
90
97
  platformMachine,
98
+ platformMachineEvaluation: platformMachineEvaluation && !platformMachine,
91
99
  });
92
100
  }
93
101
  export const INFERENCE_BROKER_HARNESSES = Object.freeze([
@@ -98,10 +106,15 @@ export const INFERENCE_BROKER_HARNESSES = Object.freeze([
98
106
  harness('codex', ['managed-lease', 'gateway'], HARNESS_CREDENTIAL_BROKER_CAPABILITY, {
99
107
  platformMachine: true,
100
108
  }),
101
- // The Copilot SDK broker takes platform credits only as a managed lease. No
102
- // platform machine image bakes its runtime; its placement there is still
103
- // being evaluated (`packages/llm/harnesses/copilot-sdk.yaml`).
104
- harness('copilot-sdk', ['managed-lease'], null, { platformMachine: false }),
109
+ // The Copilot SDK broker takes platform credits only as a managed lease. The
110
+ // platform machine image bakes its runtime at the SDK's pin
111
+ // (`guest-harness-pins.json` `copilot-sdk`), so a platform machine announces it
112
+ // for measurement (H9), while its placement there is still `evaluating`
113
+ // (`packages/llm/harnesses/copilot-sdk.yaml`) and the server refuses it.
114
+ harness('copilot-sdk', ['managed-lease'], null, {
115
+ platformMachine: false,
116
+ platformMachineEvaluation: true,
117
+ }),
105
118
  // pi takes platform credits only as a managed lease, through the daemon's
106
119
  // loopback broker (OSK-24468). Not yet offered on a platform machine: the
107
120
  // image bakes it at its pin (`guest-harness-pins.json`), but its registry
@@ -123,6 +136,19 @@ export const PLATFORM_MACHINE_HARNESS_PROVIDERS = Object.freeze(INFERENCE_BROKER
123
136
  export function isPlatformMachineHarness(provider) {
124
137
  return inferenceBrokerHarness(provider)?.platformMachine === true;
125
138
  }
139
+ /**
140
+ * The canonical providers a platform-managed machine announces while their
141
+ * placement there is evaluated (`platformMachineEvaluation`): baked, announced
142
+ * when present, and admitted by nothing until the registry says `available`.
143
+ */
144
+ export const PLATFORM_MACHINE_EVALUATION_HARNESS_PROVIDERS = Object.freeze(INFERENCE_BROKER_HARNESSES.filter((entry) => entry.platformMachineEvaluation).map((entry) => entry.provider));
145
+ /**
146
+ * Whether a platform-managed machine announces this harness for evaluation
147
+ * without offering it. False for the offered three and for anything unlisted.
148
+ */
149
+ export function isPlatformMachineEvaluationHarness(provider) {
150
+ return inferenceBrokerHarness(provider)?.platformMachineEvaluation === true;
151
+ }
126
152
  /**
127
153
  * The listed harness for a provider name, or null. The first-party harness is
128
154
  * matched in every accepted spelling and never in a former one, which no entry
@@ -150534,5 +150534,5 @@
150534
150534
  ]
150535
150535
  }
150536
150536
  },
150537
- "version": "0.1.176"
150537
+ "version": "0.1.177"
150538
150538
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrr-ai/cli",
3
- "version": "0.1.176",
3
+ "version": "0.1.177",
4
4
  "description": "Command-line interface for skrr",
5
5
  "license": "ISC",
6
6
  "author": "skrr",
@@ -704,5 +704,5 @@
704
704
  "engines": {
705
705
  "node": ">=20.0.0"
706
706
  },
707
- "gitHead": "ed4f9e0ad7d9ce6f8d1c7e0246a2e5c5f76753c4"
707
+ "gitHead": "79ec2041ae075c6e9da2b6533b9cb7c4d97c1b01"
708
708
  }