@rulvar/core 1.0.0 → 1.1.0

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 +11 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10928,7 +10928,15 @@ function makeOrchestratorWorkflow(goal, opts) {
10928
10928
  const admission = internals.admission;
10929
10929
  const callingState = runtime.currentState();
10930
10930
  const advertisedProfiles = filterProfiles(internals.defaults.profiles, opts?.profiles);
10931
- const cardText = profileCard(advertisedProfiles);
10931
+ const spawnableProfiles = {};
10932
+ const declaredLadderNames = [];
10933
+ for (const [name, profile] of Object.entries(advertisedProfiles)) {
10934
+ const spec = profile.model;
10935
+ if (spec !== void 0 && typeof spec !== "string" && "ladder" in spec) declaredLadderNames.push(name);
10936
+ else spawnableProfiles[name] = profile;
10937
+ }
10938
+ declaredLadderNames.sort();
10939
+ const cardText = declaredLadderNames.length === 0 ? profileCard(advertisedProfiles) : `${profileCard(spawnableProfiles)}\nDeclared ladders (tier context for the knowledge card; NOT agentType values, never spawn them): ${declaredLadderNames.join(", ")}.`;
10932
10940
  const extension = opts?.extension;
10933
10941
  let orchestratorAccount;
10934
10942
  let capState;
@@ -11281,6 +11289,8 @@ function makeOrchestratorWorkflow(goal, opts) {
11281
11289
  if (opts?.maxSpawns !== void 0 && spawnOrdinal >= opts.maxSpawns) throw new AdmissionRejectedError(`orchestrate maxSpawns ${String(opts.maxSpawns)} reached`, { data: { reason: { code: "lifetime" } } });
11282
11290
  const scope = childScopeOf();
11283
11291
  const profile = internals.defaults.profiles?.[params.agentType];
11292
+ const profileModel = profile?.model;
11293
+ if (profileModel !== void 0 && typeof profileModel !== "string" && "ladder" in profileModel) throw new ConfigError(`agentType '${params.agentType}' declares a ladder; ladder execution is owned by the plan extension, which resolves each rung attempt to a concrete model override (docs/07, section 10); spawn a concrete profile instead`);
11284
11294
  const decision = admission.admit({
11285
11295
  origin: "spawn_agent",
11286
11296
  name: params.agentType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/core",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "rulvar core: L0 contracts, journal kernel, ctx primitives, agent runtime, model router, tool system, dynamic orchestrator, InMemory and JSONL stores, event stream.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",