executor 1.2.5-beta.0 → 1.2.6

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/bin/executor.mjs CHANGED
@@ -130802,7 +130802,7 @@ ${lanes.join(`
130802
130802
  let labelOffsets;
130803
130803
  let labelExpressions;
130804
130804
  let nextLabelId = 1;
130805
- let operations4;
130805
+ let operations;
130806
130806
  let operationArguments;
130807
130807
  let operationLocations;
130808
130808
  let state2;
@@ -130972,7 +130972,7 @@ ${lanes.join(`
130972
130972
  const savedLabelOffsets = labelOffsets;
130973
130973
  const savedLabelExpressions = labelExpressions;
130974
130974
  const savedNextLabelId = nextLabelId;
130975
- const savedOperations = operations4;
130975
+ const savedOperations = operations;
130976
130976
  const savedOperationArguments = operationArguments;
130977
130977
  const savedOperationLocations = operationLocations;
130978
130978
  const savedState = state2;
@@ -130985,7 +130985,7 @@ ${lanes.join(`
130985
130985
  labelOffsets = undefined;
130986
130986
  labelExpressions = undefined;
130987
130987
  nextLabelId = 1;
130988
- operations4 = undefined;
130988
+ operations = undefined;
130989
130989
  operationArguments = undefined;
130990
130990
  operationLocations = undefined;
130991
130991
  state2 = factory2.createTempVariable(undefined);
@@ -131004,7 +131004,7 @@ ${lanes.join(`
131004
131004
  labelOffsets = savedLabelOffsets;
131005
131005
  labelExpressions = savedLabelExpressions;
131006
131006
  nextLabelId = savedNextLabelId;
131007
- operations4 = savedOperations;
131007
+ operations = savedOperations;
131008
131008
  operationArguments = savedOperationArguments;
131009
131009
  operationLocations = savedOperationLocations;
131010
131010
  state2 = savedState;
@@ -131708,7 +131708,7 @@ ${lanes.join(`
131708
131708
  }
131709
131709
  function markLabel(label) {
131710
131710
  Debug2.assert(labelOffsets !== undefined, "No labels were defined.");
131711
- labelOffsets[label] = operations4 ? operations4.length : 0;
131711
+ labelOffsets[label] = operations ? operations.length : 0;
131712
131712
  }
131713
131713
  function beginBlock(block) {
131714
131714
  if (!blocks2) {
@@ -131719,7 +131719,7 @@ ${lanes.join(`
131719
131719
  }
131720
131720
  const index = blockActions.length;
131721
131721
  blockActions[index] = 0;
131722
- blockOffsets[index] = operations4 ? operations4.length : 0;
131722
+ blockOffsets[index] = operations ? operations.length : 0;
131723
131723
  blocks2[index] = block;
131724
131724
  blockStack.push(block);
131725
131725
  return index;
@@ -131730,7 +131730,7 @@ ${lanes.join(`
131730
131730
  return Debug2.fail("beginBlock was never called.");
131731
131731
  const index = blockActions.length;
131732
131732
  blockActions[index] = 1;
131733
- blockOffsets[index] = operations4 ? operations4.length : 0;
131733
+ blockOffsets[index] = operations ? operations.length : 0;
131734
131734
  blocks2[index] = block;
131735
131735
  blockStack.pop();
131736
131736
  return block;
@@ -132033,16 +132033,16 @@ ${lanes.join(`
132033
132033
  emitWorker(10);
132034
132034
  }
132035
132035
  function emitWorker(code2, args2, location2) {
132036
- if (operations4 === undefined) {
132037
- operations4 = [];
132036
+ if (operations === undefined) {
132037
+ operations = [];
132038
132038
  operationArguments = [];
132039
132039
  operationLocations = [];
132040
132040
  }
132041
132041
  if (labelOffsets === undefined) {
132042
132042
  markLabel(defineLabel());
132043
132043
  }
132044
- const operationIndex = operations4.length;
132045
- operations4[operationIndex] = code2;
132044
+ const operationIndex = operations.length;
132045
+ operations[operationIndex] = code2;
132046
132046
  operationArguments[operationIndex] = args2;
132047
132047
  operationLocations[operationIndex] = location2;
132048
132048
  }
@@ -132061,11 +132061,11 @@ ${lanes.join(`
132061
132061
  return emitHelpers().createGeneratorHelper(setEmitFlags2(factory2.createFunctionExpression(undefined, undefined, undefined, undefined, [factory2.createParameterDeclaration(undefined, undefined, state2)], undefined, factory2.createBlock(buildResult, buildResult.length > 0)), 1048576));
132062
132062
  }
132063
132063
  function buildStatements() {
132064
- if (operations4) {
132065
- for (let operationIndex = 0;operationIndex < operations4.length; operationIndex++) {
132064
+ if (operations) {
132065
+ for (let operationIndex = 0;operationIndex < operations.length; operationIndex++) {
132066
132066
  writeOperation(operationIndex);
132067
132067
  }
132068
- flushFinalLabel(operations4.length);
132068
+ flushFinalLabel(operations.length);
132069
132069
  } else {
132070
132070
  flushFinalLabel(0);
132071
132071
  }
@@ -132220,7 +132220,7 @@ ${lanes.join(`
132220
132220
  }
132221
132221
  lastOperationWasAbrupt = false;
132222
132222
  lastOperationWasCompletion = false;
132223
- const opcode = operations4[operationIndex];
132223
+ const opcode = operations[operationIndex];
132224
132224
  if (opcode === 0) {
132225
132225
  return;
132226
132226
  } else if (opcode === 10) {
@@ -363768,6 +363768,8 @@ var createExecutorMcpRequestHandler = (runtime6) => {
363768
363768
  };
363769
363769
  };
363770
363770
 
363771
+ // packages/platform/internal/src/tools/executor-admin.ts
363772
+ var createWorkspaceExecutorAdminToolMap = (_input) => ({});
363771
363773
  // packages/platform/sdk/src/local/operations.ts
363772
363774
  var localOps = {
363773
363775
  installation: operationErrors("local.installation.get"),
@@ -363954,6 +363956,7 @@ var completeSourceCredentialSetup = (input) => gen2(function* () {
363954
363956
  const sourceAuthService = yield* RuntimeSourceAuthServiceTag;
363955
363957
  return yield* sourceAuthService.completeSourceCredentialSetup(input).pipe(mapError2((error51) => localOps.sourceCredentialComplete.unknownStorage(error51, "Failed completing source credential setup")));
363956
363958
  });
363959
+
363957
363960
  // packages/platform/sdk/src/local/secrets.ts
363958
363961
  var secretStorageError = (operation, message) => new ControlPlaneStorageError({
363959
363962
  operation,
@@ -364061,6 +364064,7 @@ var deleteLocalSecret = (secretId) => gen2(function* () {
364061
364064
  }
364062
364065
  return { removed: true };
364063
364066
  });
364067
+
364064
364068
  // packages/platform/sdk/src/runtime/policy/operations-shared.ts
364065
364069
  var mapPersistenceError = (operation, effect3) => effect3.pipe(mapError2((error51) => {
364066
364070
  const errors4 = asOperationErrors(operation);
@@ -364184,452 +364188,7 @@ var removeSource = (input) => flatMap10(ExecutorStateStore, () => gen2(function*
364184
364188
  }));
364185
364189
  return { removed };
364186
364190
  }));
364187
- // packages/platform/internal/src/tools/executor-admin.ts
364188
- var emptyInputSchema = standardSchemaV1(Struct({}));
364189
- var localInstallationOutputSchema = standardSchemaV1(LocalInstallationSchema);
364190
- var instanceConfigOutputSchema = standardSchemaV1(InstanceConfigSchema);
364191
- var secretListOutputSchema = standardSchemaV1(Array$(SecretListItemSchema));
364192
- var createSecretInputSchema = standardSchemaV1(CreateSecretPayloadSchema);
364193
- var updateSecretInputSchema = standardSchemaV1(Struct({
364194
- secretId: String$,
364195
- payload: UpdateSecretPayloadSchema
364196
- }));
364197
- var removeSecretInputSchema = standardSchemaV1(Struct({
364198
- secretId: String$
364199
- }));
364200
- var removeResultSchema = standardSchemaV1(Struct({
364201
- removed: Boolean$
364202
- }));
364203
- var listSourcesOutputSchema = standardSchemaV1(Array$(SourceSchema2));
364204
- var getSourceInputSchema = standardSchemaV1(Struct({
364205
- sourceId: SourceIdSchema
364206
- }));
364207
- var updateSourceInputSchema = standardSchemaV1(Struct({
364208
- sourceId: SourceIdSchema,
364209
- payload: UpdateSourcePayloadSchema
364210
- }));
364211
- var discoverSourceInputSchema = standardSchemaV1(DiscoverSourcePayloadSchema);
364212
- var inspectToolInputSchema = standardSchemaV1(Struct({
364213
- sourceId: SourceIdSchema,
364214
- toolPath: String$
364215
- }));
364216
- var inspectDiscoverInputSchema = standardSchemaV1(Struct({
364217
- sourceId: SourceIdSchema,
364218
- payload: SourceInspectionDiscoverPayloadSchema
364219
- }));
364220
- var listPoliciesOutputSchema = standardSchemaV1(Array$(LocalScopePolicySchema));
364221
- var policyIdInputSchema = standardSchemaV1(Struct({
364222
- policyId: String$
364223
- }));
364224
- var createPolicyInputSchema = standardSchemaV1(CreatePolicyPayloadSchema);
364225
- var updatePolicyInputSchema = standardSchemaV1(Struct({
364226
- policyId: String$,
364227
- payload: UpdatePolicyPayloadSchema
364228
- }));
364229
- var workspaceOauthClientListInputSchema = standardSchemaV1(Struct({
364230
- providerKey: String$
364231
- }));
364232
- var workspaceOauthClientListOutputSchema = standardSchemaV1(Array$(ScopeOauthClientSchema));
364233
- var createWorkspaceOauthClientInputSchema = standardSchemaV1(CreateScopeOauthClientPayloadSchema);
364234
- var removeWorkspaceOauthClientInputSchema = standardSchemaV1(Struct({
364235
- oauthClientId: String$
364236
- }));
364237
- var removeProviderGrantInputSchema = standardSchemaV1(Struct({
364238
- grantId: String$
364239
- }));
364240
- var sourceOutputSchema = standardSchemaV1(SourceSchema2);
364241
- var sourceInspectionOutputSchema = standardSchemaV1(SourceInspectionSchema);
364242
- var sourceInspectionToolOutputSchema = standardSchemaV1(SourceInspectionToolDetailSchema);
364243
- var sourceInspectionDiscoverOutputSchema = standardSchemaV1(SourceInspectionDiscoverResultSchema);
364244
- var sourceDiscoveryOutputSchema = standardSchemaV1(SourceDiscoveryResultSchema);
364245
- var localScopePolicyOutputSchema = standardSchemaV1(LocalScopePolicySchema);
364246
- var makeRuntimeLayer = (input) => mergeAll5(succeed9(ExecutorStateStore, input.executorStateStore), succeed9(RuntimeSourceStoreService, input.sourceStore), succeed9(RuntimeSourceCatalogSyncService, input.sourceCatalogSyncService), succeed9(LocalInstanceConfigService, input.instanceConfigResolver), succeed9(SecretMaterialStorerService, input.storeSecretMaterial), succeed9(SecretMaterialDeleterService, input.deleteSecretMaterial), succeed9(SecretMaterialUpdaterService, input.updateSecretMaterial), makeScopeStorageLayer({
364247
- scopeConfigStore: input.scopeConfigStore,
364248
- scopeStateStore: input.scopeStateStore,
364249
- sourceArtifactStore: input.sourceArtifactStore
364250
- }));
364251
- var runRuntimeEffect = (input) => runPromise(provideOptionalRuntimeLocalScope(input.effect.pipe(provide2(input.runtimeLayer)), input.runtimeLocalScope));
364252
- var runScopeStorageEffect = (input) => runPromise(provideOptionalRuntimeLocalScope(input.effect.pipe(provide2(input.scopeStorageLayer)), input.runtimeLocalScope));
364253
- var createWorkspaceExecutorAdminToolMap = (input) => {
364254
- const runtimeLayer = makeRuntimeLayer({
364255
- executorStateStore: input.executorStateStore,
364256
- sourceStore: input.sourceStore,
364257
- sourceCatalogSyncService: input.sourceCatalogSyncService,
364258
- scopeConfigStore: input.scopeConfigStore,
364259
- scopeStateStore: input.scopeStateStore,
364260
- sourceArtifactStore: input.sourceArtifactStore,
364261
- instanceConfigResolver: input.instanceConfigResolver,
364262
- storeSecretMaterial: input.storeSecretMaterial,
364263
- deleteSecretMaterial: input.deleteSecretMaterial,
364264
- updateSecretMaterial: input.updateSecretMaterial
364265
- });
364266
- const scopeStorageLayer = makeScopeStorageLayer({
364267
- scopeConfigStore: input.scopeConfigStore,
364268
- scopeStateStore: input.scopeStateStore,
364269
- sourceArtifactStore: input.sourceArtifactStore
364270
- });
364271
- const metadata = {
364272
- sourceKey: "executor",
364273
- interaction: "auto"
364274
- };
364275
- return {
364276
- "executor.local.installation.get": toTool({
364277
- tool: {
364278
- description: "Get the active local executor installation account and workspace ids.",
364279
- inputSchema: emptyInputSchema,
364280
- outputSchema: localInstallationOutputSchema,
364281
- execute: async () => ({
364282
- scopeId: input.scopeId,
364283
- actorScopeId: input.actorScopeId
364284
- })
364285
- },
364286
- metadata
364287
- }),
364288
- "executor.local.config.get": toTool({
364289
- tool: {
364290
- description: "Get local instance config such as supported secret providers.",
364291
- inputSchema: emptyInputSchema,
364292
- outputSchema: instanceConfigOutputSchema,
364293
- execute: () => runPromise(input.instanceConfigResolver())
364294
- },
364295
- metadata
364296
- }),
364297
- "executor.secrets.list": toTool({
364298
- tool: {
364299
- description: "List locally stored secrets and the sources linked to them.",
364300
- inputSchema: emptyInputSchema,
364301
- outputSchema: secretListOutputSchema,
364302
- execute: () => runRuntimeEffect({
364303
- effect: listLocalSecrets(),
364304
- runtimeLayer,
364305
- runtimeLocalScope: input.runtimeLocalScope
364306
- })
364307
- },
364308
- metadata
364309
- }),
364310
- "executor.secrets.create": toTool({
364311
- tool: {
364312
- description: "Create a local secret without putting the raw value into source config.",
364313
- inputSchema: createSecretInputSchema,
364314
- outputSchema: standardSchemaV1(CreateSecretResultSchema),
364315
- execute: (payload) => runRuntimeEffect({
364316
- effect: createLocalSecret(payload),
364317
- runtimeLayer,
364318
- runtimeLocalScope: input.runtimeLocalScope
364319
- })
364320
- },
364321
- metadata
364322
- }),
364323
- "executor.secrets.update": toTool({
364324
- tool: {
364325
- description: "Update a stored secret name and optionally rotate its value.",
364326
- inputSchema: updateSecretInputSchema,
364327
- outputSchema: standardSchemaV1(UpdateSecretResultSchema),
364328
- execute: (payload) => runRuntimeEffect({
364329
- effect: updateLocalSecret(payload),
364330
- runtimeLayer,
364331
- runtimeLocalScope: input.runtimeLocalScope
364332
- })
364333
- },
364334
- metadata
364335
- }),
364336
- "executor.secrets.remove": toTool({
364337
- tool: {
364338
- description: "Remove a stored local secret.",
364339
- inputSchema: removeSecretInputSchema,
364340
- outputSchema: standardSchemaV1(DeleteSecretResultSchema),
364341
- execute: ({ secretId }) => runRuntimeEffect({
364342
- effect: deleteLocalSecret(secretId),
364343
- runtimeLayer,
364344
- runtimeLocalScope: input.runtimeLocalScope
364345
- })
364346
- },
364347
- metadata
364348
- }),
364349
- "executor.sources.discover": toTool({
364350
- tool: {
364351
- description: "Probe a URL and infer whether it looks like MCP, OpenAPI, GraphQL, or another supported source.",
364352
- inputSchema: discoverSourceInputSchema,
364353
- outputSchema: sourceDiscoveryOutputSchema,
364354
- execute: (payload) => runPromise(discoverSource({
364355
- url: payload.url,
364356
- probeAuth: payload.probeAuth
364357
- }))
364358
- },
364359
- metadata
364360
- }),
364361
- "executor.sources.list": toTool({
364362
- tool: {
364363
- description: "List sources connected in the current workspace.",
364364
- inputSchema: emptyInputSchema,
364365
- outputSchema: listSourcesOutputSchema,
364366
- execute: () => runRuntimeEffect({
364367
- effect: listSources({
364368
- scopeId: input.scopeId,
364369
- actorScopeId: input.actorScopeId
364370
- }),
364371
- runtimeLayer,
364372
- runtimeLocalScope: input.runtimeLocalScope
364373
- })
364374
- },
364375
- metadata
364376
- }),
364377
- "executor.sources.get": toTool({
364378
- tool: {
364379
- description: "Get one source by id.",
364380
- inputSchema: getSourceInputSchema,
364381
- outputSchema: sourceOutputSchema,
364382
- execute: ({ sourceId }) => runRuntimeEffect({
364383
- effect: getSource({
364384
- scopeId: input.scopeId,
364385
- sourceId,
364386
- actorScopeId: input.actorScopeId
364387
- }),
364388
- runtimeLayer,
364389
- runtimeLocalScope: input.runtimeLocalScope
364390
- })
364391
- },
364392
- metadata
364393
- }),
364394
- "executor.sources.update": toTool({
364395
- tool: {
364396
- description: "Update a source definition in the current workspace.",
364397
- inputSchema: updateSourceInputSchema,
364398
- outputSchema: sourceOutputSchema,
364399
- execute: (payload) => runRuntimeEffect({
364400
- effect: updateSource({
364401
- scopeId: input.scopeId,
364402
- sourceId: payload.sourceId,
364403
- actorScopeId: input.actorScopeId,
364404
- payload: payload.payload
364405
- }),
364406
- runtimeLayer,
364407
- runtimeLocalScope: input.runtimeLocalScope
364408
- })
364409
- },
364410
- metadata
364411
- }),
364412
- "executor.sources.remove": toTool({
364413
- tool: {
364414
- description: "Remove a source from the current workspace.",
364415
- inputSchema: getSourceInputSchema,
364416
- outputSchema: removeResultSchema,
364417
- execute: ({ sourceId }) => runRuntimeEffect({
364418
- effect: removeSource({
364419
- scopeId: input.scopeId,
364420
- sourceId
364421
- }),
364422
- runtimeLayer,
364423
- runtimeLocalScope: input.runtimeLocalScope
364424
- })
364425
- },
364426
- metadata
364427
- }),
364428
- "executor.sources.inspect.get": toTool({
364429
- tool: {
364430
- description: "Inspect the tool model for one connected source.",
364431
- inputSchema: getSourceInputSchema,
364432
- outputSchema: sourceInspectionOutputSchema,
364433
- execute: ({ sourceId }) => runRuntimeEffect({
364434
- effect: getSourceInspection({
364435
- scopeId: input.scopeId,
364436
- sourceId
364437
- }),
364438
- runtimeLayer,
364439
- runtimeLocalScope: input.runtimeLocalScope
364440
- })
364441
- },
364442
- metadata
364443
- }),
364444
- "executor.sources.inspect.tool": toTool({
364445
- tool: {
364446
- description: "Inspect one tool inside a connected source.",
364447
- inputSchema: inspectToolInputSchema,
364448
- outputSchema: sourceInspectionToolOutputSchema,
364449
- execute: ({
364450
- sourceId,
364451
- toolPath
364452
- }) => runRuntimeEffect({
364453
- effect: getSourceInspectionToolDetail({
364454
- scopeId: input.scopeId,
364455
- sourceId,
364456
- toolPath
364457
- }),
364458
- runtimeLayer,
364459
- runtimeLocalScope: input.runtimeLocalScope
364460
- })
364461
- },
364462
- metadata
364463
- }),
364464
- "executor.sources.inspect.discover": toTool({
364465
- tool: {
364466
- description: "Search within a single source's inspected tools.",
364467
- inputSchema: inspectDiscoverInputSchema,
364468
- outputSchema: sourceInspectionDiscoverOutputSchema,
364469
- execute: ({
364470
- sourceId,
364471
- payload
364472
- }) => runRuntimeEffect({
364473
- effect: discoverSourceInspectionTools({
364474
- scopeId: input.scopeId,
364475
- sourceId,
364476
- payload
364477
- }),
364478
- runtimeLayer,
364479
- runtimeLocalScope: input.runtimeLocalScope
364480
- })
364481
- },
364482
- metadata
364483
- }),
364484
- "executor.sources.oauthClients.list": toTool({
364485
- tool: {
364486
- description: "List workspace OAuth clients for a provider key.",
364487
- inputSchema: workspaceOauthClientListInputSchema,
364488
- outputSchema: workspaceOauthClientListOutputSchema,
364489
- execute: ({ providerKey }) => runScopeStorageEffect({
364490
- effect: input.sourceAuthService.listScopeOauthClients({
364491
- scopeId: input.scopeId,
364492
- providerKey
364493
- }),
364494
- scopeStorageLayer,
364495
- runtimeLocalScope: input.runtimeLocalScope
364496
- })
364497
- },
364498
- metadata
364499
- }),
364500
- "executor.sources.oauthClients.create": toTool({
364501
- tool: {
364502
- description: "Create a workspace OAuth client used for shared provider auth flows.",
364503
- inputSchema: createWorkspaceOauthClientInputSchema,
364504
- outputSchema: standardSchemaV1(ScopeOauthClientSchema),
364505
- execute: (payload) => runScopeStorageEffect({
364506
- effect: input.sourceAuthService.createScopeOauthClient({
364507
- scopeId: input.scopeId,
364508
- providerKey: payload.providerKey,
364509
- label: payload.label,
364510
- oauthClient: payload.oauthClient
364511
- }),
364512
- scopeStorageLayer,
364513
- runtimeLocalScope: input.runtimeLocalScope
364514
- })
364515
- },
364516
- metadata
364517
- }),
364518
- "executor.sources.oauthClients.remove": toTool({
364519
- tool: {
364520
- description: "Remove a workspace OAuth client.",
364521
- inputSchema: removeWorkspaceOauthClientInputSchema,
364522
- outputSchema: removeResultSchema,
364523
- execute: ({ oauthClientId }) => runScopeStorageEffect({
364524
- effect: input.sourceAuthService.removeScopeOauthClient({
364525
- scopeId: input.scopeId,
364526
- oauthClientId
364527
- }).pipe(map16((removed) => ({ removed }))),
364528
- scopeStorageLayer,
364529
- runtimeLocalScope: input.runtimeLocalScope
364530
- })
364531
- },
364532
- metadata
364533
- }),
364534
- "executor.sources.providerGrants.remove": toTool({
364535
- tool: {
364536
- description: "Revoke a shared provider grant reference from the local workspace.",
364537
- inputSchema: removeProviderGrantInputSchema,
364538
- outputSchema: removeResultSchema,
364539
- execute: ({ grantId }) => runScopeStorageEffect({
364540
- effect: input.sourceAuthService.removeProviderAuthGrant({
364541
- scopeId: input.scopeId,
364542
- grantId
364543
- }).pipe(map16((removed) => ({ removed }))),
364544
- scopeStorageLayer,
364545
- runtimeLocalScope: input.runtimeLocalScope
364546
- })
364547
- },
364548
- metadata
364549
- }),
364550
- "executor.policies.list": toTool({
364551
- tool: {
364552
- description: "List local workspace policies.",
364553
- inputSchema: emptyInputSchema,
364554
- outputSchema: listPoliciesOutputSchema,
364555
- execute: () => runRuntimeEffect({
364556
- effect: listPolicies(input.scopeId),
364557
- runtimeLayer,
364558
- runtimeLocalScope: input.runtimeLocalScope
364559
- })
364560
- },
364561
- metadata
364562
- }),
364563
- "executor.policies.create": toTool({
364564
- tool: {
364565
- description: "Create a local workspace policy.",
364566
- inputSchema: createPolicyInputSchema,
364567
- outputSchema: localScopePolicyOutputSchema,
364568
- execute: (payload) => runRuntimeEffect({
364569
- effect: createPolicy({
364570
- scopeId: input.scopeId,
364571
- payload
364572
- }),
364573
- runtimeLayer,
364574
- runtimeLocalScope: input.runtimeLocalScope
364575
- })
364576
- },
364577
- metadata
364578
- }),
364579
- "executor.policies.get": toTool({
364580
- tool: {
364581
- description: "Get one local workspace policy by id.",
364582
- inputSchema: policyIdInputSchema,
364583
- outputSchema: localScopePolicyOutputSchema,
364584
- execute: ({ policyId }) => runRuntimeEffect({
364585
- effect: getPolicy({
364586
- scopeId: input.scopeId,
364587
- policyId
364588
- }),
364589
- runtimeLayer,
364590
- runtimeLocalScope: input.runtimeLocalScope
364591
- })
364592
- },
364593
- metadata
364594
- }),
364595
- "executor.policies.update": toTool({
364596
- tool: {
364597
- description: "Update a local workspace policy.",
364598
- inputSchema: updatePolicyInputSchema,
364599
- outputSchema: localScopePolicyOutputSchema,
364600
- execute: ({
364601
- policyId,
364602
- payload
364603
- }) => runRuntimeEffect({
364604
- effect: updatePolicy({
364605
- scopeId: input.scopeId,
364606
- policyId,
364607
- payload
364608
- }),
364609
- runtimeLayer,
364610
- runtimeLocalScope: input.runtimeLocalScope
364611
- })
364612
- },
364613
- metadata
364614
- }),
364615
- "executor.policies.remove": toTool({
364616
- tool: {
364617
- description: "Remove a local workspace policy.",
364618
- inputSchema: policyIdInputSchema,
364619
- outputSchema: removeResultSchema,
364620
- execute: ({ policyId }) => runRuntimeEffect({
364621
- effect: removePolicy({
364622
- scopeId: input.scopeId,
364623
- policyId
364624
- }),
364625
- runtimeLayer,
364626
- runtimeLocalScope: input.runtimeLocalScope
364627
- })
364628
- },
364629
- metadata
364630
- })
364631
- };
364632
- };
364191
+
364633
364192
  // packages/platform/sdk/src/executor-effect.ts
364634
364193
  var fromRuntime = (runtime6) => {
364635
364194
  const installation = runtime6.localInstallation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "executor",
3
- "version": "1.2.5-beta.0",
3
+ "version": "1.2.6",
4
4
  "description": "Local AI executor with a CLI, local API server, and web UI.",
5
5
  "keywords": [
6
6
  "executor",
@@ -1 +1 @@
1
- import{r,R as c,M as p,B as x}from"./mermaid-O7DHMXV3-DcQ4Fj2F.js";import{j as d}from"./index-CRuElBS1.js";var R=({code:i,language:e,raw:t,className:g,startLine:u,...m})=>{let{shikiTheme:o}=r.useContext(c),a=p(),[n,s]=r.useState(t);return r.useEffect(()=>{if(!a){s(t);return}let l=a.highlight({code:i,language:e,themes:o},h=>{s(h)});l&&s(l)},[i,e,o,a,t]),d.jsx(x,{className:g,language:e,result:n,startLine:u,...m})};export{R as HighlightedCodeBlockBody};
1
+ import{r,R as c,M as p,B as x}from"./mermaid-O7DHMXV3-CFZwlITs.js";import{j as d}from"./index-CRuElBS1.js";var R=({code:i,language:e,raw:t,className:g,startLine:u,...m})=>{let{shikiTheme:o}=r.useContext(c),a=p(),[n,s]=r.useState(t);return r.useEffect(()=>{if(!a){s(t);return}let l=a.highlight({code:i,language:e,themes:o},h=>{s(h)});l&&s(l)},[i,e,o,a,t]),d.jsx(x,{className:g,language:e,result:n,startLine:u,...m})};export{R as HighlightedCodeBlockBody};