@fulmenhq/tsfulmen 0.3.1 → 0.3.3
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/CHANGELOG.md +23 -0
- package/config/crucible-ts/repository/app-identity/app-identity.example.yaml +8 -0
- package/config/crucible-ts/repository/app-identity/fixtures/valid/typescript-package.yaml +17 -0
- package/config/crucible-ts/repository/app-identity/parity-snapshot.json +28 -0
- package/config/crucible-ts/taxonomy/metrics.yaml +1 -1
- package/dist/appidentity/index.d.ts +15 -5
- package/dist/appidentity/index.js +12 -7
- package/dist/appidentity/index.js.map +1 -1
- package/dist/bin/prometheus-cli.js +12 -7
- package/dist/bin/prometheus-cli.js.map +1 -1
- package/dist/bin/schema-cli.js.map +1 -1
- package/dist/config/index.d.ts +69 -11
- package/dist/config/index.js +18 -7
- package/dist/config/index.js.map +1 -1
- package/dist/foundry/index.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/reports/license-inventory.csv +1 -1
- package/dist/schema/index.js.map +1 -1
- package/dist/signals/index.d.ts +1 -1
- package/dist/telemetry/http/index.js.map +1 -1
- package/dist/telemetry/prometheus/index.js +12 -7
- package/dist/telemetry/prometheus/index.js.map +1 -1
- package/dist/{types-Dv5TERCM.d.ts → types-CHDvDRCf.d.ts} +17 -1
- package/package.json +1 -1
- package/schemas/crucible-ts/config/repository/app-identity/v1.0.0/app-identity.schema.json +34 -0
package/dist/foundry/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { F as FoundryCatalogError, N as NormalizeOptions, a as SuggestOptions, S
|
|
|
2
2
|
import { Readable } from 'node:stream';
|
|
3
3
|
export { AuthHook, AuthResult, ConfigLoader, ConfigReloadEndpointOptions, ConfigReloadErrorResponse, ConfigReloadOptions, ConfigReloadRequest, ConfigReloadResponse, ConfigReloadResult, ConfigReloadTracker, ConfigValidationResult, ConfigValidator, ControlDiscoveryEndpointOptions, ControlDiscoveryErrorResponse, ControlDiscoveryResponse, ControlEndpointDescriptor, DoubleTapConfig, DoubleTapState, GuardOptions, Platform, RateLimitHook, RateLimitResult, SignalEndpointOptions, SignalErrorResponse, PlatformCapabilities as SignalPlatformCapabilities, SignalRequest, SignalResponse, createBearerTokenAuth, createConfigReloadEndpoint, createConfigReloadHandler, createControlDiscoveryEndpoint, createDoubleTapTracker, createSignalEndpoint, createSimpleRateLimiter, ensurePOSIX, ensureSignalExitCodesSupported, ensureSupported, ensureWindows, getBehavior, getSignal, getSignalCatalog, getSignalNumber, getPlatformCapabilities as getSignalPlatformCapabilities, getSignalsVersion, getWindowTimeRemaining, getWindowsEvent, handleDoubleTap, isPOSIX as isSignalPOSIX, isWindows as isSignalWindows, isWithinWindow, listBehaviors, listSignals, onAnyShutdown, onEmergencyQuit, onReload, onShutdown, onUSR1, onUSR2, resetDoubleTap, supportsSignal, supportsSignalExitCodes as supportsSignalBasedExitCodes } from '../signals/index.js';
|
|
4
4
|
export { B as Behavior, a as BehaviorInfo, b as BehaviorPhase, E as ExitCodes, F as FallbackLogger, H as HandlerOptions, L as LogLevel, O as OsMappings, P as PlatformOverrides, e as PlatformSupport, f as PlatformSupportLevel, i as Signal, j as SignalBehavior, k as SignalCatalog, l as SignalHandler, m as SignalInfo, S as SignalManager, n as SignalManagerOptions, T as TelemetryEmitter, o as TimeoutBehavior, W as WindowsFallback, p as WindowsFallbackBehavior, q as WindowsFallbackOptions, s as WindowsFallbackResult, c as createSignalManager, g as getFallbackMetadata, d as getHttpFallbackGuidance, h as handleWindowsFallback, r as requiresFallback } from '../manager-CH3fX7zO.js';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-CHDvDRCf.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Foundry module - TypeScript type definitions
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { APP_IDENTITY_DIR, APP_IDENTITY_ENV_VAR, APP_IDENTITY_FILENAME, APP_IDENTITY_SCHEMA_ID, AppIdentityError, BuildRuntimeInfoOptions, ConfigIdentifiers, MAX_ANCESTOR_SEARCH_DEPTH, RuntimeInfo, RuntimeName, buildEnvVar, buildRuntimeInfo, clearEmbeddedIdentity, clearIdentityCache, getBinaryName, getCachedIdentity, getConfigIdentifiers, getConfigName, getEmbeddedIdentity, getEnvPrefix, getEnvVar, getTelemetryNamespace, getVendor, hasEmbeddedIdentity, loadIdentity, registerEmbeddedIdentity } from './appidentity/index.js';
|
|
2
|
-
export { A as AppIdentity, I as Identity, a as IdentityMetadata, L as LoadIdentityOptions, P as PythonMetadata, R as RepositoryCategory } from './types-
|
|
2
|
+
export { A as AppIdentity, I as Identity, a as IdentityMetadata, L as LoadIdentityOptions, P as PythonMetadata, R as RegisterEmbeddedIdentityOptions, b as RepositoryCategory } from './types-CHDvDRCf.js';
|
|
3
3
|
export { DocScribeError, DocScribeFormat, DocScribeFrontmatterResult, DocScribeHeader, DocScribeInfo, DocScribeMetadata, DocScribeMetadataValue, DocScribeOptions, DocScribeParseError, DocScribePrimitiveValue, DocScribeSplit, DocScribeUnsupportedFormatError, NormalizedInput, __internal, detectFormat, extractHeaders, extractMetadata, inspectDocument, normalizeInput, parseFrontmatter, splitDocuments, stripFrontmatter } from './docscribe/index.js';
|
|
4
4
|
export { ERROR_CODES, FULPACK_VERSION, FulpackOperationError, checkDecompressionBomb, create, createFulpackError, extract, hasPathTraversal, info, isAbsolutePath, scan, validatePath, verify } from './fulpack/index.js';
|
|
5
5
|
export { ArchiveEntry, ArchiveFormat, ArchiveInfo, ArchiveManifest, CreateOptions, EntryType, ExtractOptions, ExtractResult, FulpackError, Operation, ScanOptions, ValidationResult } from './crucible/fulpack/index.js';
|
|
@@ -12,6 +12,6 @@ import './types-DdoeE7F5.js';
|
|
|
12
12
|
* Provides ergonomic access to Crucible SSOT assets and core utilities
|
|
13
13
|
* for TypeScript/Node.js applications in the FulmenHQ ecosystem.
|
|
14
14
|
*/
|
|
15
|
-
declare const VERSION = "0.3.
|
|
15
|
+
declare const VERSION = "0.3.3";
|
|
16
16
|
|
|
17
17
|
export { VERSION };
|
package/dist/index.js
CHANGED
|
@@ -1925,10 +1925,11 @@ function deepFreeze(obj) {
|
|
|
1925
1925
|
});
|
|
1926
1926
|
return obj;
|
|
1927
1927
|
}
|
|
1928
|
-
async function registerEmbeddedIdentity(data) {
|
|
1928
|
+
async function registerEmbeddedIdentity(data, options) {
|
|
1929
1929
|
if (isRegistered) {
|
|
1930
1930
|
throw AppIdentityError.alreadyRegistered();
|
|
1931
1931
|
}
|
|
1932
|
+
const skipValidation = options?.skipValidation ?? false;
|
|
1932
1933
|
let identity;
|
|
1933
1934
|
if (typeof data === "string") {
|
|
1934
1935
|
let parsed;
|
|
@@ -1939,15 +1940,19 @@ async function registerEmbeddedIdentity(data) {
|
|
|
1939
1940
|
error instanceof Error ? error : new Error(String(error))
|
|
1940
1941
|
);
|
|
1941
1942
|
}
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1943
|
+
if (!skipValidation) {
|
|
1944
|
+
const result = await validateDataBySchemaId(parsed, APP_IDENTITY_SCHEMA_ID);
|
|
1945
|
+
if (!result.valid) {
|
|
1946
|
+
throw AppIdentityError.embeddedValidationFailed(result.diagnostics);
|
|
1947
|
+
}
|
|
1945
1948
|
}
|
|
1946
1949
|
identity = parsed;
|
|
1947
1950
|
} else {
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
+
if (!skipValidation) {
|
|
1952
|
+
const result = await validateDataBySchemaId(data, APP_IDENTITY_SCHEMA_ID);
|
|
1953
|
+
if (!result.valid) {
|
|
1954
|
+
throw AppIdentityError.embeddedValidationFailed(result.diagnostics);
|
|
1955
|
+
}
|
|
1951
1956
|
}
|
|
1952
1957
|
identity = data;
|
|
1953
1958
|
}
|
|
@@ -4388,7 +4393,7 @@ async function scanZip(archive, options) {
|
|
|
4388
4393
|
var FULPACK_VERSION = "1.0.0";
|
|
4389
4394
|
|
|
4390
4395
|
// src/index.ts
|
|
4391
|
-
var VERSION = "0.3.
|
|
4396
|
+
var VERSION = "0.3.3";
|
|
4392
4397
|
|
|
4393
4398
|
export { APP_IDENTITY_DIR, APP_IDENTITY_ENV_VAR, APP_IDENTITY_FILENAME, APP_IDENTITY_SCHEMA_ID, AppIdentityError, ArchiveFormat, DocScribeError, DocScribeParseError, DocScribeUnsupportedFormatError, ERROR_CODES, EntryType, FULPACK_VERSION, FulpackOperationError, MAX_ANCESTOR_SEARCH_DEPTH, Operation, VERSION, __internal, buildEnvVar, buildRuntimeInfo, checkDecompressionBomb, clearEmbeddedIdentity, clearIdentityCache, create, createFulpackError, detectFormat, extract, extractHeaders, extractMetadata, getBinaryName, getCachedIdentity, getConfigIdentifiers, getConfigName, getEmbeddedIdentity, getEnvPrefix, getEnvVar, getTelemetryNamespace, getVendor, hasEmbeddedIdentity, hasPathTraversal, info, inspectDocument, isAbsolutePath, loadIdentity, normalizeInput, parseFrontmatter, registerEmbeddedIdentity, scan, splitDocuments, stripFrontmatter, validatePath, verify };
|
|
4394
4399
|
//# sourceMappingURL=index.js.map
|