@fulmenhq/tsfulmen 0.3.2 → 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.
@@ -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-Dv5TERCM.js';
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-Dv5TERCM.js';
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.2";
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
- const result = await validateDataBySchemaId(parsed, APP_IDENTITY_SCHEMA_ID);
1943
- if (!result.valid) {
1944
- throw AppIdentityError.embeddedValidationFailed(result.diagnostics);
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
- const result = await validateDataBySchemaId(data, APP_IDENTITY_SCHEMA_ID);
1949
- if (!result.valid) {
1950
- throw AppIdentityError.embeddedValidationFailed(result.diagnostics);
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.2";
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