CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

adobe/aem-cloud-service

All AEM as a Cloud Service skills: component development, Workflow model design, development, triggering, launchers, debugging, and triaging, Dispatcher config authoring, advisory, incident response, performance tuning, and security hardening, Rapid Development Environment (RDE) deployment, log inspection, snapshots, and troubleshooting via `aio aem rde`, Jackrabbit Oak query/index tuning (property, Lucene index definitions), and extracting/inventorying JCR queries (XPath, SQL2, QueryBuilder) across a codebase.

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

runtime-gate.jsskills/migration/scripts/validate-migration/check/lib/

'use strict';

const { FAILURE_CLASSES } = require('../../failure-classes.js');
const { mcpUnavailableOutcome } = require('./diagnosis.js');

function fail(failure_class, bundle_state, component_state, evidence) {
  return { result: 'fail', failure_class, bundle_state, component_state, evidence };
}

/** Fail outcome when MCP has no report or the bundle is not Active; null otherwise. */
function bundleGate(diagnosis, bundleBSN) {
  if (!diagnosis.available) return mcpUnavailableOutcome(bundleBSN);
  if (!diagnosis.found) return fail(FAILURE_CLASSES.BUNDLE_NOT_INSTALLED, diagnosis.bundle_state, 'Unknown', `bundle ${bundleBSN} not found on SDK`);
  if (diagnosis.bundle_state !== 'Active') return fail(FAILURE_CLASSES.BUNDLE_NOT_ACTIVE, diagnosis.bundle_state, 'Unknown', `bundle state=${diagnosis.bundle_state}`);
  return null;
}

/** On an Active bundle: `{ failure }` when the component is missing or inactive, else `{ state }`. */
function componentGate(diagnosis, name, { allowSatisfied = false } = {}) {
  const component = diagnosis.components.get(name);
  if (!component) {
    return { failure: fail(FAILURE_CLASSES.COMPONENT_UNSATISFIED, 'Active', 'Unknown', `component ${name} not present in MCP diagnose-osgi-bundle report`) };
  }
  const state = component.state || 'Unknown';
  if (state === 'Active' || (allowSatisfied && state === 'Satisfied')) return { state };
  return { failure: fail(FAILURE_CLASSES.ACTIVATION_ERROR, 'Active', state, `component_state=${state}`) };
}

module.exports = { bundleGate, componentGate };

skills

migration

README.md

SKILL.md

README.md

tile.json